Comment on slow compilation of math/test-tgmath2.c
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2
3         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
4
5 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
6
7         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8         (_G_LSEEK64): Likewise.
9         (_G_MMAP64): Likewise.
10         (_G_FSTAT64): Likewise.
11         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
12         (_G_LSEEK64): Likewise.
13         (_G_MMAP64): Likewise.
14         (_G_FSTAT64): Likewise.
15         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
16         unconditional.  Call __mmap64 directly.
17         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
18         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
19         __lseek64 directly.
20         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
21         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
22         __mmap64 directly.
23         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
24         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
25         __lseek64 directly.
26         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
27         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
28         __lseek64 directly.
29         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
30         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
31         __lseek64 directly.
32         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
33         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
34         __fxstat64 directly.
35         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
36         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
37         unconditional.
38         (freopen64) [!_G_OPEN64]: Remove conditional code.
39         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
40         unconditional.
41         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
42         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
43         unconditional.
44         (ftello64) [!_G_LSEEK64]: Remove conditional code.
45         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
46         unconditional.
47         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
48         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
49         unconditional.
50         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
51         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
52         unconditional.
53         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
54         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
55         unconditional.
56         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
57         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
58         unconditional.
59         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
60
61 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
62
63         [BZ #12140]
64         * manual/memory.texi (Malloc Tunable Parameters): Add note
65         about free list pointers overwriting some perturb bytes.
66         Wording suggested by Roland McGrath.
67
68 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
69
70         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
71         (lgamma_test): Likewise.
72         (tgamma_test): Likewise.
73
74 2012-10-16  Florian Weimer  <fweimer@redhat.com>
75
76         [BZ #14700]
77         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
78         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
79
80 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
81
82         * NEWS: Mention BZ #14716.
83         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
84         when removing AVAILABLE1_USES_J macro.
85
86 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
87
88         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
89         (__bswap_64): __uint64_t for unsigned 64-bit int.
90
91 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
92
93         * include/string.h (memmem): Declare libc hidden alias.
94         * string/memmem.c (memmem): Define libc hidden alias.
95         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
96         __read, __close instead of open, read, close.
97
98 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
99
100         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
101         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
102         global and hidden.
103         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
104         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
105         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
106         Likewise.
107         (__rawmemchr_sse2): Likewise.
108         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
109         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
110         (__strchr_sse2): Likewise.
111         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
112         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
113         (__strcasecmp_sse2): Likewise.
114         (__strncasecmp_sse2): Likewise.
115         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
116         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
117         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
118         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
119         (__strrchr_sse2): Likewise.
120         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
121         ifunc-impl-list.c.
122         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
123         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
124         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
125         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
126         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
127         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
128         * sysdeps/x86_64/multiarch/memset.S: Likewise.
129         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
130         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
131         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
132         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
133         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
134         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
135         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
136         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
137         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
138         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
139         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
140         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
141         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
142         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
143         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
144         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
145         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
146         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
147         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
148         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
149         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
150         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
151         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
152
153         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
154         global and hidden.
155         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
156         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
157         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
158         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
159         Likewise.
160         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
161         Likewise.
162         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
163         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
164         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
165         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
166         ifunc-impl-list.c.
167         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
168         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
169         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
170         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
171         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
172         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
173         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
174         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
175         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
176         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
177         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
178         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
179         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
180         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
181         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
182         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
183         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
184         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
185         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
186         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
187         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
188         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
189         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
190         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
191         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
192         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
193         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
194         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
195         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
196         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
197         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
198         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
199         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
200         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
201         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
202         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
203         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
204         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
205         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
206         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
207         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
208
209         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
210         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
211         * include/ifunc-impl-list.h: New file.
212         * misc/ifunc-impl-list.c: Likewise.
213         * misc/Makefile (routines): Add ifunc-impl-list.
214         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
215         * string/test-string.h: Include <ifunc-impl-list.h>.
216         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
217         impl_array): New variables.
218         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
219         are defined.
220         (test_init): Call __libc_ifunc_impl_list to initialize
221         func_list if TEST_IFUNC and TEST_NAME are defined.
222
223         * string/Makefile (strop-tests): Add bcopy and bzero.
224         * string/test-bcopy.c: New file.
225         * string/test-bzero.c: Likewise.
226         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
227         defined.
228         * string/test-memset.c: Support bzero test if TEST_BZERO is
229         defined.
230         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
231         __libc_memmove.
232         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
233         __libc_memset.
234         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
235         of memset.
236
237 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
238
239         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
240         * configure: Regenerated.
241
242         * Makeconfig (+link-static-before-libc): Don't include
243         $(link-static-libc).
244
245         * libio/libio.h (_IO_pos_t): Remove.
246
247 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
248
249         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
250         McGrath.
251
252 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
253
254         * crypt/crypt-entry.c: Include fips-private.h.
255         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
256         * crypt/md5c-test.c (main): Tolerate disabled MD5.
257         * sysdeps/unix/sysv/linux/fips-private.h: New file.
258         * sysdeps/generic/fips-private.h: New file, dummy fallback.
259
260 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
261
262         * crypt/crypt-private.h: Include stdbool.h.
263         (_ufc_setup_salt_r): Return bool.
264         * crypt/crypt-entry.c: Include errno.h.
265         (__crypt_r): Return NULL with EINVAL for bad salt.
266         * crypt/crypt_util.c (bad_for_salt): New.
267         (_ufc_setup_salt_r): Check that salt is long enough and within
268         the specified alphabet.
269         * crypt/badsalttest.c: New file.
270         * crypt/Makefile (tests): Add it.
271         ($(objpfx)badsalttest): New.
272
273 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
274
275         * NEWS: Add entry for BZ #14602.
276
277 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
278
279         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
280         type-generic.
281         * math/libm-test.inc: Update comment listing what functions and
282         macros are tested.
283         (isgreater_test): New function.
284         (isgreaterequal_test): Likewise.
285         (isless_test): Likewise.
286         (islessequal_test): Likewise.
287         (islessgreater_test): Likewise.
288         (isunordered_test): Likewise.
289         (main): Call the new functions.
290
291 2012-10-09  Roland McGrath  <roland@hack.frob.com>
292
293         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
294         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
295         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
296         * sysdeps/i386/configure: Regenerated.
297         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
298         * sysdeps/mach/configure: Regenerated.
299         * sysdeps/mach/hurd/configure: Regenerated.
300         * sysdeps/powerpc/configure: Regenerated.
301         * sysdeps/powerpc/powerpc32/configure: Regenerated.
302         * sysdeps/powerpc/powerpc64/configure: Regenerated.
303         * sysdeps/s390/s390-32/configure: Regenerated.
304         * sysdeps/s390/s390-64/configure: Regenerated.
305         * sysdeps/sh/configure: Regenerated.
306         * sysdeps/sparc/configure: Regenerated.
307         * sysdeps/unix/sysv/linux/configure: Regenerated.
308         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
309         * sysdeps/x86_64/configure: Regenerated.
310
311         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
312         defined.  Don't check if MAP is NULL.
313
314 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
315
316         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
317         (_G_stat64): Likewise.
318         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
319         (_G_stat64): Likewise.
320         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
321         instead of struct _G_stat64.
322         * libio/fileops.c (mmap_remap_check): Likewise.
323         (decide_maybe_mmap): Likewise.
324         (_IO_new_file_seekoff): Likewise.
325         (_IO_file_stat): Likewise.
326         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
327         _G_off64_t.
328         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
329         instead of struct _G_stat64.
330         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
331
332 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
333
334         [BZ #14602]
335         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
336         Replace with ...
337         (CHECK_EOL): New macro.
338         (two_way_short_needle): Check beginning of haystack for EOL.  Use
339         CHECK_EOL.
340         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
341         Replace with CHECK_EOL.
342         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
343         Replace with CHECK_EOL.
344
345 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
346
347         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
348         type-generic.
349         * math/libm-test.inc: Update comment listing what functions and
350         macros are tested.
351         (finite_test): New function.
352         (isinf_test): Likewise.
353         (isnan_test): Likewise.
354         (fpclassify_test): Test subnormal input.
355         (isfinite_test): Likewise.
356         (isnormal_test): Likewise.
357         (main): Call the new functions.
358
359 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
360
361         [BZ #14660]
362         * Makerules (%.dynsym): Force C locale when running
363         $(OBJDUMP) --dynamic-syms.
364
365 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
366
367         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
368         <stdint.h>.
369
370 2012-10-06  David S. Miller  <davem@davemloft.net>
371
372         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
373         upper 32-bits of the length value in %o2 since we use branch-on-register
374         tests which consider the entire 64-bit register.
375
376 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
377
378         * string/test-strstr.c (check2): Add a test for page boundary.
379
380 2012-10-05  David S. Miller  <davem@davemloft.net>
381
382         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
383         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
384         file.
385         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
386         sysdep_routines.
387         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
388         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
389         and bzero when HWCAP_SPARC_CRYPTO is present.
390
391 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
392
393         [BZ #14602]
394         * string/test-strstr.c (check2): New function.
395         (test_main): Call check2.
396
397         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
398         and bug-strchr1.
399         * string/bug-strcasestr1.c (do_test): Moved to ...
400         * string/test-strcasestr.c (check1): Here.  New function.
401         (do_one_test): Break out result checking code into ...
402         (check_result): This.  New function.
403         (do_one_test): Call check_result.
404         (test_main): Call check1.
405         * string/bug-strchr1.c (do_test): Moved to ...
406         * string/test-strchr.c (check1): Here.  New function.
407         (do_one_test): Break out result checking code into ...
408         (check_result): This.  New function.
409         (do_one_test): Call check_result.
410         (test_main): Call check1.
411         * string/bug-strstr1.c (main): Moved to ...
412         * string/test-strchr.c (check1): Here.  New function.
413         (do_one_test): Break out result checking code into ...
414         (check_result): This.  New function.
415         (do_one_test): Call check_result.
416         (test_main): Call check1.
417         * string/bug-strcasestr1.c: Removed.
418         * string/bug-strchr1.c: Likewise.
419         * string/bug-strstr1.c: Likewise.
420
421         * elf/Makefile (dl-routines): Add hwcaps.
422         * elf/dl-support.c (_dl_important_hwcaps): Removed.
423         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
424         (_dl_important_hwcaps): Moved to ...
425         * elf/dl-hwcaps.c: Here.  New file.
426         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
427
428         [BZ #14557]
429         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
430         if IS_IN_rtld isn't defined.
431
432         * elf/dl-support.c (_dl_sysinfo_map): New.
433         Include "get-dynamic-info.h" and "setup-vdso.h".
434         (_dl_non_dynamic_init): Call setup_vdso.
435         * elf/dynamic-link.h: Don't include <assert.h>.
436         (elf_get_dynamic_info): Moved to ...
437         * elf/get-dynamic-info.h: Here.  New file.
438         * elf/dynamic-link.h: Include "get-dynamic-info.h".
439         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
440         * elf/setup-vdso.h: Here.  New file.
441         * elf/rtld.c: Include "setup-vdso.h".
442         (dl_main): Call setup_vdso.
443
444 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
445
446         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
447         creal in comment listing functions tested.  List finite, isinf,
448         isnan, isless, islessequal, isgreater, isgreaterequal,
449         islessgreater, isunordered, lgamma_r and pow10 as functions and
450         macros not tested.  Mention which functions not tested are aliases
451         for other functions.  Fix typo.  Note that signs of NaNs are not
452         tested.
453
454         * scripts/config.guess: Update from config.git.
455         * scripts/config.sub: Likewise.
456
457 2012-10-04  Roland McGrath  <roland@hack.frob.com>
458
459         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
460         * misc/madvise.c (madvise): Renamed to __madvise.
461         Make madvise a weak alias.
462         * include/sys/mman.h: Declare __madvise.
463         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
464         * sysdeps/unix/syscalls.list
465         (madvise): Make __madvise the strong name, and madvise a weak alias.
466         * sysdeps/unix/sysv/linux/syscalls.list
467         (madvise, mmap): Remove redundant entries.
468         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
469         * malloc/malloc.c (mtrim): Likewise.
470         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
471
472 2012-10-03  Roland McGrath  <roland@hack.frob.com>
473
474         * sysdeps/mach/hurd/dl-cache.c: File removed.
475         * config.h.in (USE_LDCONFIG): New #undef.
476         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
477         * configure: Regenerated.
478         * elf/Makefile (dl-routines): Add dl-cache only under
479         [$(use-ldconfig) = yes].
480         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
481         cache on [USE_LDCONFIG].
482         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
483         [USE_LDCONFIG].
484         * elf/rtld.c (dl_main): Likewise.
485
486 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
487
488         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
489         _SC_LEVEL4_CACHE_LINESIZE.
490
491 2012-10-03  Roland McGrath  <roland@hack.frob.com>
492
493         * sysdeps/unix/bsd/confstr.h: File removed.
494
495 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
496
497         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
498         sys/sdt-config.h.
499
500 2012-10-02  Roland McGrath  <roland@hack.frob.com>
501
502         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
503         Make 'mapoff' field ElfW(Off) rather than off_t.
504
505 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
506
507         * nscd/Makefile: Remove nscd-cflags and all its users.
508         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
509         (CFLAGS-nonlib): Add compiler flags for nscd modules.
510
511         [BZ #10631]
512         * malloc.c (malloc_printerr): Clarify error message.
513
514 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
515
516         [BZ #14648]
517         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
518         Set bit_FMA_Usable if FMA is supported.
519         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
520         macro.
521         (bit_FMA4_Usable): Updated.
522         (index_FMA_Usable): New macro.
523         (CPUID_FMA): Likewise
524         (HAS_FMA): Defined with bit_FMA_Usable.
525
526 2012-10-01  Roland McGrath  <roland@hack.frob.com>
527
528         * bits/types.h (__swblk_t): Type removed.
529         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
530         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
531         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
532         (__SWBLK_T_TYPE): Likewise.
533         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
534         (__SWBLK_T_TYPE): Likewise.
535         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
536         (__SWBLK_T_TYPE): Likewise.
537         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
538         (__SWBLK_T_TYPE): Likewise.
539
540 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
541             Honza Horak <hhorak@redhat.com>
542
543         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
544         (xdr_mapname): Use YPMAXMAP as maxsize.
545         (xdr_peername): Use YPMAXPEER as maxsize.
546         (xdr_keydat): Use YPAXRECORD as maxsize.
547         (xdr_valdat): Use YPMAXRECORD as maxsize.
548
549 2012-10-01  Roland McGrath  <roland@hack.frob.com>
550
551         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
552
553         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
554         * csu/init-first.c: ... here.
555         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
556         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
557         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
558         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
559         * sysdeps/i386/init-first.c: File removed.
560         * sysdeps/sh/init-first.c: File removed.
561
562 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
563
564         [BZ #14645]
565         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
566         if x * y might underflow to zero and z is zero.
567         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
568         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
569         * math/libm-test.inc (min_subnorm_value): New variable.
570         (fma_test): Add more tests.
571         (fma_test_towardzero): Likewise.
572         (fma_test_downward): Likewise
573         (fma_test_upward): Likewise.
574         (initialize): Set min_subnorm_value.
575
576 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
577
578         [BZ #14638]
579         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
580         0 + 0.
581         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
582         mode for addition resulting in exact zero.
583         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
584         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
585         exact 0 + 0.
586         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
587         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
588         * math/libm-test.inc (fma_test): Add more tests.
589         (fma_test_towardzero): New function.
590         (fma_test_downward): Likewise.
591         (fma_test_upward): Likewise.
592         (main): Call the new functions.
593
594 2012-09-28  David S. Miller  <davem@davemloft.net>
595
596         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
597
598 2012-09-28  Roland McGrath  <roland@hack.frob.com>
599
600         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
601         instead of SIGALRM.
602
603         * sysdeps/gnu/_G_config.h: Moved to ...
604         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
605         * sysdeps/mach/hurd/_G_config.h: Moved to ...
606         * sysdeps/generic/_G_config.h: ... here.
607
608         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
609
610         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
611
612         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
613         Conditionalize target on [libnss_test1.so-version].
614
615         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
616
617         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
618         (elfobjdir): Move out of conditionals.
619
620         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
621         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
622         (__nss_lookup_function): Conditionalize label remove_from_tree on
623         [!DO_STATIC_NSS || SHARED], matching its only use.
624
625 2012-09-28  David S. Miller  <davem@davemloft.net>
626
627         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
628         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
629         file.
630         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
631         sysdep_routines.
632         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
633         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
634         when HWCAP_SPARC_CRYPTO is present.
635
636 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
637
638         * io/tst-mknodat.c: Create a FIFO instead of a socket.
639
640 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
641
642         [BZ #6530]
643         * stdio-common/vfprintf.c (process_string_arg): Revert
644         2000-07-22 change.
645
646 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
647
648         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
649         for testcase.
650         * stdio-common/tst-sprintf.c: Include <locale.h>
651         (main): Test sprintf's handling of incomplete multibyte
652         characters.
653
654 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
655
656         * elf/dl-runtime.c (VERSYMIDX): Removed.
657         * elf/dl-version.c (VERSYMIDX): Likewise.
658         * elf/do-rel.h (VERSYMIDX): Likewise.
659         (VALIDX): Likewise.
660         * elf/dynamic-link.h (VERSYMIDX): Likewise.
661         * elf/rtld.c (VALIDX): Likewise.
662         (ADDRIDX): Likewise.
663         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
664         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
665         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
666         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
667         (VALIDX): Likewise.
668         (ADDRIDX): Likewise.
669
670 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
671
672         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
673
674 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
675
676         [BZ #11438]
677         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
678         to global scope.
679         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
680         addresses are in the same scope as 192.0.2/24.
681         * posix/gai.conf: Document new scope table defaults.
682
683 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
684
685         [BZ #5298]
686         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
687         for ftell.  Compute offsets from write pointers instead.
688         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
689
690 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
691
692         [BZ #14543]
693         * libio/Makefile (tests): New test case tst-fseek.
694         * libio/tst-fseek.c: New test case to verify that fseek/ftell
695         combination works in wide mode.
696         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
697         state when the external buffer state changes.
698
699 2012-09-27  David S. Miller  <davem@davemloft.net>
700
701         [BZ #14376]
702         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
703         pass reloc->r_addend in as the 'high' argument to
704         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
705
706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
707
708 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
709
710         * rt/tst-aio2.c: Include <pthread.h>.
711         * rt/tst-aio3.c: Likewise.
712
713 2012-09-27  Steve Ellcey  <sellcey@mips.com>
714
715         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
716
717 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
718
719         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
720         contents on [SHARED].
721
722 2012-09-26  Marek Polacek  <polacek@redhat.com>
723
724         [BZ #14530]
725         [BZ #13741]
726         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
727         for C++ and GCC <4.3 as well as for non GCC compilers.
728
729 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
730
731         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
732
733 2012-09-25  Roland McGrath  <roland@hack.frob.com>
734
735         * Makefile.in (all, install): Declare with .PHONY.
736         Reported by Michael Hope <michael.hope@linaro.org>.
737
738 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
739
740         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
741         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
742         system header.
743         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
744         Likewise.
745         (sydep_routines): Add the new and the internal functions.
746         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
747         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
749         (GLIBC_2.17): Add the new function.
750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
751         (GLIBC_2.17): Likewise.
752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
753         (GLIBC_2.17): Likewise.
754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
755         (GLIBC_2.17): Likewise.
756         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
757
758 2012-09-25  Alan Modra  <amodra@gmail.com>
759
760         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
761         Add release barrier before setting once_control to say
762         initialisation is done.  Add hints on lwarx.  Use macro in
763         place of isync.
764         (clear_once_control): Add release barrier.
765
766 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
767
768         [BZ #13629]
769         * math/s_clog.c (__clog): Handle more values close to |z| = 1
770         specially.
771         * math/s_clog10.c (__clog10): Likewise.
772         * math/s_clog10f.c (__clog10f): Likewise.
773         * math/s_clog10l.c (__clog10l): Likewise.
774         * math/s_clogf.c (__clogf): Likewise.
775         * math/s_clogl.c (__clogl): Likewise.
776         * math/Makefile (libm-calls): Add x2y2m1.
777         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
778         (__x2y2m1): Likewise.
779         (__x2y2m1l): Likewise.
780         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
781         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
782         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
783         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
784         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
785         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
786         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
787         * sysdeps/i386/fpu/libm-test-ulps: Update.
788         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
789
790         [BZ #14621]
791         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
792         int as type of variable DEPTH.
793         (glob): Use size_t instead of int as type of variables NEWCOUNT
794         and OLD_PATHC.
795
796 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
797
798         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
799         Add s_sincosf-sse2.
800         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
801         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
802         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
803         macros for using routine as __sincosf_ia32.
804         Use macro for function declaration and weak_alias.
805         * sysdeps/i386/fpu/libm-test-ulps: Update.
806
807         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
808         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
809
810         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
811         subnormal argument.
812         * math/s_cexpf.c (__cexpf): Likewise.
813         * math/s_csinf.c (__csinf): Likewise.
814         * math/s_csinhf.c (__csinhf): Likewise.
815         * math/s_ctanf.c (__ctanf): Likewise.
816         * math/s_ctanhf.c (__ctanhf): Likewise.
817         * math/s_ccosh.c (__ccoshf): Likewise.
818         * math/s_cexp.c (__cexpl): Likewise.
819         * math/s_csin.c (__csin): Likewise.
820         * math/s_csinh.c (__csinh): Likewise.
821         * math/s_ctan.c (__ctan): Likewise.
822         * math/s_ctanh.c (ctanh): Likewise.
823         * math/s_ccoshl.c (__ccoshl): Likewise.
824         * math/s_cexpl.c (__cexpl): Likewise.
825         * math/s_csinl.c (__csinl): Likewise.
826         * math/s_csinhl.c (__csinhl): Likewise.
827         * math/s_ctanl.c (__ctanl): Likewise.
828         * math/s_ctanhl.c (__ctanhl): Likewise.
829
830 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
831
832         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
833         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
834         (_IO_off_t): Define to __off_t, not _G_off_t.
835         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
836         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
837         (_IO_wint_t): Define to wint_t, not _G_wint_t.
838         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
839         type of __dummy and __dummy2 fields.
840         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
841         (_G_ssize_t): Likewise.
842         (_G_off_t): Likewise.
843         (_G_pid_t): Likewise.
844         (_G_uid_t): Likewise.
845         (_G_wchar_t): Likewise.
846         (_G_wint_t): Likewise.
847         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
848         (_G_ssize_t): Likewise.
849         (_G_off_t): Likewise.
850         (_G_pid_t): Likewise.
851         (_G_uid_t): Likewise.
852         (_G_wchar_t): Likewise.
853         (_G_wint_t): Likewise.
854         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
855         (_G_ssize_t): Likewise.
856         (_G_off_t): Likewise.
857         (_G_pid_t): Likewise.
858         (_G_uid_t): Likewise.
859         (_G_wchar_t): Likewise.
860         (_G_wint_t): Likewise.
861
862 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
863
864         * malloc/arena.c: Include malloc-sysdep.h.
865         (shrink_heap): Use check_may_shrink_heap to decide if madvise
866         is sufficient to shrink the heap or an unmap is needed.
867         * sysdeps/generic/malloc-sysdep.h: New file.  Define
868         new function check_may_shrink_heap.
869         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
870         new function check_may_shrink_heap.
871
872 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
873
874         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
875         comments.
876
877 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
878
879         * catgets/test-gencat.sh: Add "set -e".
880         * elf/tst-pathopt.sh: Likewise.
881         * grp/tst_fgetgrent.sh: Likewise.
882         * iconvdata/run-iconv-test.sh: Likewise.
883         * intl/tst-gettext.sh: Likewise.
884         * intl/tst-gettext2.sh: Likewise.
885         * intl/tst-gettext4.sh: Likewise.
886         * intl/tst-gettext6.sh: Likewise.
887         * intl/tst-translit.sh: Likewise.
888         * io/ftwtest-sh: Likewise.
889         * libio/test-freopen.sh: Likewise.
890         * malloc/tst-mtrace.sh: Likewise.
891         * posix/globtest.sh: Likewise.
892         * posix/tst-getconf.sh: Likewise.
893         * posix/wordexp-tst.sh: Likewise.
894         * stdio-common/tst-printf.sh: Likewise.
895         * stdio-common/tst-unbputc.sh: Likewise.
896         * stdlib/tst-fmtmsg.sh: Likewise.
897         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
898         * catgets/Makefile: Do not specify -e option when running
899         testsuite shell scripts.
900         * elf/Makefile: Likewise.
901         * grp/Makefile: Likewise.
902         * iconvdata/Makefile: Likewise.
903         * intl/Makefile: Likewise.
904         * io/Makefile: Likewise.
905         * libio/Makefile: Likewise.
906         * malloc/Makefile: Likewise.
907         * posix/Makefile: Likewise.
908         * stdio-common/Makefile: Likewise.
909         * stdlib/Makefile: Likewise.
910         * sysdeps/x86_64/Makefile: Likewise.
911
912         * io/ftwtest-sh: Add copyright header.
913         * posix/globtest.sh: Likewise.
914         * posix/tst-getconf.sh: Likewise.
915         * posix/wordexp-tst.sh: Likewise.
916         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
917
918 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
919
920         [BZ #13679]
921         * Makeconfig (+link): Defined as $(+link-static) if
922         $(build-shared) isn't yes.
923         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
924         isn't yes.
925         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
926
927         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
928
929         [BZ #14562]
930         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
931         new chunk size with MALLOC_ALIGN_MASK.
932
933 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
934
935         [BZ #5044]
936         * stdio-common/printf_fphex.c: Include <stdbool.h> and
937         <rounding-mode.h>.
938         (__printf_fphex): Determine rounding using get_rounding_mode and
939         round_away.
940         * stdio-common/tst-printf-round.c (struct hex_test): New
941         structure.
942         (hex_tests): New variable.
943         (test_hex_in_one_mode): New function.
944         (do_test): Also run tests for hex float output.
945
946 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
947
948         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
949         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
950         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
951         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
952         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
953         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
954         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
955         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
956
957 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
958
959         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
960         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
961         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
962         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
963
964 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
965
966         [BZ #14579]
967         * elf/rtld.c (dl_main): Limit the check for self loading to normal
968         mode only.
969         * elf/tst-rtld-load-self.sh: New test.
970         * elf/Makefile: Run it.
971
972 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
973
974         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
975         (tst-writev-ENV): Remove.
976         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
977
978 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
979
980         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
981
982 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
983
984         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
985         unconditional.
986         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
987         Likewise.
988         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
989         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
990         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
991         Likewise.
992
993 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
994
995         [BZ #14587]
996         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
997         * config.make.in (have-cpp-asm-debuginfo): Removed.
998         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
999         * configure: Regenerated.
1000
1001 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1002
1003         [BZ #5044]
1004         * stdio-common/printf_fp.c: Include <stdbool.h> and
1005         <rounding-mode.h>.
1006         (___printf_fp): Determine rounding using get_rounding_mode and
1007         round_away.
1008         * stdio-common/tst-printf-round.c: New file.
1009         * stdio-common/Makefile (tests): Add tst-printf-round.
1010         (link-libm): New variable.
1011         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1012
1013 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1014
1015         [BZ #14576]
1016         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1017         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1018         Likewise.
1019         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1020         Likewise.
1021
1022 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1023
1024         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1025         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1026         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1027         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1028
1029 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1030
1031         [BZ #14518]
1032         * include/rounding-mode.h: New file.
1033         * sysdeps/generic/get-rounding-mode.h: Likewise.
1034         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1035         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1036         (MAX_VALUE): New macro.
1037         (MIN_VALUE): Likewise.
1038         (overflow_value): New function.
1039         (underflow_value): Likewise.
1040         (round_and_return): Use overflow_value and underflow_value to
1041         determine return values in overflow and underflow cases.  Use
1042         round_away to determine rounding depending on rounding mode.
1043         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1044         determine return values in overflow and underflow cases.
1045         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1046         (struct test_results): New structure.
1047         (struct test): Use struct test_results to store expected results
1048         for all rounding modes.
1049         (TEST): Include expected results for all rounding modes.
1050         (test_in_one_mode): New function.
1051         (do_test): Use test_in_one_mode to compute and check results.
1052         Check results for all rounding modes.
1053         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1054         $(link-libm).
1055
1056 2012-12-09  Allan McRae  <allan@archlinux.org>
1057
1058         * sysdeps/i386/fpu/libm-test-ulps: Update
1059
1060 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1061
1062         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1063         (_G_int32_t): Likewise.
1064         (_G_uint16_t): Likewise.
1065         (_G_uint32_t): Likewise.
1066         (_G_HAVE_BOOL): Likewise.
1067         (_G_HAVE_ATEXIT): Likewise.
1068         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1069         (_G_HAVE_IO_FILE_OPEN): Likewise.
1070         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1071         (_G_int32_t): Likewise.
1072         (_G_uint16_t): Likewise.
1073         (_G_uint32_t): Likewise.
1074         (_G_HAVE_BOOL): Likewise.
1075         (_G_HAVE_ATEXIT): Likewise.
1076         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1077         (_G_HAVE_IO_FILE_OPEN): Likewise.
1078         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1079         (_G_int32_t): Likewise.
1080         (_G_uint16_t): Likewise.
1081         (_G_uint32_t): Likewise.
1082         (_G_HAVE_BOOL): Likewise.
1083         (_G_HAVE_ATEXIT): Likewise.
1084         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1085         (_G_HAVE_IO_FILE_OPEN): Likewise.
1086
1087 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1088
1089         * csu/libc-tls.c: Update copyright years.
1090
1091 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1092
1093         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1094         [!_G_USING_THUNKS]: Remove conditional code.
1095         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1096         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1097
1098         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1099         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1100         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1101         (_G_VTABLE_LABEL_PREFIX): Likewise.
1102         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1103         * sysdeps/gnu/_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         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1108         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1109         (_G_VTABLE_LABEL_PREFIX): Likewise.
1110         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1111
1112 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1113
1114         * libio/Makefile: Include ../Makeconfig before tests.
1115         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1116         only if $(build-shared) is yes.
1117
1118         * iconv/gconv_db.c: Update copyright years.
1119
1120 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1121
1122         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1123         unwind info if defined PIC. Fix special cases description.
1124         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1125
1126         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1127         DP_HI_MASK entry.
1128         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1129
1130 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1131
1132         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1133
1134         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1135         is NULL.
1136
1137         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1138         (LDLIBS-tst-chk4): This.
1139         (LDFLAGS-tst-chk5): Renamed to ...
1140         (LDLIBS-tst-chk5): This.
1141         (LDFLAGS-tst-chk6): Renamed to ...
1142         (LDLIBS-tst-chk6): This.
1143         (LDFLAGS-tst-lfschk4): Renamed to ...
1144         (LDLIBS-tst-lfschk4): This.
1145         (LDFLAGS-tst-lfschk5): Renamed to ...
1146         (LDLIBS-tst-lfschk5): This.
1147         (LDFLAGS-tst-lfschk6): Renamed to ...
1148         (LDLIBS-tst-lfschk6): This.
1149
1150         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1151         on $(common-objpfx)soversions.mk.
1152
1153 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1154
1155         [BZ #10014]
1156         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1157         example host name.
1158
1159 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1160
1161         * malloc/arena.c (arena_get_retry): New function that gets
1162         another arena for the caller to try its request on.
1163         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1164         current arena cannot fulfill the request.
1165         (__libc_memalign): Likewise.
1166         (__libc_memalign): Likewise.
1167         (__libc_pvalloc): Likewise.
1168         (__libc_calloc): Likewise.
1169
1170 2012-09-05  John Tobey  <john.tobey@gmail.com>
1171
1172         [BZ #13542]
1173         * manual/arith.texi (Operations on Complex): Fix description
1174         of carg branch cut.
1175
1176 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1177
1178         [BZ #10014]
1179         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1180         host name.
1181
1182         [BZ #10038]
1183         * manual/memory.texi (Memory): Make order of menu items match
1184         order of sections.
1185
1186 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1187
1188         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1189         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1190         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1191
1192 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1193
1194         * csu/libc-tls.c (static_dtv): Renamed to ...
1195         (_dl_static_dtv): This.  Make it global.
1196         (_dl_initial_dtv): Removed.
1197         (__libc_setup_tls): Updated.
1198         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1199         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1200         DL_INITIAL_DTV.
1201
1202 2012-09-06  Petr Machata  <pmachata@redhat.com>
1203
1204         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1205         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1206         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1207         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1208
1209 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         [BZ #14545]
1212         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1213         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1214         freeing dtv[-1].
1215
1216 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1217
1218         [BZ #14544]
1219         * Makeconfig (link-static-before-libc): Replace $(+prector)
1220         with $(+prectorT).
1221         (link-static-after-libc): Replace $(+postctor) with
1222         $(+postctorT).
1223         (link-bounded): Replace $(+prector)/$(+postctor) with
1224         $(+prectorT)/$(+postctorT).
1225         (+prectorT): New macro.
1226         (+postctorT): Likewise.
1227
1228 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1229
1230         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1231         (round_str): Handle values above the maximum for IBM long double
1232         as inexact.
1233         * stdlib/tst-strtod-round.c (tests): Regenerated.
1234
1235 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1236
1237         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1238         assembler flag.
1239         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1240         zarch_nohighgprs around the zarch optimized routines.
1241         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1242         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1243         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1244         for zarch.
1245
1246 2012-09-05  David S. Miller  <davem@davemloft.net>
1247
1248         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1249
1250         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1251         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1252         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1253         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1254         entries.
1255
1256 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1257
1258         * malloc/arena.c: Fold copyright years.
1259         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1260
1261 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1262
1263         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1264
1265 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1266
1267         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1268
1269 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1270
1271         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1272         change internal state upon failure.
1273
1274 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1275
1276         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1277         * malloc/memusage.c (mmap): Likewise.
1278         (mmap64, mremap): Likewise.  Adjust name in comment.
1279
1280 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1281
1282         * libio/fileops.c: Fix typos in comments.
1283         * libio/oldfileops.c: Likewise.
1284         * libio/wfileops.c: Likewise.
1285
1286 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1287
1288         [BZ #1349]
1289         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1290         (tst-malloc-usable-ENV): Set environment for test case.
1291         * malloc/hooks.c (malloc_check_get_size): New function to get
1292         requested size.
1293         * malloc/malloc.c (musable): Use malloc_check_get_size.
1294         * malloc/tst-malloc-usable.c: New test case.
1295
1296 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1297
1298         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1299
1300 2012-09-05  Allan McRae  <allan@archlinux.org>
1301
1302         [BZ #13966]
1303         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1304         determine header location.
1305         * configure: Regenerated.
1306
1307 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1308
1309         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1310         float format.
1311         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1312         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1313         format.
1314         (test): Regenerate.
1315
1316 2012-09-04  David S. Miller  <davem@davemloft.net>
1317
1318         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1319         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1320         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1321
1322 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1323
1324         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1325         failures.
1326
1327         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1328
1329 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1330
1331         [BZ #9914]
1332         * libio/iogetdelim.c: Include <limits.h>.
1333         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1334         + len + 1 would overflow.
1335
1336 2012-09-03  Andreas Jaeger  <aj@suse.de>
1337
1338         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1339         * sysdeps/i386/fpu/libm-test-ulps: Update.
1340
1341 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1342
1343         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1344         Add s_sinf-sse2, s_conf-sse2.
1345
1346         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1347         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1348         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1349         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1350
1351         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1352         for using routine as __sinf_ia32.
1353         Use macro for function declaration and weak_alias.
1354         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1355         for using routine as __cosf_ia32.
1356         Use macro for function declaration and weak_alias.
1357
1358         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1359         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1360
1361         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1362         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1363         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1364
1365         * math/libm-test.inc (cos_test): Add more test cases.
1366         (sin_test): Likewise.
1367         (sincos_test): Likewise.
1368
1369 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1370
1371         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1372         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1373         hidden.
1374         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1375
1376 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1377
1378         [BZ #14538]
1379         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1380         first element of the GOT.
1381         (elf_machine_load_address): Return the difference between
1382         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1383
1384 2012-09-01  Allan McRae  <allan@archlinux.org>
1385
1386         [BZ #13412]
1387         * configure.in (AWK): Require gawk version 3.0 or later.
1388         * configure: Regenerated.
1389
1390 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1391
1392         * sysdeps/unix/sysv/linux/kernel-features.h
1393         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1394         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1395         [__NR_clock_getres]: Make code unconditional.
1396         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1397         (clock_getcpuclockid): Remove code left unreachable by removal of
1398         conditionals.
1399         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1400         code unconditional.
1401         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1402         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1403         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1404         Make code unconditional.
1405         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1406         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1407         * sysdeps/unix/sysv/linux/clock_settime.c
1408         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1409         conditional code.
1410         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1411         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1412
1413 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1414
1415         [BZ #14476]
1416         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1417         scripts/test-installation.pl.
1418
1419         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1420         and $ld_so_version if it is set.
1421
1422 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1423
1424         [BZ #14516]
1425         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1426         failure if reading from procfs failed.
1427         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1428
1429 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1430
1431         * sysdeps/unix/sysv/linux/kernel-features.h
1432         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1433         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1434         Remove conditional code.
1435         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1436         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1437         Remove conditional code.
1438         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1439         * sysdeps/unix/sysv/linux/i386/fxstat.c
1440         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1441         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1442         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1443         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1444         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1445         * sysdeps/unix/sysv/linux/i386/lxstat.c
1446         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1447         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1448         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1449         Remove conditional code.
1450         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1451         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1452         Remove conditional code.
1453         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1454         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1455         <kernel-features.h>.
1456         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1457         Remove.
1458         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1459         Remove conditional code.
1460         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1461         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1462         Remove conditional.
1463
1464 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1465
1466         [BZ #5400]
1467         * NEWS: Add fixed bug number.
1468
1469 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1470
1471         [BZ #14519]
1472         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1473         underflowing exponent in case of negative sign.
1474         * stdlib/tst-strtod-round-data: Add more tests.
1475         * stdlib/tst-strtod-round.c (tests): Regenerated.
1476
1477         [BZ #3479]
1478         * stdlib/strtod_l.c (NDIG): Remove.
1479         (HEXNDIG): Likewise.
1480         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1481         smallest representable value.
1482         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1483         lie within an exact representation of 1/2 ulp of the result.
1484         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1485         unconditionally.
1486         (TENS_P9_IDX): Define unconditionally.
1487         (TENS_P9_SIZE): Likewise.
1488         (TENS_P10_IDX): Likewise.
1489         (TENS_P10_SIZE): Likewise.
1490         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1491         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1492         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1493         entries for 10^2^13 and 10^2^14.
1494         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1495         (TENS_P13_IDX): Define.
1496         (TENS_P13_SIZE): Likewise.
1497         (TENS_P14_IDX): Likewise.
1498         (TENS_P14_SIZE): Likewise.
1499         (_fpioconst_pow10): Change array size to
1500         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1501         unconditional.
1502         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1503         1024]: Add entries for 10^2^13 and 10^2^14.
1504         [LAST_POW10 > _LAST_POW10]: Remove #error.
1505         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1506         (_fpioconst_pow10): Change array size to
1507         FPIOCONST_POW10_ARRAY_SIZE.
1508         * stdlib/gen-fpioconst.c: New file.
1509         * stdlib/gen-tst-strtod-round.c: Likewise.
1510         * stdlib/tst-strtod-round-data: Likewise.
1511         * stdlib/tst-strtod-round.c: Likewise.
1512         * stdlib/Makefile (tests): Add tst-strtod-round.
1513
1514         [BZ #14459]
1515         * stdlib/strtod_l.c: Include <stdint.h>.
1516         (NDEBUG): Do not define.
1517         (round_and_return): Change EXPONENT parameter to type intmax_t.
1518         Rearrange calculations to avoid internal overflow possibilities.
1519         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1520         Rearrange calculations to avoid internal overflow possibilities.
1521         Assert that number fits inside MPNSIZE limbs.
1522         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1523         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1524         calculations and add assertions to avoid internal overflow
1525         possibilities.  Add casts to avoid signed/unsigned operations.
1526         * stdlib/tst-strtod-overflow.c: New file.
1527         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1528
1529 2012-08-25  Marek Polacek  <polacek@redhat.com>
1530
1531         * time/time.h: Fix some typos in comments.
1532
1533 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1534
1535         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1536         * posix/tst-rfc3484-2.c: Likewise.
1537         * posix/tst-rfc3484-3.c: Likewise.
1538
1539 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1540
1541         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1542         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1543
1544 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1545
1546         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1547         #include of fxstatat64.c.
1548
1549 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1550
1551         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1552         * shadow/getspent_r.c: Likewise.
1553         * shadow/getspnam.c: Likewise.
1554         * shadow/getspnam_r.c: Likewise.
1555         * gshadow/getsgent.c: Likewise.
1556         * gshadow/getsgent_r.c: Likewise.
1557         * gshadow/getsgnam.c: Likewise.
1558         * gshadow/getsgnam_r.c: Likewise.
1559         * inet/getnetbyad.c: Likewise.
1560         * inet/getnetbyad_r.c: Likewise.
1561         * inet/getnetbynm.c: Likewise.
1562         * inet/getnetbynm_r.c: Likewise.
1563         * inet/getnetent.c: Likewise.
1564         * inet/getnetent_r.c: Likewise.
1565         * inet/getproto.c: Likewise.
1566         * inet/getproto_r.c: Likewise.
1567         * inet/getprtent.c: Likewise.
1568         * inet/getprtent_r.c: Likewise.
1569         * inet/getprtname.c: Likewise.
1570         * inet/getprtname_r.c: Likewise.
1571         * inet/getrpcbyname.c: Likewise.
1572         * inet/getrpcbyname_r.c: Likewise.
1573         * inet/getrpcbynumber.c: Likewise.
1574         * inet/getrpcbynumber_r.c: Likewise.
1575         * inet/getrpcent.c: Likewise.
1576         * inet/getrpcent_r.c: Likewise.
1577         * inet/getaliasent.c: Likewise.
1578         * inet/getaliasent_r.c: Likewise.
1579         * inet/getaliasname.c: Likewise.
1580         * inet/getaliasname_r.c: Likewise.
1581         * nscd/getgrgid_r.c: Likewise.
1582         * nscd/getgrnam_r.c: Likewise.
1583         * nscd/gethstbyad_r.c: Likewise.
1584         * nscd/gethstbynm3_r.c: Likewise.
1585         * nscd/getpwnam_r.c: Likewise.
1586         * nscd/getpwuid_r.c: Likewise.
1587         * nscd/getsrvbynm_r.c: Likewise.
1588         * nscd/getsrvbypt_r.c: Likewise.
1589         * nscd/gai.c: Likewise.
1590
1591         * configure.in (build_nscd): New substituted variable, set
1592         by --disable-build-nscd and defaults to $use_nscd.
1593         * configure: Regenerated.
1594         * config.make.in (build-nscd): New substituted variable.
1595         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1596         Change conditional to require [$(build-nscd) = yes] as well.
1597         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1598
1599         [BZ# 13696]
1600         * configure.in (use_nscd): New substituted variable, set by
1601         --disable-nscd.  If enabled, define USE_NSCD.
1602         * configure: Regenerated.
1603         * config.h.in: Add USE_NSCD.
1604         * config.make.in (use-nscd): New substituted variable.
1605         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1606         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1607         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1608         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1609         (CFLAGS-getgrnam_r.c): Likewise.
1610         (CFLAGS-initgroups.c): Likewise.
1611         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1612         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1613         Variables removed.
1614         * inet/getnetgrent_r.c
1615         (nscd_setnetgrent): New function, broken out of ...
1616         (setnetgrent): ... here.  Call it.
1617         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1618         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1619         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1620         * nscd/Makefile (routines, aux): Move definitions after include of
1621         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1622         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1623         Conditionalize on [USE_NSCD].
1624         (is_nscd, nscd_init_cb): Likewise.
1625         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1626         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1627         * nss/nss_db/db-init.c: Likewise.
1628         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1629         [USE_NSCD].
1630         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1631         (make_request): Use it.
1632         (cache_valid_p): New function.
1633         (__check_pf): Use it.
1634         * NEWS: Add item for --disable-nscd.
1635
1636 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1637
1638         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1639         to support sed >= 4.2.1-20-ga9bf076.
1640         * configure: Regenerated.
1641
1642 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1643
1644         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1645         Conditionalize whole body on [IREL].
1646
1647 2012-08-22  Jeff Law <law@redhat.com>
1648
1649         [BZ #14505]
1650         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1651         if the family is PF_UNSPEC.
1652
1653 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1654
1655         * Makerules (lib-version): Rename from V.
1656         (install-lib-nosubdir): Change V to lib-version.
1657
1658 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1659
1660         [BZ #14252]
1661         * powerpc32/power6/wcschr.c: New file.
1662         * powerpc32/power6/wcscpy.c: New file.
1663         * powerpc32/power6/wcsrchr.c: New file.
1664         * powerpc64/power6/wcschr.c: New file.
1665         * powerpc64/power6/wcscpy.c: New file.
1666         * powerpc64/power6/wcsrchr.c: New file.
1667
1668 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1669
1670         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1671         (two_way_short_needle): Use it.
1672         * string/strstr.c (AVAILABLE1_USES_J): Define.
1673         * string/strcasestr.c: Likewise.
1674
1675         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1676         array references.
1677         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1678
1679         [BZ #11607]
1680         * NEWS: Add an entry.
1681         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1682         define their defaults.
1683         (two_way_short_needle): Detect end-of-string on-the-fly.
1684         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1685         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1686         * string/bug-strcasestr1.c: New test.
1687         * string/Makefile: Run it.
1688
1689 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1690
1691         [BZ #11607]
1692         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1693         the first character.
1694
1695 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1696
1697         * csu/elf-init.c (__libc_csu_irel): Function removed.
1698         * csu/libc-start.c (apply_irel): New function.
1699         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1700
1701 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1702
1703         * sysdeps/unix/sysv/linux/kernel-features.h
1704         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1705         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1706         <kernel-features.h>.
1707         [__NR_fadvise64_64]: Make code unconditional.
1708         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1709         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1710         !__NR_fadvise64_64)]: Likewise.
1711         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1712         !__NR_fadvise64_64))]: Likewise.
1713         [__NR_fadvise64]: Make code unconditional.
1714         [!__NR_fadvise64]: Remove conditional code.
1715         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1716         <kernel-features.h>.
1717         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1718         unconditional.
1719         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1720         conditional code.
1721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1722         not include <kernel-features.h>.
1723         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1724         unconditional.
1725         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1726         conditional code.
1727         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1728         include <kernel-features.h>.
1729         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1730         unconditional.
1731         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1732         conditional code.
1733
1734 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1735
1736         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1737         slight instruction rearrangements per scrollpipe analysis.
1738         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1739
1740 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1741
1742         * manual/syslog.texi (syslog; vsyslog, closelog):
1743         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1744         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1745
1746         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1747         DSOCAPS to match condition on defining it.
1748
1749 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1750
1751         * sysdeps/unix/sysv/linux/kernel-features.h
1752         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1754         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1755         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1757         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1758         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1760         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1761         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1762
1763         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1764         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1765
1766         * sysdeps/unix/sysv/linux/kernel-features.h
1767         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1768         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1769         unconditional.
1770         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1771         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1772         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1773         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1774         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1775         Make code unconditional.
1776         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1777         (__mmap64) [!__NR_mmap2]: Likewise.
1778         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1779         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1780         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1781         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1782         [__NR_mmap2]: Make code unconditional.
1783         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1784         (__mmap64) [!__NR_mmap2]: Likewise.
1785
1786 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1787
1788         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1789
1790 2012-08-18  Andreas Jaeger  <aj@suse.de>
1791
1792         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1793
1794 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1795
1796         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1797         * include/unistd.h (__have_sock_cloexec): Likewise.
1798         (__have_pipe2): Likewise.
1799         (__have_dup3): Likewise.
1800
1801 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1802
1803         [BZ #9685]
1804         * include/unistd.h (__have_pipe2): Change define into an extern int.
1805         (__have_dup3): Likewise.
1806         * socket/have_sock_cloexec.c: Include fcntl.h.
1807         (__have_pipe2): New variable.
1808         (__have_dup3): Likewise.
1809
1810 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1811
1812         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1813
1814 2012-08-17  Marek Polacek  <polacek@redhat.com>
1815
1816         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1817         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1818
1819 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1820
1821         * configure.in: Add AC_SUBST for sysheaders.
1822         * configure: Regenerated.
1823         * config.make.in (sysheaders): New substituted variable.
1824
1825         * sysdeps/unix/mkfifo.c: Moved ...
1826         * sysdeps/posix/mkfifo.c: ... here.
1827         * sysdeps/unix/mkfifoat.c: Moved ...
1828         * sysdeps/posix/mkfifoat.c: ... here.
1829
1830         * sysdeps/unix/utime.c: Moved ...
1831         * sysdeps/posix/utime.c: ... here.
1832
1833         * sysdeps/unix/time.c: Moved ...
1834         * sysdeps/posix/time.c: ... here.
1835         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1836         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1837
1838         * sysdeps/unix/nice.c: Moved ...
1839         * sysdeps/posix/nice.c: ... here.
1840
1841         * sysdeps/unix/alarm.c: Moved ...
1842         * sysdeps/posix/alarm.c: ... here.
1843
1844         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1845
1846 2012-08-17  Jeff Law <law@redhat.com>
1847
1848         * intl/Makefile (codeset_mo): New variable.
1849         ($(codeset_mo)): New target.
1850         (tst-codeset.out): Depend on that.  Remove explicit rule.
1851         (tst-gettext3.out, tst-gettext5.out): Likewise.
1852         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1853         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1854         * intl/tst-codeset.sh: Remove.
1855         * intl/tst-gettext3.sh: Likewise.
1856         * intl/tst-gettext5.sh: Likewise.
1857
1858 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1859
1860         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1861         * sysdeps/unix/syscalls.list: ... here.
1862
1863         * sysdeps/posix/getaddrinfo.c
1864         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1865         (gaiconf_init, gaiconf_reload): Use them.
1866         [!_STATBUF_ST_NSEC]
1867         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1868         Define using time_t rather than struct timespec.
1869
1870         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1871         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1872         Macros removed.
1873         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1874         [!NO_THREADS].
1875         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1876         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1877         Likewise.
1878
1879         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1880         __libc_cleanup_push argument.
1881
1882         * bits/param.h: New file.
1883         * misc/sys/param.h: New file.
1884         * include/sys/param.h: New file.
1885         * misc/Makefile (headers): Add bits/param.h.
1886         * sysdeps/generic/sys/param.h: File removed.
1887         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1888         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1889         * sysdeps/mach/hurd/bits/param.h: New file.
1890         * sysdeps/mach/hurd/sys/param.h: New file.
1891
1892         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1893         last change.
1894
1895         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1896         [_IO_MTSAFE_IO].
1897         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1898         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1899         New macros.
1900
1901         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1902         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1903         rather than -D_IO_MTSAFE_IO conditionally.
1904         * stdio-common/Makefile (CPPFLAGS): Likewise.
1905         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1906         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1907         Use $(libio-mtsafe).
1908         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1909         of -D_IO_MTSAFE_IO.
1910         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1911         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1912         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1913         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1914         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1915         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1916         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1917         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1918         (CFLAGS-fread_u_chk.c): Likewise.
1919         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1920         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1921         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1922         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1923         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1924         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1925         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1926         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1927         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1928
1929         * libio/Makefile: Test [$(libc-reentrant) = yes]
1930         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1931
1932         * Makeconfig
1933         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1934         * sysdeps/pthread/configure: File removed.
1935         * sysdeps/pthread/Makeconfig: New file.
1936         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1937         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1938
1939 2012-08-16  Gary Benson  <gbenson@redhat.com>
1940
1941         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1942         unmapping the first object in a namespace.
1943
1944 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1945
1946         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1947         (__internal_setnetgrent): ... this.  Add internal_function to
1948         definition.  Add libc_hidden_def.
1949         (setnetgrent): Update caller.
1950         (internal_endnetgrent): Renamed to ...
1951         (__internal_endnetgrent): ... this.  Add internal_function to
1952         definition.  Add libc_hidden_def.
1953         (endnetgrent): Update caller.
1954         (internal_getnetgrent_r): Renamed to ...
1955         (__internal_getnetgrent_r): ... this.  Add internal_function to
1956         definition.  Add libc_hidden_def.
1957         (__getnetgrent_r): Update caller.
1958         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1959
1960 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1961
1962         * stdlib/longlong.h: Update from GCC.
1963
1964 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1965
1966         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1967         on _QL, which is set by umul_ppmm but never used.
1968         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1969         variables, which are set by GMP macros but never used.
1970         * stdio-common/_itowa.c (_itowa): Likewise.
1971         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1972         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1973
1974 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1975
1976         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1977         struct La_sh_regs is not constant.
1978         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1979         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1980         and struct La_sparc64_regs are not constant.
1981
1982 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1983
1984         * sysdeps/unix/sysv/linux/kernel-features.h
1985         (__ASSUME_POSIX_TIMERS): Remove.
1986         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1987         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1988         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1989         Make code unconditional.
1990         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1991         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1992         Make code unconditional.
1993         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1994         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1995         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1996         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1997         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1998         Make code unconditional.
1999         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2000         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2001         (__libc_missing_posix_timers): Remove.
2002
2003 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2004
2005         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2006         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2007
2008         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2009
2010         * elf/dl-sym.c: Include <stdlib.h>.
2011
2012         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2013         constants, which avoids warnings in 32-bit builds.
2014
2015         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2016         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2017
2018         * misc/lseek.c: File moved to ...
2019         * io/lseek.c: ... here.
2020
2021         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2022
2023         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2024         shifting LEN more than 31 bits at once.
2025
2026 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2027
2028         [BZ #14195]
2029         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2030         segmentation fault for a case of two empty input strings.
2031         * string/test-strncasecmp.c (check1): Renamed to...
2032         (bz12205): ...this.
2033         (bz14195): Add new testcase for two empty input strings and N > 0.
2034         (test_main): Call new testcase, adapt for renamed function.
2035
2036 2012-08-15  Andreas Jaeger  <aj@suse.de>
2037
2038         [BZ #14090]
2039         * crypt/md5test2.c: New test, based on test supplied by Serge
2040         Belyshev <belyshev@depni.sinp.msu.ru>.
2041         * crypt/Makefile (xtests): Add md5test-giant..
2042         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2043
2044 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2045
2046         [BZ #14090]
2047         * crypt/md5.c (md5_process_block): Don't assume the buffer
2048         length is less than 2**32.
2049         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2050         length is less than 2**64.
2051
2052 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2053
2054         * string/str-two-way.h: Include <sys/param.h>.
2055         (MAX): Macro removed.
2056
2057         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2058         Move #define and #undef of memmove to just before and after
2059         including <string.h>.
2060
2061         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2062         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2063         and after including <string.h>.  Move declarations of
2064         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2065         to before #include "string/memmove.c".
2066
2067         * include/dirent.h: Declare __getdirentries.
2068
2069         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2070         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2071
2072 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2073
2074         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2075         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2076         * sysdeps/i386/configure: Regenerated.
2077         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2078         STABS_CURRENT_FILE, and STABS_FUN.
2079         (END): Remove call to STABS_FUN_END.
2080         (STABS_CURRENT_FILE1): Delete.
2081         (STABS_CURRENT_FILE): Likewise.
2082         (STABS_FUN): Likewise.
2083         (STABS_FUN_END): Likewise.
2084         (STABS_FUN2): Likewise.
2085         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2086         * sysdeps/x86_64/configure: Regenerated.
2087
2088 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2089
2090         * elf/dl-open.c: Include <atomic.h>.
2091         * elf/dl-lookup.c: Likewise.
2092
2093 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2094
2095         * sysdeps/unix/sysv/linux/kernel-features.h
2096         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2097         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2098         unconditionally.
2099         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2100         unconditionally.
2101         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2102         condition on __ASSUME_CLONE_THREAD_FLAGS.
2103
2104 2012-08-14  Andreas Jaeger  <aj@suse.de>
2105
2106         * sysdeps/i386/fpu/libm-test-ulps: Update.
2107
2108 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2109
2110         * include/atomic.h (atomic_exchange_and_add): Split into ...
2111         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2112         New atomic macros.
2113
2114 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2115
2116         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2117
2118 2012-08-13  Jeff Law <law@redhat.com>
2119
2120         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2121         null byte in the output string.
2122
2123 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2124
2125         * sysdeps/unix/sysv/linux/kernel-features.h
2126         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2127         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2128         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2129         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2130         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2131         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2132         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2133
2134 2012-08-09  Jeff Law <law@redhat.com>
2135
2136         [BZ #13939]
2137         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2138         When avoid_arena is set, don't retry in the that arena.  Pick the
2139         next one, whatever it might be.
2140         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2141         (arena_lock): Pass in new parameter to arena_get2.
2142         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2143         arena_get2.
2144         (__libc_malloc): Unify retrying after main arena failure with
2145         __libc_memalign version.
2146         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2147
2148 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2149
2150         [BZ #14166]
2151         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2152         to __redirect_strstr.
2153         (__strstr_sse42): Use typeof __redirect_strstr.
2154         (__strstr_ia32): Likewise.
2155         (__libc_strstr): New prototype.
2156         (strstr): Renamed to ...
2157         (__libc_strstr): This.
2158         (strstr): New strong alias of __libc_strstr.
2159         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2160         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2161         __redirect_time.
2162         Include <time.h>.
2163         (__libc_time): New prototype.
2164         (time_ifunc): Replace time with __libc_time.
2165         (time): New strong alias and hidden definition of __libc_time.
2166         (__GI_time): Remove strong alias.
2167         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2168         Include <stddef.h>.
2169         (memmove): Redefined to __redirect_memmove.
2170         (__memmove_sse2): Use typeof __redirect_memmove.
2171         (__memmove_ssse3): Likewise.
2172         (__memmove_ssse3_back): Likewise.
2173         (__libc_memmove): New prototype.
2174         (memmove): Renamed to ...
2175         (__libc_memmove): This.
2176         (memmove): New strong alias of __libc_memmove.
2177
2178 2012-08-08  Mark Salter  <msalter@redhat.com>
2179
2180         * elf/elf.h
2181         (R_MN10300_TLS_GD): Define.
2182         (R_MN10300_TLS_LD): Likewise.
2183         (R_MN10300_TLS_LDO): Likewise.
2184         (R_MN10300_TLS_GOTIE): Likewise.
2185         (R_MN10300_TLS_IE): Likewise.
2186         (R_MN10300_TLS_LE): Likewise.
2187         (R_MN10300_TLS_DTPMOD): Likewise.
2188         (R_MN10300_TLS_DTPOFF): Likewise.
2189         (R_MN10300_TLS_TPOFF): Likewise.
2190         (R_MN10300_SYM_DIFF): Likewise.
2191         (R_MN10300_ALIGN): Likewise.
2192         (R_MN10300_NUM): Update.
2193
2194 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2195
2196         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2197         Remove.
2198
2199 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2200
2201         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2202
2203         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2204         sysdeps/unix -> sysdeps/posix move.
2205         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2206
2207 2012-08-07      Allan McRae     <allan@archlinux.org>
2208
2209         [BZ #14303]
2210         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2211         (SUNOS_CPP): Likewise.
2212         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2213         not found.
2214         (open_input): Call CPP using execvp.
2215
2216 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2217
2218         * sysdeps/unix/sysv/linux/kernel-features.h
2219         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2220         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2221         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2222         (__ASSUME_WAITID_SYSCALL): Likewise.
2223         * sysdeps/unix/sysv/linux/dl-execstack.c
2224         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2225         code unconditional.
2226         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2227         conditional code.
2228         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2229         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2230         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2231         code.
2232         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2233         unconditional.
2234         [__ASSUME_WAITID_SYSCALL]: Likewise.
2235         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2236
2237 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2238
2239         * sysdeps/unix/closedir.c: Renamed to ...
2240         * sysdeps/posix/closedir.c: ... here.
2241         * sysdeps/unix/dirfd.c: Renamed to ...
2242         * sysdeps/posix/dirfd.c: ... here.
2243         * sysdeps/unix/dirstream.h: Renamed to ...
2244         * sysdeps/posix/dirstream.h: ... here.
2245         * sysdeps/unix/fdopendir.c: Renamed to ...
2246         * sysdeps/posix/fdopendir.c: ... here.
2247         * sysdeps/unix/opendir.c: Renamed to ...
2248         * sysdeps/posix/opendir.c: ... here.
2249         * sysdeps/unix/readdir.c: Renamed to ...
2250         * sysdeps/posix/readdir.c: ... here.
2251         * sysdeps/unix/readdir_r.c: Renamed to ...
2252         * sysdeps/posix/readdir_r.c: ... here.
2253         * sysdeps/unix/rewinddir.c: Renamed to ...
2254         * sysdeps/posix/rewinddir.c: ... here.
2255         * sysdeps/unix/seekdir.c: Renamed to ...
2256         * sysdeps/posix/seekdir.c: ... here.
2257         * sysdeps/unix/telldir.c: Renamed to ...
2258         * sysdeps/posix/telldir.c: ... here.
2259         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2260         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2261         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2262         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2263
2264         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2265         * bits/fcntl.h: ... here.
2266
2267         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2268         not 0.
2269         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2270         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2271         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2272         (struct flock): Move l_start, l_len to the beginning.
2273         Use __pid_t for l_pid.
2274         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2275         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2276         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2277         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2278         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2279         [__USE_LARGEFILE64] (struct flock64): New type.
2280         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2281
2282         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2283         * bits/dirent.h: ... here.
2284
2285         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2286         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2287
2288 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2289
2290         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2291         Change from 2.6.0 to 2.6.16.
2292         * sysdeps/unix/sysv/linux/configure: Regenerated.
2293         * sysdeps/unix/sysv/linux/kernel-features.h
2294         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2295         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2296         version.
2297         (__ASSUME_UTIMES): Likewise.
2298         (__ASSUME_CLONE_STOPPED): Remove.
2299         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2300         architectures, not kernel version.
2301         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2302         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2303         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2304         (__ASSUME_WAITID_SYSCALL): Likewise.
2305         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2306         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2307         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2308         refer to older versions.
2309
2310 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2311
2312         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2313         Define alphasort64 as an alias.
2314         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2315         Define versionsort64 as an alias.
2316         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2317         Define scandir64 as an alias.
2318         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2319         Define scandirat64 as an alias.
2320         * dirent/alphasort64.c (alphasort64):
2321         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2322         * dirent/versionsort64.c: Likewise.
2323         * dirent/scandir64.c: Likewise.
2324         * dirent/scandirat64.c: Likewise.
2325         * sysdeps/wordsize-64/alphasort.c: File removed.
2326         * sysdeps/wordsize-64/alphasort64.c: File removed.
2327         * sysdeps/wordsize-64/scandir.c: File removed.
2328         * sysdeps/wordsize-64/scandir64.c: File removed.
2329         * sysdeps/wordsize-64/scandirat.c: File removed.
2330         * sysdeps/wordsize-64/scandirat64.c: File removed.
2331         * sysdeps/wordsize-64/versionsort.c: File removed.
2332         * sysdeps/wordsize-64/versionsort64.c: File removed.
2333         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2334         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2335         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2336         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2337         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2338         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2339         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2340         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2341
2342         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2343         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2344         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2345         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2346         [defined __arch64__ || defined __sparcv9]
2347         (__INO_T_MATCHES_INO64_T): New macro.
2348         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2349         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2350         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2351         * sysdeps/unix/sysv/linux/bits/dirent.h
2352         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2353         (_DIRENT_MATCHES_DIRENT64): New macro.
2354
2355         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2356         Define lockf64 as an alias.
2357         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2358         Define fseeko64 as an alias.
2359         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2360         Define ftello64 as an alias.
2361         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2362         Define _IO_fgetpos64 and fgetpos64 as aliases.
2363         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2364         Define _IO_fsetpos64 and fsetpos64 as aliases.
2365         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2366         Conditionalize body on this.
2367         * libio/fseeko64.c: Likewise.
2368         * libio/ftello64.c: Likewise.
2369         * libio/iofgetpos64.c: Likewise.
2370         * libio/iofsetpos64.c: Likewise.
2371         * sysdeps/wordsize-64/lockf.c: File removed.
2372         * sysdeps/wordsize-64/lockf64.c: File removed.
2373         * sysdeps/wordsize-64/fseeko.c: File removed.
2374         * sysdeps/wordsize-64/fseeko64.c: File removed.
2375         * sysdeps/wordsize-64/ftello.c: File removed.
2376         * sysdeps/wordsize-64/ftello64.c: File removed.
2377         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2378         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2379         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2380         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2381         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2382         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2383         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2384         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2385         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2386         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2387         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2388         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2389         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2390         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2391
2392         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2393         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2394         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2395         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2396         [defined __arch64__ || defined __sparcv9]
2397         (__OFF_T_MATCHES_OFF64_T): New macro.
2398         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2399         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2400         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2401         (__OFF_T_MATCHES_OFF64_T): New macro.
2402
2403 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2404
2405         * stdlib/secure-getenv.c (__secure_getenv): Replace
2406         GLIBC_2_16 with GLIBC_2_17.
2407
2408 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2409
2410         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2411         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2412
2413 2012-08-03  David S. Miller  <davem@davemloft.net>
2414
2415         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2416
2417 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2418
2419         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2420         Remove.
2421         (__ASSUME_CORRECT_SI_PID): Likewise.
2422         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2423         (__ASSUME_TMPFS_NAME): Likewise.
2424         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2425         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2426         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2427         (HAVE_AUX_SECURE): Make definition unconditional.
2428         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2429         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2430
2431 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2432
2433         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2434         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2435         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2436         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2437         __eloop_threshold instead of SYMLOOP_MAX.
2438
2439         * sysdeps/generic/eloop-threshold.h: New file.
2440         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2441         of MAXSYMLINKS.
2442         * elf/chroot_canon.c (chroot_canon): Likewise.
2443
2444 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2445
2446         [BZ #13717]
2447         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2448         Change to 2.6.0 everywhere.
2449         * sysdeps/unix/sysv/linux/configure: Regenerated.
2450         * sysdeps/unix/sysv/linux/kernel-features.h
2451         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2452         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2453         kernel versions.
2454         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2455         (__ASSUME_FUTEX_REQUEUE): Remove.
2456         (__ASSUME_STATFS64): Define unconditionally.
2457         (__ASSUME_AT_SECURE): Likewise.
2458         (__ASSUME_CORRECT_SI_PID): Likewise.
2459         (__ASSUME_TGKILL): Define without depending on kernel version for
2460         i386.
2461         (__ASSUME_UTIMES): Likewise.
2462         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2463         kernel version.
2464         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2465         (__ASSUME_TMPFS_NAME): Likewise.
2466         * README: Update reference to Linux kernel versions.
2467
2468 2012-08-02  Marek Polacek  <polacek@redhat.com>
2469
2470         [BZ# 14150]
2471         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2472         libc_cv_asm_type_prefix with %.
2473         * configure: Regenerated.
2474         * include/libc-symbols.h: Remove comment about
2475         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2476         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2477         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2478         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2479         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2480         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2481         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2482         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2483         * elf/tst-unique2mod1.c: Likewise.
2484         * elf/tst-unique1mod2.c: Likewise.
2485         * elf/tst-unique1mod1.c: Likewise.
2486         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2487         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2488         Replace ASM_TYPE_DIRECTIVE with .type.
2489         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2490         * sysdeps/i386/sysdep.h: Likewise.
2491         * sysdeps/x86_64/sysdep.h: Likewise.
2492         * sysdeps/sh/sysdep.h: Likewise.
2493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2494         Do not define ASM_TYPE_DIRECTIVE.
2495         * sysdeps/powerpc/sysdep.h: Likewise.
2496         * sysdeps/powerpc/powerpc32/sysdep.h:
2497         Replace ASM_TYPE_DIRECTIVE with .type.
2498         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2499         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2500         * sysdeps/i386/fpu/e_powf.S: Likewise.
2501         * sysdeps/i386/fpu/e_expl.S: Likewise.
2502         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2503         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2504         * sysdeps/i386/fpu/e_pow.S: Likewise.
2505         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2506         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2507         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2508         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2509         * sysdeps/i386/fpu/e_log2.S: Likewise.
2510         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2511         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2512         * sysdeps/i386/fpu/e_powl.S: Likewise.
2513         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2514         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2515         * sysdeps/i386/fpu/e_logl.S: Likewise.
2516         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2517         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2518         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2519         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2520         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2521         * sysdeps/i386/fpu/e_log.S: Likewise.
2522         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2523         * sysdeps/i386/fpu/e_logf.S: Likewise.
2524         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2525         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2526         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2527         * sysdeps/i386/fpu/e_log10.S: Likewise.
2528         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2529         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2530         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2531         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2532         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2533         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2534         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2535         * sysdeps/i386/i686/strtok.S: Likewise.
2536         * sysdeps/i386/i386-mcount.S: Likewise.
2537         * sysdeps/i386/strtok.S: Likewise.
2538         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2539         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2540         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2541         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2542         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2543         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2544         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2545         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2546         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2547         * sysdeps/x86_64/_mcount.S: Likewise.
2548         * sysdeps/x86_64/strtok.S: Likewise.
2549         * sysdeps/sh/_mcount.S: Likewise.
2550
2551 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2552
2553         * libio/iofopen.c: Include <fcntl.h>.
2554         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2555         (_IO_fopen64, fopen64): Define as aliases.
2556         * libio/iofopen64.c: Include <fcntl.h>.
2557         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2558         Conditionalize body on this.
2559         * sysdeps/wordsize-64/iofopen.c: File removed.
2560         * sysdeps/wordsize-64/iofopen64.c: File removed.
2561
2562 2012-08-01  Marek Polacek  <polacek@redhat.com>
2563
2564         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2565         Use dlfcn directly instead of a variable.
2566         (binfmt-subdir): Do not define.
2567         (dlfcn): Likewise.
2568
2569 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2570
2571         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2572         Remove all definitions.
2573         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2574         <kernel-features.h>.
2575         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2576         (miss_F_GETOWN_EX): Remove all definitions.
2577         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2578         macro definition.
2579         [!__ASSUME_FCNTL64]: Remove conditional code.
2580         [__ASSUME_FCNTL64]: Make code unconditional.
2581         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2582         <kernel-features.h>.
2583         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2584         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2585         (lockf64) [__NR_fcntl64]: Make code unconditional.
2586         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2587
2588         * sysdeps/unix/sysv/linux/kernel-features.h
2589         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2590         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2591         Make code unconditional.
2592         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2593         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2595         [__NR_vfork]: Make code unconditional.
2596         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2597         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2599         [__NR_vfork]: Make code unconditional.
2600         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2601         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2602
2603 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2604
2605         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2606         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2607
2608         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2609         Define mkstemp64 as an alias.
2610         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2611         Define mkstemps64 as an alias.
2612         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2613         Define mkostemp64 as an alias.
2614         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2615         Define mkostemps64 as an alias.
2616         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2617         Conditionalize body on this.
2618         * misc/mkostemp64.c: Likewise.
2619         * misc/mkostemps64.c: Likewise.
2620         * misc/mkstemps64.c: Likewise.
2621         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2622         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2623         * sysdeps/wordsize-64/mkostemp.c: File removed.
2624         * sysdeps/wordsize-64/mkstemp.c: File removed.
2625         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2626         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2627         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2628         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2629
2630         [BZ #14138]
2631         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2632         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2633         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2634         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2635
2636         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2637         compat_symbol macros from <shlib-compat.h> rather than the underlying
2638         default_symbol_version and symbol_version macros, so that DEFAULT
2639         lines in shlib-versions are respected.
2640         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2641
2642 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2643
2644         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2645         Declare with warn_unused_result.
2646         (setgid, setregid, setegid, setresgid): Likewise.
2647         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2648         Likewise.
2649         * WUR-REPORT: Remove set*id functions.
2650
2651 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2652
2653         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2654
2655 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2656
2657         * include/sys/socket.h (__libc_accept, __libc_accept4):
2658         Add attribute_hidden.
2659         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2660
2661         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2662         use of PTR_MANGLE.
2663         * inet/getnetgrent_r.c (setup): Likewise.
2664
2665         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2666
2667 2012-07-31  David S. Miller  <davem@davemloft.net>
2668
2669         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2670
2671 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2672
2673         [BZ #13629]
2674         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2675         value between 1.0 and 2.0 and smaller part has absolute value less
2676         than 1.0.
2677         * math/s_clog10.c (__clog10): Likewise.
2678         * math/s_clog10f.c (__clog10f): Likewise.
2679         * math/s_clog10l.c (__clog10l): Likewise.
2680         * math/s_clogf.c (__clogf): Likewise.
2681         * math/s_clogl.c (__clogl): Likewise.
2682         * math/libm-test.inc (clog_test): Add more tests.
2683         (clog10_test): Likewise.
2684         * sysdeps/i386/fpu/libm-test-ulps: Update.
2685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2686
2687 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2688
2689         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2690         Exit with zero in case no suitable GID is found, and write a
2691         message to standard error.
2692
2693 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2694
2695         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2696         rather than to 1.
2697         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2698         (MAXPATHLEN): Removed.
2699         (NOGROUP, NODEV): New macros.
2700         (setbit, clrbit, isset, isclr): New macros.
2701         (howmany, roundup, powerof2): New macros.
2702         (DEV_BSIZE): New macro.
2703
2704         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2705         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2706
2707         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2708         definition on [!__NO_LONG_DOUBLE_MATH].
2709
2710         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2711         PTR_MANGLE and PTR_DEMANGLE.
2712
2713         * socket/accept4.c (accept4): Rename to __libc_accept4.
2714         Define accept4 as a weak alias.
2715
2716         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2717         on [_DIRENT_HAVE_D_TYPE].
2718         * io/ftw.c (ftw_dir): Likewise.
2719
2720         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2721
2722         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2723
2724         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2725         Use the BSD numbers rather than the arbitrary ones we had.
2726         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2727         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2728         (SIGXCPU, SIGXFSZ): New macros.
2729         (_NSIG): Now 32.
2730
2731         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2732         initializer on [_LIBC_REENTRANT].
2733
2734         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2735         definitions inside [_POSIX_MAPPED_FILES].
2736
2737         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2738
2739         * dirent/opendir.c: Include <fcntl.h>.
2740
2741         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2742         (__libc_getspecific): Likewise.
2743         (__libc_key_create): Likewise.
2744
2745         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2746         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2747         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2748         (tmpfile64): Define as alias.
2749         * sysdeps/wordsize-64/tmpfile.c: File removed.
2750         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2751         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2752         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2753
2754         * stdio-common/vfscanf.c: Include <stdbool.h>.
2755         * nss/makedb.c: Likewise.
2756         * stdio-common/_i18n_number.h: Likewise.
2757         * argp/argp-help.c: Likewise.
2758         * posix/wordexp.c: Likewise.
2759         * sysdeps/posix/spawni.c: Likewise.
2760         * nss/nss_files/files-initgroups.c: Likewise.
2761         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2762         * nss/nss_files/files-initgroups.c: Likewise.
2763         * nss/nss_db/db-netgrp.c: Likewise.
2764         * nss/nss_db/db-initgroups.c: Likewise.
2765         * io/fchmodat.c: Include <sys/stat.h>.
2766
2767         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2768         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2769
2770         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2771         [HAVE_MMAP].
2772
2773         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2774         Add multiple inclusion protection.
2775
2776 2012-07-27  David S. Miller  <davem@davemloft.net>
2777
2778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2779
2780 2012-07-27  Gary Benson  <gbenson@redhat.com>
2781
2782         [BZ #14298]
2783         * elf/rtld.c: Include <stap-probe.h>.
2784         (dl_main): Added static probes "init_start" and "init_complete".
2785         * elf/dl-load.c: Include <stap-probe.h>.
2786         (lose): Take new parameter "nsid".
2787         Added static probe "map_failed".
2788         (_dl_map_object_from_fd): Pass namespace id to lose.
2789         Added static probe "map_start".
2790         (open_verify): Pass namespace id to lose.
2791         * elf/dl-open.c: Include <stap-probe.h>.
2792         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2793         and "reloc_complete".
2794         * elf/dl-close.c: Include <stap-probe.h>.
2795         (_dl_close_worker): Added static probes "unmap_start" and
2796         "unmap_complete".
2797         * elf/rtld-debugger-interface.txt: New file documenting the above.
2798
2799 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2800
2801         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2802         rather than a string variable.
2803         * sunrpc/rpc_main.c (h_output): Likewise.
2804         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2805
2806 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2807
2808         * inet/check_native.c: New file.
2809
2810 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2811
2812         [BZ #13629]
2813         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2814         if larger part has absolute value 1.0.
2815         * math/s_clog10.c (__clog10): Likewise.
2816         * math/s_clog10f.c (__clog10f): Likewise.
2817         * math/s_clog10l.c (__clog10l): Likewise.
2818         * math/s_clogf.c (__clogf): Likewise.
2819         * math/s_clogl.c (__clogl): Likewise.
2820         * math/libm-test.inc (clog_test): Add more tests.
2821         (clog10_test): Likewise.
2822         * sysdeps/i386/fpu/libm-test-ulps: Update.
2823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2824
2825         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2826         (pltexit): Likewise.
2827         (La_regs): Likewise.
2828         (La_retval): Likewise.
2829         (int_retval): Likewise.
2830         Update #error for removed macros to refer only to definitions in
2831         tst-audit.h.
2832         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2833         macro.
2834         (pltexit): Likewise.
2835         (La_regs): Likewise.
2836         (La_retval): Likewise.
2837         (int_retval): Likewise.
2838         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2839         macro.
2840         (pltexit): Likewise.
2841         (La_regs): Likewise.
2842         (La_retval): Likewise.
2843         (int_retval): Likewise.
2844         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2845         macro.
2846         (pltexit): Likewise.
2847         (La_regs): Likewise.
2848         (La_retval): Likewise.
2849         (int_retval): Likewise.
2850         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2851         macro.
2852         (pltexit): Likewise.
2853         (La_regs): Likewise.
2854         (La_retval): Likewise.
2855         (int_retval): Likewise.
2856         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2857         macro.
2858         (pltexit): Likewise.
2859         (La_regs): Likewise.
2860         (La_retval): Likewise.
2861         (int_retval): Likewise.
2862         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2863         macro.
2864         (pltexit): Likewise.
2865         (La_regs): Likewise.
2866         (La_retval): Likewise.
2867         (int_retval): Likewise.
2868         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2869         macro definitions in tst-audit.h.
2870         * sysdeps/i386/tst-audit.h: New file.
2871         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2872         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2873         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2874         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2875         * sysdeps/sh/tst-audit.h: Likewise.
2876         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2877         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2878         * sysdeps/x86_64/tst-audit.h: Likewise.
2879
2880 2012-07-26  Andreas Jaeger  <aj@suse.de>
2881
2882         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2883         ptrace.
2884
2885         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2886         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2887         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2888         PTRACE_O_MASK.
2889         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2890         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2891         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2892
2893         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2894         value.
2895
2896         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2897         _sigsys.
2898         (si_call_addr, si_syscall, si_arch): Define new macro.
2899         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2900         _sigsys.
2901         (si_call_addr, si_syscall, si_arch): Define new marcro.
2902         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2903         _sigsys.
2904         (si_call_addr, si_syscall, si_arch): Define new macro.
2905         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2906         _sigsys.
2907         (si_call_addr, si_syscall, si_arch): Define new macro.
2908
2909 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2910
2911         [BZ #13717]
2912         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2913         Change to 2.4.21 where previously 2.4.1.
2914         * sysdeps/unix/sysv/linux/configure: Regenerated.
2915         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2916         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2917         Linux kernel version.
2918         (__ASSUME_STD_AUXV): Remove.
2919         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2920         kernel version.
2921         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2922         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2923         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2924         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2925         (__ASSUME_NETLINK_SUPPORT): Likewise.
2926         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2927         (__no_netlink_support): Remove conditional definition.
2928         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2929         Remove.
2930         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2931         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2932         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2933         (if_nameindex_ioctl): Remove.
2934         (if_nameindex_netlink): Do not handle __no_netlink_support.
2935         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2936         code.
2937         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2938         Remove conditional code.
2939         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2940         code.
2941         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2942         unconditional.
2943         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2944         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2945         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2946         Remove.
2947         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2948         [!__ASSUME_STD_AUXV]: Remove conditional code.
2949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2950         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2951         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2953         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2954         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2955         code.
2956         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2958         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2959         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2960         conditional code.
2961         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2963         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2964         code.
2965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2966         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2967         conditional code.
2968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2969         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2970         code unconditional.
2971         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2972         conditional code.
2973         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2974         unconditional.
2975         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2976         conditional code.
2977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2978         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2979         unconditional.
2980         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2981         conditional code.
2982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2983         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2984         code unconditional.
2985         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2986         conditional code.
2987         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2988         unconditional.
2989         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2990         conditional code.
2991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2992         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2993         code unconditional.
2994         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2995         conditional code.
2996         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2997         unconditional.
2998         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2999         conditional code.
3000
3001 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3002
3003         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3004         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3005         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3006         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3007         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3008         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3009         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3010         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3011         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3012         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3013         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3014         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3015         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3016         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3017         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3018         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3019         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3020         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3021         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3022         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3023         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3024         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3025         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3026
3027 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3028
3029         * Versions.def: Add GLIBC_2.17.
3030         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3031         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3032         Introduce __libc_secure_getenv.
3033         * stdlib/Versions (2.17): Add secure_getenv
3034         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3035         * stdlib/secure-getenv.c: Rename __secure_getenv to
3036         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3037         symbol __secure_getenv for GLIBC_2.0.
3038         * stdlib/tst-secure-getenv.c: New.
3039         * stdlib/Makefile (tests): Add testcase.
3040         * manual/startup.texi (Environment Access): Document
3041         secure_getenv.
3042         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3043         __libc_secure_getenv.
3044         * inet/ruserpass.c (ruserpass): Likewise.
3045         * malloc/mtrace.c (mtrace): Likewise.
3046         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3047         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3048         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3049         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3050         HAVE_SECURE_GETENV.
3051         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3052         __secure_getenv to __libc_secure_getenv.
3053         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3055         Likewise.
3056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3057         Likewise.
3058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3060         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3062         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3064         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3065
3066 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3067
3068         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3069         (struct La_i86_retval): Likewise.
3070         (struct La_x86_64_regs): Likewise.
3071         (struct La_x86_64_retval): Likewise.
3072         (struct La_x32_regs): Likewise.
3073         (struct La_x32_retval): Likewise.
3074         (struct La_ppc32_regs): Likewise.
3075         (struct La_ppc32_retval): Likewise.
3076         (struct La_ppc64_regs): Likewise.
3077         (struct La_ppc64_retval): Likewise.
3078         (struct La_sh_regs): Likewise.
3079         (struct La_sh_retval): Likewise.
3080         (struct La_s390_32_regs): Likewise.
3081         (struct La_s390_32_retval): Likewise.
3082         (struct La_s390_64_regs): Likewise.
3083         (struct La_s390_64_retval): Likewise.
3084         (struct La_sparc32_regs): Likewise.
3085         (struct La_sparc32_retval): Likewise.
3086         (struct La_sparc64_regs): Likewise.
3087         (struct La_sparc64_retval): Likewise.
3088         (struct audit_ifaces): Remove architecture-specific pltenter and
3089         pltexit members.
3090         * sysdeps/i386/ldsodefs.h: New file.
3091         * sysdeps/powerpc/ldsodefs.h: Likewise.
3092         * sysdeps/s390/ldsodefs.h: Likewise.
3093         * sysdeps/sh/ldsodefs.h: Likewise.
3094         * sysdeps/sparc/ldsodefs.h: Likewise.
3095         * sysdeps/x86_64/ldsodefs.h: Likewise.
3096
3097 2012-07-25  Marek Polacek  <polacek@redhat.com>
3098
3099         [BZ #6808]
3100         * math/libm-test.inc (yn_test): Add another test.
3101         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3102         to ERANGE when the result is +-Inf.
3103         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3104         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3105         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3106         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3107
3108 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3109
3110         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3111         equal to 0.
3112         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3113         clock_t.
3114         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3115
3116 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3117
3118         * configure.in <sysdeps resolving>: Correct printing
3119         Implies_before.
3120         * configure: Regenerate.
3121
3122 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3123
3124         * math/w_ilogb.c: Include <limits.h>.
3125         * math/w_ilogbl.c: Likewise.
3126
3127 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3128
3129         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3130         va_copy.  Document allowing for unavailable va_copy only as
3131         pre-C99 compatibility.
3132         * manual/string.texi (Copying and Concatenation): Use va_copy
3133         instead of __va_copy in concat example.
3134
3135 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3136
3137         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3138         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3139         it if not null.
3140
3141         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3142         with O_NOLINK passed to __file_name_lookup.
3143
3144         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3145         with O_NOLINK passed to __file_name_lookup.
3146
3147         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3148         negative N or less than NGIDS.
3149
3150         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3151         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3152         enough.  Use memcpy instead of strncpy.
3153
3154 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3155
3156         * elf/Makefile (check-data): Remove.
3157         (localplt.data): New vpath directive.
3158         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3159         instead of $(check-data).
3160         * scripts/data/localplt-generic.data: Move to ...
3161         * sysdeps/generic/localplt.data: ... here.
3162         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3163         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3164         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3166         ... here.
3167         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3169         ... here.
3170         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3171         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3172         ... here.
3173         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3174         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3175         ... here.
3176         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3177         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3178         ... here.
3179         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3180         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3181         ... here.
3182
3183 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3184
3185         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3186         PPC32 and PPC64 files.
3187         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3188         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3189
3190 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3191
3192         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3193         __makecontext_ret to ...
3194         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3195         ... here and call exit if uc_link is NULL.  New file.
3196         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3197         __makecontext_ret.S.
3198         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3199         __makecontext_ret to ...
3200         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3201         ... here and call exit if uc_link is NULL.  New file.
3202         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3203         __makecontext_ret.S.
3204
3205 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3206
3207         * elf/elf.h (R_390_IRELATIVE): New definition.
3208         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3209         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3210         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3211         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3212         (elf_machine_lazy_rel): Likewise.
3213         * sysdeps/s390/dl-irel.h: New file.
3214         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3215         * sysdeps/s390/s390-64/memset.S: New asm code.
3216         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3217         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3218         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3219         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3220         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3221         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3222         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3223         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3224         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3225         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3226         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3227         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3228         * sysdeps/s390/s390-32/memset.S: New asm code.
3229         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3230
3231 2012-07-17  Marek Polacek  <polacek@redhat.com>
3232
3233         [BZ #14349]
3234         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3235         * sysdeps/s390/s390-64/configure.in: Likewise.
3236         * sysdeps/sparc/configure.in: Likewise.
3237         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3238         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3239         * sysdeps/i386/configure.in: Likewise.
3240         * sysdeps/x86_64/configure.in: Likewise.
3241         * sysdeps/sh/configure.in: Likewise.
3242         * sysdeps/s390/s390-32/configure: Regenerated.
3243         * sysdeps/s390/s390-64/configure: Likewise.
3244         * sysdeps/x86_64/configure: Likewise.
3245         * sysdeps/sh/configure: Likewise.
3246         * sysdeps/powerpc/powerpc64/configure: Likewise.
3247         * sysdeps/powerpc/powerpc32/configure: Likewise.
3248         * sysdeps/sparc/configure: Likwise.
3249         * sysdeps/i386/configure: Likewise.
3250
3251         * elf/dl-open.c: Comment fixes.
3252
3253 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3254
3255         * Makefile [CXX] (check-data): Remove.
3256         [CXX] (c++-types.data): New vpath directive.
3257         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3258         vpath.  Do not allow for C++ type data being missing.
3259         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3260         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3261         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3262         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3263         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3264         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3265         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3267         ... here.
3268         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3270         ... here.
3271         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3272         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3273         ... here.
3274         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3275         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3276         ... here.
3277         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3278         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3279         ... here.
3280         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3281         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3282         ... here.
3283         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3284         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3285         ... here.
3286         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3287         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3288
3289         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3290         definitions to architecture-specific files.
3291         (TLS_IE): Likewise.
3292         (TLS_LD): Likewise.
3293         (TLS_GD): Likewise.
3294         * sysdeps/i386/tls-macros.h: New file.
3295         * sysdeps/powerpc/tls-macros.h: Likewise.
3296         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3297         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3298         * sysdeps/sh/tls-macros.h: Likewise.
3299         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3300         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3301         * sysdeps/x86_64/tls-macros.h: Likewise.
3302
3303 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3304
3305         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3306         zero value for regular exit case.
3307
3308         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3309         (__start_context): Preserve zero value for regular exit case.
3310
3311 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3312             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3313
3314         * manual/setjmp.texi (setcontext): Clarify normal process
3315         termination when uc_link is the null pointer.
3316         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3317         exit call.
3318
3319 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3320
3321         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3322         preprocessor.  Test for each exception mask separately.
3323
3324 2012-07-16  Andreas Jaeger  <aj@suse.de>
3325
3326         * po/ru.po: Update from translation team.
3327
3328 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3329
3330         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3331         equal to 0.
3332         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3333         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3334         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3335         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3336         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3337
3338 2012-07-13  Andreas Jaeger  <aj@suse.de>
3339
3340         * po/fr.po: Update from translation team.
3341
3342 2012-07-12  Marek Polacek  <polacek@redhat.com>
3343
3344         [BZ #14173]
3345         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3346         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3347         loop condition.
3348
3349 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3350
3351         [BZ #13717]
3352         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3353         Change to 2.4.1 where previously 2.4.0.
3354         * sysdeps/unix/sysv/linux/configure: Regenerated.
3355         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3356         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3357         version.
3358         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3359         (__ASSUME_AT_CLKTCK): Remove.
3360         (__ASSUME_AT_PAGESIZE): Likewise.
3361         (__ASSUME_AT_XID): Likewise.
3362         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3363         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3364         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3365         unconditionally.
3366         (HAVE_AUX_PAGESIZE): Likewise.
3367         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3368         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3369         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3370
3371 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3372
3373         [BZ #14307]
3374         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3375         the temporary buffer used to invoke __gethostbyname2_r,
3376         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3377         host_data / struct gaih_addrtuple.
3378         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3379         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3380         header file nss/nsswitch.h.
3381         * nss/nsswitch.h (global scope): Add definition of implementation
3382         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3383         resolv/nss_dns/dns-host.c).
3384
3385 2012-07-11  Andreas Jaeger  <aj@suse.de>
3386
3387         * po/fr.po: Update from translation team.
3388
3389         * po/sv.po: Update from translation team
3390         * po/fr.po: Another update from translation team.
3391
3392 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3393
3394         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3395         for subnormals or multiply small sinh result by itself.
3396         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3397         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3398
3399 2012-07-11  David S. Miller  <davem@davemloft.net>
3400
3401         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3402
3403 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3404
3405         [BZ #14347]
3406         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3407         (INTERNAL_MARK): Shift it here.
3408
3409 2012-07-10  Marek Polacek  <polacek@redhat.com>
3410
3411         [BZ #14151]
3412         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3413         libc_cv_asm_global_directive with .globl.
3414         * configure: Regenerated.
3415         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3416         with .globl.
3417         * sysdeps/i386/configure: Regenerated.
3418         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3419         with .globl.
3420         * sysdeps/x86_64/configure: Regenerated.
3421         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3422         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3423         * elf/tst-unique2mod2.c: Likewise.
3424         * elf/tst-unique2mod1.c: Likewise.
3425         * elf/tst-unique1mod2.c: Likewise.
3426         * elf/tst-unique1mod1.c: Likewise.
3427         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3428         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3429         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3430         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3431         * sysdeps/mach/sysdep.h: Likewise.
3432         * sysdeps/i386/sysdep.h: Likewise.
3433         * sysdeps/i386/i386-mcount.S: Likewise.
3434         * sysdeps/x86_64/_mcount.S: Likewise.
3435         * sysdeps/x86_64/sysdep.h: Likewise.
3436         * sysdeps/sh/_mcount.S: Likewise.
3437         * sysdeps/sh/sysdep.h: Likewise.
3438         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3439         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3440         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3441         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3442         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3443         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3444         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3445         * locale/localeinfo.h: Likewise.
3446         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3447         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3448
3449 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3450
3451         [BZ #14336]
3452         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3453         system".
3454         * manual/message.texi (The Uniforum approach): Likewise.
3455         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3456         (glibc iconv Implementation): Likewise.
3457
3458 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3459
3460         [BZ #14337]
3461         * math/s_clog.c (__clog): Avoid scaling a value down where that
3462         could result in underflow.
3463         * math/s_clog10.c (__clog10): Likewise.
3464         * math/s_clog10f.c (__clog10f): Likewise.
3465         * math/s_clog10l.c (__clog10l): Likewise.
3466         * math/s_clogf.c (__clogf): Likewise.
3467         * math/s_clogl.c (__clogl): Likewise.
3468         * math/libm-test.inc (clog_test): Add more tests.
3469         (clog10_test): Likewise.
3470         * sysdeps/i386/fpu/libm-test-ulps: Update.
3471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3472
3473 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3474
3475         [BZ #14283]
3476         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3477         by 7 not 8 to examine high bit of fractional part.
3478
3479         [BZ #14042]
3480         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3481         for call to __mcount_internal.
3482         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3483         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3484         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3485
3486 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3487
3488         [BZ #14154]
3489         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3490         approximation for values within 0x1p-13f of an odd multiple of
3491         pi/4.
3492         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3493         exception.  Add more tests.
3494         * sysdeps/i386/fpu/libm-test-ulps: Update.
3495
3496         [BZ #6778]
3497         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3498         inputs and return -1 for them.  Do not check for +Inf in case not
3499         reachable for +Inf.
3500         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3501         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3502         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3503         and return -1 for them.  Do not check for +Inf in case not
3504         reachable for +Inf.
3505         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3506         define.
3507         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3508         and return -1 for them.  Do not check for +Inf in case not
3509         reachable for +Inf.
3510         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3511         spurious underflow.
3512         * sysdeps/i386/fpu/libm-test-ulps: Update.
3513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3514
3515 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3516
3517         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3518
3519 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3520
3521         [BZ #14157]
3522         [BZ #14331]
3523         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3524         could result in spurious underflow.  Scale down values above
3525         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3526         * math/s_csqrtf.c (__csqrtf): Likewise.
3527         * math/s_csqrtl.c (__csqrtl): Likewise.
3528         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3529         spurious underflow.
3530         * sysdeps/i386/fpu/libm-test-ulps: Update.
3531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3532
3533 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3534
3535         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3536         xopen-msg.sed.
3537         * catgets/xopen-msg.awk: New file.
3538         * catgets/xopen-msg.sed: Removed.
3539
3540         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3541         po2text.sed.
3542         * intl/po2test.awk: New file.
3543         * intl/po2test.sed: Removed.
3544
3545 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3546
3547         [BZ #14328]
3548         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3549         or multiply small sinh result by itself.
3550         * math/s_ctanf.c (__ctanf): Likewise.
3551         * math/s_ctanh.c (__ctanh): Likewise.
3552         * math/s_ctanhf.c (__ctanhf): Likewise.
3553         * math/s_ctanhl.c (__ctanhl): Likewise.
3554         * math/s_ctanl.c (__ctanl): Likewise.
3555         * math/libm-test.inc (ctan_test_tonearest): New function.
3556         (ctan_test_towardzero): Likewise.
3557         (ctan_test_downward): Likewise.
3558         (ctan_test_upward): Likewise.
3559         (ctanh_test_tonearest): Likewise.
3560         (ctanh_test_towardzero): Likewise.
3561         (ctanh_test_downward): Likewise.
3562         (ctanh_test_upward): Likewise.
3563         (main): Call these new functions.
3564         * sysdeps/i386/fpu/libm-test-ulps: Update.
3565         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3566
3567 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3568
3569         * .gitignore: Delete /ports entry.
3570
3571 2012-07-03  Andreas Jaeger  <aj@suse.de>
3572
3573         * po/bg.po: Update from translation team.
3574         * po/cs.po: Likewise.
3575         * po/de.po: Likewise.
3576         * po/hr.po: Likewise.
3577         * po/nl.pl: Likewise.
3578         * po/pl.po: Likewise.
3579         * po/vi.po: Likewise.
3580
3581 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3582
3583         * Makeconfig [!+link] (+link-before-libc): New variable.
3584         [!+link] (+link-after-libc): Likewise.
3585         [!+link] (+link-tests): Likewise.
3586         [!+link] (+link): Define in terms of $(+link-before-libc) and
3587         $(+link-after-libc).
3588         [!+link-static] (+link-static-before-libc): New variable.
3589         [!+link-static] (+link-static-after-libc): Likewise.
3590         [!+link-static] (+link-static-tests): Likewise.
3591         [!+link-static] (+link-static): Define in terms of
3592         $(+link-static-before-libc) and $(+link-static-after-libc).
3593         [build-shared] (link-libc-before-gnulib): New variable.
3594         [build-shared] (link-libc-tests): Likewise.
3595         [build-shared] (link-libc): Define in terms of
3596         $(link-libc-before-gnulib).
3597         [!build-shared] (link-libc-tests): New variable.
3598         (link-libc-static-tests): New variable.
3599         [!gnulib] (gnulib-arch): New variable.
3600         [!gnulib] (gnulib-tests): Likewise.
3601         [!gnulib] (static-gnulib-arch): Likewise.
3602         [!gnulib] (static-gnulib-tests): Likewise.
3603         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3604         Define with "=" instead of ":=".
3605         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3606         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3607         * Rules (binaries-all-notests): New variable.
3608         (binaries-all-tests): Likewise.
3609         (binaries-static-notests): Likewise.
3610         (binaries-static-tests): Likewise.
3611         (binaries-all): Define using $(binaries-all-notests) and
3612         $(binaries-all-tests).
3613         (binaries-static): Define using $(binaries-static-notests) and
3614         $(binaries-static-tests).
3615         (binaries-shared-tests): New variable.
3616         (binaries-shared-notests): Likewise.
3617         (binaries-shared): Remove variable.
3618         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3619         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3620         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3621         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3622         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3623         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3624         * elf/Makefile (sln-modules): New variable.
3625         (extra-objs): Add $(sln-modules:=.o).
3626         (ldconfig-modules): Add static-stubs.
3627         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3628         * elf/static-stubs.c: New file.
3629
3630         [BZ #14283]
3631         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3632         by 7 not 8 to examine high bit of fractional part.  Use volatile
3633         variables when splitting into final array of floats if
3634         __FLT_EVAL_METHOD__ != 0.
3635         * math/libm-test.inc (cos_test): Add another test.
3636         (sin_test): Likewise.
3637         * sysdeps/i386/fpu/libm-test-ulps: Update.
3638
3639         [BZ #14273]
3640         * math/libm-test.inc (cosh_test): Add more tests.
3641
3642         * version.h (RELEASE): Set to "development".
3643         (VERSION): Set to "2.16.90".
3644
3645 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3646
3647         * NEWS: Update copyright. Remove last-updated date.
3648         Mention math library bug fixes and timezone data changes.
3649         * README: Mention GNU/Hurd, x32, and HPPA support status.
3650
3651 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3652
3653         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3654
3655 2012-06-27  Andreas Jaeger  <aj@suse.de>
3656
3657         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3658
3659 2012-06-25  Andreas Jaeger  <aj@suse.de>
3660
3661         * sysdeps/s390/fpu/libm-test-ulps: Update.
3662
3663 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3664             Thomas Schwinge  <thomas@codesourcery.com>
3665
3666         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3667         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3668         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3669         fanotify_mark.
3670
3671 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3672
3673         * sysdeps/mach/start.c: Remove file.
3674         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3675         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3676         * sysdeps/sh/init-first.c: Likewise.
3677
3678         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3679         registers for frame unwinding purposes, add CFI directives.
3680         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3681         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3682         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3683         Likewise.
3684
3685         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3686         __fortify_fail returning.
3687         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3688
3689         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3690         sysdeps/sh/____longjmp_chk.S.
3691         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3692         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3693         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3694         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3695
3696         * sysdeps/sh/abort-instr.h: New file.
3697         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3698         process in case exit returns.
3699
3700         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3701         initialize the GOT register before use.
3702
3703         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3704         calculation of ARGC > 4.
3705
3706         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3707         meaningful names to some local labels.
3708
3709 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3710             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3711
3712         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3713         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3714         (__arch_compare_and_exchange_val_16_acq): Likewise.
3715         (__arch_compare_and_exchange_val_32_acq): Likewise.
3716         (atomic_exchange_and_add): Fix gUSA sequence.
3717         (atomic_add): Likewise.
3718         (atomic_add_negative): Likewise.
3719         (atomic_add_zero): Likewise.
3720         (atomic_bit_test_set): Likewise.
3721
3722 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3723
3724         [BZ #13579]
3725         * include/link.h (struct link_map): Add l_free_initfini.
3726         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3727         l_initfini.
3728         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3729         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3730         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3731         set.
3732
3733 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3734
3735         * configure.in: Use AC_LANG_SOURCE.
3736         * configure: Regenerate.
3737
3738 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3739
3740         * configure.in (libc_cv_localstatedir): New substituted variable.
3741         * configure: Regenerated.
3742         * config.make.in (localstatedir): New variable, substituted from
3743         libc_cv_localstatedir.
3744         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3745         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3746         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3747         * sysdeps/gnu/configure: Regenerated.
3748
3749 2012-06-21  Jeff Law  <law@redhat.com>
3750
3751         [BZ #14277]
3752         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3753         free.  Simplify list management for _LIBC case.
3754
3755 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3756
3757         [BZ #14273]
3758         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3759         Clear sign bit of 64-bit integer value before comparing against
3760         overflow value.
3761
3762         * sysdeps/mach/configure: Regenerated.
3763
3764 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3765
3766         [BZ #14278]
3767         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3768
3769 2012-06-21  Jeff Law  <law@redhat.com>
3770
3771         [BZ #13882]
3772         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3773         uint16_t for elements in the "seen" array to avoid char overflows.
3774         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3775         * elf/dl-open.c (dl_open_worker): Likewise.
3776
3777 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3778
3779         * scripts/list-sources.sh: Scan PORTS for translations.
3780         * po/libc.pot: Regenerated.
3781
3782 2012-06-21  Andreas Jaeger  <aj@suse.de>
3783
3784         [BZ #12194]
3785         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3786         warning.
3787         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3788         * bits/byteswap-16.h (__bswap_16): Likewise.
3789         * bits/byteswap.h (__bswap_constant_16): Likewise.
3790
3791 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3792
3793         [BZ #14117]
3794         * sysdeps/i386/fpu_control.h: Removed.
3795         * sysdeps/x86_64/fpu_control.h: Moved to ...
3796         * sysdeps/x86/fpu_control.h: Here.
3797
3798         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3799         (_FPU_SETCW): Likewise.
3800
3801 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3802
3803         [BZ #14117]
3804         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3805         * sysdeps/x86/fpu/bits/mathinline.h: This.
3806         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3807
3808         [BZ #14050]
3809         [BZ #14117]
3810         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3811         functions if __x86_64__ is defined.
3812
3813 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3814
3815         * string/endian.h: Add !__ASSEMBLER__ condition for including
3816         conversion interfaces.
3817
3818 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3819
3820         [BZ #14241]
3821         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3822         of ABS(x) in calculating zero to negative powers other than odd
3823         integers.
3824         * math/libm-test.inc (pow_test): Add more tests.
3825
3826 2012-06-15  Andreas Jaeger  <aj@suse.de>
3827
3828         * manual/contrib.texi (Contributors): Update entry of Liubov
3829         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3830         Machado Filho.
3831
3832 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3833
3834         * string/string.h: Add __wur to GNU version of strerror_r.
3835
3836 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3837
3838         [BZ #14229]
3839         * string/Makefile (tests): Add tst-strtok_r.
3840         * string/tst-strtok_r.c: New file.
3841         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3842         RAX_LP/RDX_LP on SAVE_PTR.
3843
3844 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3845
3846         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3847
3848 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3849
3850         * libm_test.inc (csqrt_test): Allow more spurious underflow
3851         exceptions.
3852         (j0_test): Likewise.
3853         (j1_test): Likewise.
3854         (y0_test): Likewise.
3855         (y1_test): Likewise.
3856
3857 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3858
3859         * po/Makefile (libc.pot): Use UTF-8 charset.
3860
3861 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3862
3863         [BZ #14210]
3864         Suppress sign-conversion warning from FD_SET.
3865         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3866         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3867         not unsigned long int.
3868         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3869
3870 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3871
3872         [BZ #14050]
3873         [BZ #14117]
3874         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3875         __extern_always_inline instead of __extern_inline.
3876         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3877         (__signbit): Likewise.
3878         (__signbitl): Support C++ namespace.
3879         (lrintf): New inline function.
3880         (lrint): Likewise.
3881         (llrintf): Likewise.
3882         (llrint): Likewise.
3883         (fmaxf): Likewise.
3884         (fmax): Likewise.
3885         (fminf): Likewise.
3886         (fmin): Likewise.
3887         (rint): Likewise.
3888         (rintf): Likewise.
3889         (ceil): Likewise.
3890         (ceilf): Likewise.
3891         (floor): Likewise.
3892         (floorf): Likewise.
3893         (nearbyint): Likewise.
3894         (nearbyintf): Likewise.
3895
3896 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3897
3898         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3899         non-default versions.
3900
3901 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3902
3903         [BZ #14218]
3904         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3905
3906 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3907
3908         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3909         (FE_UPWARD, FE_DOWNWARD): Don't define.
3910         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3911         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3912
3913         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3914         reading it.
3915         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3916         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3917
3918 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3919
3920         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3921         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3922         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3923         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3924
3925 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3926
3927         [BZ #14117]
3928         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3929         * sysdeps/i386/fpu/Implies: New file.
3930         * sysdeps/x86_64/fpu/Implies: Likewise.
3931         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3932         * sysdeps/x86/fpu/bits/fenv.h: This.
3933
3934         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3935         __SSE_MATH__.
3936
3937 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3938
3939         [BZ #14134]
3940         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3941         character 0xffff that matches the last element of the
3942         conversion table.
3943
3944 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3945
3946         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3947         fmodl commit.
3948
3949 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3950
3951         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3952         values higher than 25.6283.
3953
3954 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3955
3956         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3957         subnormal exponent extraction and add some __builtin_expect.
3958         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3959         Fix for subnormal mantissa calculation.
3960
3961 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3962
3963         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3964         cpu2 is -1 and errno is not ENOSYS.
3965
3966 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3967
3968         [BZ #14117]
3969         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3970         * sysdeps/x86/bits/string.h: This.
3971         * sysdeps/x86_64/bits/string.h: Removed.
3972
3973         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3974         if not compiling for x86-64, but compiling for >= i486.
3975
3976         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3977         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3978
3979         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3980         New macro from Linux kernel 3.4.0.
3981         (FP_XSTATE_MAGIC2): Likewise.
3982         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3983         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3984         (struct _fpx_sw_bytes): New struct.
3985         (struct _xsave_hdr): Likewise.
3986         (struct _ymmh_state): Likewise.
3987         (struct _xstate): Likewise.
3988
3989         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3990         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3991         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3992         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3993         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3994         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3995
3996         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3997         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3998         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3999         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4000         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4001         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4002
4003 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4004
4005         [BZ #13743]
4006         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4007         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4008         (sysdep_headers): Include sys/platform/ppc.h.
4009         * sysdeps/powerpc/test-gettimebase.c: Test for
4010         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4011         * manual/Makefile (appendices): Include platform.texi.
4012         * manual/contrib.texi (Contributors): Update @node pointers.
4013         * manual/maint.texi (Maintenance): Likewise.
4014         (Platform): New node.
4015         * manual/platform.texi: New file.  Document the new features.
4016
4017 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4018             Jakub Jelinek  <jakub@redhat.com>
4019
4020         [BZ #14188]
4021         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4022         where __builtin_expect is unavailable.
4023
4024 2012-06-03  David S. Miller  <davem@davemloft.net>
4025
4026         * stdlib/longlong.h: Updated from GCC.
4027
4028 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4029
4030         [BZ #14042]
4031         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4032         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4033         __mcount_internal.
4034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4035         (GLIBC_2.16): Likewise.
4036
4037 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4038
4039         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4040
4041 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4042
4043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4044         (default-abi): New variable.
4045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4046         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4047         variable.
4048         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4049         Likewise.
4050         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4051         Likewise.
4052         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4053         Likewise.
4054
4055         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4056         definition.  Document in comment.
4057
4058 2012-06-01  David S. Miller  <davem@davemloft.net>
4059
4060         * stdlib/longlong.h: Updated from GCC.
4061
4062 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4063
4064         [BZ #14117]
4065         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4066         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4067         sys/debugreg.h sys/io.h here.
4068         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4069         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4070         sys/io.h.
4071         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4072         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4073         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4074         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4075         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4076         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4077
4078         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4079         Define only if __x86_64__ is defined.
4080
4081 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4082
4083         [BZ #14048]
4084         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4085         Use int64_t for variable i.
4086         * math/libm-test.inc (fmod_test): Add more tests.
4087
4088         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4089         z computation is not scheduled after fetestexcept.
4090         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4091         Use math_force_eval instead of asm to ensure calculation scheduled
4092         before exception test.
4093         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4094         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4095
4096 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4097
4098         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4099         computation is not scheduled after fetestexcept.
4100
4101 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4102
4103         [BZ #14117]
4104         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4105         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4106
4107 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4108
4109         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4110         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4111
4112 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4113
4114         [BZ #14117]
4115         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4116         <bits/wordsize.h>.
4117         (__WCHAR_MIN): Support __WORDSIZE == 64.
4118         (__WCHAR_MAX): Likewise.
4119
4120         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4121         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4122
4123         [BZ #14183]
4124         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4125         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4126
4127         [BZ #14117]
4128         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4129         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4130
4131         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4132         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4133
4134         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4135         Defined to 1 if __x86_64__ isn't defined.
4136         (_STAT_VER_LINUX_OLD): New.
4137         (st_atime): Remove duplicate.
4138         (st_mtime): Likewise.
4139         (st_ctime): Likewise.
4140
4141 2012-05-31  David S. Miller  <davem@davemloft.net>
4142
4143         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4144         entries.
4145
4146 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4147
4148         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4149         gen-libm-test.pl.
4150
4151         [BZ #14132]
4152         * elf/dl-reloc.c: Include <_itoa.h>.
4153         (_dl_reloc_bad_type): Remove use of INTUSE.
4154         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4155         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4156         * stdio-common/psiginfo.c (psiginfo): Likewise.
4157         * stdio-common/psignal.c (psignal): Likewise.
4158         * string/strsignal.c (strsignal): Likewise.
4159         * include/signal.h (_sys_siglist): Declare hidden proto.
4160         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4161         INTVARDEF with libc_hidden_data_def.
4162         * stdio-common/itoa-udigits.c: Likewise.
4163         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4164         (_itoa_lower_digits_internal): Remove declaration.
4165         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4166         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4167         (_sys_sigabbrev_internal): Remove aliases.
4168         (_sys_siglist): Define hidden alias.
4169
4170 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4171
4172         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4173         bits/sysctl.h.
4174
4175 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4176
4177         [BZ #14117]
4178         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4179         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4180
4181         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4182         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4183         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4184         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4185         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4186         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4187
4188         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4189         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4190         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4191
4192         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4193         with __addr.
4194         (insw): Likewise.
4195         (insl): Likewise.
4196         (outsb): Likewise.
4197         (outsw): Likewise.
4198         (outsl): Likewise.
4199
4200         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4201         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4202         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4203
4204         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4205         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4206         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4207         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4208         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4209         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4210
4211         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4212         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4213
4214         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4215         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4216
4217         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4218         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4219         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4220
4221         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4222         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4223         to ...
4224         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4225
4226         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4227         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4228         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4229
4230         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4231         for x86-64.
4232         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4233
4234 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4235
4236         * math/math.h (M_El): Use two more decimal places.
4237         (M_LOG2El): Likewise.
4238         (M_LOG10El): Likewise.
4239         (M_LN2l): Likewise.
4240         (M_LN10l): Likewise.
4241         (M_PIl): Likewise.
4242         (M_PI_2l): Likewise.
4243         (M_PI_4l): Likewise.
4244         (M_1_PIl): Likewise.
4245         (M_2_PIl): Likewise.
4246         (M_2_SQRTPIl): Likewise.
4247         (M_SQRT2l): Likewise.
4248         (M_SQRT1_2l): Likewise.
4249
4250 2012-05-31  David S. Miller  <davem@davemloft.net>
4251
4252         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4253         values between float registers.
4254         * sysdeps/sparc/sparc64/memset.S: Likewise.
4255         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4256
4257 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4258
4259         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4260         -D_FORTIFY_SOURCE=1.
4261         (CPPFLAGS-tst-longjmp_chk.c): Define.
4262         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4263         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4264         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4265         CFLAGS-tst-wchar-h.c.
4266
4267 2012-05-31  Marek Polacek  <polacek@redhat.com>
4268
4269         [BZ #14132]
4270         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4271         __endmntent_internal): Remove declaration.
4272         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4273         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4274         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4275
4276 2012-05-30  David S. Miller  <davem@davemloft.net>
4277
4278         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4279         (___Q_simulate_exceptions): Use real FP ops rather than writing
4280         into the %fsr.
4281         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4282         Likewise.
4283
4284 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4285
4286         [BZ #14117]
4287         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4288         * sysdeps/x86/bits/xtitypes.h: This.
4289
4290         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4291         * sysdeps/x86/bits/wordsize.h: This.
4292
4293         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4294         * sysdeps/x86/bits/huge_vall.h: This.
4295
4296         * sysdeps/i386/bits/select.h: Removed.
4297         * sysdeps/x86_64/bits/select.h: Renamed to ...
4298         * sysdeps/x86/bits/select.h: This.
4299
4300         * sysdeps/i386/bits/setjmp.h: Removed.
4301         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4302         * sysdeps/x86/bits/setjmp.h: This.
4303
4304         * sysdeps/i386/bits/mathdef.h: Removed.
4305         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4306         * sysdeps/x86/bits/mathdef.h: This.
4307
4308 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4309
4310         [BZ #14132]
4311         * include/sys/socket.h (__connect_internal)
4312         (__libc_sa_len_internal): Remove declaration.
4313         (__connect, __libc_sa_len): Declare hidden_proto.
4314         (SA_LEN): Remove use of INTUSE.
4315         * socket/connect.c: Add libc_hidden_def.
4316         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4317         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4318         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4319         alias.
4320         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4321         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4322         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4323         of adding _internal alias.
4324
4325 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4326
4327         [BZ #14117]
4328         * sysdeps/i386/bits/link.h: Removed.
4329         * sysdeps/i386/bits/linkmap.h: Likewise.
4330         * sysdeps/x86_64/bits/link.h: Renamed to ...
4331         * sysdeps/x86/bits/link.h: This.
4332         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4333         * sysdeps/x86/bits/linkmap.h: This.
4334
4335         * sysdeps/i386/bits/endian.h: Removed.
4336         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4337         * sysdeps/x86/bits/endian.h: This.
4338
4339         * sysdeps/i386/bits/byteswap.h: Removed.
4340         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4341         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4342         * sysdeps/x86/bits/byteswap.h: This.
4343         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4344         * sysdeps/x86/bits/byteswap-16.h: This.
4345         * sysdeps/i386/Implies: Add x86.
4346         * sysdeps/x86_64/Implies: Likewise.
4347
4348 2012-05-30  David S. Miller  <davem@davemloft.net>
4349
4350         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4351         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4352         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4353         (FP_TRAPPING_EXCEPTIONS): Define.
4354         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4355         (FP_TRAPPING_EXCEPTIONS): Define.
4356         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4357         subnormals only when inexact has been signalled or underflow
4358         exceptions are enabled.
4359         (_FP_PACK_CANONICAL): Likewise.
4360
4361 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4362
4363         [BZ #14183]
4364         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4365         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4366
4367 2012-05-30  Richard Henderson  <rth@twiddle.net>
4368
4369         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4370         with #ifndef NOT_IN_libc.
4371
4372         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4373         marked to avoid plt entry.
4374
4375 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4376
4377         [BZ #14112]
4378         * Makeconfig (default-abi): New macro.
4379         (abi-includes): Likewise.
4380         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4381         $(abi-$(default-abi)-lib-soname) for soname if defined.
4382         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4383         abi-variants.
4384         * Makefile (installed-stubs): Likewise.
4385         * include/stubs-biarch.h: Removed.
4386         * scripts/lib-names.awk: Only handle one library at a time.
4387         * scripts/soversions.awk: Remove WORDSIZE support.
4388         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4389         entries.
4390         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4391         Removed.
4392         (syscall-list-default-condition): Likewise.
4393         (syscall-list-default-condition): Likewise.
4394         (syscall-list-includes): Likewise.
4395         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4396         syscall-list-* with abi-*.  Handle undefined abi-variants.
4397         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4398         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4399         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4400         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4401         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4402         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4403         Removed.
4404         (syscall-list-32-options): Likewise.
4405         (syscall-list-32-condition): Likewise.
4406         (syscall-list-64-options): Likewise.
4407         (syscall-list-64-condition): Likewise.
4408         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4409         macro.
4410         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4411         Renamed to ...
4412         (abi-*): This.
4413         (abi-64-ld-soname): New macro.
4414         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4415         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4416         Renamed to ...
4417         (abi-*): This.
4418         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4419         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4420
4421 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4422
4423         * sysdeps/unix/sysv/linux/kernel-features.h
4424         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4425         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4426         include <kernel-features.h>.
4427         [!__NR_ftruncate64]: Remove conditional code.
4428         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4429         [__NR_ftruncate64]: Make code unconditional.
4430         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4431         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4432         include <kernel-features.h>.
4433         [!__NR_ftruncate64]: Remove conditional code.
4434         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4435         [__NR_ftruncate64]: Make code unconditional.
4436         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4438         include <kernel-features.h>.
4439         [!__NR_ftruncate64]: Remove conditional code.
4440         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4441         [__NR_ftruncate64]: Make code unconditional.
4442         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4444         include <kernel-features.h>.
4445         [!__NR_ftruncate64]: Remove conditional code.
4446         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4447         [__NR_ftruncate64]: Make code unconditional.
4448         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4449
4450         * configure.in (libc_cv_fpie): Weaken to a compile test using
4451         LIBC_TRY_CC_OPTION.
4452         * configure: Regenerated.
4453
4454 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4455
4456         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4457         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4458         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4459         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4460         Refreshed.
4461         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4462         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4464         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4465         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4466         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4467         Refreshed.
4468
4469 2012-05-27  David S. Miller  <davem@davemloft.net>
4470
4471         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4472         (___Q_zero): New.
4473         (__Q_simulate_exceptions): Return void.  Change to simulate
4474         exceptions by writing into the %fsr.
4475         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4476         (__Qp_handle_exceptions): Likewise.
4477         (numbers): Delete.
4478         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4479         __Qp_handle_exceptions.
4480         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4481         __Qp_handle_exceptions.
4482         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4483         as unused and give dummy FP_RND_NEAREST initializer.
4484         (FP_INHIBIT_RESULTS): Define.
4485         (___Q_simulate_exceptions): Update declaration.
4486         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4487         formatting.
4488         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4489         as unused and give dummy FP_RND_NEAREST initializer.
4490         (__Qp_handle_exceptions): Update declaration.
4491         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4492         formatting.
4493
4494 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4495
4496         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4497         the temporary FPU control word.
4498         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4499         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4500         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4501         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4502         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4503         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4504         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4505         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4506         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4507         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4508         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4509
4510 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4511
4512         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4513         fields.
4514
4515 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4516
4517         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4518         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4519         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4520         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4521         Likewise.
4522         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4523         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4524         Likewise.
4525
4526 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4527
4528         * po/h.po: Update from translation team.
4529
4530 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4531
4532         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4533
4534         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4535         handling of denormals.
4536         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4537         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4538         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4539         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4540         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4541         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4542         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4543         Likewise.
4544
4545 2012-05-26  Marek Polacek  <polacek@redhat.com>
4546
4547         [BZ #14152]
4548         * math/libm-test.inc (fma_test): Don't always expect underflow
4549         exception.
4550
4551 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4552
4553         [BZ #12416]
4554         * elf/tst-execstack.c: Include stackinfo.h.
4555         (do_test): Adjust test case to ensure that pthread_getattr_np
4556         behaviour remains the same after marking stack executable.
4557
4558 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4559
4560         * sysdeps/unix/sysv/linux/kernel-features.h
4561         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4562         * sysdeps/unix/sysv/linux/i386/getrlimit.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         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4567         kernel-features.h.
4568         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4569         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4570
4571 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4572
4573         * configure.in: Define the default includes to being none.
4574         * configure: Regenerated.
4575
4576 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4577
4578         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4579         * sysdeps/x86_64/setjmp.S: Likewise.
4580         * sysdeps/i386/bsd-setjmp.S: Likewise.
4581         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4582         * sysdeps/i386/setjmp.S: Likewise.
4583         * sysdeps/i386/__longjmp.S: Likewise.
4584         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4585         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4586
4587         * include/stap-probe.h: New file.
4588         * configure.in: Handle --enable-systemtap.
4589         * configure: Regenerated.
4590         * config.h.in (USE_STAP_PROBE): New #undef.
4591         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4592         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4593         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4594
4595 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4596
4597         [BZ #13717]
4598         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4599         to 2.4.0 where earlier.
4600         * sysdeps/unix/sysv/linux/configure: Regenerated.
4601         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.c: Do not include
4606         <kernel-features.h>.
4607         [__ASSUME_32BITUIDS]: Make code unconditional.
4608         [!__ASSUME_32BITUIDS]: Remove conditional code.
4609         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4610         [__ASSUME_32BITUIDS]: Make code unconditional.
4611         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4612         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.c: Do not include
4649         <kernel-features.h>.
4650         [__ASSUME_32BITUIDS]: Make code unconditional.
4651         [!__ASSUME_32BITUIDS]: Remove conditional code.
4652         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4653         <kernel-features.h>.
4654         [__NR_setresgid] (__setresgid): Do not declare.
4655         [__ASSUME_32BITUIDS]: Make code unconditional.
4656         [!__ASSUME_32BITUIDS]: Remove conditional code.
4657         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4658         <kernel-features.h>.
4659         [__NR_setresuid] (__setresuid): Do not declare.
4660         [__ASSUME_32BITUIDS]: Make code unconditional.
4661         [!__ASSUME_32BITUIDS]: Remove conditional code.
4662         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/i386/shmctl.c: Do not include
4699         <kernel-features.h>.
4700         [__ASSUME_32BITUIDS]: Make code unconditional.
4701         [!__ASSUME_32BITUIDS]: Remove conditional code.
4702         * sysdeps/unix/sysv/linux/kernel-features.h
4703         (__ASSUME_SETRESUID_SYSCALL): Remove.
4704         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4705         (__ASSUME_32BITUIDS): Likewise.
4706         (__ASSUME_LDT_WORKS): Likewise.
4707         (__ASSUME_O_DIRECTORY): Likewise.
4708         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4709         architecture but not kernel version.
4710         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4711         (__ASSUME_MMAP2_SYSCALL): Likewise.
4712         (__ASSUME_STAT64_SYSCALL): Likewise.
4713         (__ASSUME_IPC64): Likewise.
4714         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4715         <kernel-features.h>.
4716         [__ASSUME_32BITUIDS]: Make code unconditional.
4717         [!__ASSUME_32BITUIDS]: Remove conditional code.
4718         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4719         <kernel-features.h>.
4720         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4721         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4722         132096]: Remove conditional code.
4723         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4724         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.c: Do not include
4729         <kernel-features.h>.
4730         [__ASSUME_32BITUIDS]: Make code unconditional.
4731         [!__ASSUME_32BITUIDS]: Remove conditional code.
4732         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4733         <kernel-features.h>.
4734         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4735         unconditional.
4736         (__setresgid): Do not declare.
4737         [__ASSUME_32BITUIDS]: Make code unconditional.
4738         [!__ASSUME_32BITUIDS]: Remove conditional code.
4739         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4740         <kernel-features.h>.
4741         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4742         unconditional.
4743         (__setresuid): Do not declare.
4744         [__ASSUME_32BITUIDS]: Make code unconditional.
4745         [!__ASSUME_32BITUIDS]: Remove conditional code.
4746         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4747         <kernel-features.h>.
4748         [__ASSUME_32BITUIDS]: Make code unconditional.
4749         [!__ASSUME_32BITUIDS]: Remove conditional code.
4750         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4751         <kernel-features.h>.
4752         [__ASSUME_32BITUIDS]: Make code unconditional.
4753         [!__ASSUME_32BITUIDS]: Remove conditional code.
4754
4755 2012-05-25  Richard Henderson  <rth@twiddle.net>
4756
4757         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4758         dl_hwcap to ifunc resolver.
4759         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4760         elf_ifunc_invoke.
4761         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4762         dl_hwcap to ifunc resolver.
4763         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4764
4765 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4766
4767         [BZ #14153]
4768         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4769         for |x| <= 2**-26, not 2**-57.
4770         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4771         exception.
4772
4773 2012-05-24  Jeff Law  <law@redhat.com>
4774
4775         * stdio-common/Makefile (tests): Add bug25.
4776         * stdio-common/bug25.c: New test.
4777
4778 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4779
4780         [BZ #13576]
4781         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4782         multiple of MALLOC_ALIGNMENT in size.
4783         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4784
4785 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4786
4787         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4788         Require >= 256.
4789         (FILENAME_MAX): Use macro-int-constant.
4790         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4791         (_IOFBF): Use macro-int-constant.
4792         (_IOLBF): Likewise.
4793         (_IONBF): Likewise.
4794         (SEEK_CUR): Likewise.
4795         (SEEK_END): Likewise.
4796         (SEEK_SET): Likewise.
4797         (TMP_MAX): Likewise.
4798         (EOF): Use macro-int-constant.  Require < 0.
4799         (NULL): Use macro-constant.  Require == 0.
4800         (stdin): Require type to be FILE *.
4801         (stdout): Likewise.
4802         (stderr): Likewise.
4803         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4804         macro-int-constant.
4805         (EXIT_SUCCESS): Likewise.
4806         (NULL): Use macro-constant.  Require == 0.
4807         (RAND_MAX): Use macro-int-constant.
4808         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4809         [C99-based standards] (strtof): Require function.
4810         [C99-based standards] (strtold): Likewise.
4811         [C99-based standards] (strtoll): Likewise.
4812         [C99-based standards] (strtoull): Likewise.
4813         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4814         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4815         [ISO || ISO99 || ISO11] (math.h): Likewise.
4816         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4817         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4818         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4819
4820 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4821
4822         [BZ #14132]
4823         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4824         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4825         * intl/dgettext.c (DCGETTEXT): Likewise.
4826         * intl/gettext.c (DCGETTEXT): Likewise.
4827         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4828         * posix/regex_internal.h (gettext): Likewise.
4829         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4830         Remove declaration.
4831         * include/argz.h (__argz_count_internal)
4832         (__argz_stringify_internal): Remove declaration.
4833         (__argz_count, __argz_stringify): Declare hidden proto.
4834         * intl/dcgettext.c: Remove use of INTDEF.
4835         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4836         * string/argz-stringify.c: Likewise.
4837         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4838         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4839         Declare hidden proto.
4840         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4841         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4842         Declare hidden proto.
4843         * include/stdio.h (__asprintf_internal): Don't declare.
4844         (__asprintf): Don't define as macro.  Declare hidden proto.
4845         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4846         (__fsetlocking): Declare hidden proto.
4847         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4848         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4849         hidden proto.
4850         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4851         (_IO_setlinebuf): Remove use of INTUSE.
4852         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4853         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4854         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4855         Remove declaration.
4856         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4857         (_IO_do_flush): Remove use of INTUSE.
4858         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4859         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4860         (_IO_adjust_column, _IO_least_wmarker)
4861         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4862         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4863         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4864         (_IO_default_doallocate, _IO_wdefault_doallocate)
4865         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4866         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4867         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4868         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4869         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4870         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4871         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4872         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4873         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4874         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4875         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4876         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4877         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4878         proto.
4879         (_IO_flush_all_internal, _IO_adjust_column_internal)
4880         (_IO_default_uflow_internal, _IO_default_finish_internal)
4881         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4882         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4883         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4884         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4885         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4886         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4887         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4888         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4889         (_IO_file_close_internal, _IO_file_close_it_internal)
4890         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4891         (_IO_file_init_internal, _IO_file_attach_internal)
4892         (_IO_file_fopen_internal, _IO_file_read_internal)
4893         (_IO_file_sync_internal, _IO_file_seek_internal)
4894         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4895         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4896         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4897         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4898         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4899         (_IO_list_all_internal, _IO_link_in_internal)
4900         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4901         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4902         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4903         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4904         (_IO_do_write_internal, _IO_padn_internal)
4905         (_IO_getline_info_internal, _IO_getline_internal)
4906         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4907         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4908         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4909         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4910         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4911         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4912         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4913         with libc_hidden_ver, remove use of INTUSE.
4914         * libio/genops.c: Likewise.
4915         * libio/freopen.c: Likewise.
4916         * libio/freopen64.c: Likewise.
4917         * libio/iofclose.c: Likewise.
4918         * libio/iofdopen.c: Likewise.
4919         * libio/iofflush.c: Likewise.
4920         * libio/iofflush_u.c: Likewise.
4921         * libio/iofgets.c: Likewise.
4922         * libio/iofgets_u.c: Likewise.
4923         * libio/iofopen.c: Likewise.
4924         * libio/iofopncook.c: Likewise.
4925         * libio/iofread.c: Likewise.
4926         * libio/iofread_u.c: Likewise.
4927         * libio/ioftell.c: Likewise.
4928         * libio/iofwrite.c: Likewise.
4929         * libio/iogetline.c: Likewise.
4930         * libio/iogets.c: Likewise.
4931         * libio/iogetwline.c: Likewise.
4932         * libio/iopadn.c: Likewise.
4933         * libio/iopopen.c: Likewise.
4934         * libio/ioseekoff.c: Likewise.
4935         * libio/ioseekpos.c: Likewise.
4936         * libio/iosetbuffer.c: Likewise.
4937         * libio/iosetvbuf.c: Likewise.
4938         * libio/ioungetc.c: Likewise.
4939         * libio/ioungetwc.c: Likewise.
4940         * libio/iovdprintf.c: Likewise.
4941         * libio/iovsprintf.c: Likewise.
4942         * libio/iovsscanf.c: Likewise.
4943         * libio/memstream.c: Likewise.
4944         * libio/obprintf.c: Likewise.
4945         * libio/oldfileops.c: Likewise.
4946         * libio/oldiofclose.c: Likewise.
4947         * libio/oldiofdopen.c: Likewise.
4948         * libio/oldiofopen.c: Likewise.
4949         * libio/oldiopopen.c: Likewise.
4950         * libio/oldstdfiles.c: Likewise.
4951         * libio/putc.c: Likewise.
4952         * libio/setbuf.c: Likewise.
4953         * libio/setlinebuf.c: Likewise.
4954         * libio/stdfiles.c: Likewise.
4955         * libio/strops.c: Likewise.
4956         * libio/vasprintf.c: Likewise.
4957         * libio/vscanf.c: Likewise.
4958         * libio/vsnprintf.c: Likewise.
4959         * libio/vswprintf.c: Likewise.
4960         * libio/wfiledoalloc.c: Likewise.
4961         * libio/wfileops.c: Likewise.
4962         * libio/wgenops.c: Likewise.
4963         * libio/wmemstream.c: Likewise.
4964         * libio/wstrops.c: Likewise.
4965         * libio/__fpurge.c: Likewise.
4966         * libio/__fsetlocking.c: Likewise.
4967         * assert/assert.c: Likewise.
4968         * debug/fgets_chk.c: Likewise.
4969         * debug/fgets_u_chk.c: Likewise.
4970         * debug/fread_chk.c: Likewise.
4971         * debug/fread_u_chk.c: Likewise.
4972         * debug/gets_chk.c: Likewise.
4973         * debug/obprintf_chk.c: Likewise.
4974         * debug/vasprintf_chk.c: Likewise.
4975         * debug/vdprintf_chk.c: Likewise.
4976         * debug/vsnprintf_chk.c: Likewise.
4977         * debug/vsprintf_chk.c: Likewise.
4978         * malloc/mtrace.c: Likewise.
4979         * misc/error.c: Likewise.
4980         * misc/syslog.c: Likewise.
4981         * stdio-common/asprintf.c: Likewise.
4982         * stdio-common/fxprintf.c: Likewise.
4983         * stdio-common/getw.c: Likewise.
4984         * stdio-common/isoc99_fscanf.c: Likewise.
4985         * stdio-common/isoc99_scanf.c: Likewise.
4986         * stdio-common/isoc99_vfscanf.c: Likewise.
4987         * stdio-common/isoc99_vscanf.c: Likewise.
4988         * stdio-common/isoc99_vsscanf.c: Likewise.
4989         * stdio-common/printf-prs.c: Likewise.
4990         * stdio-common/printf_fp.c: Likewise.
4991         * stdio-common/printf_fphex.c: Likewise.
4992         * stdio-common/printf_size.c: Likewise.
4993         * stdio-common/putw.c: Likewise.
4994         * stdio-common/scanf.c: Likewise.
4995         * stdio-common/sprintf.c: Likewise.
4996         * stdio-common/tmpfile.c: Likewise.
4997         * stdio-common/vfprintf.c: Likewise.
4998         * stdio-common/vfscanf.c: Likewise.
4999         * stdlib/strfmon_l.c: Likewise.
5000         * sunrpc/openchild.c: Likewise.
5001         * sunrpc/xdr_stdio.c: Likewise.
5002         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5003         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5004
5005 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5006
5007         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5008
5009         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5010         in the third column, to generate for the shared library an IFUNC
5011         that uses _dl_vdso_vsym.
5012         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5013         * Makeconfig (object-suffixes-noshared): New variable.
5014
5015         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5016         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5017         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5018         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5019
5020         [BZ #14132]
5021         * include/sys/time.h (__gettimeofday): Remove macro.
5022         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5023         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5024         Remove INTDEF.
5025         (__gettimeofday): Add libc_hidden_def.
5026         (gettimeofday): Add libc_hidden_weak.
5027         * sysdeps/mach/gettimeofday.c: Likewise.
5028         * sysdeps/posix/gettimeofday.c: Likewise.
5029         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5030         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5031         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5032         (__gettimeofday_internal): Remove strong_alias.
5033         (__gettimeofday): Add libc_hidden_def.
5034         (gettimeofday): Add libc_hidden_weak.
5035         * sysdeps/unix/syscalls.list (gettimeofday):
5036         Remove __gettimeofday_internal alias.
5037
5038 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5039             H.J. Lu  <hongjiu.lu@intel.com>
5040
5041         [BZ #12495]
5042         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5043         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5044         (largebin_index_32_big): New.
5045         (largebin_index): Use it for 16-byte alignment.
5046         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5047         correction with front_misalign.
5048
5049 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5050
5051         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5052         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5053         Likewise.
5054         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5055         Likewise.
5056         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5057         Likewise.
5058         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5059         Likewise.
5060         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5061         Likewise.
5062         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5063         Likewise.
5064         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5065         Likewise.
5066         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5067         Likewise.
5068         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5069         Likewise.
5070         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5071         Likewise.
5072         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5073         Likewise.
5074         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5075         Likewise.
5076
5077         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5078         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5079
5080 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5081
5082         [BZ #10846]
5083         [BZ #14036]
5084         * math/libm-test.inc (exp_test): Add test from bug 14036.
5085         (pow_test): Add test from bug 10846.
5086
5087         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5088         and other flags.
5089         (special_function): Do not include flags in test name.
5090         (parse_args): Likewise.
5091         * sysdeps/i386/fpu/libm-test-ulps: Update.
5092         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5093         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5094         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5096
5097         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5098         exceptions.
5099         * math/libm-test.inc ("Philosophy"): Update comment about
5100         exception testing.
5101         (UNDERFLOW_EXCEPTION): New macro.
5102         (UNDERFLOW_EXCEPTION_OK): Likewise.
5103         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5104         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5105         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5106         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5107         (INVALID_EXCEPTION_OK): Update value.
5108         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5109         (OVERFLOW_EXCEPTION_OK): Likewise.
5110         (IGNORE_ZERO_INF_SIGN): Likewise.
5111         (test_exceptions): Handle underflow exceptions.
5112         (acos_test): Update for underflow exception expectations.
5113         (cexp_test): Likewise.
5114         (clog_test): Likewise.
5115         (clog10_test): Likewise.
5116         (csqrt_test): Likewise.
5117         (ctan_test): Likewise.
5118         (ctanh_test): Likewise.
5119         (exp_test): Likewise.
5120         (exp10_test): Likewise.
5121         (exp2_test): Likewise.
5122         (expm1_test): Likewise.
5123         (fma_test): Likewise.
5124         (j0_test): Likewise.
5125         (jn_test): Likewise.
5126         (nexttoward_test): Likewise.
5127         (pow_test): Likewise.
5128         (scalbn_test): Likewise.
5129         (scalbln_test): Likewise.
5130         (tan_test): Likewise.
5131         (y1_test): Likewise.
5132         * sysdeps/i386/fpu/libm-test-ulps: Update.
5133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5134
5135 2012-05-23  David S. Miller  <davem@davemloft.net>
5136
5137         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5138         (__libc_sigaction): Remove unused local variables.
5139
5140 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5141
5142         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5143
5144 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5145
5146         mktime: avoid signed integer overflow
5147         * time/mktime.c (__mktime_internal): Do not mishandle the case
5148         where diff == INT_MIN.
5149
5150         mktime: simplify computation of average
5151         * time/mktime.c (ranged_convert): Use new time_t_avg function
5152         instead of rolling our own (probably-slower) code.
5153
5154         mktime: do not assume signed right shift propagates sign bit
5155         * time/mktime.c (isdst_differ): New static function.
5156         (__mktime_internal): No need to normalize tm_isdst now.
5157         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5158         tm_isdst values.
5159
5160         mktime: merge another wrapv change from gnulib
5161         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5162         from some compilers.
5163
5164         mktime: remove incorrect attempt at unusual arithmetics
5165         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5166         The code didn't really work on such machines anyway.
5167         (TYPE_MINIMUM): Assume two's complement.
5168         (twos_complement_arithmetic): Verify that long_int and time_t
5169         are two's complement (or unsigned, in the latter case).
5170
5171         mktime: check signed shifts on long_int and time_t, too
5172         * time/mktime.c (SHR): Check that shifts work as desired
5173         on the types long_int and time_t too, as SHR is used on
5174         such types.
5175
5176         mktime: do not assume 'long' is wide enough
5177         * time/mktime.c (verify): Move decl up.
5178         (long_int): New type.
5179         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5180         to remove assumption in the code that 'long' is wide enough to
5181         store year values.  This assumption is not true on x32 and on
5182         some non-glibc platforms.
5183
5184         mktime: merge wrapv change from gnulib
5185         * time/mktime.c (WRAPV): New macro.
5186         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5187         (guess_time_tm, __mktime_internal): Do not assume that signed
5188         integer overflow wraps around; modern compilers generate code
5189         where this assumption is no longer valid.
5190
5191 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5192
5193         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5194         Replace "jmp L(pseudo_end)" with "ret".
5195         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5196         Likewise.
5197
5198 2012-05-23  Andreas Jaeger  <aj@suse.de>
5199
5200         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5201         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5202
5203 2012-05-23  Andreas Jaeger  <aj@suse.de>
5204             Maximilian Attems  <max@stro.at>
5205
5206         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5207         New macros.
5208
5209 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5210
5211         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5212         code so that pseudo_end is just ret and the stack pointer is
5213         correct also for static library in error case.
5214
5215 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5216
5217         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5218         move to syscalls.list.
5219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5223
5224         * manual/install.texi (Running make install): Do not mention Linux
5225         kernel version for which pt_chown is not needed.
5226         (Linux): Do not mention problems with nscd with 2.0 kernels.
5227         * INSTALL: Regenerated.
5228
5229 2012-05-23  Andreas Jaeger  <aj@suse.de>
5230
5231         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5232         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5233         macro.
5234         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5235         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5236         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5237         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5238         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5239         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5240         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5241         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5242         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5243         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5244         * sysdeps/unix/sysv/linux/bits/in.h
5245         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5246
5247 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5248
5249         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5250         (PREPARE_VERSION): Just use assert instead, it will be elided
5251         under [NDEBUG] anyway.
5252
5253 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5254
5255         * sysdeps/unix/sysv/linux/Makefile: Include
5256         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5257         (sysdep_routines): Remove sysctl.
5258         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5259         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5260         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5261         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5262         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5263
5264 2012-05-22  Andreas Jaeger  <aj@suse.de>
5265
5266         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5267         that pseudo_end is just ret and the stack pointer is correct also
5268         for static library in error case.
5269
5270 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5271
5272         [BZ #14122]
5273         * nss/nsswitch.c (defconfig_entries): New variable.
5274         (__nss_database_lookup): Don't leak defconfig entries.
5275         (nss_parse_service_list): Don't leak on error paths.
5276         (free_database_entries): New function.
5277         (free_defconfig): New function.
5278         (free_mem): Move common code to free_database_entries.
5279
5280 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5281
5282         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5283         Add arch_prctl.
5284         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5285
5286         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5287         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5288         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5289         New macro.
5290         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5291         (INTERNAL_SYSCALL_TYPES): Likewise.
5292         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5293         (LOAD_REGS_TYPES_[1-6]): Likewise.
5294         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5295         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5296
5297 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5298
5299         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5300         copysignl for GLIBC_2_0.
5301         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5302         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5303         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5304         logbl for GLIBC_2_0.
5305         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5306         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5307
5308 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5309
5310         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5311         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5312
5313         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5314         Use "neg %eax".
5315
5316         * time/mktime.c: Update copyright years.
5317
5318 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5319
5320         mktime: merge comment-quoting-style change from gnulib
5321         * time/mktime.c: Quote 'like this' in comments.
5322         The GNU coding standards suggest that we no longer quote `like this',
5323         as "`" and "'" are typically rendered asymmetrically nowadays.
5324         The typical gnulib style is to quote 'like this' when quoting
5325         code, and "like this" when quoting English.
5326
5327         * time/mktime.c (compile-command): Add "-I.".
5328
5329         mktime: merge mktime-internal.h change from gnulib
5330         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5331
5332         mktime: merge time_r change from gnulib
5333         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5334
5335         mktime: merge DEBUG change from gnulib
5336         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5337         case system <time.h> has a #define.
5338
5339         mktime: merge <sys/types.h> change from gnulib
5340         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5341         since <time.t> is now guaranteed to define time_t.
5342
5343         mktime: merge HAVE_CONFIG_H change from gnulib
5344         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5345
5346 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5347
5348         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5349         Use "neg %eax".
5350
5351         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5352         __rlim_t cast.
5353         (struct rusage): Use anonymous union to pad each field to
5354         __syscall_slong_t.
5355
5356 2012-05-21  David S. Miller  <davem@davemloft.net>
5357
5358         * Makefules (o-iterator): Remove .s cases.
5359         (compile-command.s): Delete.
5360         (COMPILE.s): Delete.
5361         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5362
5363 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5364
5365         * configure.in (libc_cv_predef_stack_protector): Only consider
5366         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5367         * configure: Regenerated.
5368
5369 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5370
5371         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5372         New macro.  Use R*LP on int and pointer.
5373         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5374         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5375         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5376         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5377
5378         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5379         [__WORDSIZE_TIME64_COMPAT32] instead of
5380         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5381         (struct utmp): Likewise.
5382         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5383         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5384         Renamed to ...
5385         (__WORDSIZE_TIME64_COMPAT32): This.
5386         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5387         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5388         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5389         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5390         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5391         (__WORDSIZE_TIME64_COMPAT32): New macro.
5392
5393 2012-05-21  Andreas Jaeger  <aj@suse.de>
5394
5395         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5396         only if [SHARED]. Add prototype for __wcschr_ia32.
5397
5398 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5399
5400         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5401         of %rbp unmolested in the jmp_buf while mangling the low bits.
5402         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5403         unmolested high bits of %rbp while demangling the low bits.
5404         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5405
5406 2012-05-21  Andreas Jaeger  <aj@suse.de>
5407
5408         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5409         * sunrpc/svc_simple.c: Use it for registerrpc.
5410         * sunrpc/xcrypt.c: Use it for passwd2des.
5411
5412         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5413
5414 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5415
5416         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5417         Don't define if [__SYSCALL_WORDSIZE != 32].
5418         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5419         New macro.
5420
5421 2012-05-21  Bruno Haible  <bruno@clisp.org>
5422             Andreas Jaeger  <aj@suse.de>
5423
5424         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5425         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5426         inptr and inend for must_buffer_ch.
5427         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5428         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5429         * stdio-common/Makefile (tests): Remove bug15.
5430         (bug15-ENV): Remove macro.
5431         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5432         anymore.
5433
5434 2012-05-19  Andreas Jaeger  <aj@suse.de>
5435             Roland McGrath  <roland@hack.frob.com>
5436
5437         * manual/contrib.texi: Completely rewritten. It contains now an
5438         alphabetical list of contributors and their contributions.
5439
5440 2012-05-21  Richard Henderson  <rth@twiddle.net>
5441
5442         * misc/getauxval.c (__getauxval): Use unsigned long int.
5443         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5444         (getauxval): Use unsigned long int.
5445
5446 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5447
5448         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5449
5450 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5451
5452         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5453         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5454         __alignof__ (long double).
5455
5456 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5457
5458         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5459
5460 2012-05-20  Richard Henderson  <rth@twiddle.net>
5461
5462         * misc/getauxval.c: New file.
5463         * misc/sys/auxv.h: New file.
5464         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5465         (routines): Add getauxval.
5466         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5467         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5468         * elf/dl-sysdep.c (_dl_auxv): Remove.
5469         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5470         * elf/dl-support.c (_dl_auxv): New variable.
5471         (_dl_aux_init): Initialize it.
5472         * manual/startup.texi (Auxiliary Vector): New node.
5473         * sysdeps/generic/bits/hwcap.h: New file.
5474         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5475         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5476         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5477         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5478         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5479         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5481         Update.
5482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5483         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5484         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5485         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5486         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5487         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5488         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5489         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5490
5491 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5492
5493         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5494
5495 2012-05-19  David S. Miller  <davem@davemloft.net>
5496
5497         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5498
5499 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5500
5501         [BZ #14123]
5502         * math/s_ccosh.c: Include <float.h>
5503         (__ccosh): Avoid internal overflow calculating sinh and cosh
5504         values before multiplying by sin and cos values.
5505         * math/s_ccoshf.c: Likewise.
5506         * math/s_ccoshl.c: Likewise.
5507         * math/s_csin.c: Likewise.
5508         * math/s_csinf.c: Likewise.
5509         * math/s_csinl.c: Likewise.
5510         * math/s_csinh.c: Likewise.
5511         * math/s_csinhf.c: Likewise.
5512         * math/s_csinhl.c: Likewise.
5513         * math/libm-test.inc (ccos_test): Add more tests.
5514         (ccosh_test): Likewise.
5515         (csin_test): Likewise.
5516         (csinh_test): Likewise.
5517         * sysdeps/i386/fpu/libm-test-ulps: Update.
5518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5519
5520 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5521
5522         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5523         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5524
5525         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5526
5527 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5528
5529         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5530         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5531         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5532         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5533         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5534         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5535         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5536         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5537         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5538         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5539         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5540         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5541         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5542         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5543         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5544         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5545         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5546         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5547         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5548         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5549         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5550         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5551         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5552         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5553         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5554         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5555         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5556         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5557         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5558         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5559         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5560
5561 2012-05-18  Andreas Jaeger  <aj@suse.de>
5562
5563         * csu/.gitignore: Delete.
5564
5565 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5566
5567         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5568         (timex): Use __syscall_slong_t.
5569
5570 2012-05-18  Andreas Jaeger  <aj@suse.de>
5571             Carlos O'Donell  <carlos_odonell@mentor.com>
5572
5573         * manual/install.texi (Configuring and compiling): Update
5574         description about files modified in the source directory.
5575         * INSTALL: Regenerated.
5576
5577 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5578
5579         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5580         value.  Use "or" to set return value to -1.
5581         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5582         negate return value.
5583
5584 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5585
5586         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5587         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5588         failure if the compiler has Graphite support disabled.
5589         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5590         Likewise.
5591         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5592         CFLAGS-memmove.c): Likewise.
5593         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5594         Likewise.
5595
5596 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5597
5598         * sysdeps/x86_64/x32/_itoa.h: New file.
5599
5600         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5601         getdents system call only if kernel and user dirents have the
5602         same d_ino and d_off.
5603
5604         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5605         LLONG_MAX != LONG_MAX.
5606         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5607         (_fitoa_word): Likewise.
5608
5609         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5610         years.
5611         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5612         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5613         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5614
5615         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5616         include <bits/wordsize.h>.  Check __x86_64__ instead of
5617         __WORDSIZE.
5618         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5619         if __x86_64__ is defined.  Use anonymous union on fpstate.
5620
5621         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5622         anonymous union.
5623
5624 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5625
5626         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5627         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5628         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5629         Refer to _rtld_local_ro instead of _rtld_global_ro.
5630         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5631         Likewise.
5632         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5633         Likewise.
5634         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5635         Likewise.
5636         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5637         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5638         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5639
5640         * sysdeps/powerpc/powerpc32/dl-machine.c
5641         (__elf_machine_runtime_setup) [PROF]: Don't reference
5642         _dl_prof_resolve.
5643
5644 2012-05-18  Andreas Jaeger  <aj@suse.de>
5645
5646         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5647         function only available for GCCs before 3.4 since GCC 3.4
5648         introduced a builtin.
5649         (lrint): Likewise.
5650         (llrintf): Likewise.
5651         (llrint): Likewise.
5652         (fmaxf): Likewise.
5653         (fmax): Likewise.
5654         (fminf): Likewise.
5655         (fmin): Likewise.
5656         (rint): Likewise.
5657         (rintf): Likewise.
5658         (nearbyint): Likewise.
5659         (nearbyintf): Likewise.
5660         (ceil): Likewise.
5661         (ceilf): Likewise.
5662         (floor): Likewise.
5663         (floorf): Likewise.
5664
5665 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5666
5667         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5668         on both fields and cast pointer to __syscall_ulong_t.
5669
5670         * bits/types.h (__fsword_t): New type.
5671         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5672         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5673         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5674         (__FSWORD_T_TYPE): Likewise.
5675         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5676         (__FSWORD_T_TYPE): Likewise.
5677         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5678         (__FSWORD_T_TYPE): Likewise.
5679         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5680         (__FSWORD_T_TYPE): Likewise.
5681         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5682         __SWORD_TYPE with __fsword_t.
5683         (statfs64): Likewise.
5684
5685 2012-05-17  David S. Miller  <davem@davemloft.net>
5686
5687         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5688
5689 2012-05-17  Andreas Jaeger  <aj@suse.de>
5690
5691         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5692         warning.
5693
5694 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5695
5696         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5697
5698 2012-05-17  Andreas Jaeger  <aj@suse.de>
5699
5700         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5701         when it is used.
5702
5703 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5704
5705         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5706
5707 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5708
5709         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5710         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5711
5712 2012-05-17  Andreas Jaeger  <aj@suse.de>
5713             Carlos O'Donell  <carlos_odonell@mentor.com>
5714
5715         [BZ #14059]
5716         * sysdeps/x86_64/multiarch/init-arch.h
5717         (bit_YMM_Usable): Rename to...
5718         (bit_AVX_Usable): ... this.
5719         (bit_FMA4_Usable): New macro.
5720         (bit_XMM_state): New macro.
5721         (bit_YMM_state): New macro.
5722         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5723         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5724         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5725         (CPUID_OSXSAVE): New macro.
5726         (CPUID_AVX): New macro.
5727         (CPUID_FMA4): New macro.
5728         (index_YMM_Usable): Rename to...
5729         (index_AVX_Usable): ... this.
5730         (HAS_AVX): Use HAS_ARCH_FEATURE.
5731         (HAS_FMA4): Likewise.
5732         (HAS_YMM_USABLE): Remove.
5733         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5734         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5735         are present.
5736         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5737         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5738         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5739         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5740         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5741
5742 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5743
5744         * math/libm-test.c: Support platforms without multiple rounding modes.
5745         * math/bug-nextafter.c: Support platforms without FP exceptions.
5746         * math/bug-nexttoward.c: Likewise.
5747         * math/test-fenv.c: Likewise.
5748         * math/test-misc.c: Likewise.
5749         * stdlib/bug-getcontext.c: Likewise.
5750
5751 2012-05-17  Andreas Jaeger  <aj@suse.de>
5752
5753         * manual/examples/search.c (critter_cmp): Change signature to
5754         avoid warnings.
5755         * manual/string.texi (Collation Functions): Likewise.
5756
5757 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5758
5759         * bits/types.h: Fold copyright years.
5760         * bits/typesizes.h: Likewise.
5761         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5762         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5763         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5764         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5765         * time/time.h: Likewise.
5766
5767 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5768
5769         [BZ #208]
5770         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5771         in instead of returning them.  Return void.
5772         (__libc_mallinfo): Accumulate over all arenas.
5773         (__malloc_stats): Adjust for change in int_mallinfo interface.
5774
5775 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5776
5777         [BZ #10375]
5778         * configure.in (NM): Add AC_CHECK_TOOL for it.
5779         (libc_extra_cflags): New substituted variable.
5780         Check for -fstack-protector being used implicitly.
5781         * configure: Regenerated.
5782         * config.make.in (config-extra-cflags): New variable,
5783         gets @libc_extra_cflags@.
5784         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5785
5786         [BZ #10375]
5787         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5788         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5789         * configure: Regenerated.
5790         * config.make.in (CPPUNDEFS): New substituted variable.
5791         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5792         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5793         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5794
5795 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5796
5797         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5798         (mq_attr): Use __syscall_slong_t.
5799
5800 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5801
5802         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5803         Check __x86_64__ instead of __WORDSIZE.
5804         (_STAT_VER_LINUX): Likewise.
5805         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5806         __syscall_ulong_t and __syscall_slong_t.
5807         (stat64): Likewise.
5808
5809 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5810
5811         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5812
5813 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5816
5817 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5818
5819         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5820         __syscall_ulong_t.
5821
5822         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5823         include <bits/wordsize.h>.  Check __x86_64__ instead of
5824         __WORDSIZE.
5825         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5826         defined.
5827         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5828
5829         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5830         include <bits/wordsize.h>.  Check __x86_64__ instead of
5831         __WORDSIZE.
5832         (user_regs_struct): Use "__extension__ unsigned long long"
5833         instead of "unsigned long" if __x86_64__ is defined.
5834         (user): Likewise.  Pad after pointer field if __ILP32__ is
5835         defined.
5836
5837 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5838
5839         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5840         versions 5 to 9.
5841         * configure: Regenerated.
5842         * manual/install.texi (texinfo): Increase version requirement to
5843         4.5 or later.
5844         * INSTALL: Regenerated.
5845
5846         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5847
5848 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5851
5852         * sysdeps/x86_64/x32/ffs.c: New file.
5853
5854         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5855         __syscall_ulong_t.
5856         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5857         defined.  Use __syscall_ulong_t.
5858         (shminfo): Use __syscall_ulong_t.
5859         (shm_info): Likewise.
5860
5861         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5862         __syscall_ulong_t.
5863
5864         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5865         <bits/wordsize.h>.
5866         (msgqnum_t): Use __syscall_ulong_t.
5867         (msglen_t): Likewise.
5868         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5869         __syscall_ulong_t.
5870
5871         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5872         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5873
5874         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5875
5876         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5877         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5878
5879         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5880         __syscall_slong_t.
5881
5882         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5883         include <bits/wordsize.h>.  Check __x86_64__ instead of
5884         __WORDSIZE.
5885
5886         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5887         "unsigned long long int" if __x86_64__ is defined.
5888         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5889
5890         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5891         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5892         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5893
5894         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5895         <stdint.h>.
5896         (GET_PC): Cast to uintptr_t first.
5897         (GET_FRAME): Likewise.
5898         (GET_STACK): Likewise.
5899
5900         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5901         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5902         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5903         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5904         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5905         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5906         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5907         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5908         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5909         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5910         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5911         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5912         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5913         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5914         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5915         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5916         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5917         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5918         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5919         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5920         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5921         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5922         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5923         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5924         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5925         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5926         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5927         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5928         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5929
5930 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5931
5932         * Makerules (+depfiles): Also collect depfiles from .oS in
5933         $(extra-objs).
5934         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5935         .oS, $(libnldbl-routines)).
5936
5937         * Makerules (native-compile-mkdep-flags): Define.
5938         * sunrpc/Makefile (extra-objs): Add $(addprefix
5939         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5940         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5941         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5942         calling $(make-target-directory).
5943
5944 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5945
5946         * bits/types.h (__snseconds_t): Removed.
5947         * time/time.h (struct timespec): Replace __snseconds_t with
5948         __syscall_slong_t.
5949         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5950         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5951         Likewise.
5952         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5953         (__SNSECONDS_T_TYPE): Likewise.
5954         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5955         (__SNSECONDS_T_TYPE): Likewise.
5956         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5957         (__SNSECONDS_T_TYPE): Likewise.
5958
5959 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5960
5961         * sysdeps/mach/hurd/bits/typesizes.h
5962         (__SYSCALL_SLONG_TYPE): New macro.
5963         (__SYSCALL_ULONG_TYPE): Likewise.
5964
5965 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5966
5967         * bits/types.h (__syscall_slong_t): New type.
5968         (__syscall_ulong_t): Likewise.
5969
5970         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5971         (__SYSCALL_ULONG_TYPE): Likewise.
5972         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5973         (__SYSCALL_SLONG_TYPE): Likewise.
5974         (__SYSCALL_ULONG_TYPE): Likewise.
5975         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5976         (__SYSCALL_SLONG_TYPE): Likewise.
5977         (__SYSCALL_ULONG_TYPE): Likewise.
5978         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5979         (__SYSCALL_SLONG_TYPE): Likewise.
5980         (__SYSCALL_ULONG_TYPE): Likewise.
5981
5982 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5983
5984         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5985         Add sigaltstack-offsets.sym.
5986         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5987         <sigaltstack-offsets.h>.
5988         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5989         longjmp_msg pointer.
5990         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5991         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5992         signal stack.
5993         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5994
5995 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5996
5997         * elf/stackguard-macros.h: Remove file.
5998         * sysdeps/generic/stackguard-macros.h: New file.
5999         * sysdeps/i386/stackguard-macros.h: Likewise.
6000         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6001         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6002         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6003         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6004         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6005         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6006         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6007         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6008         <elf/stackguard-macros.h>.
6009
6010         [BZ #14109]
6011         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6012         __aligned__ in attribute.
6013         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6014         (gregset_t): Likewise.
6015
6016 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6017
6018         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6019         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6020         * sysdeps/x86_64/x32/Implies-after: New file.
6021
6022 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6023
6024         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6025         and access return value for _dl_profile_fixup.  Use R10_LP to
6026         load frame size.
6027
6028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6031
6032 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6033
6034         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6035         * sysdeps/x86_64/x32/sysdep.h: New file.
6036
6037 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6038
6039         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6040         * sysdeps/x86_64/setjmp.S: Likewise.
6041
6042 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6043
6044         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6045         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6046         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6047         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6048         remove unused global constant.
6049
6050 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6051
6052         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6053         include of <not-cancel.h>.
6054
6055 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6056
6057         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6058
6059 2012-05-15  Jeff Law  <law@redhat.com>
6060             Andreas Jaeger  <aj@suse.de>
6061
6062         [BZ #13594]
6063         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6064         out from...
6065         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6066         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6067         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6068         code changing __hst_map_handle.map.
6069
6070 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6071
6072         * configure.in (sysnames): Look for Implies-before and Implies-after
6073         files.
6074         * configure: Regenerated.
6075
6076 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6077
6078         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6079         8-byte data alignment with LP_SIZE alignment.
6080
6081 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6082
6083         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6084         into R10_LP.
6085
6086 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6087
6088         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6089
6090 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6091
6092         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6093         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6094         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6095         Likewise.
6096         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6097
6098 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6099
6100         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6101         (stackinfo_sub_sp): Likewise.
6102
6103 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6104
6105         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6106         RAX_LP.
6107
6108 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6109
6110         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6111         into R*_LP.
6112
6113 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6114
6115         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6116         sizes into R*_LP.
6117
6118 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6119
6120         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6121
6122 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6123
6124         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6125         into R11_LP and load __x86_64_shared_cache_size_half into
6126         R8_LP.
6127
6128 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6129
6130         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6131         R8_LP.
6132
6133 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6134
6135         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6136         logb for POWER7.
6137         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6138         logbf for POWER7.
6139         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6140         logbl for POWER7.
6141         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6142         powerpc32/power7/fpu/s_logb.c via #include.
6143         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6144         powerpc32/power7/fpu/s_logbf.c via #include.
6145         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6146         powerpc32/power7/fpu/s_logbl.c via #include.
6147
6148 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6149
6150         * README.libm: Remove file.
6151
6152 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6153
6154         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6155         count for x32.  Use R*_LP and omit operand-size suffix.
6156
6157 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6158
6159         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6160         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6161         * sysdeps/x86_64/x32/shlib-versions: New file.
6162
6163 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6164
6165         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6166         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6167         Use _dl_fatal_printf instead.
6168
6169 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6170
6171         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6172         set if not set by the user.  Do not allow for being unset.
6173         * sysdeps/unix/sysv/linux/configure: Regenerated.
6174
6175 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6176
6177         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6178         the `q' suffix from lea and replace .quad with ASM_ADDR.
6179
6180 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6181
6182         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6183         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6184         instead of $17.
6185         (PTR_DEMANGLE): Likewise.
6186
6187 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6188
6189         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6190         (LP_OP): Likewise.
6191         (ASM_ADDR): Likewise.
6192         (RAX_LP): Likewise.
6193         (RBP_LP): Likewise.
6194         (RBX_LP): Likewise.
6195         (RCX_LP): Likewise.
6196         (RDI_LP): Likewise.
6197         (RSI_LP): Likewise.
6198         (RSP_LP): Likewise.
6199         (R8_LP): Likewise.
6200         (R9_LP): Likewise.
6201         (R10_LP): Likewise.
6202         (R10_LP): Likewise.
6203         (R11_LP): Likewise.
6204         (R12_LP): Likewise.
6205         (R13_LP): Likewise.
6206         (R14_LP): Likewise.
6207         (R15_LP): Likewise.
6208
6209 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6210
6211         * sysdeps/x86_64/x32/dl-machine.h: New file.
6212
6213 2012-05-14  Andreas Jaeger  <aj@suse.de>
6214
6215         * manual/Makefile (subdir): Remove export of subdir.
6216         (all): Remove target.
6217         (.PHONY): Remove all from list.
6218         (mkinstalldirs): Remove.
6219         (.PHONY): Remove installdirs from list.
6220         ($(inst_infodir)/libc.info): Use make-target-directory.
6221         (installdirs): Remove.
6222         (subdir_%): Remove.
6223         (glibc-targets): Remove.
6224         (lib): Remove.
6225         (stubs): Remove.
6226         ($(objpfx)stubs ../po/manual.pot): Remove.
6227         ($(objpfx)stamp%): Remove.
6228         (make-target-directory): Remove.
6229         (subdir_install): Remove.
6230         (routines): Remove.
6231         (aux): Remove.
6232         (sources): Remove.
6233         (objects): Remove.
6234         (headers): Remove.
6235
6236         [BZ #13750]
6237         * manual/.gitignore: Remove, it's not needed anymore.
6238         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6239         all files in it.
6240         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6241         directory.
6242         (texis): Renamed to $(objpfx)texis.
6243         (texis-path): New, contains path to generated files.
6244         (chapters.%): Use texis-path for complete path, add extra argument
6245         libc-texinfo.sh.
6246         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6247         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6248         (summary,texi, stamp-summary): Use complete path of
6249         files. Generate files in build dir.
6250         (dir-add.texi): Build in build dir.
6251         (libm-err.texi,stamp-libm-err): Likewise.
6252         (version.texi, stamp-version): Likewise.
6253         (.%c.texi): Likewise.
6254         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6255         (mostlyclean): Remove target.
6256         (realclean): Remove target.
6257         (generated): Add new variable with contents from mostlyclean and
6258         realclean, remove entries duplicated in common-mostlyclean, add
6259         stamp-libm-err and stamp-version.
6260         (generated-dirs): Add libc directory.
6261         ($(inst_infodir)/libc.info): Install files from build dir.
6262
6263         * manual/install.texi (Configuring and compiling): Adjust since
6264         the info files are not part of the tar ball anymore.
6265
6266 2012-05-14  Andreas Jaeger  <aj@suse.de>
6267
6268         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6269         variable.
6270
6271 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6272
6273         [BZ #13717]
6274         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6275         to 2.2.0 where earlier.
6276         * sysdeps/unix/sysv/linux/configure: Regenerated.
6277         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6278         Remove conditional code.
6279         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6280         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6281         Remove conditional code.
6282         [!__NR_lchown]: Likewise.
6283         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6284         [__NR_lchown]: Likewise.
6285         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6286         comment referencing __ASSUME_LCHOWN_SYSCALL.
6287         * sysdeps/unix/sysv/linux/i386/sigaction.c
6288         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6289         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6290         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6291         Remove conditional code.
6292         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6293         (__protocol_available): Remove #if 0 code.
6294         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6295         conditional code.
6296         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6297         * sysdeps/unix/sysv/linux/kernel-features.h
6298         (__ASSUME_GETCWD_SYSCALL): Don't define.
6299         (__ASSUME_REALTIME_SIGNALS): Likewise.
6300         (__ASSUME_PREAD_SYSCALL): Likewise.
6301         (__ASSUME_PWRITE_SYSCALL): Likewise.
6302         (__ASSUME_POLL_SYSCALL): Likewise.
6303         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6304         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6305         non-SPARC.
6306         (__ASSUME_SIOCGIFNAME): Don't define.
6307         (__ASSUME_MSG_NOSIGNAL): Likewise.
6308         (__ASSUME_SENDFILE): Define unconditionally.
6309         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6310         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6311         conditional code.
6312         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6313         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6314         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6315         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6316         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6317         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6318         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6320         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6321         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6323         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6324         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6326         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6327         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6329         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6330         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6332         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6333         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6335         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6336         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6338         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6339         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6341         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6342         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6343         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6344         Remove conditional code.
6345         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6346         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6347         Remove conditional code.
6348         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6349         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6350         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6351         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6352         Remove conditional code.
6353         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6354         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6355         Remove conditional code.
6356         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6357         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6358         Remove conditional code.
6359         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6360         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6361         Remove conditional code.
6362         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6363         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6364         Remove conditional code.
6365         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6366         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6367         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6368         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6369         * sysdeps/unix/sysv/linux/sigaction.c
6370         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6371         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6372         * sysdeps/unix/sysv/linux/sigpending.c
6373         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6374         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6375         * sysdeps/unix/sysv/linux/sigprocmask.c
6376         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6377         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6378         * sysdeps/unix/sysv/linux/sigsuspend.c
6379         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6380         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6381         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6382         (__libc_missing_rt_sigs): Remove.
6383         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6384         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6385         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6386         Remove conditional code.
6387         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6388         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6389         return 1.
6390         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6391         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6392         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6393         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6394
6395 2012-05-14  Andreas Jaeger  <aj@suse.de>
6396
6397         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6398         it's not used in glibc.
6399         (__coshm1): Likewise.
6400         (__acosh1p): Likewise.
6401         (__sgn): Likewise.
6402
6403         * manual/string.texi (Copying and Concatenation): Add missing
6404         variable in concat example.
6405         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6406
6407 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6408
6409         [BZ #14103]
6410         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6411         __builtin_clzl with __builtin_clzll.
6412
6413 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6414
6415         [BZ #14104]
6416         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6417         libc_freeres_ptr.
6418
6419 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6420
6421         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6422         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6423         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6424         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6425
6426 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6427
6428         * NEWS: Update ia64 info.
6429
6430 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6431
6432         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6433         used as bcopy.
6434
6435 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6436
6437         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6438         * sysdeps/unix/syscalls.list (dup3): Likewise.
6439         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6440         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6441
6442 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6443
6444         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6445         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6446
6447 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6448
6449         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6450         thread pointer.
6451         (TLS_IE): Use mov/add instead of movq/addq to load thread
6452         pointer.
6453         (TLS_GD_PREFIX): New.
6454         (TLS_GD): Use it.
6455
6456 2012-05-11  David S. Miller  <davem@davemloft.net>
6457
6458         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6459         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6460         (_FPU_SETCW): Likewise.
6461
6462 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6463
6464         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6465         is 32-byte aligned.
6466
6467 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6468
6469         [BZ #11837]
6470         * iconvdata/gb18030.c: Update tables.
6471         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6472         characters specially.
6473         (BODY for TO_LOOP): Add encoding of missing ranges.
6474
6475 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6476
6477         [BZ #13673]
6478         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6479         * sysdeps/mach/hurd/dup3.c: Likewise.
6480         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6481         * sysdeps/powerpc/memmove.c:: Likewise.
6482
6483 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6484
6485         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6486         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6487
6488 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6489
6490         * elf/elf.h (R_X86_64_RELATIVE64): New.
6491         (R_X86_64_NUM): Updated.
6492         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6493         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6494         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6495         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6496         tst-quad1pie tst-quad2pie
6497         (modules-names): Add tst-quadmod1 tst-quadmod2.
6498         ($(objpfx)tst-quad1): New dependency.
6499         ($(objpfx)tst-quad2): Likewise.
6500         ($(objpfx)tst-quad1pie): Likewise.
6501         ($(objpfx)tst-quad2pie): Likewise.
6502         * sysdeps/x86_64/tst-quad1.c: New file.
6503         * sysdeps/x86_64/tst-quad1pie.c: New file.
6504         * sysdeps/x86_64/tst-quad2.c: Likewise.
6505         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6506         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6507         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6508         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6509         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6510
6511 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6512
6513         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6514         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6515         * streams/stropts.h (t_scalar_t): Define type.
6516
6517         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6518         (_PATH_PRESERVE): Set to "/var/lib".
6519         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6520
6521         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6522         instead of int.
6523
6524         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6525         if __dir_mkfile succeeded.
6526
6527         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6528         checking for _hurd_dtablesize.  Unlock it right after having
6529         finished _hurd_dtable allocation.
6530
6531 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6532
6533         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6534         * sysdeps/mach/hurd/configure: Regenerated.
6535         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6536         special-casing to...
6537         * sysdeps/gnu/configure.in: ... this new file.
6538         * sysdeps/unix/sysv/linux/configure: Regenerated.
6539         * sysdeps/gnu/configure: New generated file.
6540
6541         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6542         for Linux: use nsec instead of usec, as well as:
6543         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6544         members of type struct timespec.
6545         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6546         New macros.
6547         (struct stat64): Likewise.
6548         (_STATBUF_ST_NSEC): New macro.
6549         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6550
6551         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6552         __strtoul_internal rather than strtoul.
6553
6554 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6555
6556         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6557         and reject them.
6558
6559 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6560
6561         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6562         which preserves existing values.
6563         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6564
6565 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6566
6567         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6568         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6569         greater than FD_SETSIZE.
6570
6571 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6572
6573         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6574         allocated, call __vm_protect to finish enabling the existing space, and
6575         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6576         allocate the remainder.
6577
6578 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6579
6580         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6581         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6582
6583 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6584
6585         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6586         sysdeps/mach/hurd/readlink.c.
6587
6588         * posix/tst-sysconf.c (posix_options): Only use
6589         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6590         _POSIX_SYNCHRONIZED_IO when they are defined
6591         * sysdeps/mach/hurd/bits/posix_opt.h:
6592         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6593         (_XOPEN_REALTIME): Undefine macro.
6594         (_XOPEN_REALTIME_THREADS): Undefine macro.
6595         (_XOPEN_SHM): Undefine macro.
6596         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6597         macro to -1.
6598         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6599         macro to -1.
6600         (_POSIX_ASYNC_IO): Undefine macro.
6601         (_POSIX_PRIORITIZED_IO): Undefine macro.
6602         (_POSIX_SPIN_LOCKS): Define macro to -1.
6603
6604         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6605         SA_NODEFER, SA_RESETHAND.
6606         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6607         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6608         F_DUPFD_CLOEXEC.
6609
6610 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6611
6612         * elf/Makefile (pldd-modules): Define unconditionally.
6613
6614 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6615
6616         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6617
6618 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6619
6620         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6621         Return ENOENT when name is empty.
6622         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6623
6624 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6625
6626         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6627
6628         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6629
6630 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6631
6632         Fix mlock in all cases except non-readable pages.
6633         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6634         instead of VM_PROT_ALL as parameter to __vm_wire function.
6635
6636         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6637         (__mkdir): When path is `/', just fail with EEXIST.
6638         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6639
6640 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6641
6642         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6643         <sys/uio.h> (for writev).
6644         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6645         and <sys/param.h> (for MIN).
6646
6647 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6648
6649         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6650         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6651         if interrupted.
6652
6653 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6654
6655         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6656         Depend on against $(link-rpcuserlibs).
6657
6658 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6659
6660         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6661         (__libc_stack_end): Do not use attribute_relro.
6662         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6663         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6664         to libthread-provided value.
6665         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6666         attribute_relro.
6667
6668 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6669
6670         [BZ #3748]
6671         * bits/libc-lock.h (__libc_once_get): New macro.
6672         * sysdeps/mach/bits/libc-lock.h: Likewise.
6673         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6674         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6675         instead of using implementation details.
6676
6677         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6678         * libio/freopen.c: Likewise.
6679         * libio/freopen64.c: Likewise.
6680         * misc/syslog.c: Likewise.
6681         * nscd/connections.c: Likewise.
6682         * nscd/netgroupcache.c: Likewise.
6683         * sysdeps/posix/getcwd.c: Likewise.
6684
6685 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6686
6687         * math/w_ilogbf.c: Add #include <limits.h>.
6688
6689 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6690
6691         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6692         path instead of returning without unlocking.
6693
6694         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6695         immediate-write ioctls.
6696         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6697
6698 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6699
6700         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6701         __builtin_frame_address instead of making assumptions about the
6702         location of the return address relative to DATA.  Force early load of
6703         the return address.
6704         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6705         __builtin_frame_address.
6706
6707         dup3 for GNU Hurd.
6708         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6709         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6710         implement dup3 and do some further code clean-ups.
6711         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6712         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6713
6714 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6715
6716         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6717
6718         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6719         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6720         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6721         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6722         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6723         d->port.lock.
6724
6725         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6726         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6727         when handler == SIG_ERR, not when handler != SIG_ERR.
6728
6729 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6730
6731         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6732         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6733         definitions.
6734
6735         accept4 for GNU Hurd.
6736         * include/sys/socket.h (__libc_accept4): New prototype.
6737         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6738         to implement __libc_accept4.
6739         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6740         __libc_accept4.
6741         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6742
6743         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6744         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6745         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6746         signal-defines.sym.
6747
6748 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6749
6750         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6751
6752 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6753
6754         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6755         assertion on O_CLOEXEC flag.
6756         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6757         * hurd/intern-fd.c: Likewise.
6758         * hurd/port2fd.c: Likewise.
6759
6760 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6761
6762         [BZ #3906]
6763         * bits/in.h (IPV6_PKTINFO): Define new macro.
6764         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6765
6766 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6767
6768         [BZ #13954]
6769         [BZ #13955]
6770         [BZ #13956]
6771         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6772         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6773         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6774         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6775         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6776         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6777         * math/libm-test.inc (logb_test) : Additional logb tests.
6778
6779 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6780             Andreas Jaeger  <aj@suse.de>
6781
6782         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6783         * configure: Regenerated.
6784         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6785         * config.make.in (link-obsolete-rpc): New substituted variable.
6786         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6787         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6788         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6789         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6790         so that libc.a contains the symbols.
6791         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6792         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6793         * sunrpc/auth_none.c: Likewise.
6794         * sunrpc/auth_unix.c: Likewise.
6795         * sunrpc/authdes_prot.c: Likewise.
6796         * sunrpc/authuxprot.c: Likewise.
6797         * sunrpc/clnt_gen.c: Likewise.
6798         * sunrpc/clnt_perr.c: Likewise.
6799         * sunrpc/clnt_raw.c: Likewise.
6800         * sunrpc/clnt_simp.c: Likewise.
6801         * sunrpc/clnt_tcp.c: Likewise.
6802         * sunrpc/clnt_udp.c: Likewise.
6803         * sunrpc/clnt_unix.c: Likewise.
6804         * sunrpc/des_crypt.c: Likewise.
6805         * sunrpc/des_soft.c: Likewise.
6806         * sunrpc/get_myaddr.c: Likewise.
6807         * sunrpc/key_call.c: Likewise.
6808         * sunrpc/key_prot.c: Likewise.
6809         * sunrpc/netname.c: Likewise.
6810         * sunrpc/pm_getmaps.c: Likewise.
6811         * sunrpc/pm_getport.c: Likewise.
6812         * sunrpc/pmap_clnt.c: Likewise.
6813         * sunrpc/pmap_prot.c: Likewise.
6814         * sunrpc/pmap_prot2.c: Likewise.
6815         * sunrpc/pmap_rmt.c: Likewise.
6816         * sunrpc/publickey.c: Likewise.
6817         * sunrpc/rpc_cmsg.c: Likewise.
6818         * sunrpc/rpc_common.c: Likewise.
6819         * sunrpc/rpc_dtable.c: Likewise.
6820         * sunrpc/rpc_prot.c: Likewise.
6821         * sunrpc/rpc_thread.c: Likewise.
6822         * sunrpc/rtime.c: Likewise.
6823         * sunrpc/svc.c: Likewise.
6824         * sunrpc/svc_auth.c: Likewise.
6825         * sunrpc/svc_raw.c: Likewise.
6826         * sunrpc/svc_run.c: Likewise.
6827         * sunrpc/svc_tcp.c: Likewise.
6828         * sunrpc/svc_udp.c: Likewise.
6829         * sunrpc/svc_unix.c: Likewise.
6830         * sunrpc/svcauth_des.c: Likewise.
6831         * sunrpc/xcrypt.c: Likewise.
6832         * sunrpc/xdr.c: Likewise.
6833         * sunrpc/xdr_array.c: Likewise.
6834         * sunrpc/xdr_float.c: Likewise.
6835         * sunrpc/xdr_intXX_t.c: Likewise.
6836         * sunrpc/xdr_mem.c: Likewise.
6837         * sunrpc/xdr_rec.c: Likewise.
6838         * sunrpc/xdr_ref.c: Likewise.
6839         * sunrpc/xdr_sizeof.c: Likewise.
6840         * sunrpc/xdr_stdio.c: Likewise.
6841
6842 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6843
6844         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6845         change.  Update copyright years.
6846
6847 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6848
6849         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6850
6851 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6852             Joseph Myers  <joseph@codesourcery.com>
6853             Paul Pluzhnikov  <ppluzhnikov@google.com>
6854
6855         [BZ #14012]
6856         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6857         requiring rpcgen.
6858         [cross-compiling] (extra-libs): Likewise.
6859         [cross-compiling] (extra-libs-others): Likewise.
6860         [cross-compiling] (librpcsvc-routines): Likewise.
6861         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6862         [cross-compiling] (omit-deps): Likewise.
6863         (sunrpc-CPPFLAGS): New variable.
6864         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6865         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6866         (cross-rpcgen-objs): New variable.
6867         (extra-objs): Append $(cross-rpcgen-objs).
6868         ($(cross-rpcgen-objs)): New rule.
6869         ($(objpfx)cross-rpcgen): Likewise.
6870         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6871         comment.
6872         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6873         ($(objpfx)x%.stmp): Likewise.
6874         * sunrpc/proto.h [IS_IN_build] (_): Define.
6875         [IS_IN_build] (_libc_intl_domainname): Likewise.
6876
6877 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6878
6879         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6880         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6881         and R_X86_64_TPOFF64.
6882
6883 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6884
6885         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6886         sysdeps/unix/sysv/syscalls.list.
6887         (stime): Likewise.
6888         (utime): Likewise.
6889         * sysdeps/unix/sysv/syscalls.list: Remove file.
6890
6891 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6892
6893         [BZ #3440]
6894         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6895         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6896         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6897         (__LC_IDENTIFICATION): Make these macros useful in #if
6898         expressions, as required by C99.
6899
6900 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6901
6902         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6903         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6904         after this.
6905
6906 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6907
6908         * stdlib/longlong.h: Updated from GCC.
6909
6910 2012-05-09  Andreas Jaeger  <aj@suse.de>
6911
6912         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6913         default is first entry.
6914         (run_mode): Set type.
6915         (main): Remove informal message about syslog.
6916         (options): Fix typo.
6917
6918         [BZ #14053]
6919         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6920         to asm.
6921         (lrint): Likewise.
6922         (llrintf): Likewise.
6923         (llrint): Likewise.
6924         (rint): Likewise.
6925         (rintf): Likewise.
6926         (nearbyint): Likewise.
6927         (nearbyintf): Likewise.
6928
6929 2012-05-09  Andreas Jaeger  <aj@suse.de>
6930             Pedro Alves  <palves@redhat.com>
6931
6932         * nscd/nscd.c (run_mode): Use enum.
6933         (main): Cleanup coding style issue.
6934
6935 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6936             Andreas Jaeger  <aj@suse.de>
6937
6938         * nscd/nscd.c (go_background): Replaced with...
6939         (run_mode): ... this.
6940         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6941         (options): Add -F --foreground.
6942         (main): Implement it.
6943         (parse_opt): Parse it.
6944
6945 2012-05-09  Andreas Jaeger  <aj@suse.de>
6946
6947         [BZ #14083]
6948         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6949         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6950         -Wconversion warning.
6951         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6952         Likewise.
6953
6954 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6955
6956         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6957         == 0.
6958         (LC_ALL): Use macro-int-constant.
6959         (LC_COLLATE): Likewise.
6960         (LC_CTYPE): Likewise.
6961         (LC_MESSAGES): Likewise.
6962         (LC_MONETARY): Likewise.
6963         (LC_NUMERIC): Likewise.
6964         (LC_TIME): Likewise.
6965         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6966         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6967         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6968         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6969         Specify type.
6970         [C99-based standards] (float_t): Expect type.
6971         [C99-based standards] (double_t): Expect type.
6972         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6973         type.
6974         [C99-based standards] (HUGE_VALL): Likewise.
6975         [C99-based standards] (INFINITY): Likewise.
6976         [C99-based standards] (NAN): Likewise.
6977         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6978         [C99-based standards] (FP_NAN): Likewise.
6979         [C99-based standards] (FP_NORMAL): Likewise.
6980         [C99-based standards] (FP_SUBNORMAL): Likewise.
6981         [C99-based standards] (FP_ZERO): Likewise.
6982         [C99-based standards] (FP_FAST_FMA): Use
6983         optional-macro-int-constant.  Specify type.  Require == 1.
6984         [C99-based standards] (FP_FAST_FMAF): Likewise.
6985         [C99-based standards] (FP_FAST_FMAL): Likewise.
6986         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6987         [C99-based standards] (FP_ILOGBNAN): Likewise.
6988         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6989         Specify type.
6990         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6991         [C99-based standards] (math_errhandling): Specify type.
6992         [ISO99 || ISO11] (signgam): Do not allow.
6993         [non-C99-based standards] (copysignf): Do not allow.
6994         [non-C99-based standards] (exp2f): Likewise.
6995         [non-C99-based standards] (log2f): Likewise.
6996         [non-C99-based standards] (modff): Allow.
6997         [non-C99-based standards] (erff): Do not allow.
6998         [non-C99-based standards] (erfcf): Likewise.
6999         [non-C99-based standards] (gammaf): Likewise.
7000         [non-C99-based standards] (hypotf): Likewise.
7001         [non-C99-based standards] (j0f): Likewise.
7002         [non-C99-based standards] (j1f): Likewise.
7003         [non-C99-based standards] (jnf): Likewise.
7004         [non-C99-based standards] (lgammaf): Likewise.
7005         [non-C99-based standards] (tgammaf): Likewise.
7006         [non-C99-based standards] (y0f): Likewise.
7007         [non-C99-based standards] (y1f): Likewise.
7008         [non-C99-based standards] (ynf): Likewise.
7009         [non-C99-based standards] (isnanf): Likewise.
7010         [non-C99-based standards] (acoshf): Likewise.
7011         [non-C99-based standards] (asinhf): Likewise.
7012         [non-C99-based standards] (atanhf): Likewise.
7013         [non-C99-based standards] (cbrtf): Likewise.
7014         [non-C99-based standards] (expm1f): Likewise.
7015         [non-C99-based standards] (ilogbf): Likewise.
7016         [non-C99-based standards] (log1pf): Likewise.
7017         [non-C99-based standards] (logbf): Likewise.
7018         [non-C99-based standards] (nextafterf): Likewise.
7019         [non-C99-based standards] (remainderf): Likewise.
7020         [non-C99-based standards] (rintf): Likewise.
7021         [non-C99-based standards] (scalbf): Likewise.
7022         [non-C99-based standards] (copysignl): Likewise.
7023         [non-C99-based standards] (exp2l): Likewise.
7024         [non-C99-based standards] (log2l): Likewise.
7025         [non-C99-based standards] (modfl): Allow.
7026         [non-C99-based standards] (erfl): Do not allow.
7027         [non-C99-based standards] (erfcl): Likewise.
7028         [non-C99-based standards] (gammal): Likewise.
7029         [non-C99-based standards] (hypotl): Likewise.
7030         [non-C99-based standards] (j0l): Likewise.
7031         [non-C99-based standards] (j1l): Likewise.
7032         [non-C99-based standards] (jnl): Likewise.
7033         [non-C99-based standards] (lgammal): Likewise.
7034         [non-C99-based standards] (tgammal): Likewise.
7035         [non-C99-based standards] (y0l): Likewise.
7036         [non-C99-based standards] (y1l): Likewise.
7037         [non-C99-based standards] (ynl): Likewise.
7038         [non-C99-based standards] (isnanl): Likewise.
7039         [non-C99-based standards] (acoshl): Likewise.
7040         [non-C99-based standards] (asinhl): Likewise.
7041         [non-C99-based standards] (atanhl): Likewise.
7042         [non-C99-based standards] (cbrtl): Likewise.
7043         [non-C99-based standards] (expm1l): Likewise.
7044         [non-C99-based standards] (ilogbl): Likewise.
7045         [non-C99-based standards] (log1pl): Likewise.
7046         [non-C99-based standards] (logbl): Likewise.
7047         [non-C99-based standards] (nextafterl): Likewise.
7048         [non-C99-based standards] (remainderl): Likewise.
7049         [non-C99-based standards] (rintl): Likewise.
7050         [non-C99-based standards] (scalbl): Likewise.
7051         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7052         [non-C99-based standards] (FP_*): Do not allow.
7053         [C99-based standards] (FP_*): Change to
7054         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7055         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7056         allow.
7057         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7058         (SIG_ERR): Likewise.
7059         [X/Open-based standards] (SIG_HOLD): Likewise.
7060         (SIG_IGN): Likewise.
7061         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7062         positive value.
7063         (SIGFPE): Likewise.
7064         (SIGILL): Likewise.
7065         (SIGINT): Likewise.
7066         (SIGSEGV): Likewise.
7067         (SIGTER): Likewise.
7068         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7069         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7070         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7071         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7072         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7073         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7074         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7075         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7076         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7077         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7078         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7079         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7080         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7081         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7082         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7083         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7084         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7085         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7086         [X/Open-based standards] (SIGTRAP): Likewise.
7087         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7088         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7089         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7090         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7091         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7092         allow.
7093
7094 2012-05-08  Ian Wienand  <ianw@vmware.com>
7095
7096         [BZ #14080]
7097         * time/tzset.c (__tzset_parse_tz): Update default rules for
7098         daylight time changes in the Energy Policy Act of 2005.
7099
7100 2012-05-09  Andreas Jaeger  <aj@suse.de>
7101
7102         [BZ #13983]
7103         * elf/ldconfig.c (parse_conf): Change string to make clear that
7104         ldconfig only issued a warning if ld.so.conf does not exist.
7105
7106 2012-05-08  David S. Miller  <davem@davemloft.net>
7107
7108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7109         movxtod instead of popping the value on the stack.
7110
7111         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7112
7113 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7114
7115         * config.h.in: Add HAVE_ARM_PCS_VFP.
7116
7117 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7118
7119         [BZ #13979]
7120         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7121         checking but the checks are disabled for any reason.
7122
7123 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7124
7125         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7126         and ELF64_R_TYPE with ELFW(R_TYPE).
7127
7128 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7129
7130         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7131         (ulimit): Likewise.
7132
7133         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7134         (settimeofday): Likewise.
7135
7136 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7137
7138         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7139         a struct th_u2 inside the union, and move tu_block/tu_code into
7140         a new th_u3 union of tu_block/tu_code inside of that.  Move
7141         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7142         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7143         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7144         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7145         (th_stuff): Change to th_u1.tu_stuff.
7146         (th_data): Define.
7147         (th_msg): Change to th_u1.th_u2.tu_data.
7148
7149 2012-05-07  David S. Miller  <davem@davemloft.net>
7150
7151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7152
7153         [BZ #14074]
7154         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7155         (SETUP_PIC_REG): Use it.
7156         (SETUP_PIC_REG_LEAF): Use it.
7157
7158 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7159
7160         [BZ #13885]
7161         [BZ #13923]
7162         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7163         USE_AS_EXPM1L.
7164         (EXPL_FINITE): Likewise.
7165         (FLDLOG): Likewise.
7166         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7167         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7168         e_expl.S.
7169         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7170         USE_AS_EXPM1L.
7171         (EXPL_FINITE): Likewise.
7172         (FLDLOG): Likewise.
7173         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7174         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7175         e_expl.S.
7176         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7177         test of -max_value argument for long double.
7178         * sysdeps/i386/fpu/libm-test-ulps: Update.
7179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7180
7181 2012-05-06  David S. Miller  <davem@davemloft.net>
7182
7183         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7184         quad soft-float symbols whose references which are compiler
7185         generated.
7186         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7187
7188 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7189
7190         [BZ #13884]
7191         [BZ #13914]
7192         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7193         USE_AS_EXP10L.
7194         (EXPL_FINITE): Likewise.
7195         (FLDLOG): Likewise.
7196         (c0): Likewise.
7197         (c1): Likewise.
7198         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7199         Adjust comments for base varying.
7200         (__expl_finite): Change alias to EXPL_FINITE.
7201         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7202         e_expl.S.
7203         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7204         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7205         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7206         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7207         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7208         USE_AS_EXP10L.
7209         (EXPL_FINITE): Likewise.
7210         (FLDLOG): Likewise.
7211         (c0): Likewise.
7212         (c1): Likewise.
7213         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7214         Adjust comments for base varying.
7215         (__expl_finite): Change alias to EXPL_FINITE.
7216         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7217         tests for bugs.
7218         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7219
7220         [BZ #14064]
7221         * math/libm-test.inc (check_float_internal): Correct ulp
7222         calculation for subnormal expected results.
7223
7224 2012-05-06  Andreas Jaeger  <aj@suse.de>
7225
7226         * Makeconfig (+math-flags): New, set to -frounding-math.
7227         (+cflags): Add +math-flags so that all of glibc gets compiled with
7228         it.
7229
7230         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7231
7232 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7233
7234         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7235         Disable one test.
7236
7237         [BZ #13787]
7238         [BZ #13922]
7239         [BZ #14036]
7240         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7241         (__ieee754_expl): Allow for and saturate large arguments.
7242         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7243         (u_threshold): Likewise.
7244         (__exp): Call __ieee754_exp before checking for overflow and
7245         underflow.
7246         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7247         (u_threshold): Likewise.
7248         (__expf): Call __ieee754_expf before checking for overflow and
7249         underflow.
7250         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7251         (u_threshold): Likewise.
7252         (__expl): Call __ieee754_expl before checking for overflow and
7253         underflow.
7254         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7255         (__ieee754_expl): Allow for and saturate large arguments.
7256         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7257         missing overflow exception on overflow.
7258         (expm1_test): Do not allow missing overflow exception on overflow.
7259
7260         * sysdeps/i386/fpu/e_expl.c: Move to ...
7261         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7262         rather than using inline asm.
7263         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7264         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7265         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7266
7267         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7268         (nice): Likewise.
7269         (poll): Likewise.
7270         (signal): Likewise.
7271         (time): Likewise.
7272         (times): Likewise.
7273
7274 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7275
7276         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7277         sysdeps/unix/common/syscalls.list.
7278         (fchmod): Likewise.
7279         (fchown): Likewise.
7280         (ftruncate): Likewise.
7281         (getrusage): Likewise.
7282         (gettimeofday): Likewise.
7283         (setpgid): Likewise.
7284         (setregid): Likewise.
7285         (setreuid): Likewise.
7286         (sigaction): Likewise.
7287         (truncate): Likewise.
7288         (vhangup): Likewise.
7289         * sysdeps/unix/common/syscalls.list: Remove file.
7290         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7291         * sysdeps/unix/sysv/linux/Implies: Likewise.
7292
7293 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7294
7295         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7296         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7297         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7298         Moved to ...
7299         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7300         Here.
7301         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7302         to ...
7303         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7304         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7305         to ...
7306         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7307         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7308         to ...
7309         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7310         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7311         to ...
7312         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7313         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7314         to ...
7315         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7316         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7317         to ...
7318         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7319         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7320         to ...
7321         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7322         Here.
7323         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7324         to ...
7325         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7326         Here.
7327         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7328         to ...
7329         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7330         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7331         Moved to ...
7332         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7333         Here.
7334         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7335         to ...
7336         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7337
7338 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7339
7340         * sysdeps/unix/common/bits/dirent.h: Remove file.
7341         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7342
7343         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7344         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7345         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7346         * sysdeps/unix/bsd/isatty.c: Likewise.
7347         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7348         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7349         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7350
7351 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7352
7353         [BZ #13563]
7354         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7355         long double comparison inaccuracies.
7356         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7358
7359 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7360
7361         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7362         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7363
7364 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7365
7366         [BZ #14049]
7367         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7368         nonzero digits before rounding a hex value.
7369         * stdlib/tst-strtod.c (tests): Add another test.
7370
7371 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7372
7373         * sysdeps/s390/fpu/libm-test-ulps: Update.
7374
7375 2012-05-03  Andreas Jaeger  <aj@suse.de>
7376
7377         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7378         does not get optimized out.
7379         (malloc_opt_barrier): New.
7380
7381 2012-05-03  Andreas Jaeger  <aj@suse.de>
7382             Roland McGrath  <roland@hack.frob.com>
7383
7384         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7385         intermediate file deletion.
7386         (generated): Add .symlist files.
7387
7388 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7389
7390         [BZ #13775]
7391         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7392         Redirect under this condition.
7393         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7394         [__USE_GNU] (__dprintf_chk): Not under this condition.
7395         [__USE_GNU] (__vdprintf_chk): Likewise.
7396         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7397         under this condition.
7398         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7399         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7400         [__USE_XOPEN2K8] (vdprintf): Likewise.
7401         [__USE_GNU] (__dprintf_chk): Not under this condition.
7402         [__USE_GNU] (__vdprintf_chk): Likewise.
7403         [__USE_GNU] (dprintf): Likewise.
7404         [__USE_GNU] (vdprintf): Likewise.
7405
7406 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7407
7408         * elf/Makefile (common-generated): Set this instead of generated for
7409         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7410         $(all-built-dso)-derived lists.
7411
7412 2012-05-03  Andreas Jaeger  <aj@suse.de>
7413
7414         * sysdeps/i386/fpu/libm-test-ulps: Update.
7415
7416         * FAQ: Removed.
7417         * FAQ.in: Likewise.
7418         * scripts/gen-FAQ.pl: Likewise.
7419         * manual/install.texi (Installation): Point to online location of
7420         FAQ.
7421         * Makefile (files-for-dist): Remove FAQ.
7422         (FAQ): Remove.
7423
7424 2012-05-02  Allan McRae  <allan@archlinux.org>
7425
7426         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7427         (LDFLAGS-reldepmod5.so): Likewise.
7428         (LDFLAGS-reldep6mod1.so): Likewise.
7429         (LDFLAGS-reldep6mod4.so): Likewise.
7430         (LDFLAGS-reldep8mod3.so): Likewise.
7431         (LDFLAGS-unload4mod1.so): Likewise.
7432         (LDFLAGS-unload4mod2.so): Likewise.
7433         (LDFLAGS-tst-initorder): Likewise.
7434         (LDFLAGS-tst-initordera2.so): Likewise.
7435         (LDFLAGS-tst-initordera3.so): Likewise.
7436         (LDFLAGS-tst-initordera4.so): Likewise.
7437         (LDFLAGS-tst-initorderb2.so): Likewise.
7438         (LDFLAGS-noload): Likewise.
7439         (LDFLAGS-next): Likewise.
7440         (LDFLAGS-order2mod1.so): Likewise.
7441         (LDFLAGS-order2mod2.so): Likewise.
7442         (LDFLAGS-tst-initorder2): Likewise.
7443         (LDFLAGS-tst-initorder2a.so): Likewise.
7444         (LDFLAGS-tst-initorder2b.so): Likewise.
7445         (LDFLAGS-tst-initorder2c.so): Likewise.
7446         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7447
7448 2012-05-02  David S. Miller  <davem@davemloft.net>
7449
7450         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7451
7452 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7453
7454         [BZ #14055]
7455         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7456
7457 2012-05-02  Andreas Jaeger  <aj@suse.de>
7458
7459         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7460         since we manipulate rounding mode.
7461         (CPPFLAGS-test-idouble.c): Likewise.
7462         (CPPFLAGS-test-ifloat.c): Likewise.
7463         (CFLAGS-test-ldouble.c): Likewise.
7464         (CFLAGS-test-double.c): Likewise.
7465         (CFLAGS-test-float.c): Likewise.
7466         (CFLAGS-test-misc.c): Likewise.
7467         (CFLAGS-test-test-fenv.c): Likewise.
7468
7469 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7470
7471         [BZ #2550]
7472         [BZ #2570]
7473         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7474         comparisons to determine direction to adjust input.
7475
7476 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7477
7478         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7479         output to the target.
7480
7481         * scripts/localplt.awk: New file.
7482         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7483         (check-localplt-CFLAGS): Variable removed.
7484         ($(all-built-dso:=.jmprel)): New static pattern rule.
7485         (generated): Add those targets.
7486         (localplt-built-dso): New variable.
7487         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7488
7489         * elf/check-localplt.c: File removed.
7490
7491         * scripts/check-execstack.awk: New file.
7492         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7493         (check-execstack-CFLAGS): Variable removed.
7494         ($(objpfx)check-execstack.h): Target removed.
7495         ($(objpfx)execstack-default): New target.
7496         (generated): Add that instead of check-execstack.h.
7497         ($(all-built-dso:=.phdr)): New static pattern rule.
7498         (generated): Add those targets.
7499         * elf/check-execstack.c: File removed.
7500
7501         * scripts/check-textrel.awk: New file.
7502         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7503         (check-textrel-CFLAGS): Variable removed.
7504         (all-built-dso): Use := to define.o
7505         ($(all-built-dso:=.dyn)): New static pattern rule.
7506         (generated): Add those targets.
7507         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7508         * config.make.in (READELF): New substituted variable.
7509         * elf/check-textrel.c: File removed.
7510
7511 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7512
7513         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7514         allow.
7515         * conform/data/ctype.h-data [C99-based standards] (isblank):
7516         Expect function.
7517         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7518         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7519         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7520         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7521         Specify type.  Require positive value.
7522         (EILSEQ): Likewise.
7523         (ERANGE): Likewise.
7524         [ISO || POSIX] (EILSEQ): Do not expect.
7525         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7526         Specify type.  Require positive value.
7527         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7528         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7529         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7530         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7531         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7532         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7533         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7534         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7535         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7536         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7537         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7538         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7539         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7540         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7541         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7542         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7543         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7544         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7545         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7546         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7547         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7548         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7549         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7550         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7551         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7552         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7553         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7554         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7555         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7556         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7557         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7558         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7559         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7560         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7561         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7562         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7563         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7564         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7565         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7566         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7567         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7568         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7569         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7570         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7571         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7572         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7573         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7574         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7575         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7576         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7577         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7578         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7579         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7580         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7581         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7582         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7583         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7584         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7585         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7586         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7587         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7588         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7589         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7590         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7591         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7592         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7593         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7594         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7595         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7596         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7597         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7598         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7599         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7600         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7601         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7602         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7603         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7604         Require >= 2.
7605         (FLT_ROUNDS): Expect as macro, not constant.
7606         (FLT_MANT_DIG): Use macro-int-constant.
7607         (DBL_MANT_DIG): Likewise.
7608         (LDBL_MANT_DIG): Likewise.
7609         (FLT_DIG): Likewise.
7610         (DBL_DIG): Likewise.
7611         (LDBL_DIG): Likewise.
7612         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7613         (DBL_MIN_EXP): Likewise.
7614         (LDBL_MIN_EXP): Likewise.
7615         (FLT_MAX_EXP): Use macro-int-constant.
7616         (DBL_MAX_EXP): Likewise.
7617         (LDBL_MAX_EXP): Likewise.
7618         (FLT_MAX_10_EXP): Likewise.
7619         (DBL_MAX_10_EXP): Likewise.
7620         (LDBL_MAX_10_EXP): Likewise.
7621         (FLT_MAX): Use macro-constant.
7622         (DBL_MAX): Likewise.
7623         (LDBL_MAX): Likewise.
7624         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7625         (DBL_EPSILON): Likewise.
7626         (LDBL_EPSILON): Likewise.
7627         (FLT_MIN): Likewise.
7628         (DBL_MIN): Likewise.
7629         (LDBL_MIN): Likewise.
7630         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7631         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7632         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7633         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7634         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7635         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7636         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7637         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7638         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7639         [ISO11] (FLT_TRUE_MIN): Likewise.
7640         [ISO11] (LDBL_TRUE_MIN): Likewise.
7641         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7642         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7643         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7644         (SCHAR_MAX): Likewise.
7645         (UCHAR_MAX): Likewise.
7646         (CHAR_MIN): Likewise.
7647         (CHAR_MAX): Likewise.
7648         (MB_LEN_MAX): Use macro-int-constant.
7649         (SHRT_MIN): Use macro-int-constant.  Specify type.
7650         (SHRT_MAX): Likewise.
7651         (USHRT_MAX): Likewise.
7652         (INT_MAX): Likewise.
7653         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7654         bound negative.
7655         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7656         bound with "U".
7657         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7658         bound with "L".
7659         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7660         bound negative.  Suffix upper bound with "L".
7661         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7662         bound with "UL".
7663         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7664         Specify type.
7665         [C99-based standards] (LLONG_MAX): Likewise.
7666         [C99-based standards] (ULLONG_MAX): Likewise.
7667         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7668         == 0.
7669         [ISO11] (max_align_t): Require type.
7670         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7671
7672         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7673         from $CFLAGS, without defining away __attribute__ calls.
7674         (checknamespace): Use $CFLAGS_namespace.
7675
7676         * conform/conformtest.pl (@keywords): Only include C99 keywords
7677         for standards based on C99 or C11.
7678
7679         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7680         Disable tests.
7681         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7682         UNIX98]: Likewise.
7683
7684         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7685         usability of symbols in #if.
7686
7687         * conform/conformtest.pl: If macro or constant types start
7688         "promoted:", expect the symbol to be of the following type
7689         promoted by the integer promotions.
7690
7691         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7692         in one place.  Also handle "macro-constant".
7693
7694         * conform/conformtest.pl: Only accept expected macro values with
7695         "==".  Parse all "macro" lines in one place.
7696         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7697
7698         * conform/conformtest.pl: Handle braced types on "constant" lines
7699         instead of handling "typed-constant".
7700         * conform/data/signal.h-data: Use "constant" instead of
7701         "typed-constant".
7702
7703         * conform/conformtest.pl: Handle "optional-" at start of lines in
7704         one place rather than duplicating several cases.  Handle each
7705         format of "macro" line with initial "optional-".
7706
7707         * conform/conformtest.pl: Only accept expected constant or
7708         optional-constant values with "==".  Parse all "constant" lines in
7709         one place.  Parse all "optional-constant" lines in one place.
7710         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7711         * conform/data/fmtmsg.h-data: Likewise.
7712         * conform/data/netinet/in.h-data: Likewise.
7713         * conform/data/tar.h-data: Likewise.
7714         * conform/data/limits.h-data: Use "==" form on "constant" and
7715         "optional-constant" lines.
7716
7717         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7718         Use -std=c99 for XOPEN2K.
7719         (@knownproblems): Remove.
7720         (newtoken): Don't check %isknown.
7721
7722         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7723         Do not expect macro.
7724         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7725         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7726         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7727         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7728         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7729         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7730         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7731         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7732         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7733         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7734         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7735         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7736         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7737         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7738         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7739         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7740         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7741         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7742         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7743         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7744         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7745         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7746         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7747         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7748         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7749         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7750         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7751         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7752         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7753         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7754         [XPG3] (acosh): Likewise.
7755         [XPG3] (asinh): Likewise.
7756         [XPG3] (atanh): Likewise.
7757         [XPG3] (cbrt): Likewise.
7758         [XPG3] (expm1): Likewise.
7759         [XPG3] (ilogb): Likewise.
7760         [XPG3] (log1p): Likewise.
7761         [XPG3] (logb): Likewise.
7762         [XPG3] (nextafter): Likewise.
7763         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7764         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7765         [XPG3] (remainder): Likewise.
7766         [XPG3] (rint): Likewise.
7767         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7768         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7769         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7770         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7771         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7772         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7773         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7774         [UNIX98 || XOPEN2K] (scalb): Expect.
7775         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7776         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7777         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7778         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7779         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7780         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7781         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7782         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7783         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7784         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7785         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7786         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7787         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7788         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7789         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7790         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7791         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7792         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7793         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7794         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7795         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7796         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7797         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7798         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7799         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7800         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7801         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7802         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7803         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7804         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7805         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7806         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7807         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7808         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7809         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7810         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7811         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7812         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7813         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7814         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7815         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7816         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7817         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7818         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7819         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7820         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7821         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7822         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7823         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7824         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7825         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7826         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7827         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7828         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7829         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7830         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7831         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7832         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7833         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7834         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7835         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7836         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7837         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7838         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7839         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7840         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7841         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7842         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7843         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7844         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7845         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7846         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7847         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7848         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7849         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7850         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7851         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7852         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7853         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7854         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7855         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7856         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7857         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7858         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7859         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7860         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7861         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7862         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7863         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7864         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7865         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7866         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7867         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7868         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7869         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7870         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7871         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7872         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7873         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7874         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7875         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7876         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7877         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7878         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7879         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7880         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7881         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7882         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7883         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7884         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7885         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7886         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7887         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7888         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7889         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7890         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7891         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7892         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7893         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7894         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7895         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7896         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7897         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7898         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7899         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7900         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7901         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7902         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7903         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7904         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7905         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7906         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7907         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7908         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7909         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7910         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7911         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7912
7913         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7914         _XOPEN_SOURCE_EXTENDED for XPG4.
7915
7916         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7917
7918         * Makeconfig (localtime): Remove variable.
7919         (inst_localtime-file): Likewise.
7920
7921 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7922
7923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7924         Update.
7925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7926         Update.
7927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7928         Update.
7929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7930         Update.
7931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7932         Update.
7933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7934         Update.
7935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7936         Update.
7937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7938         Update.
7939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7940         Update.
7941
7942 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7943
7944         [BZ #2550]
7945         [BZ #2570]
7946         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7947         comparisons to determine direction to adjust input.
7948         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7949         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7950         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7951         Likewise.
7952         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7953         Likewise.
7954         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7955         Likewise.
7956         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7957         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7958         Likewise.
7959         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7960         Likewise.
7961         * math/libm-test.inc (nexttoward_test): Add more tests.
7962
7963 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7964
7965         [BZ #14040]
7966         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7967         in version GLIBC_2.1, not GLIBC_2.0.
7968         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7969         Likewise.
7970
7971 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7972
7973         [BZ #13942]
7974         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7975         (1 - x) * (1 + x).
7976         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7977         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7978         * math/libm-test.inc (acos_test): Add more tests.
7979         (asin_test): Likewise.
7980         * sysdeps/i386/fpu/libm-test-ulps: Update.
7981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7982
7983         [BZ #14034]
7984         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7985         of square root.
7986         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7987         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7988         * math/libm-test.inc (acos_test_tonearest): New function.
7989         (acos_test_towardzero): Likewise.
7990         (acos_test_downward): Likewise.
7991         (acos_test_upward): Likewise.
7992         (asin_test_tonearest): Likewise.
7993         (asin_test_towardzero): Likewise.
7994         (asin_test_downward): Likewise.
7995         (asin_test_upward): Likewise.
7996         (main): Call the new functions.
7997         * sysdeps/i386/fpu/libm-test-ulps: Update.
7998         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7999
8000         [BZ #13884]
8001         [BZ #13924]
8002         * math/e_exp10.c: Include <float.h>.
8003         (__ieee754_exp10): Handle underflow here rather than multiplying
8004         large negative argument by M_LN10.
8005         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8006         of __ieee754_expf.
8007         * math/e_exp10l.c: Include <float.h>.
8008         (__ieee754_exp10l): Handle underflow here rather than multiplying
8009         large negative argument by M_LN10l.
8010         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8011         spurious overflow exception on underflow.
8012
8013 2012-04-29  Marek Polacek  <polacek@redhat.com>
8014
8015         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8016         (__fortify_function): New macro.
8017         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8018         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8019         __extern_always_inline.
8020         * libio/bits/stdio2.h: Likewise.
8021         * libio/bits/stdio.h: Likewise.
8022         * string/string.h: Likewise.
8023         * string/bits/string3.h: Likewise.
8024         * include/stdio.h: Likewise.
8025         * stdlib/bits/stdlib.h: Likewise.
8026         * stdlib/stdlib.h: Likewise.
8027         * rt/bits/mqueue2.h: Likewise.
8028         * rt/mqueue.h: Likewise.
8029         * posix/bits/unistd.h: Likewise.
8030         * posix/unistd.h: Likewise.
8031         * io/bits/poll2.h: Likewise.
8032         * io/bits/fcntl2.h: Likewise.
8033         * io/fcntl.h: Likewise.
8034         * io/sys/poll.h: Likewise.
8035         * misc/bits/syslog.h: Likewise.
8036         * misc/bits/syslog-ldbl.h: Likewise.
8037         * misc/sys/syslog.h: Likewise.
8038         * socket/bits/socket2.h: Likewise.
8039         * socket/sys/socket.h: Likewise.
8040         * debug/tst-chk1.c: Likewise.
8041         * wcsmbs/bits/wchar2.h: Likewise.
8042         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8043         * wcsmbs/wchar.h: Likewise.
8044
8045 2012-04-29  Andreas Jaeger  <aj@suse.de>
8046
8047         * Makerules (tests): Remove enable-check-abi protection.
8048         (check-abi-warn): Remove.
8049         (check-abi-%): Remove check-abi-warn usage.
8050
8051         * configure.in: Remove check-abi configure option.
8052         * configure: Regenerated.
8053         * config.make.in (enable-check-abi): Remove.
8054
8055 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8056
8057         [BZ #14033]
8058         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8059         double functions to double *_finite functions.
8060
8061         [BZ #13941]
8062         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8063         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8064         LDBL_MIN_EXP.
8065         * stdio-common/Makefile (tests): Add tst-sprintf3.
8066         * stdio-common/tst-sprintf3.c: New file.
8067
8068         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8069         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8070
8071 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8072
8073         * conform/conformtest.pl: Remove duplicate typed-constant
8074         handling.
8075
8076 2012-04-28  David S. Miller  <davem@davemloft.net>
8077
8078         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8079         (check-abi-%): Remove AWK script prerequisite and explicit
8080         abilist directory.
8081         (check-abi): Rewrite to just diff the symlist with the abilist.
8082         (config-tls, config-abi-config): Delete, no longer used.
8083         (update-abi-%): Remove AWK script and explicit abilist directory.
8084         (update-abi): Rewrite to simply compare and conditionally copy the
8085         symlist and the sysdep abilist file.  Remove update-abi-config
8086         checks.
8087         * abilist/ld.abilist: Remove.
8088         * abilist/libBrokenLocale.abilist: Remove.
8089         * abilist/libanl.abilist: Remove.
8090         * abilist/libcrypt.abilist: Remove.
8091         * abilist/libdl.abilist: Remove.
8092         * abilist/librt.abilist: Remove.
8093         * abilist/libthread_db.abilist: Remove.
8094         * abilist/libutil.abilist: Remove.
8095         * scripts/extract-abilist.awk: Remove.
8096         * scripts/merge-abilist.awk: Remove.
8097         * sysdeps/generic/libcidn.abilist: New file.
8098         * sysdeps/generic/libnss_compat.abilist: New file.
8099         * sysdeps/generic/libnss_db.abilist: New file.
8100         * sysdeps/generic/libnss_dns.abilist: New file.
8101         * sysdeps/generic/libnss_files.abilist: New file.
8102         * sysdeps/generic/libnss_hesiod.abilist: New file.
8103         * sysdeps/generic/libnss_nis.abilist: New file.
8104         * sysdeps/generic/libnss_nisplus.abilist: New file.
8105         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8106         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8107         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8108         file.
8109         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8110         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8111         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8112         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8113         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8114         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8115         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8116         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8117         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8118         file.
8119         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8120         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8121         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8122         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8123         file.
8124         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8125         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8126         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8127         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8128         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8129         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8130         file.
8131         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8132         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8133         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8134         file.
8135         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8136         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8137         New file.
8138         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8139         New file.
8140         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8141         New file.
8142         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8143         New file.
8144         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8145         New file.
8146         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8147         New file.
8148         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8149         New file.
8150         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8151         New file.
8152         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8153         New file.
8154         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8155         New file.
8156         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8157         New file.
8158         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8159         New file.
8160         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8161         New file.
8162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8163         file.
8164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8165         New file.
8166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8167         New file.
8168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8169         file.
8170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8171         New file.
8172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8173         New file.
8174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8175         file.
8176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8177         New file.
8178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8179         New file.
8180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8181         New file.
8182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8183         New file.
8184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8185         New file.
8186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8187         New file.
8188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8189         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8190         file.
8191         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8192         New file.
8193         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8194         file.
8195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8196         file.
8197         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8198         file.
8199         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8200         file.
8201         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8202         file.
8203         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8204         New file.
8205         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8206         file.
8207         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8208         file.
8209         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8210         New file.
8211         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8212         file.
8213         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8215         file.
8216         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8217         New file.
8218         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8219         file.
8220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8221         file.
8222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8223         file.
8224         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8225         file.
8226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8227         file.
8228         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8229         New file.
8230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8231         file.
8232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8233         file.
8234         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8235         New file.
8236         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8237         file.
8238         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8239         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8240         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8241         file.
8242         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8243         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8244         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8245         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8246         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8247         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8248         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8249         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8250         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8251         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8252         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8253         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8254         file.
8255         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8256         New file.
8257         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8258         file.
8259         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8260         file.
8261         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8262         file.
8263         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8264         file.
8265         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8266         file.
8267         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8268         New file.
8269         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8270         New file.
8271         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8272         file.
8273         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8274         New file.
8275         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8276         file.
8277         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8278         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8279         file.
8280         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8281         New file.
8282         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8283         file.
8284         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8285         file.
8286         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8287         file.
8288         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8289         file.
8290         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8291         file.
8292         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8293         New file.
8294         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8295         New file.
8296         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8297         file.
8298         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8299         New file.
8300         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8301         file.
8302
8303 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8304
8305         * conform/conformtest.pl: Fix typo in handling typed-constant from
8306         allow-header.
8307
8308 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8309
8310         * README: Cut down references to pre-2.6 Linux kernels and
8311         Linuxthreads.  Update lists of configurations in libc and ports
8312         and sort alphabetically.  Say "or newer" with Linux kernel version
8313         requirements.
8314
8315         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8316
8317 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8318
8319         [BZ #887]
8320         * math/libm-test.inc (logb_test_downward): New test to expose
8321         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8322         rounding mode.
8323
8324 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8325
8326         [BZ #14027]
8327         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8328         to be done.
8329         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8330         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8331
8332 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8333
8334         * sysdeps/unix/i386/brk.S: Remove file.
8335         * sysdeps/unix/i386/dl-brk.S: Likewise.
8336         * sysdeps/unix/i386/pipe.S: Likewise.
8337         * sysdeps/unix/i386/sigreturn.S: Likewise.
8338         * sysdeps/unix/i386/syscall.S: Likewise.
8339         * sysdeps/unix/i386/vfork.S: Likewise.
8340         * sysdeps/unix/i386/wait.S: Likewise.
8341
8342         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8343         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8344
8345         * configure.in (arm*-none*): Do not allow without
8346         --enable-hacker-mode.
8347         (netbsd*): Remove case setting base_os.
8348         (386bsd*): Likewise.
8349         (freebsd*): Likewise.
8350         (bsdi*): Likewise.
8351         (osf*): Likewise.
8352         (sunos*): Likewise.
8353         (ultrix*): Likewise.
8354         (newsos*): Likewise.
8355         (dynix*): Likewise.
8356         (*bsd*): Likewise.
8357         (sysv*): Likewise.
8358         (isc*): Likewise.
8359         (esix*): Likewise.
8360         (sco*): Likewise.
8361         (minix*): Likewise.
8362         (irix4*): Likewise.
8363         (irix6*): Likewise.
8364         (solaris[2-9]*): Likewise.
8365         (none): Likewise.
8366         * configure: Regenerated.
8367
8368 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8369
8370         [BZ #11521]
8371         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8372         overflow or cancellation in calculating denominator.
8373         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8374         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8375         down expression to avoid unexpected rounding in newer GCCs.
8376         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8377
8378 2012-04-26  David S. Miller  <davem@davemloft.net>
8379
8380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8381         long-double compat symbols.
8382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8395
8396 2012-04-25  David S. Miller  <davem@davemloft.net>
8397
8398         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8399         HWCAP_* values only after the memory barriers have been defined.
8400         (atomic_full_barrier): Define.
8401         (atomic_read_barrier): Define.
8402         (atomic_write_barrier): Define.
8403
8404 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8405
8406         * shlib-versions: Add libgcc_s version information.
8407         * sysdeps/generic/libgcc_s.h: Remove.
8408         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8409         libgcc_s.h.
8410         * sysdeps/gnu/unwind-resume.c: Likewise.
8411         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8412
8413 2012-04-25  David S. Miller  <davem@davemloft.net>
8414
8415         * sysdeps/unix/sparc/brk.S: Delete.
8416         * sysdeps/unix/sparc/dl-brk.S: Delete.
8417         * sysdeps/unix/sparc/pipe.S: Delete.
8418         * sysdeps/unix/sparc/sysdep.S: Delete.
8419         * sysdeps/unix/sparc/sysdep.h: Delete.
8420         * sysdeps/unix/sparc/vfork.S: Delete.
8421         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8422         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8423         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8424         ret_ERRVAL, r0, r1, MOVE): Define.
8425         (JUMPTARGET): Remove.
8426         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8427         sysdeps/unix/sparc/sysdep.h
8428         (ENTRY, END): Remove.
8429         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8430
8431 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8432
8433         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8434         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8435         -DIS_IN_build.
8436
8437         * timezone/README: Update upstream location and email address for
8438         tzcode and tzdata.
8439         * timezone/zdump.c: Update from tzcode 2012b.
8440         * timezone/zic.c: Likewise.
8441
8442         * configure.in (libc_cv_as_needed): Remove test.
8443         * configure: Regenerated.
8444         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8445         conditional definition.
8446         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8447         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8448         * config.make.in (have-as-needed): Remove variable.
8449
8450 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8451             Paul Pluzhnikov  <ppluzhnikov@google.com>
8452
8453         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8454         strings correctly.
8455
8456 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8457
8458         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8459         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8460         * sysdeps/sh/strlen.S: Likewise.
8461
8462 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8463
8464         * sysdeps/unix/fork.S: Remove file.
8465         * sysdeps/unix/i386/fork.S: Likewise.
8466         * sysdeps/unix/sparc/fork.S: Likewise.
8467
8468         * sysdeps/unix/system.c: Remove file.
8469         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8470
8471         * sysdeps/unix/getegid.S: Remove file.
8472         * sysdeps/unix/geteuid.S: Likewise.
8473
8474 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8475
8476         * scripts/check-localplt.awk: New file.
8477         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8478         of diff.
8479         * scripts/data/localplt-generic.data: Add a comment.
8480
8481         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8482         NODE when __dir_mkfile failed.
8483         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8484         Reported by Ludovic Courtès <ludo@gnu.org>.
8485
8486 2012-04-24  Andreas Jaeger  <aj@suse.de>
8487
8488         * Makerules (common-clean): Also remove gen-as-const-headers
8489         files.
8490
8491 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8492
8493         * Makerules (native-compile): Do not change working directory for
8494         build.  Use $(OUTPUT_OPTION) in command.
8495         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8496
8497 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8498
8499         [BZ #13886]
8500         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8501         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8502         * math/libm-test.inc (floor_test): Add more tests.
8503         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8504
8505 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8506
8507         * sysdeps/unix/getdents.c: Remove file.
8508         * sysdeps/unix/sysv/getdents.c: Likewise.
8509         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8510
8511         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8512         sysdeps/unix/mman/syscalls.list.
8513         (mmap): Likewise.
8514         (mprotect): Likewise.
8515         (msync): Likewise.
8516         (munmap): Likewise.
8517         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8518         * sysdeps/unix/mman/syscalls.list: Remove.
8519         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8520
8521         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8522         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8523         * configure: Regenerated.
8524         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8525         $(libgcc_s_suffix).
8526         * config.make.in (libgcc_s_suffix): Remove variable.
8527
8528 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8529
8530         * sysdeps/unix/sysv/gethostname.c: Move to ...
8531         * sysdeps/posix/gethostname.c: ... here.
8532
8533         * sysdeps/unix/execve.S: Remove file.
8534
8535         * sysdeps/unix/_exit.S: Remove file.
8536
8537 2012-04-23  Andreas Jaeger  <aj@suse.de>
8538
8539         [BZ #13739]
8540         * manual/Makefile: Remove make dist support, there's no
8541         need for a stand-alone documentation tar ball.
8542         (TEXI2DVI): Define always, it's not in Makeconfig.
8543         (dist): Removed.
8544         (tar-it): Removed.
8545         (edition): Removed.
8546         (glibc-doc-$(edition).tar): Removed
8547         (%.Z): Removed.
8548         (%.gz): Removed.
8549         (%.uu): Removed.
8550         (ETAGS): Remove, it's in Makeconfig.
8551         (move-if-change): Remove, it's in Makeconfig.
8552
8553 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8554
8555         [BZ #13970]
8556         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8557         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8558         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8559         (strtod_l, strtof_l, strtold_l): Remove __wur.
8560         It is not necessarily an error to ignore strtol's return value.
8561         One can reliably look at the stored endptr to decide whether
8562         the number had valid syntax.
8563
8564 2012-04-21  Andreas Jaeger  <aj@suse.de>
8565
8566         [BZ #13739]
8567         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8568
8569 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8570
8571         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8572         * sysdeps/unix/sysv/Versions: Remove file.
8573
8574 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8575
8576         [BZ #13927]
8577         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8578
8579 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8580
8581         [BZ #7064]
8582         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8583         version from __vm86.
8584
8585 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8586
8587         * sysdeps/unix/common/lxstat.c: Remove file.
8588         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8589
8590         * sysdeps/unix/sysv/Makefile: Remove file.
8591
8592         * sysdeps/unix/sysv/direct.h: Remove file.
8593
8594         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8595         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8596         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8597         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8598         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8599         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8600         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8601
8602         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8603
8604         * sysdeps/unix/xmknod.c: Remove file.
8605         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8606
8607         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8608
8609         * sysdeps/unix/sysv/i386/time.S: Remove file.
8610
8611         * sysdeps/unix/fxstat.c: Remove file.
8612         * sysdeps/unix/xstat.c: Likewise.
8613         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8614
8615         * sysdeps/unix/sysv/sigaction.c: Remove file.
8616
8617         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8618         (sysdep_headers): Remove variable.
8619         [termio.h not in sysdep_headers] (generated): Likewise.
8620         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8621         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8622         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8623         * sysdeps/unix/sysv/tcflow.c: Likewise.
8624         * sysdeps/unix/sysv/tcflush.c: Likewise.
8625         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8626         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8627         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8628         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8629         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8630
8631         * sysdeps/unix/siglist.c: Remove file.
8632
8633         * sysdeps/unix/getppid.S: Remove file.
8634
8635         * sysdeps/unix/mkdir.c: Remove file.
8636         * sysdeps/unix/rmdir.c: Likewise.
8637
8638 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8639
8640         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8641         ERR_MAX value.
8642         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8643         errlist-compat value.
8644
8645 2012-04-18  David S. Miller  <davem@davemloft.net>
8646
8647         * sysdeps/generic/memcopy.h (reg_char): Delete.
8648         * debug/strcat_chk.c: Use char, not reg_char.
8649         * debug/strcpy_chk.c: Likewise.
8650         * debug/strncat_chk.c: Likewise.
8651         * debug/strncpy_chk.c: Likewise.
8652         * string/memchr.c: Likewise.
8653         * string/memrchr.c: Likewise.
8654         * string/rawmemchr.c: Likewise.
8655         * string/strcat.c: Likewise.
8656         * string/strchr.c: Likewise.
8657         * string/strchrnul.c: Likewise.
8658         * string/strcmp.c: Likewise.
8659         * string/strcpy.c: Likewise.
8660         * string/strncat.c: Likewise.
8661         * string/strncmp.c: Likewise.
8662         * string/strncpy.c: Likewise.
8663
8664 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8665
8666         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8667         __builtin_memcopy is called when src and dest ranges are known to not
8668         overlap.
8669
8670 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8671
8672         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8673         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8674         fwd_align_merge macro call.
8675         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8676         bwd_align_merge macro call.
8677         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8678
8679 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8680
8681         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8682         bwd_align_merge macros.
8683         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8684         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8685         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8686
8687 2012-04-18  David S. Miller  <davem@davemloft.net>
8688
8689         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8690
8691 2012-04-18  Andreas Jaeger  <aj@suse.de>
8692
8693         [BZ# 6794]
8694         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8695         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8696         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8697
8698         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8699         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8700         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8701
8702         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8703         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8704         Adjust for changed ldbl-128 files.
8705
8706         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8707         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8708         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8709
8710 2012-04-17  David S. Miller  <davem@davemloft.net>
8711
8712         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8713
8714 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8715
8716         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8717         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8718         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8719         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8720         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8721         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8722
8723 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8724
8725         [BZ #6794]
8726         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8727         * math/libm-test.inc: Add ilogb errno and exception tests.
8728         * math/w_ilogb.c: New file: ilogb wrapper.
8729         * math/w_ilogbf.c: New file: ilogbf wrapper.
8730         * math/w_ilogbl.c: New file: ilogbl wrapper.
8731         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8732         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8733         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8734         exception being thrown with 0.0 as argument.
8735         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8736         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8737         exception being thrown with 0.0 as argument.
8738         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8739         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8740         exception being thrown with 0.0 as argument.
8741         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8742         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8743         exception being thrown with 0.0 as argument.
8744         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8745         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8746         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8747         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8748         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8749         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8750         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8751         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8752         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8753
8754 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8755
8756         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8757         with altivec.
8758
8759 2012-04-16  Marek Polacek  <polacek@redhat.com>
8760
8761         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8762
8763 2012-04-16  Marek Polacek  <polacek@redhat.com>
8764
8765         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8766         operands of fdivp instruction.
8767
8768 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8769
8770         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8771         * elf/tst-auditmod3b.c: Likewise.
8772         * elf/tst-auditmod4b.c: Likewise.
8773         * elf/tst-auditmod5b.c: Likewise.
8774         * elf/tst-auditmod6b.c: Likewise.
8775         * elf/tst-auditmod6c.c: Likewise.
8776         * elf/tst-auditmod7b.c: Likewise.
8777         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8778         * sysdeps/x86_64/preconfigure.in: Likewise.
8779         * sysdeps/x86_64/preconfigure: Regenerated.
8780
8781 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8782
8783         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8784         __ILP32__.
8785
8786 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8787
8788         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8789         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8790
8791 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8792
8793         [BZ #13973]
8794         * locale/iso-639.def: Fix gl language name. Spotted by
8795         Yaron Shahrabani.
8796
8797 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8798
8799         [BZ #2074]
8800         * libio/libio.h (__io_write_fn): Update comment.
8801
8802 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8803
8804         [BZ #2074]
8805         * stdio.texi (Hook Functions): The user provided writer function
8806         is not allowed to return -1.
8807
8808 2012-04-11  David S. Miller  <davem@davemloft.net>
8809
8810         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8811
8812 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8813
8814         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8815         Add a leading slash to rtkaio.
8816
8817 2012-04-11  Jim Meyering  <meyering@redhat.com>
8818
8819         [BZ #11959]
8820         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8821         It is not necessarily an error to ignore fwrite's return
8822         value.  One can reliably use ferror to test for errors after
8823         the fact.
8824
8825 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8826
8827         * bits/types.h (__snseconds_t): New type.
8828         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8829
8830         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8831         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8832         (__SNSECONDS_T_TYPE): Likewise.
8833         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8834         (__SNSECONDS_T_TYPE): Likewise.
8835         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8836         (__SNSECONDS_T_TYPE): Likewise.
8837
8838 2012-04-10  Andreas Jaeger  <aj@suse.de>
8839
8840         [BZ #2636]
8841         * manual/time.texi (Processor Time): Return type of times is
8842         elapsed real time since an arbitrary point in the past.
8843         (CPU Time): Move CLK_TCK from here...
8844         (Processor Time): ...to here.  Correct description.
8845         * manual/conf.texi (Constants for Sysconf): Correct description of
8846         _SC_CLK_TCK.
8847
8848 2012-04-10  David S. Miller  <davem@davemloft.net>
8849
8850         [BZ #13967]
8851         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8852         where the is a gap between DT_REL(A) and DT_JMPREL.
8853
8854 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8855
8856         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8857         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8858         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8859
8860 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8861
8862         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8863         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8864         (dl_main): Handle --inhibit-cache.
8865         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8866         _dl_inhibit_cache.
8867         * elf/dl-load.c (_dl_map_object): Use it.
8868         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8869
8870 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8871
8872         [BZ #13872]
8873         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8874         (__ieee754_powl): Saturate large exponents rather than testing for
8875         overflow of y*log2(x).
8876         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8877         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8878         exceptions.
8879
8880         [BZ #11521]
8881         * math/s_ctan.c: Include <float.h>.
8882         (__ctan): Avoid internal overflow or cancellation in calculating
8883         denominator.
8884         * math/s_ctanf.c: Likewise.
8885         * math/s_ctanl.c: Likewise.
8886         * math/s_ctanh.c: Likewise.
8887         * math/s_ctanhf.c: Likewise.
8888         * math/s_ctanhl.c: Likewise.
8889         * math/libm-test.inc (ctan_test): Add more tests.
8890         (ctanh_test): Likewise.
8891         * sysdeps/i386/fpu/libm-test-ulps: Update.
8892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8893
8894 2012-04-09  Andreas Jaeger  <aj@suse.de>
8895
8896         [BZ #6894]
8897         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8898         is an optional BSD extension.
8899
8900         [BZ #10254]
8901         * manual/stdio.texi (Opening Streams): Document additional fopen
8902         parameters.
8903
8904 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8905
8906         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8907         %eax without telling the compiler.
8908
8909 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8910
8911         [BZ # 13963]
8912         * manual/install.texi: Use sourceware.org.
8913
8914 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8915
8916         [BZ #13873]
8917         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8918         (__ieee754_pow): Generate overflow and underflow using huge*huge
8919         and tiny*tiny rather than just returning constant infinity or zero
8920         for large exponents.
8921         * math/libm-test.inc (pow_test): Require overflow exceptions for
8922         applicable cases of large exponents.
8923
8924         [BZ #706]
8925         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8926         (__ieee754_pow): Use iterative multiplication algorithm only for
8927         integer exponents with absolute value below 1024.  Check for odd
8928         integer exponents when using algorithm for real exponents.
8929         * math/libm-test.inc (pow_test): Add more tests.
8930         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8931
8932 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8933
8934         [BZ #13705]
8935         * math/libm-test.inc (exp_test): Do not allow overflow exception
8936         on underflow test.
8937
8938 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8939
8940         [BZ #13705]
8941         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8942         instead of __kernel_standard_f.
8943
8944 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8945
8946         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8947         * sysdeps/x86_64/memset_chk.S: Likewise.
8948
8949 2012-04-08  Andreas Jaeger  <aj@suse.de>
8950
8951         [BZ #10153]
8952         * manual/startup.texi (Environment Access): Describe return value
8953         for putenv and setenv.
8954
8955         [BZ #6895]
8956         * manual/filesys.texi (Directory Entries): Add description for
8957         DT_LNK.
8958
8959         [BZ #6890]
8960         * manual/filesys.texi (Directory Entries): Clarify that it's file
8961         system not operating system in the description of DT_UNKNOWN.
8962
8963         [BZ #6578]
8964         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8965
8966 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8967
8968         [BZ #6649]
8969         * manual/llio.texi (Opening and Closing Files): Add cross
8970         reference to explain mode argument.
8971
8972 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8973
8974         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8975         * sysdeps/x86_64/memset_chk.S: Likewise.
8976
8977 2012-04-07  David S. Miller  <davem@davemloft.net>
8978
8979         * elf/elf.h (R_SPARC_WDISP10): Define.
8980         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8981         R_SPARC_SIZE32.
8982         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8983         R_SPARC_SIZE64 and R_SPARC_H34.
8984
8985 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8986
8987         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8988         conditions and remove no longer applicable assertion.
8989
8990 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8991
8992         * bits/byteswap.h: Include <features.h>.
8993         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8994         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8995
8996 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8997
8998         * bits/byteswap.h (__bswap_16): Removed.
8999         Include <bits/byteswap-16.h> to get __bswap_16.
9000         * sysdeps/i386/bits/byteswap.h: Likewise.
9001         * sysdeps/s390/bits/byteswap.h: Likewise.
9002         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9003         * bits/byteswap-16.h: New file.
9004         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9005         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9006         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9007         * string/Makefile (headers): Add bits/byteswap-16.h.
9008
9009 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9010
9011         [BZ #13895]
9012         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9013         extra indirection.
9014         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9015         * nss/tst-nss-static.c: New.
9016
9017 2012-04-06  Robert Millan  <rmh@gnu.org>
9018
9019         [BZ #6486]
9020         * manual/llio.texi (File Position Primitive): lseek
9021         refers to WHENCE when it really means OFFSET.
9022
9023 2012-04-06  Andreas Jaeger  <aj@suse.de>
9024
9025         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9026         strncmp declarations.
9027
9028         * abilist/libc.abilist: Add __poll and __ppoll.
9029
9030 2012-04-05  David S. Miller  <davem@davemloft.net>
9031
9032         * scripts/check-local-headers.sh: Accept a host triplet in the
9033         path matched by the exclude regexp.
9034
9035         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9036         definition.
9037         * sysdeps/powerpc/powerpc32/dl-machine.h
9038         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9039         * sysdeps/s390/s390-32/dl-machine.h
9040         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9041         * sysdeps/sparc/sparc32/dl-machine.h
9042         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9043         * sysdeps/sparc/sparc64/dl-machine.h
9044         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9045
9046         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9047         lazy binding.
9048         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9049         undefined symbol errors.
9050
9051         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9052         DT_NEEDED entries.
9053
9054 2012-04-05  Michael Matz  <matz@suse.de>
9055
9056         [BZ #13592]
9057         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9058
9059 2012-04-05  Andreas Jaeger  <aj@suse.de>
9060
9061         [BZ #13908]
9062         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9063         comment.
9064
9065 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9066
9067         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9068         which ROUND is no valid rounding mode.
9069
9070 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9071
9072         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9073         read again.
9074         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9075
9076 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9077
9078         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9079         an exception using FPU order intentionally.
9080
9081 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9082
9083         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9084         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9085         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9086         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9087
9088 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9089
9090         [BZ #12340]
9091         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9092         EINVAL when BUFLEN is too smal.
9093
9094 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9095
9096         [BZ #13553]
9097         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9098         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9099
9100 2012-04-03  Andreas Jaeger  <aj@suse.de>
9101
9102         [BZ #13938]
9103         * manual/setjmp.texi (System V contexts): Fix sentence.
9104
9105         [BZ #13926]
9106         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9107         New macro for this case.
9108         [!__GNUC__] (__bswap_64): New inline function for this case.
9109         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9110         * bits/byteswap.h: Likewise.
9111         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9112         ull, guard with __GLIBC_HAVE_LONG_LONG.
9113
9114         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9115         __GLIBC_HAVE_LONG_LONG.
9116
9117         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9118         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9119
9120 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9121
9122         [BZ #13691]
9123         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9124         inptr and inend, rather than using last_ch.
9125
9126 2012-04-02  David S. Miller  <davem@davemloft.net>
9127
9128         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9129         * stdio-common/printf-parse.h (read_int): Change return type to
9130         'int', return -1 on INT_MAX overflow.
9131         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9132         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9133         overflows INT_MAX.  Check for overflow of in-format-string precision
9134         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9135         SIZE_MAX not INT_MAX for integer overflow test.
9136         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9137         skip the construct in the format string but do not record anything.
9138         * stdio-common/bug22.c: Adjust to test both width/prevision
9139         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9140         explicitly for proper errno values.
9141
9142 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9143
9144         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9145         CHAR_MAX.
9146         * string/test-strcmp.c [! WIDE]: Likewise.
9147         * time/tst-mktime2.c: Likewise for INT_MAX.
9148         * string/test-string.h: #include <sys/param.h> for MIN.
9149
9150         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9151         * sysdeps/i386/init-first.c (init): Likewise.
9152         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9153         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9154         * sysdeps/sh/init-first.c (init): Likewise.
9155
9156 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9157
9158         * po/ru.po: Update from translation team.
9159         * po/vi.po: Likewise.
9160
9161 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9162
9163         * resolv/nss_dns/dns-host.c: Merge copyright years.
9164
9165 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9166
9167         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9168         Optimize memcpy with prefetch if
9169         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9170         src, dst pointers have unequal 16 byte alignments.
9171
9172 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9173
9174         [BZ #13928]
9175         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9176         from a CNAME entry and return the minimum ttl for the query.
9177         (gaih_getanswer_slice): Likewise.
9178
9179 2012-03-30  Jeff Law  <law@redhat.com>
9180
9181         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9182         due to long keys.
9183         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9184         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9185
9186         * resolv/nss_dns/dns-host.c: Update copyright year.
9187
9188 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9189
9190         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9191         requests to save a system call.  Fix check that all bytes are sent.
9192
9193         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9194         comments for sendmmsg.
9195
9196 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9197
9198         [BZ #13691]
9199         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9200         with only 1 character between 0x0041 and 0x01b0.
9201         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9202         * wcsmbs/tst-mbsnrtowcs.c: New file.
9203
9204 2012-03-29  David S. Miller  <davem@davemloft.net>
9205
9206         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9207         small copies by hand.
9208
9209 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9210
9211         [BZ #13761]
9212         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9213         _nss_compat_initgroups_dyn): Fall back to malloc/free
9214         for large group memberships.
9215
9216 2012-03-28  David S. Miller  <davem@davemloft.net>
9217
9218         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9219         that branches into memcpy.
9220         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9221         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9222         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9223         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9224         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9225         bits.
9226         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9227         implementation too.
9228         * sysdeps/sparc/mempcpy.S: New file.
9229
9230         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9231         the IFUNC routine in the libc case.
9232         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9233
9234         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9235         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9236         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9237         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9238         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9239         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9240         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9241         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9242
9243         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9244         loop to 256 bytes instead of 64 bytes and fix test signedness.
9245
9246         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9247         * sysdeps/sparc/sparc32/Makefile: rather than here...
9248         * sysdeps/sparc/sparc64/Makefile: and here.
9249
9250 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9251
9252         * malloc/mallocbug.c: Avoid warnings about unused variables.
9253
9254 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9255
9256         [BZ #13760]
9257         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9258         in the right place. Discard and retry query if response is
9259         larger than input buffer size.
9260
9261 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9262
9263         [BZ #369]
9264         [BZ #2678]
9265         [BZ #3866]
9266         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9267         x for large integer exponent.
9268         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9269         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9270         sign of result as needed afterwards.
9271         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9272         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9273         result for underflowing pow the same as for overflow.
9274         (__kernel_standard_l): Handle powl overflow and underflow here
9275         rather than calling __kernel_standard.
9276         * math/libm-test.inc (pow_test): Add more tests.
9277
9278         [BZ #3868]
9279         [BZ #13879]
9280         [BZ #13910]
9281         [BZ #13911]
9282         [BZ #13912]
9283         [BZ #13913]
9284         [BZ #13915]
9285         [BZ #13916]
9286         [BZ #13917]
9287         [BZ #13918]
9288         [BZ #13919]
9289         [BZ #13920]
9290         [BZ #13921]
9291         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9292         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9293         (__kernel_standard_l): New function.
9294         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9295         __kernel_standard.
9296         * math/w_acosl.c (__acosl): Likewise.
9297         * math/w_asinl.c (__asinl): Likewise.
9298         * math/w_atan2l.c (__atan2l): Likewise.
9299         * math/w_atanhl.c (__atanhl): Likewise.
9300         * math/w_coshl.c (__coshl): Likewise.
9301         * math/w_exp10l.c (__exp10l): Likewise.
9302         * math/w_exp2l.c (__exp2l): Likewise.
9303         * math/w_fmodl.c (__fmodl): Likewise.
9304         * math/w_hypotl.c (__hypotl): Likewise.
9305         * math/w_j0l.c (__j0l, __y0l): Likewise.
9306         * math/w_j1l.c (__j1l, __y1l): Likewise.
9307         * math/w_jnl.c (__jnl, __ynl): Likewise.
9308         * math/w_lgammal.c (__lgammal): Likewise.
9309         * math/w_log10l.c (__log10l): Likewise.
9310         * math/w_log2l.c (__log2l): Likewise.
9311         * math/w_logl.c (__logl): Likewise.
9312         * math/w_powl.c (__powl): Likewise.
9313         * math/w_remainderl.c (__remainderl): Likewise.
9314         * math/w_scalbl.c (sysv_scalbl): Likewise.
9315         * math/w_sinhl.c (__sinhl): Likewise.
9316         * math/w_sqrtl.c (__sqrtl): Likewise.
9317         * math/w_tgammal.c (__tgammal): Likewise.
9318         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9319         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9320         * math/libm-test.inc (acos_test): Add more tests.
9321         (acosh_test): Likewise.
9322         (asin_test): Likewise.
9323         (atanh_test): Likewise.
9324         (exp_test): Likewise.
9325         (exp10_test): Likewise.
9326         (exp2_test): Likewise.
9327         (expm1_test): Likewise.
9328         (lgamma_test): Likewise.
9329         (log_test): Likewise.
9330         (log10_test): Likewise.
9331         (log1p_test): Likewise.
9332         (log2_test): Likewise.
9333         (pow_test): Do not allow some spurious overflow exceptions.
9334         (sqrt_test): Add more tests.
9335         (tgamma_test): Likewise.
9336         (y0_test): Likewise.
9337         (y1_test): Likewise.
9338         (yn_test): Likewise.
9339
9340 2012-03-27  Anton Blanchard  <anton@samba.org>
9341
9342         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9343         MAP_HUGETLB.
9344         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9345         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9346         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9347
9348 2012-03-27  David S. Miller  <davem@davemloft.net>
9349
9350         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9351
9352         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9353         have-as-vis3 check.
9354
9355 2012-03-27  Andreas Jaeger  <aj@suse.de>
9356
9357         * sysdeps/x86_64/elf/configure.in: Moved to ...
9358         * sysdeps/x86_64/configure.in: ... here.
9359         * sysdeps/x86_64/elf/start.S: Moved to ...
9360         * sysdeps/x86_64/start.S: ... here.
9361         * sysdeps/x86_64/elf/configure: Delete.
9362
9363         * sysdeps/x86_64/configure.in: Merge contents from
9364         sysdeps/i386/configure.in (without i686 check).
9365
9366         * sysdeps/i386/elf/Versions: Merge into ...
9367         * sysdeps/i386/Versions: ... this.
9368         * sysdeps/i386/elf/Versions: Delete file.
9369         * sysdeps/i386/elf/start.S: Moved to ...
9370         * sysdeps/i386/start.S: ...here.
9371         * sysdeps/i386/elf/configure.in: Merge into...
9372         * sysdeps/i386/configure.in: ...here.
9373         * sysdeps/i386/elf/configure.in: Delete file.
9374         * sysdeps/i386/elf/configure: Delete file.
9375
9376         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9377         * debug/backtracesyms.c: ... here.
9378         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9379         * debug/backtracesymsfd.c: ... here.
9380         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9381         * sysdeps/generic/ifunc-sel.h: ... here.
9382
9383         * sysdeps/unix/i386/start.c: Delete file.
9384         * sysdeps/unix/sparc/start.c: Delete file.
9385         * sysdeps/unix/start.c: Delete file.
9386
9387         * sysdeps/sh/elf/configure.in: Moved to ...
9388         * sysdeps/sh/configure.in: ... here.
9389         * sysdeps/sh/elf/start.S: Moved to ...
9390         * sysdeps/sh/start.S: ... here.
9391         * sysdeps/sh/elf/configure: Delete file.
9392
9393         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9394         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9395         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9396         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9397         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9398         * sysdeps/powerpc/powerpc64/start.S: here.
9399         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9400         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9401         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9402         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9403         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9404
9405         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9406         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9407         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9408         * sysdeps/powerpc/powerpc32/start.S: ... here.
9409         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9410         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9411         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9412
9413         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9414         * sysdeps/powerpc/ifunc-sel.h: ... here.
9415         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9416         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9417
9418         * sysdeps/sparc/elf/configure.in: Moved to ...
9419         * sysdeps/sparc/configure.in: ... here.
9420         * sysdeps/sparc/elf/configure: Delete file.
9421         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9422         * sysdeps/sparc/sparc32/start.S: ... here.
9423         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9424         * sysdeps/sparc/sparc64/start.S: ... here.
9425         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9426         * sysdeps/sparc/sparc32/Makefile: ... this.
9427         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9428         * sysdeps/sparc/sparc64/Makefile: ... this.
9429
9430         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9431         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9432         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9433         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9434         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9435         * sysdeps/s390/s390-32/setjmp.S: ... here.
9436         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9437         * sysdeps/s390/s390-32/configure.in: ... here.
9438         * sysdeps/s390/s390-32/elf/configure: Delete file.
9439         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9440         * sysdeps/s390/s390-32/start.S: ... here.
9441
9442         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9443         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9444         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9445         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9446         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9447         * sysdeps/s390/s390-64/setjmp.S: ... here.
9448         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9449         * sysdeps/s390/s390-64/configure.in: ... here
9450         * sysdeps/s390/s390-64/elf/configure: Delete file.
9451         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9452         * sysdeps/s390/s390-64/start.S: ... here.
9453         * sysdeps/s390/s390-64/elf/configure: Delete.
9454
9455         * configure.in: Remove support for elf directories in sysdeps.
9456
9457         * configure: Regenerated.
9458         * sysdeps/i386/configure: Regenerated.
9459         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9460         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9461         * sysdeps/s390/s390-32/configure: Regenerated.
9462         * sysdeps/s390/s390-64/configure: Regenerated.
9463         * sysdeps/sh/configure: Regenerated.
9464         * sysdeps/sparc/configure: Regenerated.
9465         * sysdeps/x86_64/configure: Regenerated.
9466
9467 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9468
9469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9470
9471         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9472         denormal result into account.
9473
9474 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9475
9476         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9477         Reported by Allan McRae <allan@archlinux.org>.
9478
9479 2012-03-23  Jeff Law  <law@redhat.com>
9480
9481         * nss/getnssent.c (__nss_getent): Fix typo.
9482
9483 2012-03-23  David S. Miller  <davem@davemloft.net>
9484
9485         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9486
9487 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9488
9489         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9490         to pad to uint64_t for each field.
9491         (dl_tls_index): Replace unsigned long with uint64_t.
9492
9493 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9494         Paul Pluzhnikov  <ppluzhnikov@google.com>
9495
9496         [BZ #6528]
9497         * grp/Makefile (otherlibs): Don't set it.
9498         * inet/Makefile (otherlibs): Likewise.
9499         * login/Makefile (otherlibs): Likewise.
9500         * nscd/Makefile (otherlibs): Likewise.
9501         * posix/Makefile (otherlibs): Likewise.
9502         * pwd/Makefile (otherlibs): Likewise.
9503         * rt/Makefile (otherlibs): Likewise.
9504         * sunrpc/Makefile (otherlibs): Likewise.
9505         * nss/Makefile (otherlibs): Likewise.
9506         Add libnss_files to routines and static-only-routines.
9507         ($(objpfx)getent): Remove rule.
9508         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9509         static-only-routines.
9510
9511 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9512
9513         [BZ #13892]
9514         * math/s_cexp.c: Include <float.h>.
9515         (__cexp): Handle exp result overflowing not necessarily
9516         overflowing both real and imaginary parts of result.
9517         * math/s_cexpf.c: Likewise.
9518         * math/s_cexpl.c: Likewise.
9519         * math/libm-test.inc (cexp_test): Add more tests.
9520         * sysdeps/i386/fpu/libm-test-ulps: Update.
9521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9522
9523 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9524
9525         * include/link.h (ELFW): New macro.
9526         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9527         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9528
9529 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9530
9531         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9532         with uint64_t.
9533
9534 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9535
9536         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9537         declaration.
9538         (struct La_x32_retval): Likewise.
9539
9540 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9541
9542         * sysdeps/x86_64/preconfigure.in: New file.
9543         * sysdeps/x86_64/preconfigure: New generated file.
9544
9545 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9546
9547         [BZ #13824]
9548         * math/e_exp2l.c: Include <float.h>.
9549         (__ieee754_exp2l): Handle overflow and underflow cases
9550         separately.  Only pass fractional part of argument to
9551         __ieee754_expl.
9552         * math/libm-test.inc (exp2_test): Add more tests.
9553
9554         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9555         negating x to take absolute value.
9556         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9557         Likewise.
9558         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9559         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9560         Likewise.
9561         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9562         computing low part if x was negated.
9563         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9564
9565 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9566
9567         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9568         la_x32_gnu_pltexit.
9569         (pltexit): Cast int_retval to ptrdiff_t.
9570         * elf/tst-auditmod3b.c: Likewise.
9571         * elf/tst-auditmod4b.c: Likewise.
9572         * elf/tst-auditmod5b.c: Likewise.
9573         * elf/tst-auditmod6b.c: Likewise.
9574         * elf/tst-auditmod6c.c: Likewise.
9575         * elf/tst-auditmod7b.c: Likewise.
9576
9577         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9578         and x32_gnu_pltexit.
9579
9580         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9581         __ELF_NATIVE_CLASS.
9582         (La_x32_regs): New macro.
9583         (La_x32_retval): Likewise.
9584         (la_x32_gnu_pltenter): New function prototype.
9585         (la_x32_gnu_pltexit): Likewise.
9586
9587 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9588
9589         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9590         exponent.
9591
9592         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9593
9594         * configure.in (libc_cv_cc_nofma): Check for option to disable
9595         generation of FMA instructions.
9596         * configure: Regenerate.
9597         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9598         * sysdeps/ieee754/dbl-64/Makefile: New file.
9599         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9600         Remove brandred-fma4.
9601         (CFLAGS-brandred-fma4.c): Remove.
9602         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9603         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9604         define.
9605         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9606         define.
9607
9608 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9609
9610         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9611         LLONG_MAX != LONG_MAX.
9612         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9613         (_fitoa_word): Likewise.
9614         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9615         LLONG_MAX != LONG_MAX.
9616         * stdio-common/_itowa.h: Include <_itoa.h>.
9617         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9618         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9619         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9620         only if not defined.
9621         (_ITOA_WORD_TYPE): Likewise.
9622         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9623         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9624
9625 2012-03-21  David S. Miller  <davem@davemloft.net>
9626
9627         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9628
9629 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9630
9631         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9632         of x86_64 when setting libc_cv_slibdir, libdir and
9633         libc_cv_localedir.
9634         * sysdeps/unix/sysv/linux/configure: Regenerated.
9635
9636 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9637
9638         * manual/lang.texi (Old Varargs): Remove section.
9639         (How Variadic): Update menu.
9640         (va_start): Do not mention varargs.h.
9641
9642 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9643             Joseph Myers  <joseph@codesourcery.com>
9644
9645         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9646         link test.
9647         * configure: Regenerated.
9648
9649 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9650
9651         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9652         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9653         conformtest.pl
9654
9655 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9656
9657         * NOTES: Remove.
9658         * Makefile (files-for-dist): Remove NOTES.
9659         (NOTES): Remove rule.
9660         * README: Don't refer to NOTES.
9661         * manual/creature.texi: Don't include macros.texi.
9662         * manual/intro.texi (creature.texi): Remove comment referring to
9663         NOTES.
9664
9665         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9666         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9667         * configure: Regenerated.
9668         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9669         LIBC_TRY_CC_OPTION.
9670         (libc_cv_as_i686): Likewise.
9671         (libc_cv_cc_avx): Likewise.
9672         (libc_cv_cc_sse2avx): Likewise.
9673         (libc_cv_cc_fma4): Likewise.
9674         (libc_cv_cc_novzeroupper): Likewise.
9675         * sysdeps/i386/configure: Regenerated.
9676
9677         [BZ #13883]
9678         * sysdeps/i386/fpu/s_cexp.S: Remove.
9679         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9680         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9681         * math/libm-test.inc (cexp_test): Add more tests.
9682         * sysdeps/i386/fpu/libm-test-ulps: Update.
9683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9684
9685 2012-03-21  Allan McRae  <allan@archlinux.org>
9686
9687         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9688
9689 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9690
9691         [BZ #13871]
9692         * math/w_exp2.c: Do not include <float.h>.
9693         (o_threshold, u_threshold): Remove.
9694         (__exp2): Calculate result before checking finiteness and calling
9695         __kernel_standard.
9696         * math/w_exp2f.c: Likewise.
9697         * math/w_exp2l.c: Likewise.
9698         * math/libm-test.inc (exp2_test): Require overflow exception for
9699         1e6 input.
9700
9701         [BZ #3866]
9702         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9703         range of signed 64-bit integers before using fistpll.  Remove
9704         checks for whether integers fit in mantissa bits.
9705         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9706         the range of signed 32-bit integers before using fistpl.  Remove
9707         checks for whether integers fit in mantissa bits.
9708         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9709         (__ieee754_powl): Test for y outside the range of signed 64-bit
9710         integers before using fistpll.  Reduce 64-bit values to 63-bit
9711         ones as needed.
9712         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9713         divide-by-zero is raised for zero to large negative powers.
9714         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9715         (__ieee754_powl): Test for y outside the range of signed 64-bit
9716         integers before using fistpll.  Reduce 64-bit values to 63-bit
9717         ones as needed.
9718         * math/libm-test.inc (pow_test): Add more tests.
9719
9720 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9721
9722         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9723         <stdio-common/_itoa.h>.
9724         * debug/segfault.c: Likewise.
9725         * elf/dl-cache.c: Likewise.
9726         * elf/dl-minimal.c: Likewise.
9727         * elf/dl-misc.c: Likewise.
9728         * elf/dl-sysdep.c: Likewise.
9729         * elf/dl-version.c: Likewise.
9730         * elf/rtld.c: Likewise.
9731         * hurd/hurdsock.c: Likewise.
9732         * hurd/lookup-retry.c: Likewise.
9733         * malloc/malloc.c: Likewise.
9734         * malloc/mtrace.c: Likewise.
9735         * nscd/nscd_getgr_r.c: Likewise.
9736         * nscd/nscd_getpw_r.c: Likewise.
9737         * nscd/nscd_getserv_r.c: Likewise.
9738         * posix/getopt_init.c: Likewise.
9739         * posix/wordexp.c: Likewise.
9740         * stdio-common/_itoa.c: Likewise.
9741         * stdio-common/printf_fphex.c: Likewise.
9742         * stdio-common/vfprintf.c: Likewise.
9743         * string/_strerror.c: Likewise.
9744         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9745         * sysdeps/i386/i686/hp-timing.h: Likewise.
9746         * sysdeps/mach/_strerror.c: Likewise.
9747         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9748         * sysdeps/mach/hurd/sethostid.c: Likewise.
9749         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9750         * sysdeps/mach/xpg-strerror.c: Likewise.
9751         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9752         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9753         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9754         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9755         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9756         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9757         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9758         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9759         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9760         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9761         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9762         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9763         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9764         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9765         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9766         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9767         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9768         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9769         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9770         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9771         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9772
9773         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9774
9775         * stdio-common/_itoa.h: Moved to ...
9776         * sysdeps/generic/_itoa.h: Here.
9777
9778         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9779
9780         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9781         instead of "_itoa.h" and "_itowa.h".
9782         * stdio-common/vfprintf.: Likewise.
9783
9784 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9785
9786         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9787         <bits/wordsize.h>.
9788         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9789         (__signbit): Likwise.
9790         (llrintf): Likwise.
9791         (llrint): Likwise.
9792
9793 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9794
9795         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9796         __WORDSIZE != 64.
9797
9798 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9799
9800         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9801         OVERFLOW_EXCEPTION_OK.
9802         * math/libm-test.inc ("Philosophy"): Update comment about
9803         exception testing.
9804         (OVERFLOW_EXCEPTION): Define.
9805         (OVERFLOW_EXCEPTION_OK): Likewise.
9806         (INVALID_EXCEPTION_OK): Renumber.
9807         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9808         (IGNORE_ZERO_INF_SIGN): Likewise.
9809         (test_exceptions): Handle FE_OVERFLOW.
9810         (exp10_test): Expect overflow exceptions.
9811         (exp2_test): Likewise.
9812         (expm1_test): Likewise.
9813         (nextafter_test): Likewise.
9814         (pow_test): Likewise.
9815         (scalbn_test): Likewise.
9816         (scalbln_test): Likewise.
9817
9818 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9819
9820         * sysdeps/x86_64/bits/atomic.h
9821         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9822         64bit integer.
9823         (atomic_exchange_acq): Likewise.
9824         (__arch_exchange_and_add_body): Likewise.
9825         (__arch_add_body): Likewise.
9826         (atomic_add_negative): Likewise.
9827         (atomic_add_zero): Likewise.
9828
9829 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9830
9831         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9832         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9833
9834 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9835
9836         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9837         Check __x86_64__ instead of __WORDSIZE.
9838
9839 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9840
9841         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9842
9843 2012-03-19  David S. Miller  <davem@davemloft.net>
9844
9845         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9846
9847         * sysdeps/sparc/fpu/fenv_private.h: New file.
9848         * sysdeps/sparc/fpu/math_private.h: Use it.
9849         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9850         Remove.
9851         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9852         (libc_feholdexcept_setroundl): Remove.
9853         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9854         Remove.
9855         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9856         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9857
9858 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9859
9860         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9861         int64_t instead of long int.
9862         (INSERT_WORDS64): Likwise.
9863
9864 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9865
9866         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9867         _Unwind_GetCFA return to _Unwind_Ptr first.
9868
9869 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9870
9871         [BZ #13629]
9872         * math/s_clog.c: Include <float.h>.
9873         (__clog): Scale large or subnormal inputs.
9874         * math/s_clogf.c: Likewise.
9875         * math/s_clogl.c: Likewise.
9876         * math/s_clog10.c: Include <float.h>.
9877         (M_LOG10_2): Define.
9878         (__clog10): Scale large or subnormal inputs.
9879         * math/s_clog10f.c: Likewise.
9880         * math/s_clog10l.c: Likewise.
9881         * math/libm-test.inc (clog_test): Add more tests.
9882         (clog10_test): Likewise.
9883         * sysdeps/i386/fpu/libm-test-ulps: Update.
9884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9885
9886         [BZ #11451]
9887         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9888         x and y.
9889         * math/libm-test.inc (atan2_test): Add another test.
9890
9891         * Makerules (common-objdir-compile): Remove.
9892         * sysdeps/unix/Makefile (config-generated): Do not add
9893         $(unix-generated) to variable.
9894         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9895         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9896         Remove rule.
9897         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9898         Likewise.
9899         [generic bits/local_lim.h] (before-compile): Do not append to
9900         variable.
9901         [generic bits/local_lim.h] (common-generated): Likewise.
9902         [generic sys/param.h] (before-compile): Do not append to variable.
9903         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9904         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9905         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9906         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9907         include.
9908         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9909         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9910         [generic sys/param.h] ($(addprefix
9911         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9912         [generic sys/param.h] (common-generated): Do not append to
9913         variable.
9914         [generic sys/param.h] (sysdep_headers): Likewise.
9915         [generic bits/errno.h] (before-compile): Do not append to
9916         variable.
9917         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9918         rule.
9919         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9920         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9921         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9922         [generic bits/errno.h] (common-generated): Do not append to
9923         variable.
9924         [generic bits/ioctls.h] (before-compile): Do not append to
9925         variable.
9926         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9927         rule.
9928         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9929         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9930         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9931         rule.
9932         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9933         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9934         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9935         [generic bits/ioctls.h] (common-generated): Do not append to
9936         variable.
9937         [generic sys/syscall.h] (syscall.h): Remove variable.
9938         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9939         rule.
9940         [generic sys/syscall.h] (before-compile): Do not append to
9941         variable.
9942         [generic sys/syscall.h] (common-generated): Likewise.
9943         * sysdeps/unix/errnos-tmpl.c: Remove file.
9944         * sysdeps/unix/errnos.awk: Likewise.
9945         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9946         * sysdeps/unix/ioctls.awk: Likewise.
9947         * sysdeps/unix/mk-local_lim.c: Likewise.
9948         * sysdeps/unix/snarf-ioctls: Likewise.
9949
9950 2012-03-19  Richard Henderson  <rth@twiddle.net>
9951
9952         * sysdeps/i386/fpu/fenv_private.h: New file.
9953         * sysdeps/i386/fpu/math_private.h: Use it.
9954         (math_opt_barrier, math_force_eval): Remove.
9955         (libc_feholdexcept_setround_53bit): Remove.
9956         (libc_feupdateenv_53bit): Remove.
9957         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9958         (math_opt_barrier, math_force_eval): Remove.
9959         (libc_feholdexcept): Remove.
9960         (libc_feholdexcept_setround): Remove.
9961         (libc_fetestexcept, libc_fesetenv): Remove.
9962         (libc_feupdateenv_test): Remove.
9963         (libc_feupdateenv, libc_feholdsetround): Remove.
9964         (libc_feresetround): Remove.
9965
9966         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9967         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9968
9969         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9970         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9971         (libc_feupdateenv_testl): New.
9972         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9973         (libc_feupdateenv_testf): New.
9974         (libc_feupdateenv): Use libc_feupdateenv_test.
9975         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9976         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9977
9978         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9979         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9980         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9981         (libc_feresetround_noex): New.
9982         (libc_feresetround_noexf): New.
9983         (libc_feresetround_noexl): New.
9984         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9985         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9986         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9987         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9988         SET_RESTORE_ROUND.
9989         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9990         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9991         (__cos): Likewise.
9992         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9993         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9994         SET_RESTORE_ROUND_NOEX.
9995         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9996         SET_RESTORE_ROUND_NOEXF.
9997         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9998         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9999         (libc_feholdsetroundf): New.
10000         (libc_feresetround, libc_feresetroundf): New.
10001
10002         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10003         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10004         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10005
10006         * sysdeps/generic/math_private.h: Include <fenv.h>.
10007         (default_libc_feholdexcept): New.
10008         (default_libc_feholdexcept_setround): New.
10009         (default_libc_fesetenv, default_libc_feupdateenv): New.
10010         (libc_feholdexcept): Only define if undefined.
10011         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10012         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10013         (libc_feholdexcept_setroundl): Likewise.
10014         (libc_feholdexcept_setround_53bit): Likewise.
10015         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10016         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10017         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10018         (libc_feupdateenv_53bit): Likewise.
10019         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10020         (libc_feholdexcept): Convert from macro to inline function.
10021         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10022         (libc_fesetenv, libc_feupdateenv): Likewise.
10023
10024         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10025         not previously defined.
10026         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10027         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10028         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10029         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10030         * sysdeps/ieee754/flt-32/math_private.h: New file.
10031         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10032         math_private.h below SET_FLOAT_WORD.
10033         (__isnan, __isinf_ns, __finite): Remove.
10034         (__isnanf, __isinf_nsf, __finitef): Remove.
10035
10036 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10037
10038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10039
10040 2012-03-17  David S. Miller  <davem@davemloft.net>
10041
10042         [BZ #6471]
10043         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10044         for 2.16.
10045
10046 2012-03-16  David S. Miller  <davem@davemloft.net>
10047
10048         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10049         warnings.
10050
10051         [BZ #6471]
10052         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10053         properly.
10054         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10055         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10056         sysdep_routines when subdir is sysvipc.
10057         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10058         __getshmlba helper.
10059
10060         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10061
10062 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10063
10064         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10065         [__LP64__].
10066
10067 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10068
10069         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10070         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10071         (__lround): Renamed to ...
10072         (__llround): This.  Replace long int with long long int.
10073         Define lround functions as aliases of llround functions.
10074         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10075
10076 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10077
10078         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10079         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10080         adresses to uintptr_t.  Replace "long int" and "unsigned long
10081         int" with "greg_t" on va_arg.
10082
10083 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10084
10085         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10086         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10087
10088         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10089         Move e_machine check before EI_CLASS check.  Handle x32
10090         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10091         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10092         SKIP_EM_IA_64 and include
10093         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10094
10095         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10096         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10097         (add_system_dir): New macro.
10098
10099         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10100         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10101
10102 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10103
10104         [BZ #2551]
10105         [BZ #2552]
10106         [BZ #2553]
10107         [BZ #2554]
10108         [BZ #2562]
10109         [BZ #2563]
10110         [BZ #2565]
10111         [BZ #2566]
10112         [BZ #2576]
10113         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10114         (y0): Likewise.
10115         * math/w_j0f.c (j0f): Likewise.
10116         (y0f): Likewise.
10117         * math/w_j0l.c (__j0l): Likewise.
10118         (__y0l): Likewise.
10119         * math/w_j1.c (j1): Likewise.
10120         (y1): Likewise.
10121         * math/w_j1f.c (j1f): Likewise.
10122         (y1f): Likewise.
10123         * math/w_j1l.c (__j1l): Likewise.
10124         (__y1l): Likewise.
10125         * math/w_jn.c (jn): Likewise.
10126         (yn): Likewise.
10127         * math/w_jnf.c (jnf): Likewise.
10128         (ynf): Likewise.
10129         * math/w_jnl.c (__jnl): Likewise.
10130         (__ynl): Likewise.
10131         * math/libm-test.inc (j0_test): Add more tests.
10132         (j1_test): Likewise.
10133         (jn_test): Likewise.  Add trailing semicolon to existing test.
10134         (y0_test): Likewise.
10135         (y1_test): Likewise.
10136         * sysdeps/i386/fpu/libm-test-ulps: Update.
10137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10138
10139         [BZ #13851]
10140         [BZ #13854]
10141         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10142         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10143         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10144         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10145         (__tanl): Set errno for infinite argument.
10146         * sysdeps/i386/fpu/mptan.c: Remove.
10147         * sysdeps/i386/fpu/s_tan.S: Likewise.
10148         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10149         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10150         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10151         * math/libm-test.inc (tan_test): Add more tests and enable more
10152         tests for double and long double.
10153         * sysdeps/i386/fpu/libm-test-ulps: Update.
10154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10155
10156 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10157
10158         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10159         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10160
10161 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10162
10163         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10164         * configure.in: Use it for both main tree and add-ons.
10165         * configure: Regenerated.
10166
10167 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10168
10169         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10170
10171 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10172
10173         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10174         in comment.
10175
10176         [BZ #13851]
10177         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10178         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10179         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10180         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10181         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10182         infinite argument.
10183         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10184         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10185         != 0 for prec == 2.
10186         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10187         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10188         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10189         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10190         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10191         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10192         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10193         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10194         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10195         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10196         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10197         * math/libm-test.inc (cos_test): Add more tests and enable more
10198         tests for long double.
10199         (sin_test): Likewise.
10200         (sincos_test): Likewise.
10201         * sysdeps/i386/fpu/libm-test-ulps: Update.
10202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10203
10204 2012-03-16  David S. Miller  <davem@davemloft.net>
10205
10206         * sysdeps/sparc/fpu/math_private.h: New file.
10207
10208 2012-03-15  David S. Miller  <davem@davemloft.net>
10209
10210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10211         file.
10212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10214         file.
10215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10216         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10217         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10218         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10219         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10220         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10221         sysdep routines.
10222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10223
10224         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10225         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10226
10227         * sysdeps/sparc/sparc-ifunc.h: New file.
10228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10229         sparc-ifunc.h
10230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10232         Likewise.
10233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10234         Likewise.
10235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10239         Likewise.
10240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10245         Likewise.
10246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10247         Likewise.
10248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10252         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10253         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10254         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10255         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10256         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10257         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10258         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10259         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10260         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10261         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10262         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10263         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10264         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10265         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10266         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10267         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10268         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10269         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10270         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10271         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10272
10273 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10274
10275         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10276         scaling.
10277         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10278
10279 2012-03-15  Andreas Jaeger  <aj@suse.de>
10280
10281         [BZ #13852]
10282         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10283         ieee754/flt-32 implementation for sin, cos and sincos.
10284         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10285         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10286         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10287         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10288         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10289         ieee754/flt-32 implementation for tan.
10290
10291         * math/libm-test.inc (cos_test): Enable some large input tests for
10292         float as well
10293         (sin_test): Likewise.
10294         (sincos_test): Likewise.
10295         (tan_test): Add tests for large input.
10296
10297         * sysdeps/i386/fpu/libm-test-ulps: Update.
10298
10299 2012-03-15  Andreas Jaeger  <aj@suse.de>
10300
10301         [BZ #13658]
10302         * math/libm-test.inc (cos_test): Add more test cases.
10303         (sin_test): Likewise.
10304         (sincos_test): Likewise.
10305
10306 2012-03-15  Andreas Jaeger  <aj@suse.de>
10307
10308         [BZ #13837]
10309         * math/libm-test.inc (cos_test): Add a test case for large input
10310         value.
10311         (sin_test): Likewise.
10312         (sincos_test): Likewise.
10313
10314 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10315         Joseph Myers  <joseph@codesourcery.com>
10316
10317         [BZ #13658]
10318         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10319         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10320         * sysdeps/i386/fpu/branred.c: Likewise.
10321         * sysdeps/i386/fpu/dosincos.c: Likewise.
10322         * sysdeps/i386/fpu/mpa.c: Likewise.
10323         * sysdeps/i386/fpu/s_cos.S: Likewise.
10324         * sysdeps/i386/fpu/s_sin.S: Likewise.
10325         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10326         * sysdeps/i386/fpu/sincos32.c: Likewise.
10327
10328         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10329         Define.
10330         (libc_feupdateenv_53bit): Define.
10331         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10332         Define.
10333         (libc_feupdateenv_53bit): Define.
10334
10335         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10336         53 bit (without extend i386 double precision).
10337
10338         * math/libm-test.inc (sincos_test): Add tests for large input.
10339         (sin): Likewise.
10340         (cos): Likewise.
10341
10342         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10343
10344 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10345
10346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10347
10348 2012-03-15  David S. Miller  <davem@davemloft.net>
10349
10350         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10351         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10352         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10353         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10354         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10355         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10356         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10357         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10358         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10359         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10360         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10361         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10362         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10363         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10364         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10366         file.
10367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10369         file.
10370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10372         file.
10373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10375         file.
10376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10377         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10378         fmin/fmax sysdep routines.
10379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10380
10381 2012-03-14  David S. Miller  <davem@davemloft.net>
10382
10383         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10384         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10385         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10386         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10387         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10388         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10389         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10390         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10391         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10392         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10393         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10394         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10395         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10396         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10397         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10398         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10399         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10400         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10401         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10402         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10403         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10404         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10405         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10406         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10407         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10408         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10409         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10410         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10411         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10412         routines.
10413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10414         file.
10415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10417         file.
10418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10420         file.
10421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10423         file.
10424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10426         file.
10427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10429         file.
10430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10431         file.
10432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10433         file.
10434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10435         file.
10436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10437         New file.
10438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10439         file.
10440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10441         file.
10442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10444         file.
10445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10447         file.
10448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10450         file.
10451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10453         VIS3 routines.
10454
10455         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10456         New file.
10457
10458         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10459
10460         * sysdeps/sparc/configure.in: New file.
10461         * sysdeps/sparc/configure: Generate.
10462         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10463         * configure: Regenerate.
10464         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10465         * config.make.in (have-as-vis3): New.
10466         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10467         available use -Av9d instead of -Av9a.
10468         * sysdeps/sparc/sparc64/Makefile: Likewise.
10469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10471         New file.
10472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10473         file.
10474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10475         New file.
10476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10477         file.
10478         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10479         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10480         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10481         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10482         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10483
10484         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10485         fzeros/fnegs to load 0x80000000 into a float register instead of
10486         using the stack.
10487         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10488
10489 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10490
10491         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10492         bits/syscall.h.
10493         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10494         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10495         ($(inst_includedir)/bits/syscall.h): Remove rule.
10496         ($(objpfx)bits/syscall.d): Include instead of
10497         $(objpfx)syscall-list.d.
10498         (generated): Change syscall-list.h and syscall-list.d to
10499         bits/syscall.h and bits/syscall.d.
10500
10501 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10502
10503         [BZ #13846]
10504         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10505
10506 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10507
10508         [BZ #13841]
10509         * math/s_csqrt.c: Include <float.h>.
10510         (__csqrt): Scale large or subnormal inputs.
10511         * math/s_csqrtf.c: Likewise.
10512         * math/s_csqrtl.c: Likewise.
10513         * math/libm-test.inc (csqrt_test): Add more tests.
10514         * sysdeps/i386/fpu/libm-test-ulps: Update.
10515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10516
10517         [BZ #13840]
10518         * math/libm-test.inc (hypot_test): Add more tests.
10519
10520 2012-03-13  David S. Miller  <davem@davemloft.net>
10521
10522         [BZ #13840]
10523         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10524         double-precision for the calculation instead of scaling.
10525
10526 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10527
10528         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10529         manipulate bits before adding and subtracting TWO52[sx].
10530         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10531         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10532         Likewise.
10533         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10534
10535 2012-03-13  David S. Miller  <davem@davemloft.net>
10536
10537         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10538         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10539         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10540         rtld-global-offsets.h
10541         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10542
10543         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10544         large parameters.
10545
10546         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10547
10548         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10549         'err' in the ifdef scope in which it is actually used.
10550
10551         * nss/nss_db/db-init.c: Include string.h
10552
10553 2012-03-12  David S. Miller  <davem@davemloft.net>
10554
10555         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10556         masking out of the most significant byte of random value used.
10557         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10558         Fix coding style in previous change.
10559
10560         * sysdeps/unix/sysv/linux/kernel-features.h
10561         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10562         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10563         expression.
10564         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10565         later.
10566
10567 2012-03-11  David S. Miller  <davem@davemloft.net>
10568
10569         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10570         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10571         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10572         for 'resultvar' otherwise things get truncated on 64-bit.
10573
10574         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10575         Fix masking out of the most significant byte of random value used.
10576
10577         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10578
10579 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10580
10581         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10582
10583 2012-03-09  David S. Miller  <davem@davemloft.net>
10584
10585         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10586         variables with appropriate CPP guards.
10587         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10588         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10589         on resulting framesize and the management of the outregs buffer for pltexit.
10590         Preserve floating point return values across _dl_call_pltexit call.
10591         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10592         framesize and the management of the outregs buffer for pltexit.
10593         Preserve floating point return values across _dl_call_pltexit
10594         call.
10595         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10596         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10597         (print_exit): Fix format string for return register value.
10598
10599 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10600
10601         * sunrpc/Makefile (others): Add rpcgen.
10602         ($(objpfx)rpcgen): Remove special build rule and dependency on
10603         libc.
10604         * sunrpc/rpcgen.c: New file.
10605
10606 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         [BZ #13673]
10609         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10610         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10611         * sysdeps/i386/crti.S: Likewise.
10612         * sysdeps/i386/crtn.S: Likewise.
10613         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10614         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10615         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10616         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10617         * sysdeps/sh/crti.S: Likewise.
10618         * sysdeps/sh/crtn.S: Likewise.
10619         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10620
10621         [BZ #13673]
10622         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10623         with URL.
10624         * locale/programs/locfile-kw.gperf: Likewise.
10625         * locale/programs/charmap-kw.h: Regenerated.
10626         * locale/programs/locfile-kw.h: Likewise.
10627
10628         [BZ #13673]
10629         * intl/plural.y: Replace FSF snail mail address with URL.
10630         * intl/plural.c: Regenerated.
10631
10632 2012-03-09  Richard Henderson  <rth@twiddle.net>
10633
10634         * include/math_private.h: Remove file.
10635         * math/math_private.h: Move file ...
10636         * sysdeps/generic/math_private.h: ... here.
10637
10638         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10639         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10640         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10641
10642         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10643         and <math_private.h>.
10644         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10645         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10646         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10647         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10648         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10649         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10650         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10651         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10652         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10653         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10654         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10655         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10656         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10657         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10658         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10659         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10660         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10661         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10662         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10663         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10664         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10665         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10666         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10667         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10668         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10669         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10670         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10671         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10672         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10673         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10674         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10675         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10676         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10677         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10678         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10679         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10680         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10681         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10682         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10683         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10684         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10685         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10686         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10687         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10688         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10689         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10690         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10691         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10692         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10693         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10694         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10695         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10696         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10697         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10698         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10699         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10700         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10701         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10702         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10703         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10704         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10705         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10706         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10707         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10708         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10709         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10710         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10711         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10712         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10713         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10714         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10715         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10716         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10717         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10718         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10719         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10720         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10721         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10722         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10723         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10724         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10725         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10726         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10727         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10728         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10729         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10730         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10731         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10732         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10733         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10734         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10735         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10736         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10737         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10738         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10739         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10740         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10741         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10742         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10743         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10744         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10745         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10746         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10747         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10748         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10749         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10750         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10751         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10752         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10753         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10754         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10755         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10756         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10757         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10758         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10759         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10760         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10761         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10762         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10763         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10764         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10765         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10766         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10767         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10768         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10769         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10770         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10771         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10772         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10773         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10774         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10775         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10776         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10777         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10778         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10779         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10780         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10781         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10782         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10783         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10784         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10785         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10786         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10787         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10788         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10789         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10790         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10791         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10792         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10793         * sysdeps/ieee754/k_standard.c: Likewise.
10794         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10795         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10796         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10797         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10798         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10799         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10800         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10801         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10802         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10803         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10804         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10805         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10806         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10807         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10808         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10809         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10810         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10811         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10812         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10813         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10814         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10815         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10816         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10817         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10818         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10819         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10820         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10821         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10822         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10823         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10824         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10825         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10826         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10827         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10828         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10829         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10830         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10831         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10832         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10833         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10834         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10835         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10836         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10837         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10838         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10839         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10840         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10841         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10842         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10843         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10844         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10845         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10846         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10847         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10848         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10849         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10850         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10851         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10852         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10853         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10854         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10855         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10856         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10857         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10858         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10859         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10860         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10861         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10862         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10863         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10864         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10865         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10866         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10867         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10868         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10869         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10870         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10871         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10872         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10873         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10874         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10875         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10876         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10877         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10878         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10879         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10880         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10881         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10882         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10883         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10884         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10885         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10886         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10887         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10888         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10889         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10890         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10891         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10892         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10893         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10894         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10895         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10896         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10897         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10898         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10899         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10900         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10901         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10902         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10903         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10904         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10905         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10906         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10907         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10908         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10909         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10910         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10911         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10912         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10913         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10914         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10915         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10916         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10917         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10918         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10919         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10920         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10921         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10922         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10923         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10924         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10925         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10926         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10927         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10928         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10929         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10930         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10931         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10932         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10933         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10934         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10935         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10936         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10937         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10938         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10939         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10940         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10941         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10942         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10943         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10944         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10945         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10946         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10947         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10948         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10949         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10950         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10951         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10952         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10953         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10954         * sysdeps/ieee754/s_lib_version.c: Likewise.
10955         * sysdeps/ieee754/s_matherr.c: Likewise.
10956         * sysdeps/ieee754/s_signgam.c: Likewise.
10957         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10958         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10959         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10960         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10961         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10962         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10963         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10964         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10965         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10966         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10967         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10968         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10969         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10970         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10971         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10972         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10973         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10974         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10975         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10976         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10977         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10978
10979 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10980
10981         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10982         * sunrpc/rpc_main.c: Likewise.
10983         * sunrpc/rpc_svcout.c: Likewise.
10984
10985 2012-03-09  David S. Miller  <davem@davemloft.net>
10986
10987         * include/math_private.h: New file.
10988
10989 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10990
10991         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10992         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10993         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10994         from <bits/socket_type.h>.
10995         (enum __socket_type): Don't define here.
10996         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10997         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10998         bits/socket_type.h.
10999
11000         [BZ #13566]
11001         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11002         checking __USE_GNU.
11003
11004         * Makerules ($(inst_includedir)/%.h): New rule.
11005         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11006         (install-others): Remove variable setting.
11007         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11008
11009 2012-03-08  Richard Henderson  <rth@twiddle.net>
11010
11011         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11012         from macro to inline function; merge with the
11013         !__LIBC_INTERNAL_MATH_INLINES version.
11014         (__ieee754_sqrtf): Likewise.
11015
11016         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11017         to inline function.
11018         (__rintf, __floor, __floorf): Likewise.
11019
11020         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11021         macro to inline function.
11022         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11023
11024         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11025         not <math/math_private.h>.
11026
11027 2012-03-08  David S. Miller  <davem@davemloft.net>
11028
11029         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11030         copyright year.
11031         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11032
11033 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11034
11035         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11036         normalization.
11037         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11038         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11039
11040 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11041
11042         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11043         be defined individually, they must be defined as a block.  Define
11044         S for printing a string instead of hidint the different by using a
11045         macro for adding the 'l'.
11046         * stdio-common/tst-fphex-wide.c: Adjust.
11047
11048 2012-03-07  Marek Polacek  <polacek@redhat.com>
11049
11050         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11051
11052 2012-03-08  Marek Polacek  <polacek@redhat.com>
11053
11054         [BZ #13806]
11055         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11056         * stdio-common/tst-fphex.c: Define a few macros to make the
11057         test reusable.  Use them.
11058         * stdio-common/tst-fphex-wide.c: New file.
11059
11060 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11061
11062         [BZ #6911]
11063         * manual/macros.texi (gnusystems): New macro.
11064         (nongnusystems): Likewise.
11065         (gnulinuxhurdsystems): Likewise.
11066         (gnuhurdsystems): Likewise..
11067         (gnulinuxsystems): Likewise.
11068         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11069         variants of the GNU system, not "GNU system".
11070         * manual/conf.texi: Likewise.
11071         * manual/errno.texi: Likewise.  Update example of errno macro
11072         expansion.
11073         * manual/filesys.texi: Likewise.
11074         (getumask): Document as specific to GNU/Hurd.
11075         * manual/install.texi: Likewise.  Reword some references to
11076         GNU/Linux.
11077         * manual/intro.texi: Likewise.
11078         * manual/io.texi: Likewise.
11079         (File Name Portability): Detail which constraints are inapplicable
11080         to all GNU systems and which are only inapplicable to GNU/Hurd.
11081         * manual/job.texi: Likewise.
11082         * manual/llio.texi: Likewise.
11083         (O_NOCTTY): Document as present on GNU/Linux.
11084         * manual/maint.texi: Likewise.
11085         * manual/memory.texi: Likewise.
11086         * manual/pattern.texi: Likewise.
11087         * manual/pipe.texi: Likewise.
11088         * manual/process.texi: Likewise.
11089         * manual/resource.texi: Likewise.
11090         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11091         child on GNU/Hurd.
11092         * manual/setjmp.texi: Likewise.
11093         * manual/signal.texi: Likewise.
11094         * manual/startup.texi: Likewise.
11095         * manual/stdio.texi: Likewise.
11096         * manual/terminal.texi: Likewise.
11097         (ONLCR): Document as POSIX.
11098         (OXTABS): Document availability on GNU/Linux as XTABS.
11099         (ONOEOT): Document availability separately from other bits.
11100         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11101         * manual/time.texi: Likewise.
11102         * manual/users.texi: Likewise.
11103         * INSTALL: Regenerated.
11104         * sysdeps/gnu/errlist.c: Regenerated.
11105
11106         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11107         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11108         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11109         puts.
11110         * configure: Regenerated.
11111
11112 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11113
11114         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11115         default includes instead of AC_HEADER_CHECK.
11116         * sysdeps/i386/configure: Regenerated.
11117
11118         [BZ #10716]
11119         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11120         * math/s_cacoshf.c (__cacoshf): Likewise.
11121         * math/s_cacoshl.c (__cacoshl): Likewise.
11122         * math/s_casinh.c (__casinh): Set signs of result from argument.
11123         * math/s_casinhf.c (__casinhf): Likewise.
11124         * math/s_casinhl.c (__casinhl): Likewise.
11125         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11126         (casinh_test): Add more tests.
11127         * sysdeps/i386/fpu/libm-test-ulps: Update.
11128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11129
11130 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11131
11132         * po/zh_TW.po: Update from translation team.
11133
11134         * login/Makefile (distribute): Remove variable.
11135         * catgets/Makefile: Likewise.
11136         * mach/Makefile: Likewise.
11137         * malloc/Makefile: Likewise.
11138         * misc/Makefile: Likewise.
11139         * iconv/Makefile: Likewise.
11140         * nscd/Makefile: Likewise.
11141         * hurd/Makefile: Likewise.
11142         * manual/Makefile: Likewise.
11143         * locale/Makefile: Likewise.
11144         * intl/Makefile: Likewise.
11145         * conform/Makefile: Likewise.
11146         * nss/Makefile: Likewise.
11147         * time/Makefile: Likewise.
11148         * soft-fp/Makefile: Likewise.
11149         * dirent/Makefile: Likewise.
11150         * gmon/Makefile: Likewise.
11151         * po/Makefile: Likewise.
11152         * rt/Makefile: Likewise.
11153         * socket/Makefile: Likewise.
11154         * math/Makefile: Likewise.
11155         * signal/Makefile: Likewise.
11156         * debug/Makefile: Likewise.
11157         * elf/Makefile: Likewise.
11158         * timezone/Makefile: Likewise.
11159         * stdlib/Makefile: Likewise.
11160         * iconvdata/Makefile: Likewise.
11161         * sunrpc/Makefile: Likewise.
11162         * io/Makefile: Likewise.
11163         * argp/Makefile: Likewise.
11164         * inet/Makefile: Likewise.
11165         * hesiod/Makefile: Likewise.
11166         * grp/Makefile: Likewise.
11167         * csu/Makefile: Likewise.
11168         * wctype/Makefile: Likewise.
11169         * crypt/Makefile: Likewise.
11170         * libio/Makefile: Likewise.
11171         * string/Makefile: Likewise.
11172         * nis/Makefile: Likewise.
11173         * resolv/Makefile: Likewise.
11174         * stdio-common/Makefile: Likewise.
11175         * wcsmbs/Makefile: Likewise.
11176         * dlfcn/Makefile: Likewise.
11177         * posix/Makefile: Likewise.
11178
11179         [BZ #6959]
11180         * timezone/Makefile: Don't install timezone files, just the programs
11181         and scripts.
11182
11183 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11184
11185         * nss/databases.def: Add missing gshadow entry.
11186
11187         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11188
11189 2012-03-06  Marek Polacek  <polacek@redhat.com>
11190
11191         [BZ #13726]
11192         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11193         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11194         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11195         * stdio-common/tst-long-dbl-fphex.c: New file.
11196
11197 2012-03-06  David S. Miller  <davem@davemloft.net>
11198
11199         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11200         (set_obp_int): New function.
11201         (get_obp_int): New function.
11202         (__get_clockfreq_via_dev_openprom): Likewise.
11203         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11204         Avoid unused variable warnings on 'val' and use builtin_expect.
11205         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11206         __builtin_expect.
11207         (INLINE_CLONE_SYSCALL): Likewise.
11208
11209 2012-03-05  David S. Miller  <davem@davemloft.net>
11210
11211         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11212
11213 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11214
11215         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11216
11217         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11218         only for |x| >= 40.
11219         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11220
11221 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11222
11223         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11224         Replace gettimeofday with __vdso_gettimeofday.
11225
11226         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11227         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11228         __vdso_clock_gettime and __vdso_getcpu.
11229
11230         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11231         time with __vdso_time.
11232
11233 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11234
11235         * manual/lang.texi (size_t): Note types to which size_t may be
11236         equivalent with the GNU C Library, but do not describe when
11237         differences between them are significant.
11238
11239 2012-03-05  Andreas Jaeger  <aj@suse.de>
11240
11241         * sysdeps/i386/fpu/libm-test-ulps: Update.
11242
11243 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11244
11245         [BZ #3976]
11246         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11247         (__ieee754_pow): Save and restore rounding mode and use
11248         round-to-nearest for main computations.
11249         * math/libm-test.inc (pow_test_tonearest): New function.
11250         (pow_test_towardzero): Likewise.
11251         (pow_test_downward): Likewise.
11252         (pow_test_upward): Likewise.
11253         (main): Call the new functions.
11254         * sysdeps/i386/fpu/libm-test-ulps: Update.
11255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11256
11257         [BZ #3976]
11258         * math/libm-test.inc (cosh_test_tonearest): New function.
11259         (cosh_test_towardzero): Likewise.
11260         (cosh_test_downward): Likewise.
11261         (cosh_test_upward): Likewise.
11262         (sinh_test_tonearest): Likewise.
11263         (sinh_test_towardzero): Likewise.
11264         (sinh_test_downward): Likewise.
11265         (sinh_test_upward): Likewise.
11266         (main): Call the new functions.
11267         * sysdeps/i386/fpu/libm-test-ulps: Update.
11268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11269
11270 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11271
11272         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11273         default stack guard is set in last bytes.
11274         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11275
11276 2012-03-05  Kees Cook  <keescook@chromium.org>
11277
11278         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11279
11280         [BZ #13656]
11281         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11282         possibly allocate from heap instead of stack.
11283         * stdio-common/bug-vfprintf-nargs.c: New file.
11284         * stdio-common/Makefile (tests): Add nargs overflow test.
11285
11286 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11287
11288         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11289
11290 2012-03-03  Marek Polacek  <polacek@redhat.com>
11291
11292         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11293         * math/math_private.h: Likewise.
11294         * stdlib/tst-strtod.c: Likewise.
11295         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11296         * sysdeps/x86_64/bits/atomic.h: Likewise.
11297
11298 2012-03-02  David S. Miller  <davem@davemloft.net>
11299
11300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11304         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11305         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11306         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11307         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11308
11309 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11310
11311         [BZ #13792]
11312         * manual/examples/README: New file, says the example source files
11313         can be used under GPL>=2.
11314         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11315         line containing just "*/".
11316         * manual/examples/add.c: Add copyright header (GPL>=2).
11317         * manual/examples/argp-ex1.c: Likewise.
11318         * manual/examples/argp-ex2.c: Likewise.
11319         * manual/examples/argp-ex3.c: Likewise.
11320         * manual/examples/argp-ex4.c: Likewise.
11321         * manual/examples/atexit.c: Likewise.
11322         * manual/examples/db.c: Likewise.
11323         * manual/examples/dir.c: Likewise.
11324         * manual/examples/dir2.c: Likewise.
11325         * manual/examples/execinfo.c: Likewise.
11326         * manual/examples/filecli.c: Likewise.
11327         * manual/examples/filesrv.c: Likewise.
11328         * manual/examples/fmtmsgexpl.c: Likewise.
11329         * manual/examples/genpass.c: Likewise.
11330         * manual/examples/inetcli.c: Likewise.
11331         * manual/examples/inetsrv.c: Likewise.
11332         * manual/examples/isockad.c: Likewise.
11333         * manual/examples/longopt.c: Likewise.
11334         * manual/examples/memopen.c: Likewise.
11335         * manual/examples/memstrm.c: Likewise.
11336         * manual/examples/mkfsock.c: Likewise.
11337         * manual/examples/mkisock.c: Likewise.
11338         * manual/examples/mygetpass.c: Likewise.
11339         * manual/examples/pipe.c: Likewise.
11340         * manual/examples/popen.c: Likewise.
11341         * manual/examples/rprintf.c: Likewise.
11342         * manual/examples/search.c: Likewise.
11343         * manual/examples/select.c: Likewise.
11344         * manual/examples/setjmp.c: Likewise.
11345         * manual/examples/sigh1.c: Likewise.
11346         * manual/examples/sigusr.c: Likewise.
11347         * manual/examples/stpcpy.c: Likewise.
11348         * manual/examples/strdupa.c: Likewise.
11349         * manual/examples/strftim.c: Likewise.
11350         * manual/examples/strncat.c: Likewise.
11351         * manual/examples/subopt.c: Likewise.
11352         * manual/examples/swapcontext.c: Likewise.
11353         * manual/examples/termios.c: Likewise.
11354         * manual/examples/testopt.c: Likewise.
11355         * manual/examples/testpass.c: Likewise.
11356         * manual/examples/timeval_subtract.c: Likewise.
11357
11358         [BZ #13792]
11359         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11360         function to ...
11361         * manual/timeval_subtract.c.texi: ... here, new file.
11362
11363 2012-03-02  David S. Miller  <davem@davemloft.net>
11364
11365         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11366
11367 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11368
11369         [BZ #3976]
11370         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11371         (__sin): Save and restore rounding mode and use round-to-nearest
11372         for all computations.
11373         (__cos): Save and restore rounding mode and use round-to-nearest
11374         for all computations.
11375         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11376         <fenv.h>.
11377         (tan): Save and restore rounding mode and use round-to-nearest for
11378         all computations.
11379         * math/libm-test.inc (cos_test_tonearest): New function.
11380         (cos_test_towardzero): Likewise.
11381         (cos_test_downward): Likewise.
11382         (cos_test_upward): Likewise.
11383         (sin_test_tonearest): Likewise.
11384         (sin_test_towardzero): Likewise.
11385         (sin_test_downward): Likewise.
11386         (sin_test_upward): Likewise.
11387         (tan_test_tonearest): Likewise.
11388         (tan_test_towardzero): Likewise.
11389         (tan_test_downward): Likewise.
11390         (tan_test_upward): Likewise.
11391         (main): Call the new functions.
11392         * sysdeps/i386/fpu/libm-test-ulps: Update.
11393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11394
11395         [BZ #10135]
11396         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11397         small n, then large n, before computing and testing k+n.
11398         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11399         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11400         Likewise.
11401         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11402         Likewise.
11403         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11404         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11405         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11406         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11407         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11408         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11409         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11410         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11411         * math/libm-test.inc (scalbn_test): Add more tests.
11412         (scalbln_test): Likewise.
11413
11414         * manual/filesys.texi (mode_t): Describe constraints on size and
11415         signedness, not exact equivalence to a particular type.
11416         (ino_t): Likewise.
11417         (ino64_t): Likewise.
11418         (dev_t): Likewise.
11419         (nlink_t): Likewise.
11420         (blkcnt_t): Likewise.
11421         (blkcnt64_t): Likewise.
11422         * manual/llio.texi (off_t): Likewise.
11423
11424         [BZ #3976]
11425         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11426         (__ieee754_exp): Save and restore rounding mode and use
11427         round-to-nearest for all computations.
11428         * math/libm-test.inc (exp_test_tonearest): New function.
11429         (exp_test_towardzero): Likewise.
11430         (exp_test_downward): Likewise.
11431         (exp_test_upward): Likewise.
11432         (main): Call the new functions.
11433         * sysdeps/i386/fpu/libm-test-ulps: Update.
11434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11435
11436 2012-03-01  Chris Demetriou  <cgd@google.com>
11437
11438         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11439         have predictable order.
11440
11441 2012-03-01  David S. Miller  <davem@davemloft.net>
11442
11443         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11444
11445         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11446         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11447         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11448         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11449
11450         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11451         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11452         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11453         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11454         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11455         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11456         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11457         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11458         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11459
11460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11461
11462         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11463         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11464         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11465
11466         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11467         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11468         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11469         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11470         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11471         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11472         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11473         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11474         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11475         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11476         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11477         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11478         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11479         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11480         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11481         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11482         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11483         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11484         * sysdeps/sparc/elf/configure: Regenerated.
11485
11486 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11487
11488         * configure.in (AS, LD): Require binutils 2.20 or later.
11489         * configure: Regenerated.
11490         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11491         as required minimum version.
11492         * INSTALL: Regenerated.
11493
11494         [BZ #2541]
11495         [BZ #4108]
11496         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11497         before squaring exponent.
11498         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11499         bottom long double and 27 bits of top long double before squaring
11500         exponent.
11501         * math/libm-test.inc (erfc_test): Add more tests.
11502         * sysdeps/i386/fpu/libm-test-ulps: Update.
11503         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11505
11506 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11507
11508         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11509         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11510         containing bit-fields.
11511         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11512         * soft-fp/single.h (_FP_UNION_S): Likewise.
11513         * soft-fp/double.h (_FP_UNION_D): Likewise.
11514
11515 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11516
11517         [BZ #13786]
11518         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11519         not include ../strcmp.S.
11520         [USE_AS_STRNCASECMP_L]: Likewise.
11521         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11522         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11523         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11524         (__strncasecmp_l_ia32): Define as alias to
11525         __strncasecmp_l_nonascii.
11526
11527         [BZ #5794]
11528         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11529         * sysdeps/i386/fpu/libm-test-ulps: Update.
11530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11531
11532         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11534
11535 2012-02-29  Jeff Law  <law@redhat.com>
11536
11537         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11538         out of bounds read.
11539
11540 2012-02-29  Marek Polacek  <polacek@redhat.com>
11541
11542         [BZ #13706]
11543         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11544         * elf/Makefile: Add rules to run tst-unused-dep.out.
11545
11546 2012-02-28  David S. Miller  <davem@davemloft.net>
11547
11548         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11549         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11550         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11551         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11552         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11553         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11554
11555 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11556
11557         * math/libm-test.inc (llround_test): Move one test from
11558         lround_test.  Use TEST_f_L in moved test.
11559         (lround_test): Move misplaced test to llround_test.  Add testcase
11560         from bug 2561.
11561
11562 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11563
11564         * sysdeps/x86_64/fpu/e_expf.S: New file.
11565         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11566
11567 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11568
11569         [BZ #13637]
11570         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11571         of remain_len that may cause incomplete multi-byte character and
11572         false match.
11573         * posix/bug-regex33.c: New file.
11574         * posix/Makefile (tests): Add bug-regex33.
11575
11576 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11577
11578         * manual/macros.texi: New file.
11579         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11580         * manual/libc.texinfo: Include macros.texi.
11581         * manual/creatute.texi: Likewise.
11582         * manual/install.texi: Likewise.
11583         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11584         @glibcadj{} in references to the GNU C Library.
11585         * manual/charset.texi: Likewise.
11586         * manual/conf.texi: Likewise.
11587         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11588         when not using those macros.
11589         * manual/creature.texi: Likewise.
11590         * manual/crypt.texi: Likewise.
11591         * manual/errno.texi: Likewise.
11592         * manual/filesys.texi: Likewise.
11593         * manual/header.texi: Likewise.
11594         * manual/install.texi: Likewise.
11595         * manual/intro.texi: Likewise.
11596         * manual/io.texi: Likewise.
11597         * manual/job.texi: Likewise.
11598         * manual/lang.texi: Likewise.
11599         * manual/libc.texiinfo: Likewise.
11600         * manual/llio.texi: Likewise.
11601         * manual/locale.texi: Likewise.
11602         * manual/maint.texi: Likewise.
11603         * manual/math.texi: Likewise.
11604         * manual/memory.texi: Likewise.
11605         * manual/message.texi: Likewise.
11606         * manual/nss.texi: Likewise.
11607         * manual/pattern.texi: Likewise.
11608         * manual/process.texi: Likewise.
11609         * manual/resource.texi: Likewise.
11610         * manual/search.texi: Likewise.
11611         * manual/setjmp.texi: Likewise.
11612         * manual/signal.texi: Likewise.
11613         * manual/socket.texi: Likewise.
11614         * manual/startup.texi: Likewise.
11615         * manual/stdio.texi: Likewise.
11616         * manual/string.texi: Likewise.
11617         * manual/sysinfo.texi: Likewise.
11618         * manual/syslog.texi: Likewise.
11619         * manual/terminal.texi: Likewise.
11620         * manual/time.texi: Likewise.
11621         * manual/users.texi: Likewise.
11622         * INSTALL: Regenerated.
11623         * NOTES: Regenerated.
11624         * sysdeps/gnu/errlist.c: Regenerated.
11625
11626 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11627
11628         * include/dirent.h: Include <dirstream.h> before
11629         <dirent/dirent.h>.
11630
11631 2012-02-28  David S. Miller  <davem@davemloft.net>
11632
11633         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11634         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11635         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11636         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11637
11638 2012-02-27  David S. Miller  <davem@davemloft.net>
11639
11640         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11641         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11642         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11643         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11644
11645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11646         frame pointer instead of stack pointer relative arg slot.
11647         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11648         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11649         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11650
11651 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11652
11653         [BZ #3992]
11654         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11655
11656 2012-02-27  David S. Miller  <davem@davemloft.net>
11657
11658         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11659         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11660         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11661         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11662         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11663         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11664         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11665         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11666
11667 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11668
11669         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11670         later.  Allow versions 5-9.
11671         * configure: Regenerated.
11672         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11673         required minimum version and 4.6 as recommended version.  Do not
11674         mention bugs in GCC 2.7 and 2.8.
11675         * INSTALL: Regenerated.
11676
11677 2012-02-27  David S. Miller  <davem@davemloft.net>
11678
11679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11681         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11682         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11683         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11684         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11685         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11686         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11687
11688         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11689         manipulate bits before adding and subtracting TWO112[sx].
11690         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11691
11692 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11693
11694         [BZ #13775]
11695         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11696         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11697         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11698         being in POSIX, because they are in 1003.1-2008.
11699
11700         * rt/tst-aio.c: Include <fcntl.h>.
11701         * rt/tst-aio7.c: Likewise.
11702         * rt/tst-aio64.c: Likewise.
11703
11704         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11705
11706 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11707
11708         * manual/install.texi (--with-headers): Describe headers as
11709         interface headers, not private headers.
11710         (Specific advice for GNU/Linux systems): Describe use of headers
11711         from "make headers_install", not private headers from older
11712         kernels.
11713         * INSTALL: Regenerated.
11714         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11715         Change to 2.6.19.
11716         * sysdeps/unix/sysv/linux/configure: Regenerated.
11717
11718         * manual/llio.texi (fclean): Remove documentation.
11719
11720         * manual/Makefile (libc-texi-generated): New variable.  Include
11721         version.texi.
11722         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11723         $(libc-texi-generated), not duplicated list of files.
11724         (version.texi, stamp-version): New rules.
11725         (realclean): Remove $(libc-texi-generated), not individual files
11726         from that list.  Do not remove dir-add.texinfo.
11727         * manual/libc.texinfo: Comment out uses of edition numbers and
11728         references to printed manual.  Remove last-updated dates.
11729         (EDITION): Comment out.
11730         (ISBN): Likewise.
11731         (VERSION, UPDATED): Remove.
11732         (version.texi): Include.
11733
11734 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11735
11736         * sysdeps/posix/spawni.c: Include <signal.h>.
11737         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11738         * sysdeps/pthread/aio_fsync.c: Likewise.
11739
11740 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11741
11742         * conform/Makefile (tests): Run only when not cross-compiling and
11743         when fast-check is not defined.
11744
11745         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11746         * conform/data/limits.h-data: Fixes for POSIX2008.
11747         * conform/run-conformtest.sh: Run all tests.
11748         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11749         headers.
11750         * include/bits/dlfcn.h: Likewise.
11751         * include/langinfo.h: Likewise.
11752         * include/monetary.h: Likewise.
11753         * include/sys/poll.h: Likewise.
11754
11755         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11756         for __USE_GNU.
11757         * posix/spawn.h: Define __need_sigset_t.
11758         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11759         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11760         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11761         to get sigevent_t only.
11762         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11763         only for __USE_GNU.
11764         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11765         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11766         process_vm_writev only for __USE_GNU.
11767         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11768
11769         * conform/Makefile: For now ignore errors from run-conformtest.
11770         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11771         POSIX to avoid namespace pollution.  Don't prepend headers.
11772         * conform/data/aio.h-data: Fixes for POSIX testing.
11773         * conform/data/fcntl.h-data: Likewise.
11774         * conform/data/glob.h-data: Likewise.
11775         * conform/data/grp.h-data: Likewise.
11776         * conform/data/pthread.h-data: Likewise.
11777         * conform/data/pwd.h-data: Likewise.
11778         * conform/data/signal.h-data: Likewise.
11779         * conform/data/spawn.h-data: Likewise.
11780         * conform/data/stdio.h-data: Likewise.
11781         * conform/data/stdlib.h-data: Likewise.
11782         * conform/data/stropts.h-data: Likewise.
11783         * conform/data/sys/mman.h-data: Likewise.
11784         * conform/data/sys/stat.h-data: Likewise.
11785         * conform/data/sys/types.h-data: Likewise.
11786         * conform/data/sys/wait.h-data: Likewise.
11787         * conform/data/time.h-data: Likewise.
11788         * conform/data/unistd.h-data: Likewise.
11789         * conform/data/utime.h-data: Likewise.
11790
11791         * io/sys/stat.h: fchmod was always in POSIX.
11792         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11793         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11794         * rt/aio.h: Define __need_timespec before including <time.h>.
11795         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11796         struct.  Add forward declaration of pthread_attr_t and use it in
11797         sigevent.
11798         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11799         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11800         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11801         always remove CLK_TCK definition.
11802
11803 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11804
11805         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11806
11807 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11808
11809         * conform/run-conformtest.sh: New file.
11810         * conform/Makefile: Run run-conformtest for tests.
11811         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11812         support.
11813
11814         * conform/data/uchar.h-data: New file.
11815         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11816         * conform/data/arpa/inet.h-data: Likewise.
11817         * conform/data/assert.h-data: Likewise.
11818         * conform/data/complex.h-data: Likewise.
11819         * conform/data/cpio.h-data: Likewise.
11820         * conform/data/ctype.h-data: Likewise.
11821         * conform/data/dirent.h-data: Likewise.
11822         * conform/data/dlfcn.h-data: Likewise.
11823         * conform/data/errno.h-data: Likewise.
11824         * conform/data/fcntl.h-data: Likewise.
11825         * conform/data/float.h-data: Likewise.
11826         * conform/data/fmtmsg.h-data: Likewise.
11827         * conform/data/fnmatch.h-data: Likewise.
11828         * conform/data/ftw.h-data: Likewise.
11829         * conform/data/glob.h-data: Likewise.
11830         * conform/data/grp.h-data: Likewise.
11831         * conform/data/iconv.h-data: Likewise.
11832         * conform/data/inttypes.h-data: Likewise.
11833         * conform/data/langinfo.h-data: Likewise.
11834         * conform/data/libgen.h-data: Likewise.
11835         * conform/data/limits.h-data: Likewise.
11836         * conform/data/locale.h-data: Likewise.
11837         * conform/data/math.h-data: Likewise.
11838         * conform/data/monetary.h-data: Likewise.
11839         * conform/data/mqueue.h-data: Likewise.
11840         * conform/data/ndbm.h-data: Likewise.
11841         * conform/data/net/if.h-data: Likewise.
11842         * conform/data/netdb.h-data: Likewise.
11843         * conform/data/netinet/in.h-data: Likewise.
11844         * conform/data/nl_types.h-data: Likewise.
11845         * conform/data/poll.h-data: Likewise.
11846         * conform/data/pthread.h-data: Likewise.
11847         * conform/data/pwd.h-data: Likewise.
11848         * conform/data/regex.h-data: Likewise.
11849         * conform/data/sched.h-data: Likewise.
11850         * conform/data/search.h-data: Likewise.
11851         * conform/data/semaphore.h-data: Likewise.
11852         * conform/data/setjmp.h-data: Likewise.
11853         * conform/data/signal.h-data: Likewise.
11854         * conform/data/spawn.h-data: Likewise.
11855         * conform/data/stdarg.h-data: Likewise.
11856         * conform/data/stdio.h-data: Likewise.
11857         * conform/data/stdlib.h-data: Likewise.
11858         * conform/data/string.h-data: Likewise.
11859         * conform/data/strings.h-data: Likewise.
11860         * conform/data/stropts.h-data: Likewise.
11861         * conform/data/sys/ipc.h-data: Likewise.
11862         * conform/data/sys/mman.h-data: Likewise.
11863         * conform/data/sys/msg.h-data: Likewise.
11864         * conform/data/sys/resource.h-data: Likewise.
11865         * conform/data/sys/select.h-data: Likewise.
11866         * conform/data/sys/sem.h-data: Likewise.
11867         * conform/data/sys/shm.h-data: Likewise.
11868         * conform/data/sys/socket.h-data: Likewise.
11869         * conform/data/sys/stat.h-data: Likewise.
11870         * conform/data/sys/statvfs.h-data: Likewise.
11871         * conform/data/sys/time.h-data: Likewise.
11872         * conform/data/sys/timeb.h-data: Likewise.
11873         * conform/data/sys/times.h-data: Likewise.
11874         * conform/data/sys/types.h-data: Likewise.
11875         * conform/data/sys/uio.h-data: Likewise.
11876         * conform/data/sys/un.h-data: Likewise.
11877         * conform/data/sys/utsname.h-data: Likewise.
11878         * conform/data/sys/wait.h-data: Likewise.
11879         * conform/data/syslog.h-data: Likewise.
11880         * conform/data/tar.h-data: Likewise.
11881         * conform/data/termios.h-data: Likewise.
11882         * conform/data/utime.h-data: Likewise.
11883         * conform/data/utmpx.h-data: Likewise.
11884         * conform/data/varargs.h-data: Likewise.
11885         * conform/data/wchar.h-data: Likewise.
11886         * conform/data/wctype.h-data: Likewise.
11887         * conform/data/wordexp.h-data: Likewise.
11888
11889         * include/stropts.h: New file.
11890         * include/uchar.h: New file.
11891         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11892         * include/assert.h: Likewise.
11893         * include/ctype.h: Likewise.
11894         * include/dirent.h: Likewise.
11895         * include/dlfcn.h: Likewise.
11896         * include/fcntl.h: Likewise.
11897         * include/fnmatch.h: Likewise.
11898         * include/glob.h: Likewise.
11899         * include/grp.h: Likewise.
11900         * include/libio.h: Likewise.
11901         * include/locale.h: Likewise.
11902         * include/math.h: Likewise.
11903         * include/net/if.h: Likewise.
11904         * include/netdb.h: Likewise.
11905         * include/netinet/in.h: Likewise.
11906         * include/pthread.h: Likewise.
11907         * include/pwd.h: Likewise.
11908         * include/regex.h: Likewise.
11909         * include/sched.h: Likewise.
11910         * include/search.h: Likewise.
11911         * include/setjmp.h: Likewise.
11912         * include/signal.h: Likewise.
11913         * include/stdio.h: Likewise.
11914         * include/stdlib.h: Likewise.
11915         * include/string.h: Likewise.
11916         * include/sys/cdefs.h: Likewise.
11917         * include/sys/mman.h: Likewise.
11918         * include/sys/msg.h: Likewise.
11919         * include/sys/resource.h: Likewise.
11920         * include/sys/select.h: Likewise.
11921         * include/sys/socket.h: Likewise.
11922         * include/sys/stat.h: Likewise.
11923         * include/sys/statvfs.h: Likewise.
11924         * include/sys/time.h: Likewise.
11925         * include/sys/times.h: Likewise.
11926         * include/sys/uio.h: Likewise.
11927         * include/sys/utsname.h: Likewise.
11928         * include/sys/wait.h: Likewise.
11929         * include/termios.h: Likewise.
11930         * include/time.h: Likewise.
11931         * include/ulimit.h: Likewise.
11932         * include/unistd.h: Likewise.
11933         * include/utime.h: Likewise.
11934         * include/wchar.h: Likewise.
11935         * include/wctype.h: Likewise.
11936         * include/wordexp.h: Likewise.
11937
11938         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11939
11940         * time/time.h: TIME_UTC must be a macro.
11941         Make timespec_get available for ISO C11 only as well.
11942
11943 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11944
11945         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11946         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11947
11948 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11949
11950         * configure.in: Use -o not -a in test for unsupported multi-arch.
11951
11952 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11953
11954         * manual/texinfo.tex: Update to version 2012-01-19.16.
11955
11956 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11957
11958         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11959
11960 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11961
11962         [BZ #13738]
11963         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11964         * manual/fdl-1.3.texi: New file.
11965         * manual/fdl-1.1.texi: File removed.
11966
11967         [BZ #13738]
11968         * manual/libc.texinfo (FDL_VERSION): New @set.
11969         Use it for mention of FDL in cover text.
11970         (Documentation License): Use it in @include file name.
11971
11972 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11973             Roland McGrath  <roland@hack.frob.com>
11974
11975         [BZ #5461]
11976         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11977         not LONG_LONG_MAX and LONG_LONG_MIN.
11978         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11979         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11980         name.
11981         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11982
11983 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11984
11985         [BZ #2547]
11986         [BZ #11365]
11987         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11988         manipulate bits before adding and subtracting TWO23[sx].
11989         * math/libm-test.inc (nearbyint_test): Add more tests.
11990
11991 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11992
11993         [BZ #2548]
11994         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11995         bits before adding and subtracting TWO23[sx].
11996         * math/libm-test.inc (rint_test): Add more tests.
11997         (rint_test_tonearest): Likewise.
11998         (rint_test_towardzero): Likewise.
11999         (rint_test_downward): Likewise.
12000         (rint_test_upward: Likewise.
12001
12002 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12003
12004         [BZ #10110]
12005         * include/stdc-predef.h: New file.  Extracted from features.h.
12006         * include/features.h: Include stdc-predef.h.
12007         * Makefile (headers): Add stdc-predef.h.
12008         * CONFORMANCE (Compiler limitations): Update.
12009
12010 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12011
12012         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12013
12014 2012-02-21  David S. Miller  <davem@davemloft.net>
12015
12016         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12017         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12018
12019 2012-02-20  David S. Miller  <davem@davemloft.net>
12020
12021         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12022         using a normal save/restore sequence, rather than allocating a
12023         dummy stack frame just to store a frame pointer and restore.
12024         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12025
12026 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12027
12028         * manual/install.texi: Fix stray word in line-wrapped comment.
12029
12030 2012-02-20  David S. Miller  <davem@davemloft.net>
12031
12032         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12033         both binutils and gcc support GOTDATA.
12034
12035         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12036         "rd %pc" in the PIC register setup sequences.
12037
12038         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12039         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12040         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12041         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12042         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12043         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12044         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12045         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12046         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12047         (SYSCALL_ERROR_HANDLER): Likewise.
12048         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12049         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12050         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12051         (SYSCALL_ERROR_HANDLER): Likewise.
12052
12053         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12054         (HAVE_GCC_GOTDATA): New.
12055         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12056         relocation support in both binutils and gcc.
12057         * sysdeps/sparc/elf/configure: Regenerate.
12058
12059         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12060         * sysdeps/sparc/sparc32/elf/configure: Delete.
12061         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12062         * sysdeps/sparc/sparc64/elf/configure: Delete.
12063         * sysdeps/sparc/elf/configure.in: New file.
12064         * sysdeps/sparc/elf/configure: Generate.
12065
12066         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12067         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12068         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12069         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12070         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12071
12072 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12073
12074         * manual/install.texi: Do not mention specific glibc version
12075         numbers.
12076         * manual/libc.texinfo (VERSION, UPDATED): Update.
12077         (@copying): Use @copyright{} and range of years.
12078
12079 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12080
12081         [BZ #13695]
12082         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12083         [crti.S not in sysdirs] (generated): Do not append.
12084         [crti.S not in sysdirs] (omit-deps): Likewise.
12085         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12086         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12087         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12088         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12089         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12090         Likewise.
12091         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12092         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12093         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12094         * csu/defs.awk: Remove file.
12095         * sysdeps/generic/initfini.c: Likewise.
12096         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12097         variable.
12098         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12099         Likewise.
12100
12101 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12102
12103         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12104         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12105         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12106         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12107         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12108         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12109         <bits/epoll.h>.
12110         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12111         (__EPOLL_PACKED): Define to empty if not defined by
12112         <bits/epoll.h>.
12113         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12114         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12115         bits/epoll.h.
12116
12117 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12118
12119         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12120         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12121         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12122         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12123         <bits/timerfd.h>.
12124         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12125         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12126         bits/timerfd.h.
12127
12128 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12129
12130         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12131         in C locale.
12132         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12133         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12134         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12136
12137 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12138
12139         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12140         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12141
12142 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12143
12144         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12145         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12146         defined.
12147         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12148         Likewise.
12149         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12150         entry for 2.16.
12151
12152 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12153
12154         * math/w_acos.c: Use non-signaling floating-point comparisons.
12155         * math/w_acosf.c: Likewise.
12156         * math/w_acosh.c: Likewise.
12157         * math/w_acoshf.c: Likewise.
12158         * math/w_acoshl.c: Likewise.
12159         * math/w_acosl.c: Likewise.
12160         * math/w_asin.c: Likewise.
12161         * math/w_asinf.c: Likewise.
12162         * math/w_asinl.c: Likewise.
12163         * math/w_atanh.c: Likewise.
12164         * math/w_atanhf.c: Likewise.
12165         * math/w_atanhl.c: Likewise.
12166         * math/w_exp2.c: Likewise.
12167         * math/w_exp2f.c: Likewise.
12168         * math/w_exp2l.c: Likewise.
12169         * math/w_j0.c: Likewise.
12170         * math/w_j0f.c: Likewise.
12171         * math/w_j0l.c: Likewise.
12172         * math/w_j1.c: Likewise.
12173         * math/w_j1f.c: Likewise.
12174         * math/w_j1l.c: Likewise.
12175         * math/w_jn.c: Likewise.
12176         * math/w_jnf.c: Likewise.
12177         * math/w_log.c: Likewise.
12178         * math/w_log10.c: Likewise.
12179         * math/w_log10f.c: Likewise.
12180         * math/w_log10l.c: Likewise.
12181         * math/w_log2.c: Likewise.
12182         * math/w_log2f.c: Likewise.
12183         * math/w_log2l.c: Likewise.
12184         * math/w_logf.c: Likewise.
12185         * math/w_logl.c: Likewise.
12186         * math/w_sqrt.c: Likewise.
12187         * math/w_sqrtf.c: Likewise.
12188         * math/w_sqrtl.c: Likewise.
12189         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12190         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12191         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12192         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12193         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12194
12195 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12196
12197         [BZ #9739]
12198         * manual/string.texi (strnlen): Use correct parameter name in
12199         equivalent expression.
12200
12201 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12202
12203         [BZ #11174]
12204         * manual/users.texi (seteuid): Consistently use neweuid for
12205         argument name.
12206
12207 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12208
12209         [BZ #13704]
12210         * manual/nss.texi (Services in the NSS configuration): Correct
12211         list of services in example configuration file.
12212
12213 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12214
12215         [BZ #11322]
12216         * manual/arith.texi: Remove statements about negative zero
12217         behaving identically to zero.
12218
12219 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12220
12221         [BZ #5993]
12222         * manual/install.texi: Do not document upgrading from libc5.
12223
12224 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12225
12226         [BZ #4596]
12227         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12228
12229 2012-02-18  David S. Miller  <davem@davemloft.net>
12230
12231         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12232         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12233         %o7 across the call.
12234         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12235         instead.
12236         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12237         SETUP_PIC_REG_LEAF.
12238         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12239         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12240         * sysdeps/sparc/crtn.S: Likewise.
12241
12242 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12243
12244         * aout/Makefile: Remove.
12245
12246 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12247
12248         [BZ #13058]
12249         * manual/examples/argp-ex1.c (main): Format definition in GNU
12250         style.
12251         * manual/examples/argp-ex2.c (main): Likewise.
12252         * manual/examples/argp-ex3.c (main): Likewise.
12253         * manual/examples/argp-ex4.c (main): Likewise.
12254         * manual/examples/longopt.c (main): Use new-style prototype
12255         definition.
12256         * manual/examples/strncat.c (main): Specify return type and use
12257         (void) for arguments.
12258         * manual/examples/subopt.c (main): Use char **argv argument.
12259
12260 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12261
12262         [BZ #5077]
12263         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12264         rounding modes.
12265
12266 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12267
12268         [BZ #6907]
12269         * manual/string.texi (strchr): Change when strchrnul is
12270         recommended.
12271
12272 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12273
12274         [BZ #174]
12275         * manual/locale.texi (setlocale): Document LOCPATH.
12276
12277 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12278
12279         [BZ #10210]
12280         * manual/process.texi (execle): Move @dots{} before last argument.
12281
12282 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12283
12284         [BZ #12047]
12285         * manual/charset.texi (Generic Charset Conversion): Fix typo
12286         (LC_TYPE -> LC_CTYPE).
12287
12288 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12289
12290         [BZ #5805]
12291         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12292         (scalbnf): Likewise.
12293         (scalbnl): Likewise.
12294         (scalbln): Likewise.
12295         (scalblnf): Likewise.
12296         (scalblnl): Likewise.
12297         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12298         (vwarnx): Likewise.
12299         (verr): Likewise.
12300         (verrx): Likewise.
12301         * manual/filesys.texi (telldir): Use braces around return type.
12302         * manual/llio.texi (mmap): Add space after comma.
12303         (mmap64): Likewise.
12304         * manual/math.texi (jn): Use @var{} on parameter names.
12305         (jnf): Likewise.
12306         (jnl): Likewise.
12307         (yn): Likewise.
12308         (ynf): Likewise.
12309         (ynl): Likewise.
12310         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12311         line.
12312         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12313         "...".
12314         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12315         (sched_get_priority_max): Likewise.
12316         * manual/signal.texi (sigvec): Add space after comma.
12317         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12318         names.
12319         (if_indextoname): Likewise.
12320         (if_freenameindex): Likewise.
12321         (sendto): Use ',' instead of '.' in prototype.
12322         * manual/startup.texi (syscall): Use @dots{} instead of literal
12323         "...".
12324         * manual/stdio.texi (__fpending): Separate initial words of
12325         paragraph from @deftypefun line.
12326         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12327         "...".
12328         (vsyslog): Use @var{} on parameter names.
12329         * manual/terminal.texi (stty): Use @var{} on parameter names.
12330         * manual/users.texi (getutmp): Use @var{} on parameter names.
12331         (getutmpx): Likewise.
12332
12333 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12334
12335         [BZ #6884]
12336         * manual/stdio.texi (fopen): Fix typos in description of
12337         ",ccs=STRING".
12338
12339 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12340
12341         [BZ #4026]
12342         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12343         get clock_id definition.
12344
12345 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12346
12347         [BZ #4822]
12348         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12349         (madvise): Cast every argument to void on its own.
12350
12351 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12352
12353         [BZ #9902]
12354         * manual/startup.texi (Exit Status): Fix typo.
12355
12356 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12357
12358         [BZ #10140]
12359         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12360         * manual/examples/argp-ex2.c: Likewise.
12361         * manual/examples/argp-ex3.c: Likewise.
12362
12363 2012-02-16  Richard Henderson  <rth@redhat.com>
12364
12365         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12366         * sysdeps/s390/s390-32/initfini.c: Remove.
12367         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12368         * sysdeps/s390/s390-64/initfini.c: Remove.
12369
12370 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12371
12372         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12373         compiler output for sysdeps/generic/initfini.c.
12374         * sysdeps/sh/elf/initfini.c: Remove file.
12375
12376 2012-02-16  David S. Miller  <davem@davemloft.net>
12377
12378         [BZ #11494]
12379         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12380
12381         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12382         * sysdeps/sparc/crti.S: New file.
12383         * sysdeps/sparc/crtn.S: New file.
12384         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12385         * sysdeps/sparc/sparc64/Makefile: Likewise.
12386
12387 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12388
12389         [BZ #3335]
12390         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12391
12392 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12393
12394         [BZ #4822]
12395         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12396
12397         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12398         (write, read, close): Likewise.
12399         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12400
12401 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12402
12403         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12404         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12405         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12406         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12407         <bits/signalfd.h>.
12408         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12409         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12410         bits/signalfd.h.
12411
12412 2012-02-14  Marek Polacek  <polacek@redhat.com>
12413
12414         * sysdeps/x86_64/crti.S: New file.
12415         * sysdeps/x86_64/crtn.S: New file.
12416         * sysdeps/x86_64/elf/initfini.c: Remove file.
12417
12418 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12419
12420         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12421         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12422         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12423         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12424         <bits/inotify.h>.
12425         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12426         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12427         bits/inotify.h.
12428
12429 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12430
12431         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12432         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12433         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12434         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12435         <bits/eventfd.h>.
12436         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12437         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12438         bits/eventfd.h.
12439
12440 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12441
12442         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12443         __feraiseexcept instead of feraiseexcept.
12444
12445         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12446         nanosleep invocations.
12447         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12448         strings, and add error checking for a nanosleep invocations.
12449
12450 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12451
12452         Replace FSF snail mail address with URLs, as per GNU coding standards.
12453         Most of the snail mail addresses were wrong anyway, and omitting
12454         them makes the source code easier to maintain.  Almost all of the
12455         changes are to license notices and to locale LC_IDENTIFICATION
12456         addresses, except for this one:
12457         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12458         not its snail mail address.
12459
12460 2012-02-09  Richard Henderson  <rth@twiddle.net>
12461
12462         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12463         of kernel-features.h.
12464
12465         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12466
12467 2012-02-08  Marek Polacek  <polacek@redhat.com>
12468
12469         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12470         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12471         * sysdeps/gnu/_G_config.h: Likewise.
12472         * sysdeps/generic/_G_config.h: Likewise.
12473
12474 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12475
12476         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12477         tests.
12478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12479
12480         * sysdeps/powerpc/powerpc32/crti.S: New file.
12481         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12482         * sysdeps/powerpc/powerpc64/crti.S: New file.
12483         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12484
12485         * Makeconfig (have-initfini): Don't set.
12486         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12487         * configure.in (nopic_initfini): Don't substitute.
12488         * config.h.in (HAVE_INITFINI): Don't #undef.
12489         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12490         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12491
12492 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12493
12494         Support crti.S and crtn.S provided directly by architectures.
12495         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12496         [crti.S in sysdirs] (omit-deps): Likewise.
12497         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12498         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12499         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12500         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12501         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12502         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12503         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12504         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12505         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12506         compiler output for sysdeps/generic/initfini.c.
12507         * sysdeps/i386/elf/Makefile: Remove file.
12508         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12509
12510 2012-02-07  Marek Polacek  <polacek@redhat.com>
12511
12512         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12513         * sysdeps/gnu/_G_config.h: Likewise.
12514         * sysdeps/mach/hurd/_G_config.h: Likewise.
12515
12516 2012-02-07  Marek Polacek  <polacek@redhat.com>
12517
12518         * math/Makefile (tests): Add tst-CMPLX2.
12519         * math/tst-CMPLX2.c: New file.
12520
12521 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12522
12523         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12524
12525         * math/libm-test.inc (jn_test): Add missing L suffix.
12526
12527 2012-02-06  Marek Polacek  <polacek@redhat.com>
12528
12529         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12530         * sysdeps/i386/fpu/e_powf.S: Likewise.
12531         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12532         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12533         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12534         * sysdeps/i386/fpu/e_pow.S: Likewise.
12535         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12536         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12537         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12538         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12539         * sysdeps/i386/fpu/e_log2.S: Likewise.
12540         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12541         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12542         * sysdeps/i386/fpu/e_powl.S: Likewise.
12543         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12544         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12545         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12546         * sysdeps/i386/fpu/e_logl.S: Likewise.
12547         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12548         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12549         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12550         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12551         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12552         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12553         * sysdeps/i386/fpu/e_log.S: Likewise.
12554         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12555         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12556         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12557         * sysdeps/i386/fpu/e_logf.S: Likewise.
12558         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12559         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12560         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12561         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12562         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12563         * sysdeps/i386/fpu/e_log10.S: Likewise.
12564         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12565         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12566         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12567         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12568         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12569         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12570         * sysdeps/i386/asm-syntax.h: Likewise.
12571         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12572         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12573         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12574         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12575         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12576         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12577         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12578         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12579         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12580         * sysdeps/powerpc/sysdep.h: Likewise.
12581         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12582         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12583
12584 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12585
12586         [BZ #411]
12587         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12588
12589 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12590
12591         * sysdeps/i386/sysdep.h: Include <features.h>.
12592         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12593         version.
12594
12595 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12596
12597         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12598         Define.
12599         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12600         LOAD_PIC_REG_STR.
12601
12602 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12603
12604         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12605         (SETUP_PIC_REG): Use GET_PC_THUNK.
12606         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12607         macro.
12608
12609 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12612         for non-PIC compilation.
12613         (SETUP_PIC_REG): Add .p2align directive.
12614         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12615         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12616         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12617         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12618         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12619         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12620         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12621         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12622         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12623         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12624         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12625         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12626         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12627         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12628         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12629         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12630         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12631         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12632         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12633         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12634         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12635         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12636         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12637         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12638         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12639         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12640         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12641         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12642         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12643         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12644         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12645         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12646         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12647         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12648         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12649         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12650         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12651         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12652         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12653         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12654         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12655
12656 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12657
12658         * math/tst-CMPLX.c: Include <stdio.h>.
12659
12660 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12661
12662         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12663         float.
12664         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12665         * sysdeps/sparc/bits/mathdef.h: Likewise.
12666
12667 2012-01-31  Marek Polacek  <polacek@redhat.com>
12668
12669         * libio/libio.h: Don't define _PARAMS.
12670         * locale/programs/config.h: Don't define PARAMS.
12671         * stdlib/strtol_l.c: Likewise.
12672         (__strtol_l): Remove PARAMS from the prototype.
12673
12674 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12675
12676         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12677         names.  Just use the correct names.  Remove unnecessary wrapper
12678         functions.
12679         * malloc/arena.c: Likewise.
12680         * malloc/hooks.c: Likewise.
12681
12682         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12683         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12684         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12685
12686 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12687
12688         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12689         into tail calls.
12690         (update_get_addr): New function.
12691         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12692         GET_ADDR_MODULE parameter.
12693
12694 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12695
12696         * crypt/cert.c: Remove __STDC__ conditionals.
12697         * crypt/crypt-entry.c: Likewise.
12698         * crypt/crypt_util.c: Likewise.
12699         * libio/filedoalloc.c: Likewise.
12700         * libio/fileops.c: Likewise.
12701         * libio/genops.c: Likewise.
12702         * libio/iofclose.c: Likewise.
12703         * libio/iofdopen.c: Likewise.
12704         * libio/iofopen.c: Likewise.
12705         * libio/iofopen64.c: Likewise.
12706         * libio/iogetdelim.c: Likewise.
12707         * libio/iopopen.c: Likewise.
12708         * libio/obprintf.c: Likewise.
12709         * libio/oldfileops.c: Likewise.
12710         * libio/oldiofclose.c: Likewise.
12711         * libio/oldiofdopen.c: Likewise.
12712         * libio/oldiofopen.c: Likewise.
12713         * libio/oldiopopen.c: Likewise.
12714         * libio/wfiledoalloc.c: Likewise.
12715         * libio/wgenops.c: Likewise.
12716         * locale/programs/xmalloc.c: Likewise.
12717         * misc/syslog.c: Likewise.
12718         * stdio-common/xbug.c: Likewise.
12719         * string/memchr.c: Likewise.
12720         * string/memcmp.c: Likewise.
12721         * string/memrchr.c: Likewise.
12722         * string/rawmemchr.c: Likewise.
12723         * sysdeps/posix/getcwd.c: Likewise.
12724         * time/strftime_l.c: Likewise.
12725
12726 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12727
12728         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12729         * config.make.in (config-cflags-sse2avx): Define.
12730         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12731         Fix typo.
12732
12733 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12734
12735         * scripts/config.guess: Update from upstream config git repository.
12736         * scripts/config.sub: Likewise.
12737
12738 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12739
12740         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12741         (EM_NUM): Update.
12742         (R_TILEPRO_*, R_TILEGX_*): New macros.
12743
12744         * scripts/firstversions.awk: Fix bug in version range handling.
12745
12746         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12747
12748         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12749
12750         * include/sys/epoll.h: New file.
12751         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12752         libc_hidden_def.
12753
12754 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12755
12756         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12757         Avoid unnecessary __WORDSIZE == 64 test.
12758         (fmaxf): Use VEX format if possible.
12759         (fmax): Likewise.
12760         (fminf): Likewise.
12761         (fmin): Likewise.
12762
12763         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12764         * math/math_private.h: Remove libc_fegetround* and
12765         libc_fesetround*.
12766         * sysdeps/i386/configure.in: Check for -msse2avx.
12767         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12768         also if SSE2AVX is defined.
12769         Remove libc_fegetround* and libc_fesetround*.
12770         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12771         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12772         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12773         of HAS_YMM_USABLE.
12774         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12775         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12776         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12777         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12778         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12779
12780         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12781
12782 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12783
12784         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12785         size is not set.
12786         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12787
12788 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12789
12790         [BZ #13618]
12791         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12792         relocation.
12793         * Makeconfig (libm): Define.
12794         * elf/Makefile: Add rules to build and run tst-relsort1.
12795         * elf/tst-relsort1.c: New file.
12796         * elf/tst-relsort1mod1.c: New file.
12797         * elf/tst-relsort1mod2.c: New file.
12798
12799 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12800
12801         * math/s_ldexp.c: Remove __STDC__ conditionals.
12802         * math/s_ldexpf.c: Likewise.
12803         * math/s_ldexpl.c: Likewise.
12804         * math/s_nextafter.c: Likewise.
12805         * math/s_nexttowardf.c: Likewise.
12806         * math/s_significand.c: Likewise.
12807         * math/s_significandf.c: Likewise.
12808         * math/s_significandl.c: Likewise.
12809         * math/w_jnl.c: Likewise.
12810         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12811         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12812         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12813         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12814         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12820         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12821         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12822         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12825         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12826         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12827         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12828         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12829         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12830         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12831         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12832         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12833         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12834         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12835         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12836         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12837         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12838         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12839         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12840         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12841         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12842         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12843         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12844         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12845         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12846         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12847         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12848         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12849         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12850         * sysdeps/ieee754/k_standard.c: Likewise.
12851         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12852         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12853         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12854         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12855         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12856         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12857         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12858         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12859         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12860         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12861         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12862         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12863         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12864         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12865         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12866         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12867         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12868         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12869         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12870         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12871         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12872         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12873         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12874         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12875         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12876         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12877         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12878         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12879         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12880         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12881         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12883         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12886         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12889         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12890         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12891         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12894         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12895         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12899         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12903         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12904         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12905         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12906         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12907         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12908         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12909         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12910         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12912         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12913         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12914         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12916         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12917         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12918         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12923         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12924         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12925         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12926         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12927         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12928         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12929         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12930         * sysdeps/ieee754/s_matherr.c: Likewise.
12931         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12932         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12933         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12934         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12935
12936 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12937
12938         * crypt/md5.h: Remove __STDC__ conditionals.
12939         * libio/libioP.h: Likewise.
12940         * locale/programs/config.h: Likewise.
12941         * sysdeps/generic/sysdep.h: Likewise.
12942         * sysdeps/i386/asm-syntax.h: Likewise.
12943         * sysdeps/s390/asm-syntax.h: Likewise.
12944         * sysdeps/unix/sysdep.h: Likewise.
12945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12947
12948 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12949
12950         * libio/libio.h: Remove __STDC__ conditionals.
12951         * malloc/obstack.h: Likewise.
12952         * math/complex.h: Likewise.
12953         * math/math.h: Likewise.
12954         * sysdeps/generic/_G_config.h: Likewise.
12955         * sysdeps/gnu/_G_config.h: Likewise.
12956         * sysdeps/mach/hurd/_G_config.h: Likewise.
12957         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12958         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12959         * sysdeps/sparc/bits/mathdef.h: Likewise.
12960
12961 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12962
12963         [BZ #13583]
12964         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12965         Clean up HAS_* macros.
12966         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12967         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12968         possible.
12969         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12970         HAS_AVX.
12971         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12972         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12973         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12974         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12975         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12976
12977 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12978
12979         * elf/tst-unique3.cc (gets): Remove declaration.
12980         * elf/tst-unique3lib.cc (gets): Likewise.
12981         * elf/tst-unique3lib2.cc (gets): Likewise.
12982         * elf/tst-unique4.cc (gets): Likewise.
12983
12984 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12985
12986         * include/stdio.h: Add C++ protection.  Add gets declarations and
12987         definitions.
12988         * debug/tst-chk1.c: Don't declare gets here.
12989         * stdio-common/tst-gets.c: Likewise.
12990
12991 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12992
12993         * posix/glob: Remove directory.
12994
12995 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12996
12997         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12998
12999 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13000
13001         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13002         of the non-standard EPFNOSUPPORT.
13003
13004 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13005
13006         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13007         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13008         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13009
13010 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13011
13012         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13013
13014 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13015
13016         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13017         transient errors.
13018         * nscd/grpcache.c (cache_addgr): Likewise.
13019         * nscd/hstcache.c (cache_addhst): Likewise.
13020         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13021         * nscd/pwdcache.c (cache_addpw): Likewise.
13022         * nscd/servicescache.c (cache_addserv): Likewise.
13023
13024 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13025
13026         * malloc/malloc.c: Various cleanups.
13027         * malloc/hooks.c: Likewise.
13028
13029         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13030         * stdlib/bug-fmtmsg1.c: New file.
13031
13032         * stdlib/fmtmsg.c (init): Add missing unlock.
13033         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13034
13035 2012-01-12  Marek Polacek  <polacek@redhat.com>
13036
13037         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13038         and _GNU_SOURCE.
13039
13040 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13041
13042         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13043         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13044         macro to ensure uniqueness of label name.
13045         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13046         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13047
13048 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13049
13050         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13051
13052         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13053         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13054         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13055         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13056
13057 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13058
13059         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13060
13061         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13062         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13063         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13064
13065         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13066
13067         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13068         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13069         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13070         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13071
13072         * math/bits/math-finite.h: Add ldexp support.
13073
13074 2012-01-10  Marek Polacek  <polacek@redhat.com>
13075
13076         * locale/programs/localedef.h (show_archive_content): Add noreturn
13077         attribute.
13078
13079 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13080
13081         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13082
13083 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13084
13085         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13086
13087         * io/Makefile (headers): Add bits/poll2.h.
13088
13089 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13090
13091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13092         typo #include statement.
13093
13094 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13095
13096         * include/sys/cdefs.h: Define __attribute_alloc_size.
13097         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13098         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13099         * elf/pldd.c: Likewise.
13100         * iconv/iconv_charmap.c: Likewise.
13101         * iconv/iconvconfig.c: Likewise.
13102         * iconv/strtab.c: Likewise.
13103         * locale/programs/locale.c: Likewise.
13104         * locale/programs/localedef.h: Likewise.
13105         * locale/programs/simple-hash.c: Likewise.
13106         * nscd/nscd.h: Likewise.
13107         * nss/makedb.c: Likewise.
13108         * sysdeps/generic/ldconfig.h: Likewise.
13109         * locale/programs/localedef.c: Remove xmalloc prototype.
13110         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13111
13112 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13113
13114         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13115         appropriate.
13116
13117 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13118
13119         * math/Makefile (tests): Add tst-CMPLX.
13120         * math/tst-CMPLX.c: New file.
13121
13122         * math/complex.h (CMPLXL): Fix typo.
13123
13124         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13125         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13126         GLIBC_2.16.
13127         * debug/tst-chk1.c: Add poll and ppoll tests.
13128         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13129         * include/sys/poll.h: Add hidden proto for ppoll.
13130         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13131         * sysdeps/mach/hurd/ppoll.c: Likewise.
13132         * io/ppoll.c: Likewise.
13133         * debug/poll_chk.c: New file.
13134         * debug/ppoll_chk.c: New file.
13135         * include/bits/poll2.h: New file.
13136         * io/bits/poll2.h: New file.
13137
13138         [BZ #1350]
13139         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13140
13141         * configure.in: static is always set to yes.  Remove.
13142         * config.make.in: Don't set build-static.
13143         * Makeconfig: Remove use of build-static.
13144         * dlfcn/Makefile: Likewise.
13145         * elf/Makefile: Likewise.
13146         * math/Makefile: Likewise.
13147         * misc/Makefile: Likewise.
13148         * nptl/Makefile: Likewise.
13149         * sysdeps/mach/hurd/Makefile: Likewise.
13150
13151         * configure.in: PWD_P is not used anymore.
13152         * config.make.in: Remove PWD_P entry.
13153
13154         * configure.in: Remove last remnants of RANLIB.
13155         No need to check for signed size_t anymore.
13156         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13157         and IA-64.
13158         Remove __builtin_expect test because we require at least gcc 3.4.
13159         * aclocal.m4: Likewise.
13160
13161         * wcsmbs/mbrtoc16.c: Implement using towc function.
13162         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13163         * wcsmbs/wcsmbsload.c: Likewise.
13164         * iconv/gconv_simple.c: Likewise.
13165         * iconv/gconv_int.h: Likewise.
13166         * iconv/gconv_builtin.h: Likewise.
13167         * iconv/iconv_prog.c: Remove CHAR16 handling.
13168
13169         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13170
13171         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13172
13173         * configure.in: Remove --with-elf and --enable-bounded options.
13174         Dont set base_machine for ia64.  More non-ELF conditions removed.
13175         Remove testing and setting of leading underscore information.
13176         * config.make.in (build-bounded): Set to no.
13177         * config.h.in: Remove NO_UNDERSCORES entry.
13178         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13179         them.
13180         * csu/start.c: Remove !NO_UNDERSCORE code.
13181         * locale/localeinfo.h: Likewise.
13182         * sysdeps/generic/machine-gmon.h: Likewise.
13183         * sysdeps/generic/sysdep.h: Likewise.
13184         * sysdeps/i386/sysdep.h: Likewise.
13185         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13186         * sysdeps/mach/sysdep.h: Likewise.
13187         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13188         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13189         * sysdeps/sh/sysdep.h: Likewise.
13190         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13191         * sysdeps/unix/i386/sysdep.S: Likewise.
13192         * sysdeps/unix/sparc/start.c: Likewise.
13193         * sysdeps/unix/sparc/sysdep.S: Likewise.
13194         * sysdeps/unix/sparc/sysdep.h: Likewise.
13195         * sysdeps/unix/start.c: Likewise.
13196         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13197         * sysdeps/x86_64/sysdep.h: Likewise.
13198
13199 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13200
13201         [BZ #13553]
13202         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13203         for non-gcc.
13204         * argp/argp-fmtstream.h: Use const instead __const.
13205         * argp/argp.h: Likewise.
13206         * assert/assert.h: Likewise.
13207         * bits/fenv.h: Likewise.
13208         * bits/sched.h: Likewise.
13209         * bits/sigset.h: Likewise.
13210         * bits/sigthread.h: Likewise.
13211         * catgets/nl_types.h: Likewise.
13212         * conform/data/pthread.h-data: Likewise.
13213         * crypt/crypt-private.h: Likewise.
13214         * crypt/crypt.h: Likewise.
13215         * crypt/crypt_util.c: Likewise.
13216         * ctype/ctype.h: Likewise.
13217         * debug/execinfo.h: Likewise.
13218         * debug/mbsnrtowcs_chk.c: Likewise.
13219         * debug/mbsrtowcs_chk.c: Likewise.
13220         * debug/wcsnrtombs_chk.c: Likewise.
13221         * debug/wcsrtombs_chk.c: Likewise.
13222         * debug/wcstombs_chk.c: Likewise.
13223         * dirent/dirent.h: Likewise.
13224         * dlfcn/dlfcn.h: Likewise.
13225         * elf/neededtest4.c: Likewise.
13226         * grp/grp.h: Likewise.
13227         * gshadow/gshadow.h: Likewise.
13228         * iconv/gconv.h: Likewise.
13229         * iconv/gconv_int.h: Likewise.
13230         * iconv/gconv_simple.c: Likewise.
13231         * iconv/iconv.h: Likewise.
13232         * iconv/loop.c: Likewise.
13233         * iconv/skeleton.c: Likewise.
13234         * include/aio.h: Likewise.
13235         * include/aliases.h: Likewise.
13236         * include/argz.h: Likewise.
13237         * include/arpa/inet.h: Likewise.
13238         * include/assert.h: Likewise.
13239         * include/dirent.h: Likewise.
13240         * include/dlfcn.h: Likewise.
13241         * include/execinfo.h: Likewise.
13242         * include/fcntl.h: Likewise.
13243         * include/fenv.h: Likewise.
13244         * include/glob.h: Likewise.
13245         * include/grp.h: Likewise.
13246         * include/libintl.h: Likewise.
13247         * include/mntent.h: Likewise.
13248         * include/netdb.h: Likewise.
13249         * include/pwd.h: Likewise.
13250         * include/rpc/netdb.h: Likewise.
13251         * include/sched.h: Likewise.
13252         * include/search.h: Likewise.
13253         * include/shadow.h: Likewise.
13254         * include/signal.h: Likewise.
13255         * include/stdio.h: Likewise.
13256         * include/stdlib.h: Likewise.
13257         * include/string.h: Likewise.
13258         * include/sys/socket.h: Likewise.
13259         * include/sys/stat.h: Likewise.
13260         * include/sys/statfs.h: Likewise.
13261         * include/sys/statvfs.h: Likewise.
13262         * include/sys/syslog.h: Likewise.
13263         * include/sys/time.h: Likewise.
13264         * include/sys/uio.h: Likewise.
13265         * include/time.h: Likewise.
13266         * include/unistd.h: Likewise.
13267         * include/utmp.h: Likewise.
13268         * include/wchar.h: Likewise.
13269         * include/wctype.h: Likewise.
13270         * inet/aliases.h: Likewise.
13271         * inet/arpa/inet.h: Likewise.
13272         * inet/netinet/ether.h: Likewise.
13273         * inet/netinet/in.h: Likewise.
13274         * intl/libintl.h: Likewise.
13275         * io/bits/fcntl2.h: Likewise.
13276         * io/fcntl.h: Likewise.
13277         * io/ftw.h: Likewise.
13278         * io/sys/poll.h: Likewise.
13279         * io/sys/stat.h: Likewise.
13280         * io/sys/statfs.h: Likewise.
13281         * io/sys/statvfs.h: Likewise.
13282         * io/utime.h: Likewise.
13283         * libio/bits/stdio.h: Likewise.
13284         * libio/bits/stdio2.h: Likewise.
13285         * libio/libio.h: Likewise.
13286         * libio/libioP.h: Likewise.
13287         * libio/stdio.h: Likewise.
13288         * locale/lc-ctype.c: Likewise.
13289         * locale/locale.h: Likewise.
13290         * login/utmp.h: Likewise.
13291         * malloc/arena.c: Likewise.
13292         * malloc/malloc.c: Likewise.
13293         * malloc/malloc.h: Likewise.
13294         * malloc/mcheck.c: Likewise.
13295         * malloc/mtrace.c: Likewise.
13296         * math/bits/mathcalls.h: Likewise.
13297         * math/fenv.h: Likewise.
13298         * math/math_private.h: Likewise.
13299         * misc/bits/error.h: Likewise.
13300         * misc/bits/syslog.h: Likewise.
13301         * misc/err.h: Likewise.
13302         * misc/error.h: Likewise.
13303         * misc/fstab.h: Likewise.
13304         * misc/mntent.h: Likewise.
13305         * misc/regexp.h: Likewise.
13306         * misc/search.h: Likewise.
13307         * misc/sgtty.h: Likewise.
13308         * misc/sys/mman.h: Likewise.
13309         * misc/sys/syslog.h: Likewise.
13310         * misc/sys/uio.h: Likewise.
13311         * misc/sys/xattr.h: Likewise.
13312         * misc/ttyent.h: Likewise.
13313         * nis/rpcsvc/ypclnt.h: Likewise.
13314         * nss/nss.h: Likewise.
13315         * posix/bits/unistd.h: Likewise.
13316         * posix/fnmatch.h: Likewise.
13317         * posix/glob.h: Likewise.
13318         * posix/sched.h: Likewise.
13319         * posix/spawn.h: Likewise.
13320         * posix/sys/wait.h: Likewise.
13321         * posix/unistd.h: Likewise.
13322         * posix/wordexp.h: Likewise.
13323         * pwd/pwd.h: Likewise.
13324         * resolv/netdb.h: Likewise.
13325         * resource/sys/resource.h: Likewise.
13326         * rt/aio.h: Likewise.
13327         * rt/bits/mqueue2.h: Likewise.
13328         * rt/mqueue.h: Likewise.
13329         * shadow/shadow.h: Likewise.
13330         * signal/signal.h: Likewise.
13331         * socket/send.c: Likewise.
13332         * socket/sendto.c: Likewise.
13333         * socket/sys/socket.h: Likewise.
13334         * stdio-common/printf.h: Likewise.
13335         * stdlib/bits/stdlib.h: Likewise.
13336         * stdlib/fmtmsg.h: Likewise.
13337         * stdlib/monetary.h: Likewise.
13338         * stdlib/stdlib.h: Likewise.
13339         * stdlib/ucontext.h: Likewise.
13340         * streams/stropts.h: Likewise.
13341         * string/argz.h: Likewise.
13342         * string/bits/string2.h: Likewise.
13343         * string/string.h: Likewise.
13344         * string/strings.h: Likewise.
13345         * sunrpc/rpc/auth.h: Likewise.
13346         * sunrpc/rpc/auth_des.h: Likewise.
13347         * sunrpc/rpc/clnt.h: Likewise.
13348         * sunrpc/rpc/netdb.h: Likewise.
13349         * sunrpc/rpc/pmap_clnt.h: Likewise.
13350         * sunrpc/rpc/xdr.h: Likewise.
13351         * sysdeps/generic/inttypes.h: Likewise.
13352         * sysdeps/generic/net/if.h: Likewise.
13353         * sysdeps/generic/sys/swap.h: Likewise.
13354         * sysdeps/gnu/net/if.h: Likewise.
13355         * sysdeps/gnu/utmpx.h: Likewise.
13356         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13357         * sysdeps/i386/i486/bits/string.h: Likewise.
13358         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13359         * sysdeps/s390/bits/string.h: Likewise.
13360         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13361         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13362         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13363         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13364         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13365         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13366         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13367         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13368         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13369         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13370         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13371         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13372         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13373         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13374         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13375         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13376         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13377         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13378         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13379         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13380         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13381         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13382         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13383         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13384         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13385         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13386         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13387         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13388         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13389         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13390         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13391         * sysvipc/sys/ipc.h: Likewise.
13392         * sysvipc/sys/msg.h: Likewise.
13393         * sysvipc/sys/sem.h: Likewise.
13394         * sysvipc/sys/shm.h: Likewise.
13395         * termios/termios.h: Likewise.
13396         * time/sys/time.h: Likewise.
13397         * time/time.h: Likewise.
13398         * wcsmbs/bits/wchar2.h: Likewise.
13399         * wcsmbs/uchar.h: Likewise.
13400         * wcsmbs/wchar.h: Likewise.
13401         * wctype/wctype.h: Likewise.
13402
13403         [BZ #13551]
13404         * Makeconfig: Remove all but ELF support including AIX support.
13405         * Makerules: Likewise.
13406         * config.h.in: Likewise.
13407         * config.make.in: Likewise.
13408         * configure: Likewise.
13409         * configure.in: Likewise.
13410         * csu/Makefile: Likewise.
13411         * csu/version.c: Likewise.
13412         * debug/Makefile: Likewise.
13413         * dlfcn/Makefile: Likewise.
13414         * elf/Makefile: Likewise.
13415         * extra-lib.mk: Likewise.
13416         * iconv/Makefile: Likewise.
13417         * include/libc-symbols.h: Likewise.
13418         * include/shlib-compat.h: Likewise.
13419         * resolv/Makefile: Likewise.
13420         * resolv/res_libc.c: Likewise.
13421         * rt/Makefile: Likewise.
13422         * sysdeps/i386/asm-syntax.h: Likewise.
13423         * sysdeps/i386/sysdep.h: Likewise.
13424         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13425         * sysdeps/mach/sysdep.h: Likewise.
13426         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13427         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13428         * sysdeps/s390/asm-syntax.h: Likewise.
13429         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13430         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13431         * sysdeps/sh/sysdep.h: Likewise.
13432         * sysdeps/unix/sparc/sysdep.h: Likewise.
13433         * sysdeps/wordsize-32/divdi3.c: Likewise.
13434         * sysdeps/x86_64/sysdep.h: Likewise.
13435
13436         * argp/Versions: Remove _argp_unlock_xxx.
13437
13438         [BZ #13559]
13439         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13440         * abilist/libBrokenLocale.abilist: Likewise.
13441         * abilist/libanl.abilist: Likewise.
13442         * abilist/libc.abilist: Likewise.
13443         * abilist/libcrypt.abilist: Likewise.
13444         * abilist/libdl.abilist: Likewise.
13445         * abilist/libm.abilist: Likewise.
13446         * abilist/libnsl.abilist: Likewise.
13447         * abilist/libpthread.abilist: Likewise.
13448         * abilist/libresolv.abilist: Likewise.
13449         * abilist/librt.abilist: Likewise.
13450         * abilist/libthread_db.abilist: Likewise.
13451         * abilist/libutil.abilist: Likewise.
13452         * abilist/libnss_db.abilist: New file.
13453
13454         * scripts/abilist.awk: Add support for indirect functions.
13455
13456         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13457
13458         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13459
13460         * shlib-versions: Remove entries for ports architectures.
13461
13462         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13463         files in ports.
13464         * elf/stackguard-macros.h: Remove support for IA-64.
13465         * elf/tst-auditmod1.c: Likewise.
13466         * sysdeps/generic/ldsodefs.h: Likewise.
13467
13468         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13469         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13470         configure files.
13471
13472         [BZ #13552]
13473         * configure.in: Remove --enable-omitfp support.
13474         * FAQ.in: Adjust.
13475         * config.make.in: Likewise.
13476         * Makeconfig: Likewise.
13477         * manual/install.texi: Likewise.
13478
13479         In case anyone cares, the IA-64 architecture could move to ports.
13480         * sysdeps/ia64/*: Removed.
13481         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13482         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13483
13484         [BZ #13555]
13485         * configure.in: Remove entries for unsupported architectures.
13486
13487         [BZ #13533]
13488         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13489         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13490         routines.
13491         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13492         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13493         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13494         fall back to using wcrtomb.
13495         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13496         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13497         renaming.
13498         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13499         * wcsmbs/tst-c16c32-1.c: New file.
13500
13501         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13502         local variable.
13503
13504         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13505
13506         * elf/tst-unique3.cc: Add explicit declaration of gets.
13507         * elf/tst-unique3lib.cc: Likewise.
13508         * elf/tst-unique3lib2.cc: Likewise.
13509         * elf/tst-unique4.cc: Likewise.
13510
13511         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13512
13513 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13514
13515         [BZ #13566]
13516         * assert/assert.h (static_assert): Don't define for C++.
13517         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13518         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13519
13520 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13521
13522         * iconv/loop.c (single loop): Fix assertion in storing of
13523         remaining bytes.
13524
13525         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13526
13527 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13528
13529         * posix/getconf.c: Update copyright year.
13530         * nss/getent.c: Likewise.
13531         * nss/makedb.c: Likewise.
13532         * iconv/iconvconfig.c: Likewise.
13533         * iconv/iconv_prog.c: Likewise.
13534         * elf/ldconfig.c: Likewise.
13535         * elf/pldd.c: Likewise.
13536         * elf/sotruss.ksh: Likewise.
13537         * catgets/gencat.c: Likewise.
13538         * csu/version.c: Likewise.
13539         * elf/ldd.bash.in: Likewise.
13540         * elf/sprof.c (print_version): Likewise.
13541         * locale/programs/locale.c: Likewise.
13542         * locale/programs/localedef.c: Likewise.
13543         * login/programs/pt_chown.c: Likewise.
13544         * nscd/nscd.c (print_version): Likewise.
13545         * debug/xtrace.sh: Likewise.
13546         * malloc/memusage.sh: Likewise.
13547         * malloc/mtrace.pl: Likewise.
13548         * debug/catchsegv.sh: Likewise.
13549
13550 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13551
13552         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13553         pure attribute.
13554
13555 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13556
13557         [BZ #13533]
13558         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13559         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13560         transformations.
13561         * iconv/gconv_int.h: Likewise.
13562         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13563         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13564         from libc for GLIBC_2.16.
13565         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13566         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13567         * wcsmbs/uchar.h: Really define mbstate_t.
13568         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13569         * wcsmbs/c16rtomb.c: New file.
13570         * wcsmbs/mbrtoc16.c: New file.
13571         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13572         for C/POSIX locale.
13573         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13574         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13575
13576         * wcsmbs/wchar.h: Add missing __restrict.
13577
13578 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13579
13580         [BZ #13532]
13581         * time/Makefile (routines): Add timespec_get.
13582         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13583         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13584         timespec for ISO C11.
13585         * time/timespec_get.c: New file.
13586         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13587         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13588
13589         [BZ #13531]
13590         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13591         * stdlib/stdlib.h: Declare aligned_alloc.
13592         * Versions.def: Add GLIBC_2.16 for libc.
13593         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13594
13595         [BZ 13527]
13596         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13597         ISO C11.
13598
13599         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13600         code.
13601
13602         [BZ #13528]
13603         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13604
13605         [BZ #13529]
13606         * assert/assert.h (static_assert): Define.
13607
13608         * version.h: Update for 2.16 development version.
13609
13610         [BZ #13526]
13611         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13612         _ISOC11_SOURCE.
13613
13614         * version.h (RELEASE): Bump for 2.15 release.
13615         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13616
13617         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13618         Patch by Marek Polacek <mpolacek@redhat.com>.
13619
13620         * bits/byteswap.h: Protect long long constants with __extension__.
13621         * sysdeps/i386/bits/byteswap.h: Likewise.
13622         * sysdeps/ia64/bits/byteswap.h: Likewise.
13623         * sysdeps/s390/bits/byteswap.h: Likewise.
13624         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13625
13626 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13627
13628         [BZ #13540]
13629         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13630         destination buffer.
13631         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13632
13633 2011-12-23  Marek Polacek  <polacek@redhat.com>
13634
13635         * elf/dl-addr.c (determine_info): Add inline keyword.
13636         * elf/tst-auditmod4b.c (check_avx): Likewise.
13637         * elf/tst-auditmod6b.c (check_avx): Likewise.
13638         * elf/tst-auditmod6c.c (check_avx): Likewise.
13639         * elf/tst-auditmod7b.c (check_avx): Likewise.
13640
13641 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13642
13643         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13644         !__SSE_MATH__.
13645
13646 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13647
13648         [BZ #13540]
13649         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13650         processing for last bytes.
13651
13652 2011-08-06  Bruno Haible  <bruno@clisp.org>
13653
13654         [BZ #13061]
13655         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13656         U+0385, not to U+1FEE.
13657
13658         [BZ #13062]
13659         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13660         entry for U+00A5 U+0301.
13661
13662 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13663
13664         [BZ #13166]
13665         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13666         buffer for the output is too small.
13667
13668         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13669         optimization.
13670
13671         [BZ #13185]
13672         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13673         SSE flags if possible.
13674
13675 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13676
13677         [BZ #13540]
13678         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13679         processing for last bytes.
13680
13681 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13682
13683         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13684         (syscall-list-default-options, syscall-list-default-condition)
13685         (syscall-list-includes): Define.
13686         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13687         list of ABIs and options and #if conditions for each ABI.  Do not
13688         handle common syscalls between ABIs specially.
13689         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13690         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/s390/Makefile (64bit-predefine): Remove.
13695         (syscall-list-variants, syscall-list-32bit-options)
13696         (syscall-list-32bit-condition, syscall-list-64bit-options)
13697         (syscall-list-64bit-condition): Define.
13698         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13699         Remove.
13700         (syscall-list-variants, syscall-list-32bit-options)
13701         (syscall-list-32bit-condition, syscall-list-64bit-options)
13702         (syscall-list-64bit-condition): Define.
13703         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13704         Remove.
13705         (syscall-list-variants, syscall-list-32bit-options)
13706         (syscall-list-32bit-condition, syscall-list-64bit-options)
13707         (syscall-list-64bit-condition): Define.
13708
13709 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13710
13711         * locale/iso-639.def: Add brx entry.
13712
13713         [BZ #13328]
13714         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13715         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13716
13717         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13718         __feraiseexcept_renamed.
13719
13720 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13721
13722         [BZ #13538]
13723         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13724         EPOLLET with unsigned values.
13725         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13726         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13727
13728         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13729         to large cancellation.
13730         * math/s_cacoshf.c: Likewise.
13731         * math/s_cacoshl.c: Likewise.
13732
13733 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13734
13735         [BZ #13305]
13736         [BZ #12786]
13737         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13738         * math/s_cacoshf.c: Likewise.
13739         * math/s_cacoshl.c: Likewise.
13740
13741 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13742
13743         [BZ #13439]
13744         * iconv/gconv.h: Define __GCONV_SWAP.
13745         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13746         * iconvdata/utf-16.c: Likewise.
13747         * iconvdata/utf-32.c: Likewise.
13748
13749 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13750
13751         [BZ #13524]
13752         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13753         numerator after shifting it by one limb.
13754
13755 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13756
13757         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13758         under [__USE_EXTERN_INLINES].
13759
13760 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13761
13762         [BZ #13446]
13763         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13764
13765 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13766
13767         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13768         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13769         optimized code.
13770         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13771         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13772         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13773         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13774         for strncasecmp/strncasecmp_l compilation.
13775         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13776         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13777
13778 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13779
13780         [BZ #13484]
13781         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13782         of __asm__.
13783
13784 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13785
13786         [BZ #13506]
13787         * time/tzfile.c (__tzfile_read): Check values from file header.
13788
13789 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13790
13791         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13792         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13793         * powerpc/powerpc32/dl-start.S: Likewise.
13794         * powerpc/powerpc32/elf/start.S: Likewise.
13795         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13796         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13797         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13798         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13799         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13800         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13801         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13802         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13803         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13804         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13805         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13806         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13807         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13808         * powerpc/powerpc32/memset.S: Likewise.
13809         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13810         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13811         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13812         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13813         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13814         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13815         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13816         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13817         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13818         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13819         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13820         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13821         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13822
13823 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13824
13825         * math/libm-test.inc: Added more nearbyint tests.
13826         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13827         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13828         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13829         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13830
13831 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13832
13833         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13834         FD_CLOEXEC.
13835
13836 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13837
13838         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13839         Add wcscpy-ssse3 wcscpy-c.
13840         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13841         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13842         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13843         * sysdeps/x86_64/wcschr.S: New file.
13844         * sysdeps/x86_64/wcsrchr.S: New file.
13845         * string/test-strcmp.c: Remove checking of wcscmp function for
13846         wrong alignments.
13847         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13848         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13849         wcsrchr-sse2 wcsrchr-c.
13850         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13851         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13852         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13853         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13854         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13855         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13856         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13857         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13858         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13859         * wcsmbc/wcschr.c (WCSCHR): New macro.
13860
13861 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13862
13863         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13864         * wcsmbs/test-wcsrchr.c: New file.
13865         * string/test-strrchr.c: Add wcsrchr support.
13866         (WIDE): New macro.
13867         * wcsmbs/test-wcscpy.c: New file.
13868         * string/test-strcpy.c: Add wcscpy support.
13869         (WIDE): New macro.
13870
13871 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13872
13873         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13874         the inner loop.
13875
13876 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13877
13878         [BZ #13472]
13879         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13880
13881 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13882
13883         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13884         Minor optimizations.
13885
13886         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13887         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13888         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13889
13890 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13891
13892         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13893         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13894         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13895         for gcc to avoid warnings.
13896         * inet/Makefile (tests): Add tst-checks.
13897         * inet/tst-checks.c: New file.
13898
13899         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13900         warning.
13901
13902         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13903         __wmemcmp_sse2.
13904
13905         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13906         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13907
13908         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13909
13910 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13911
13912         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13913         problem.
13914
13915         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13916
13917 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13918
13919         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13920         conditional on GCC version.
13921         (__arch_compare_and_exchange_val_8_acq)
13922         (__arch_compare_and_exchange_val_16_acq)
13923         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13924         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13925         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13926
13927 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13928
13929         * sysdeps/sh/backtrace.c: New file.
13930
13931 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13932
13933         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13934         parenthesis.
13935
13936 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13937
13938         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13939         falling back to utime.
13940
13941 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13942
13943         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13944         expectations for float.
13945
13946 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13947
13948         * locale/weight.h (findidx): Add parameter len.
13949         * locale/weightwc.h (findidx): Likewise.
13950         * posix/fnmatch_loop.c (FCT): Adjust caller.
13951         * posix/regcomp.c (build_equiv_class): Likewise.
13952         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13953         * posix/regexec.c (check_node_accept_bytes): Likewise.
13954         * string/strcoll_l.c (STRCOLL): Likewise.
13955         * string/strxfrm_l.c (STRXFRM): Likewise.
13956
13957 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13958
13959         * Makefile.in: Remove CVSOPT handling.
13960         * configure.in: Remove use of AC_REVISION.
13961         * iconvdata/Makefile (distribute): No need to filter out CVS.
13962         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13963         handling.
13964
13965 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13966
13967         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13968         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13969         [USE_AS_STRNCASECMP_L]: Likewise.
13970         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13971         NO_TLS_DIRECT_SEG_REFS.
13972         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13973         Fix argument offsets for non-PIC.
13974         [USE_AS_STRNCASECMP_L]: Likewise.
13975         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13976         NO_TLS_DIRECT_SEG_REFS.
13977
13978 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13979
13980         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13981         O_CLOEXEC.
13982         * locale/loadlocale.c (_nl_load_locale): Likewise.
13983
13984 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13985
13986         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13987         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13988         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13989         (SYSCALL_GETTIME): Set errno on error.
13990
13991         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13992         count references to noai6ai_cached.
13993
13994 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13995
13996         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13997
13998         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13999         FD_CLOEXEC for /proc/self/maps.
14000
14001         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14002         FD_CLOEXEC for /proc/meminfo.
14003
14004         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14005         gai.conf.
14006
14007         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14008         FD_CLOEXEC for given file.
14009
14010         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14011
14012         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14013         FD_CLOEXEC for /etc/hosts.
14014         (_gethtent): Likewise.
14015
14016         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14017
14018         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14019         cancellation and set FD_CLOEXEC for /etc/netgroup.
14020
14021         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14022         reading /etc/publickey.
14023
14024         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14025         allow cancellation when reading /etc/group.
14026
14027         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14028         cancellation.
14029         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14030
14031         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14032         when using data file.
14033
14034         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14035
14036         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14037         (write_nis_obj): Use "c" and "e" in fopen.
14038
14039         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14040
14041         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14042
14043         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14044
14045         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14046
14047         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14048         locale.alias.
14049
14050         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14051
14052         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14053
14054         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14055
14056         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14057         file parsing and set FD_CLOEXEC.
14058
14059 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14060
14061         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14062
14063 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14064
14065         * malloc/arena.c (arena_get2): Don't call reused_arena when
14066         _int_new_arena failed.
14067
14068 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14069
14070         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14071         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14072         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14073         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14074         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14075         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14076         to compile strcasecmp and strncasecmp.
14077         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14078         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14079
14080         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14081
14082 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14083
14084         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14085         locale-defines.sym to gen-as-const-headers.
14086         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14087         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14088         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14089         to compile strcasecmp and strncasecmp.
14090         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14091         strcasecmp_l and strncasecmp_l.
14092         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14093         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14094         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14095         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14096         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14097         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14098         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14099         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14100         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14101         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14102         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14103
14104 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14105
14106         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14107         result of SYSDEP_GETTIME_CPU to retval.
14108         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14109         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14110
14111         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14112         variable.
14113
14114         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14115         mantissa words.
14116         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14117
14118         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14119         from unused variable.
14120
14121         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14122         DWARF definitions.
14123         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14124         for assembling.
14125
14126         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14127         over namespaces.
14128
14129         * sunrpc/rpc_prot.c (rejected): Fix case value.
14130
14131         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14132         unsigned long long int to avoid warnings in shift.
14133
14134         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14135         of use of trans.
14136         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14137         variable tmp.
14138
14139         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14140         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14141         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14142
14143         * nis/nis_table.c (nis_list): Use variable of correct type for
14144         result of __follow_path call.
14145
14146 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14147
14148         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14149         of math functions ceil, trunc, floor, round, and sqrt, when
14150         avaliable on the platform.
14151         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14152         name clash.
14153         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14154         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14155         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14156
14157 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14158
14159         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14160         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14161
14162 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14163
14164         * include/unistd.h: Fix __readlink return type.
14165         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14166
14167 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14168
14169         * stdlib/ucontext.h: Undo last change for makecontext.
14170
14171 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14172
14173         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14174
14175         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14176         * setjmp/setjmp.h: Mark functions as non-leaf.
14177         * setjmp/bits/setjmp2.h: Likewise.
14178         * stdlib/ucontext.h: Likewise.
14179
14180 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14181
14182         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14183         (reused_arena): Don't check arena limit.
14184         (arena_get2): Atomically check arena limit.
14185
14186 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14187
14188         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14189         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14190
14191         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14192         instructions.
14193
14194 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14195
14196         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14197         handler when locking.
14198
14199         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14200         Fix size of allocated buffer.
14201
14202 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14203
14204         [BZ #10103]
14205         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14206         declarations for long double functions.
14207         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14208
14209         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14210
14211 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14212
14213         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14214         installed.
14215
14216         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14217         is disabled.
14218
14219 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14220
14221         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14222
14223 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14224
14225         * include/alloca.h (stackinfo_alloca_round): Define.
14226         (extend_alloca): Use it.
14227         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14228         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14229         here.
14230
14231         * scripts/check-local-headers.sh: Ignore libaudit.h.
14232
14233         * nscd/Makefile (extra-objs): Make recursively expanded.
14234
14235 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14236
14237         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14238         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14239
14240         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14241         * posix/tst-rfc3484-2.c: Likewise.
14242         * posix/tst-rfc3484-3.c: Likewise.
14243
14244         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14245         process_vm_writev.
14246         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14247         process_vm_writev.
14248         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14249         process_vm_writev from libc using GLIBC_2.15 version.
14250
14251         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14252
14253 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14254
14255         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14256         stack usage.
14257
14258 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14259
14260         [BZ #13367]
14261         * nss/getent.c (initgroups_keys): Show error message in case no group
14262         names are given.
14263
14264         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14265         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14266         __bump_nl_timestamp.
14267         * nscd/connections (nscd_init): When host database is served open
14268         netlink socket and request notification about configuration changes.
14269         (main_loop_poll): Track netlink file descriptor and bump timestamp
14270         in case data becomes available.
14271         (main_loop_epoll): Likewise.
14272         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14273         (database_pers_head): Add extra_data fileds.
14274         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14275         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14276         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14277         Adjust caller.
14278         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14279         in6ai data, call __free_in6ai.
14280         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14281         Add -DHAVE_NETLINK.
14282         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14283         interface information.  Reuse previous data if netlink timestamp
14284         is not changed.
14285         (__bump_nl_timestamp): New function.
14286         (__free_in6ai): New function.
14287
14288 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14289
14290         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14291         close_not_cancel_no_status here.
14292         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14293
14294 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14295
14296         [BZ #13276]
14297         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14298         return value.
14299
14300         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14301         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14302         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14303
14304 2011-07-03  Andreas Jaeger  <aj@suse.de>
14305
14306         [BZ #10709]
14307         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14308         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14309         * math/libm-test.inc (sin_test): Add test case.
14310
14311 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14312
14313         [BZ #13337]
14314         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14315         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14316
14317         * elf/chroot_canon.c (chroot_canon): Cleanups.
14318
14319         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14320
14321         [BZ #13335]
14322         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14323         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14324
14325         * string/test-strchr.c: Make usable for strchrnul testing.
14326         * string/test-strchrnul.c: New file.
14327         * string/Makefile (strop-tests): Add strchrnul.
14328
14329         * po/it.po: Update from translation team.
14330         * po/es.po: Likewise.
14331
14332 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14333
14334         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14335         the three constants needed as parameters.  Drop the others.
14336         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14337         __m128i_strloadu_tolower.
14338         Create and initialize variable zero and use it in all the places
14339         where _mm_setzero_si128 was used.
14340
14341         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14342         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14343         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14344         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14345         anymore.
14346         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14347         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14348         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14349         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14350         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14351         __mpranred, __mptan.
14352         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14353         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14354         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14355         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14356         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14357         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14358         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14359         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14360         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14361
14362 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14363
14364         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14365         redefine if SHARED.
14366         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14367
14368         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14369         wide char related routines to wcsmbs subdir.
14370
14371 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14372
14373         [BZ #13344]
14374         * misc/sys/cdefs.h (__THROWNL): Define.
14375         * posix/unistd.h: Use __THREADNL instead of __THREAD
14376         for memory synchronization functions.
14377
14378 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14379
14380         [BZ #13349]
14381         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14382         doesn't exist.
14383         * manual/stdio.texi (Obstack Streams): Node removed.
14384
14385 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14386
14387         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14388         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14389         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14390
14391         * math/math_private.h (math_force_eval): Allow non-addressable
14392         arguments.
14393         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14394
14395 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14396
14397         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14398         file is not needed.
14399
14400         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14401         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14402         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14403         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14404         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14405         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14406         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14407         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14408         Add AVX variants.
14409         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14410         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14411         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14412         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14413         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14414         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14415         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14416         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14417         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14418         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14419         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14420         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14421         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14422         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14423         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14424         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14425         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14426         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14427         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14428
14429         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14430         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14431
14432         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14433         place.  Use VEX encoding when compiling for AVX.
14434
14435 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14436
14437         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14438         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14439
14440         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14441
14442 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14443
14444         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14445         useless if() expression.
14446         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14447         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14448         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14449         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14450         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14451         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14452         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14453         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14454         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14455         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14456         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14457         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14458         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14459         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14460         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14461         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14462         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14463         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14464         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14465
14466         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14467
14468 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14469
14470         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14471         condition.
14472         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14473
14474 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14475
14476         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14477         .text section.  Avoid duplicate constants.
14478         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14479         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14480         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14481         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14482         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14483         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14484         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14485         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14486         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14487         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14488         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14489         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14490         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14491         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14492         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14493         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14494         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14495         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14496         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14497         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14498         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14499         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14500         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14501         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14502         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14503         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14504         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14505         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14506         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14507         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14508         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14509         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14510         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14511         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14512         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14513         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14514         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14515         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14516         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14517         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14518         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14519         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14520         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14521         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14522         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14523
14524 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14525
14526         * sysdeps/x86_64/dla.h: Move to ...
14527         * sysdeps/x86_64/fpu/dla.h: ...here.
14528         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14529         situations.  Use __builtin_fma only for gcc 4.6 and up.
14530
14531         * config.make.in: Add have-mfma4 entry.
14532         * configure.in: Substitute libc_cv_cc_fma4.
14533         * math/Makefile (dbl-only-routines): Add sincostab.
14534         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14535         Use __sincostab not sincos.
14536         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14537         name is a macro.
14538         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14539         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14540         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14541         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14542         using __copysign.
14543         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14544         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14545         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14546         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14547         and __inv.
14548         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14549         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14550         __copysign.
14551         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14552         define aliases when function name is a macro.
14553         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14554         sysdeps/ieee754/dbl-64/sincos.tbl.
14555         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14556         fma4-enabled routines.
14557         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14558         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14559         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14560         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14561         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14562         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14563         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14564         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14565         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14566         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14567         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14568         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14569         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14570         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14571         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14572         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14573         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14574         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14575         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14576         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14577         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14578         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14579         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14580         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14581         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14582         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14583         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14584         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14585         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14586         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14587
14588         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14589         rename.
14590         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14591         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14592         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14593         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14594         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14595         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14596         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14597         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14598
14599 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14600
14601         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14602
14603 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14604
14605         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14606
14607         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14608         prediction.
14609         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14610
14611         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14612         Remove unused variable magic_bits.
14613         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14614
14615         * string/strnlen.c: Define and use STRNLEN macro.
14616         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14617         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14618         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14619         * wcsmbs/wcslen.c: Define and use WCSLEN.
14620         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14621         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14622         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14623         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14624         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14625         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14626         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14627
14628 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14629
14630         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14631         strnlen-sse2-no-bsf.
14632         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14633         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14634         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14635         Add strnlen support.
14636         (USE_AS_STRNLEN): New macro.
14637         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14638         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14639         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14640         * sysdeps/x86_64/wcslen.S: New file.
14641
14642 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14643
14644         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14645         XMM-moves are used for copying on small sizes.
14646
14647 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14648
14649         * wcsmbs/Makefile (strop-tests): Add wcschr.
14650         * wcsmbs/test-wcschr.c: New file.
14651         * string/test-strchr.c: Update.
14652         Add wcschr support.
14653         (WIDE): New macro.
14654
14655 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14656
14657         * wcsmbs/Makefile (strop-tests): Add wcslen.
14658         * wcsmbs/test-wcslen.c: New file.
14659         * string/test-strlen.c: Update.
14660         Add wcslen support.
14661         (WIDE): New macro.
14662
14663 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14664
14665         * po/it.po: Update from translation team.
14666
14667 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14668
14669         * sysdeps/x86_64/wcscmp.S: Update.
14670         Fix wrong comparison semantics.
14671         wcscmp shall use signed comparison not unsigned.
14672         Don't use substraction to avoid overflow bug.
14673         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14674         * wcsmbc/wcscmp.c: Likewise.
14675         * string/test-strcmp.c: Likewise.
14676         Add new tests to check cases with negative values.
14677
14678 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14679
14680         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14681         * sysdeps/x86_64/dla.h: ...here.  New file.
14682         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14683         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14684         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14685         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14686         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14687         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14688         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14689         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14690         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14691
14692 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14693
14694         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14695         __ynl_finite aliases.
14696
14697 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14698
14699         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14700
14701         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14702         define DLA_FMA.
14703         [DLA_FMA] (EMULV): Use DLA_FMA.
14704         [DLA_FMA] (MUL12): Use EMULV.
14705         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14706         that are not needed.
14707         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14708         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14709         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14710         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14711         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14712         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14713         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14714
14715 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14716
14717         * math/s_nan.c: Undef __nan.
14718         * math/s_nanf.c: Undef __nanf.
14719         * math/s_nanl.c: Undef __nanl.
14720         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14721         "math_private.h".
14722
14723 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14724
14725         * math/s_catan.c: Add branch predictions.
14726         * math/s_catanf.c: Likewise.
14727         * math/s_catanh.c: Likewise.
14728         * math/s_catanhf.c: Likewise.
14729         * math/s_catanhl.c: Likewise.
14730         * math/s_catanl.c: Likewise.
14731         * math/s_cexp.c: Likewise.
14732         * math/s_cexpf.c: Likewise.
14733         * math/s_cexpl.c: Likewise.
14734         * math/s_clog.c: Likewise.
14735         * math/s_clog10.c: Likewise.
14736         * math/s_clog10f.c: Likewise.
14737         * math/s_clog10l.c: Likewise.
14738         * math/s_clogf.c: Likewise.
14739         * math/s_clogl.c: Likewise.
14740         * math/s_csqrt.c: Likewise.
14741         * math/s_csqrtf.c: Likewise.
14742         * math/s_csqrtl.c: Likewise.
14743         * math/s_ctanf.c: Likewise.
14744         * math/s_ctanh.c: Likewise.
14745         * math/s_ctanhf.c: Likewise.
14746         * math/s_ctanhl.c: Likewise.
14747         * math/s_ctanl.c: Likewise.
14748
14749         * math/math_private.h: Define __nan, __nanf, __nanl.
14750         * math/s_cacosh.c: Include <math_private.h>.
14751         * math/s_cacoshl.c: Likewise.
14752         * math/s_casinh.c: Likewise.
14753         * math/s_casinhf.c: Likewise.
14754         * math/s_casinhl.c: Likewise.
14755         * math/s_ccos.c: Rely entire on ccosh.
14756         * math/s_ccosf.c: Rely entire on ccoshf.
14757         * math/s_ccosl.c: Rely entirely on ccoshl.
14758         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14759         Remove tests for FE_INVALID.
14760         * math/s_ccoshf.c: Likewise.
14761         * math/s_ccoshl.c: Likewise.
14762         * math/s_csin.c: Likewise.
14763         * math/s_csinf.c: Likewise.
14764         * math/s_csinh.c Likewise.
14765         * math/s_csinhf.c: Likewise.
14766         * math/s_csinhl.c: Likewise.
14767         * math/s_csinl.c: Likewise.
14768         * math/s_ctan.c: Likewise.
14769         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14770         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14771         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14772
14773 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14774
14775         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14776         compilation problems.
14777
14778         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14779         __builtin_expect.
14780
14781 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14782
14783         * sysdeps/i386/configure.in: Test for -mfma4 option.
14784         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14785         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14786         COMMON_CPUID_INDEX_80000001.
14787         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14788         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14789         use it if FMA3 is not supported.
14790         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14791
14792         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14793         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14794
14795 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14796
14797         [BZ #12892]
14798         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14799         it would create a cycle with a link time dependency.
14800
14801 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14802
14803         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14804         instruction.
14805         * string/Makefile (strop-tests): Add rawmemchr.
14806         * string/test-rawmemchr.c: New file.
14807
14808         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14809         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14810         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14811         when compiling str{,n}casecmp and when AVX is available.  Hook up
14812         new optimized code in initializers.
14813
14814 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14815
14816         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14817         __feraiseexcept instead of feraiseexcept.
14818
14819 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14820
14821         * math/math_private.h: Define defaults for libc_fetestexcept and
14822         libc_feupdateenv.
14823         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14824         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14825         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14826         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14827         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14828         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14829         libc_fetestexcept and libc_feupdateenv.
14830
14831         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14832         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14833         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14834         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14835         libc_feholdexcept_setround.
14836
14837         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14838         Add s_nearbyint-c and s_nearbyintf-c.
14839         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14840         nearbyintf inlines.
14841         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14842         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14843         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14844         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14845
14846         * math/math_private.h: Define defaults for libc_fegetround,
14847         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14848         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14849         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14850         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14851         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14852         standard functions.
14853         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14854         Remove comments and hacks for old compiler versions.
14855         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14856         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14857         libc_feholdexceptl.
14858
14859 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14860
14861         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14862         (__feraiseexcept_renamed): Add __NTH.
14863         (feraiseexcept): Add __NTH.  Rename local variables to fix
14864         namespace violations.
14865
14866 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14867
14868         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14869
14870         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14871
14872         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14873         recently added interfaces.
14874         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14875
14876         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14877         about macro parameter expansion.
14878
14879         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14880         __NO_MATH_INLINES is defined.  Cleanups.
14881
14882         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14883         and __floorf is target has SSE4.1.
14884         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14885         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14886         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14887         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14888
14889         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14890         name.
14891         (floorf): Likewise.
14892
14893         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14894
14895 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14896
14897         * misc/sys/cdefs.h: Fix last change.
14898
14899         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14900         database lookup.
14901
14902 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14903
14904         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14905
14906         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14907         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14908         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14909         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14910         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14911         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14912         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14913         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14914         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14915         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14916         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14917         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14918         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14919         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14920         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14921         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14922         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14923         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14924         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14925         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14926         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14927         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14928
14929         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14930         ceil, ceilf, floor, floorf.
14931
14932         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14933         Perform IRELATIVE relocations last.
14934
14935         * elf/do-rel.h: Add another parameter nrelative, replacing the
14936         local variable with the same name.  Change name of the function
14937         to end in Rel or Rela (uppercase).
14938         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14939         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14940         elf_dynamic_do_##reloc function.
14941
14942 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14943
14944         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14945         is sufficient, at least on modern CPUs.
14946
14947         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14948
14949         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14950         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14951
14952         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14953         __expl_finite.
14954         * math/bits/math-finite.h: Add entries for exp.
14955         * math/e_expl.c: Add __*_finite alias.
14956         * sysdeps/i386/fpu/e_exp.S: Likewise.
14957         * sysdeps/i386/fpu/e_expf.S: Likewise.
14958         * sysdeps/i386/fpu/e_expl.c: Likewise.
14959         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14960         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14961         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14962         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14963         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14964         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14965         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14966
14967         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14968         is sufficient, at least on modern CPUs.
14969
14970         * ctype/ctype-info.c (__ctype_init): Define.
14971         * include/ctype.h (__ctype_init): Declare.
14972         (__ctype_b_loc): The variable is always initialized.
14973         (__ctype_toupper_loc): Likewise.
14974         (__ctype_tolower_loc): Likewise.
14975         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14976         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14977
14978 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14979
14980         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14981
14982         * configure.in: Also look in $cxxmachine/include for C++ system
14983         headers.
14984
14985 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14986
14987         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14988         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14989         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14990         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14991         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14992         (USE_AS_WMEMCMP): New macro.
14993         Fixing indents.
14994         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14995         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14996         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14997         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14998         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14999         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15000         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15001         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15002         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15003         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15004         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15005         (USE_AS_WMEMCMP): New macro.
15006         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15007         * sysdeps/string/test-memcmp.c: Update.
15008         Fix simple_wmemcmp.
15009         Add new tests.
15010         * wcsmbs/wmemcmp.c: Update.
15011         (WMEMCMP): New macro.
15012         Fix overflow bug.
15013
15014 2011-10-12  Andreas Jaeger  <aj@suse.de>
15015
15016         [BZ #13268]
15017         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15018
15019 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15020
15021         * libio/iofwide.c (do_length): Avoid warning.
15022
15023         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15024
15025 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15026
15027         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15028
15029         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15030         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15031         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15032         * sysdeps/i386/i686/fpu/e_log.S: New file.
15033         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15034         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15035
15036         * ctype/ctype.h: Add support for inlined isXXX functions when
15037         compiling C++ code.
15038
15039 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15040
15041         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15042
15043         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15044
15045 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15046
15047         [BZ #13291]
15048         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15049
15050 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15051
15052         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15053         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15054         feraiseexcept.
15055
15056         * sysdeps/x86_64/memrchr.S: Check for zero size.
15057
15058         * string/stratcliff.c: Add memrchr tests.
15059
15060 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15061
15062         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15063         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15064         rawmemchr-sse2 rawmemchr-sse2-bsf.
15065         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15066         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15067         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15068         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15069         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15070         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15071         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15072         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15073         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15074         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15075         * string/memrchr.c (MEMRCHR): New macro.
15076
15077 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15078
15079         Add integration with gcc's -ffinite-math-only and optimize wrapper
15080         functions in libm.
15081         * Versions.def: Define GLIBC_2.15 version for libm.
15082         * math/Makefile (headers): Add bits/math-finite.h.
15083         * math/bits/math-finite.h: New file.
15084         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15085         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15086         * math/e_acoshl.c: Add __*_finite alias.
15087         * math/e_acosl.c: Likewise.
15088         * math/e_asinl.c: Likewise.
15089         * math/e_atan2l.c: Likewise.
15090         * math/e_atanhl.c: Likewise.
15091         * math/e_coshl.c: Likewise.
15092         * math/e_exp10.c: Likewise.
15093         * math/e_exp10f.c: Likewise.
15094         * math/e_exp10l.c: Likewise.
15095         * math/e_exp2l.c: Likewise.
15096         * math/e_fmodl.c: Likewise.
15097         * math/e_gammal_r.c: Likewise.
15098         * math/e_hypotl.c: Likewise.
15099         * math/e_j0l.c: Likewise.
15100         * math/e_j1l.c: Likewise.
15101         * math/e_jnl.c: Likewise.
15102         * math/e_lgammal_r.c: Likewise.
15103         * math/e_log10l.c: Likewise.
15104         * math/e_log2l.c: Likewise.
15105         * math/e_logl.c: Likewise.
15106         * math/e_powl.c: Likewise.
15107         * math/e_sinhl.c: Likewise.
15108         * math/e_sqrtl.c: Likewise.
15109         * math/e_scalb.c: Completely rewritten and optimized.
15110         * math/e_scalbf.c: Likewise.
15111         * math/e_scalbl.c: Likewise.
15112         * math/w_acos.c: Likewise.
15113         * math/w_acosf.c: Likewise.
15114         * math/w_acosl.c: Likewise.
15115         * math/w_acosh.c: Likewise.
15116         * math/w_acoshf.c: Likewise.
15117         * math/w_acoshl.c: Likewise.
15118         * math/w_asin.c: Likewise.
15119         * math/w_asinf.c: Likewise.
15120         * math/w_asinl.c: Likewise.
15121         * math/w_atan2.c: Likewise.
15122         * math/w_atan2f.c: Likewise.
15123         * math/w_atan2l.c: Likewise.
15124         * math/w_atanh.c: Likewise.
15125         * math/w_atanhf.c: Likewise.
15126         * math/w_atanhl.c: Likewise.
15127         * math/w_exp10.c: Likewise.
15128         * math/w_exp10f.c: Likewise.
15129         * math/w_exp10l.c: Likewise.
15130         * math/w_fmod.c: Likewise.
15131         * math/w_fmodf.c: Likewise.
15132         * math/w_fmodl.c: Likewise.
15133         * math/w_j0.c: Likewise.
15134         * math/w_j0f.c: Likewise.
15135         * math/w_j0l.c: Likewise.
15136         * math/w_j1.c: Likewise.
15137         * math/w_j1f.c: Likewise.
15138         * math/w_j1l.c: Likewise.
15139         * math/w_jn.c: Likewise.
15140         * math/w_jnf.c: Likewise.
15141         * math/w_log.c: Likewise.
15142         * math/w_logf.c: Likewise.
15143         * math/w_logl.c: Likewise.
15144         * math/w_log10.c: Likewise.
15145         * math/w_log10f.c: Likewise.
15146         * math/w_log10l.c: Likewise.
15147         * math/w_log2.c: Likewise.
15148         * math/w_log2f.c: Likewise.
15149         * math/w_log2l.c: Likewise.
15150         * math/w_pow.c: Likewise.
15151         * math/w_powf.c: Likewise.
15152         * math/w_powl.c: Likewise.
15153         * math/w_remainder.c: Likewise.
15154         * math/w_remainderf.c: Likewise.
15155         * math/w_remainderl.c: Likewise.
15156         * math/w_scalb.c: Likewise.
15157         * math/w_scalbf.c: Likewise.
15158         * math/w_scalbl.c: Likewise.
15159         * math/w_sqrt.c: Likewise.
15160         * math/w_sqrtf.c: Likewise.
15161         * math/w_sqrtl.c: Likewise.
15162         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15163         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15164         used.
15165         * math/math_private.h: Declare __kernel_standard_f.
15166         * math/w_cosh.c: Remove cruft and optimize a bit.
15167         * math/w_coshf.c: Likewise.
15168         * math/w_coshl.c: Likewise.
15169         * math/w_exp2.c: Likewise.
15170         * math/w_exp2f.c: Likewise.
15171         * math/w_exp2l.c: Likewise.
15172         * math/w_hypot.c: Likewise.
15173         * math/w_hypotf.c: Likewise.
15174         * math/w_hypotl.c: Likewise.
15175         * math/w_lgamma.c: Likewise.
15176         * math/w_lgamma_r.c: Likewise.
15177         * math/w_lgammaf.c: Likewise.
15178         * math/w_lgammaf_r.c: Likewise.
15179         * math/w_lgammal.c: Likewise.
15180         * math/w_lgammal_r.c: Likewise.
15181         * math/w_sinh.c: Likewise.
15182         * math/w_sinhf.c: Likewise.
15183         * math/w_sinhl.c: Likewise.
15184         * math/w_tgamma.c: Likewise.
15185         * math/w_tgammaf.c: Likewise.
15186         * math/w_tgammal.c: Likewise.
15187         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15188         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15189         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15190         Minor optimizations.  Pretty printing.  Remove cruft.
15191         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15192         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15193         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15194         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15195         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15196         * sysdeps/i386/fpu/e_asin.S: Likewise.
15197         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15198         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15199         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15200         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15201         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15202         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15203         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15204         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15205         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15206         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15207         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15208         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15209         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15210         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15211         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15212         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15213         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15214         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15215         * sysdeps/i386/fpu/e_log.S: Likewise.
15216         * sysdeps/i386/fpu/e_log10.S: Likewise.
15217         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15218         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15219         * sysdeps/i386/fpu/e_log2.S: Likewise.
15220         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15221         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15222         * sysdeps/i386/fpu/e_logf.S: Likewise.
15223         * sysdeps/i386/fpu/e_logl.S: Likewise.
15224         * sysdeps/i386/fpu/e_pow.S: Likewise.
15225         * sysdeps/i386/fpu/e_powf.S: Likewise.
15226         * sysdeps/i386/fpu/e_powl.S: Likewise.
15227         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15228         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15229         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15230         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15231         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15232         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15233         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15234         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15235         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15236         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15237         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15238         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15239         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15240         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15241         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15242         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15243         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15244         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15245         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15246         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15247         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15248         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15249         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15250         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15251         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15252         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15253         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15254         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15255         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15256         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15257         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15258         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15259         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15260         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15261         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15262         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15263         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15264         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15265         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15266         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15267         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15268         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15269         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15270         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15271         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15272         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15273         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15274         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15275         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15276         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15277         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15278         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15279         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15280         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15281         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15282         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15283         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15284         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15285         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15286         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15287         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15288         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15289         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15290         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15291         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15292         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15293         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15294         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15295         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15296         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15297         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15298         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15299         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15300         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15301         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15302         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15303         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15304         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15305         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15306         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15307         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15308         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15309         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15310         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15311         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15312         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15313         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15314         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15315         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15316         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15317         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15318         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15319         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15320         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15321         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15322         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15323         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15324         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15325         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15326         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15327         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15328         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15329         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15330         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15331         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15332         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15333         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15334         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15335         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15336         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15337         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15338         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15339         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15340         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15341         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15342         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15343         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15344         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15345         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15346         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15347         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15348         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15349         (__isnanf): Likewise.
15350         (__isinf_ns): Likewise.
15351         (__isinf_nsf): Likewise.
15352         (__finite): Likewise.
15353         (__finitef): Likewise.
15354         (__ieee754_sqrt): Define as macro.
15355         (__ieee754_sqrtf): Define as macro.
15356         (__ieee754_sqrtl): Define as macro.
15357         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15358         inlined copy.
15359         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15360         __FINITE_MATH_ONLY__ consistent.
15361         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15362
15363 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15364
15365         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15366         of rawmemchr.
15367
15368         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15369
15370 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15371
15372         * po/ja.po: Update from translation team.
15373
15374 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15375
15376         * locale/programs/locarchive.c (prepare_address_space): New function.
15377         (create_archive, enlarge_archive, open_archive): Use it.
15378
15379         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15380         inside [SHARED], where it is used.
15381
15382         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15383
15384         * nss/getent.c (netgroup_keys): Remove unused variable.
15385         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15386
15387 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15388
15389         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15390         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15391         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15392         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15393         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15394         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15395         * math/Makefile (libm-calls): Add s_isinf_ns.
15396         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15397         * math/multc3.c: Likewise.
15398         * math/s_casin.c: Likewise.
15399         * math/s_casinf.c: Likewise.
15400         * math/s_casinl.c: Likewise.
15401         * math/s_ccos.c: Likewise.
15402         * math/s_ccosf.c: Likewise.
15403         * math/s_ccosl.c: Likewise.
15404         * math/s_ctan.c: Likewise.
15405         * math/s_ctanf.c: Likewise.
15406         * math/s_ctanh.c: Likewise.
15407         * math/s_ctanhf.c: Likewise.
15408         * math/s_ctanhl.c: Likewise.
15409         * math/s_ctanl.c: Likewise.
15410         * math/w_fmod.c: Likewise.
15411         * math/w_fmodf.c: Likewise.
15412         * math/w_fmodl.c: Likewise.
15413         * math/w_remainder.c: Likewise.
15414         * math/w_remainderf.c: Likewise.
15415         * math/w_remainderl.c: Likewise.
15416         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15417         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15418         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15419         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15420         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15421         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15422         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15423         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15424
15425         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15426         of the number.
15427         * stdio-common/printf_fphex.c: Likewise.
15428         * stdio-common/printf_size.c: Likewise.
15429
15430         * math/e_exp10.c: Include math_private.h using <...> not "...".
15431         * math/e_exp10f.c: Likewise.
15432         * math/e_exp10l.c: Likewise.
15433         * math/e_exp2l.c: Likewise.
15434         * math/e_j0l.c: Likewise.
15435         * math/e_j1l.c: Likewise.
15436         * math/e_jnl.c: Likewise.
15437         * math/e_lgammal_r.c: Likewise.
15438         * math/e_rem_pio2l.c: Likewise.
15439         * math/e_scalb.c: Likewise.
15440         * math/e_scalbf.c: Likewise.
15441         * math/e_scalbl.c: Likewise.
15442         * math/k_cosl.c: Likewise.
15443         * math/k_sinl.c: Likewise.
15444         * math/k_tanl.c: Likewise.
15445         * math/s_cacoshf.c: Likewise.
15446         * math/s_catan.c: Likewise.
15447         * math/s_catanf.c: Likewise.
15448         * math/s_catanh.c: Likewise.
15449         * math/s_catanhf.c: Likewise.
15450         * math/s_catanhl.c: Likewise.
15451         * math/s_catanl.c: Likewise.
15452         * math/s_ccosh.c: Likewise.
15453         * math/s_ccoshf.c: Likewise.
15454         * math/s_ccoshl.c: Likewise.
15455         * math/s_cexp.c: Likewise.
15456         * math/s_cexpf.c: Likewise.
15457         * math/s_cexpl.c: Likewise.
15458         * math/s_clog.c: Likewise.
15459         * math/s_clog10.c: Likewise.
15460         * math/s_clog10f.c: Likewise.
15461         * math/s_clog10l.c: Likewise.
15462         * math/s_clogf.c: Likewise.
15463         * math/s_clogl.c: Likewise.
15464         * math/s_csin.c: Likewise.
15465         * math/s_csinf.c: Likewise.
15466         * math/s_csinh.c: Likewise.
15467         * math/s_csinhf.c: Likewise.
15468         * math/s_csinhl.c: Likewise.
15469         * math/s_csinl.c: Likewise.
15470         * math/s_csqrt.c: Likewise.
15471         * math/s_csqrtf.c: Likewise.
15472         * math/s_csqrtl.c: Likewise.
15473         * math/s_ctan.c: Likewise.
15474         * math/s_ctanf.c: Likewise.
15475         * math/s_ctanh.c: Likewise.
15476         * math/s_ctanhf.c: Likewise.
15477         * math/s_ctanhl.c: Likewise.
15478         * math/s_ctanl.c: Likewise.
15479         * math/s_ldexp.c: Likewise.
15480         * math/s_ldexpf.c: Likewise.
15481         * math/s_ldexpl.c: Likewise.
15482         * math/s_significand.c: Likewise.
15483         * math/s_significandf.c: Likewise.
15484         * math/s_significandl.c: Likewise.
15485         * math/w_acos.c: Likewise.
15486         * math/w_acosf.c: Likewise.
15487         * math/w_acosh.c: Likewise.
15488         * math/w_acoshf.c: Likewise.
15489         * math/w_acoshl.c: Likewise.
15490         * math/w_acosl.c: Likewise.
15491         * math/w_asin.c: Likewise.
15492         * math/w_asinf.c: Likewise.
15493         * math/w_asinl.c: Likewise.
15494         * math/w_atan2.c: Likewise.
15495         * math/w_atan2f.c: Likewise.
15496         * math/w_atan2l.c: Likewise.
15497         * math/w_atanh.c: Likewise.
15498         * math/w_atanhf.c: Likewise.
15499         * math/w_atanhl.c: Likewise.
15500         * math/w_cosh.c: Likewise.
15501         * math/w_coshf.c: Likewise.
15502         * math/w_coshl.c: Likewise.
15503         * math/w_dremf.c: Likewise.
15504         * math/w_exp10.c: Likewise.
15505         * math/w_exp10f.c: Likewise.
15506         * math/w_exp10l.c: Likewise.
15507         * math/w_exp2.c: Likewise.
15508         * math/w_exp2f.c: Likewise.
15509         * math/w_fmod.c: Likewise.
15510         * math/w_fmodf.c: Likewise.
15511         * math/w_fmodl.c: Likewise.
15512         * math/w_hypot.c: Likewise.
15513         * math/w_hypotf.c: Likewise.
15514         * math/w_hypotl.c: Likewise.
15515         * math/w_j0.c: Likewise.
15516         * math/w_j0f.c: Likewise.
15517         * math/w_j0l.c: Likewise.
15518         * math/w_j1.c: Likewise.
15519         * math/w_j1f.c: Likewise.
15520         * math/w_j1l.c: Likewise.
15521         * math/w_jn.c: Likewise.
15522         * math/w_jnf.c: Likewise.
15523         * math/w_jnl.c: Likewise.
15524         * math/w_lgamma.c: Likewise.
15525         * math/w_lgamma_r.c: Likewise.
15526         * math/w_lgammaf.c: Likewise.
15527         * math/w_lgammaf_r.c: Likewise.
15528         * math/w_lgammal.c: Likewise.
15529         * math/w_lgammal_r.c: Likewise.
15530         * math/w_log.c: Likewise.
15531         * math/w_log10.c: Likewise.
15532         * math/w_log10f.c: Likewise.
15533         * math/w_log10l.c: Likewise.
15534         * math/w_log2.c: Likewise.
15535         * math/w_log2f.c: Likewise.
15536         * math/w_log2l.c: Likewise.
15537         * math/w_logf.c: Likewise.
15538         * math/w_logl.c: Likewise.
15539         * math/w_pow.c: Likewise.
15540         * math/w_powf.c: Likewise.
15541         * math/w_powl.c: Likewise.
15542         * math/w_remainder.c: Likewise.
15543         * math/w_remainderf.c: Likewise.
15544         * math/w_remainderl.c: Likewise.
15545         * math/w_scalb.c: Likewise.
15546         * math/w_scalbf.c: Likewise.
15547         * math/w_scalbl.c: Likewise.
15548         * math/w_sinh.c: Likewise.
15549         * math/w_sinhf.c: Likewise.
15550         * math/w_sinhl.c: Likewise.
15551         * math/w_sqrt.c: Likewise.
15552         * math/w_sqrtf.c: Likewise.
15553         * math/w_sqrtl.c: Likewise.
15554         * math/w_tgamma.c: Likewise.
15555         * math/w_tgammaf.c: Likewise.
15556         * math/w_tgammal.c: Likewise.
15557
15558         * po/ja.po: Update from translation team.
15559
15560 2011-09-29  Andreas Jaeger  <aj@suse.de>
15561
15562         [BZ #13179]
15563         * sunrpc/netname.c (netname2host): Fix logic.
15564
15565         [BZ #6779]
15566         [BZ #6783]
15567         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15568         correctly.
15569         * math/w_remainder.c (__remainder): Likewise.
15570         * math/w_remainderf.c (__remainderf): Likewise.
15571         * math/libm-test.inc (remainder_test): Add test cases.
15572
15573 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15574
15575         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15576         sdiv_qrnnd.
15577
15578 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15579
15580         * string/test-memcmp.c: Avoid unncessary #defines.
15581         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15582
15583 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15584
15585         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15586         Use new sse2 version for core i3 - i7 as it's faster
15587         than sse42 version.
15588         (bit_Prefer_PMINUB_for_stringop): New.
15589         * sysdeps/x86_64/rawmemchr.S: Update.
15590         Replace with faster SSE2 version.
15591         * sysdeps/x86_64/memrchr.S: New file.
15592         * sysdeps/x86_64/memchr.S: Update.
15593         Replace with faster SSE2 version.
15594
15595 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15596
15597         * elf/dl-load.c (lose): Add cast to avoid warning.
15598
15599 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15600
15601         * po/ca.po: Update from translation team.
15602
15603         * inet/getnetgrent_r.c: Hook up nscd.
15604         * nscd/Makefile (routines): Add nscd_netgroup.
15605         (nscd-modules): Add netgroupcache.
15606         (CFLAGS-netgroupcache.c): Define.
15607         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15608         (cache_search): Add const to second parameter.
15609         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15610         INNETGR.
15611         (dbs): Add netgrdb entry.
15612         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15613         (verify_persistent_db): Handle netgrdb.
15614         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15615         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15616         GETFDNETGR.
15617         (netgroup_response_header): Define.
15618         (innetgroup_response_header): Define.
15619         (datahead): Add netgroup_response_header and innetgroup_response_header
15620         elements.
15621         * nscd/nscd.conf: Add entries for netgroup cache.
15622         * nscd/nscd.h (dbtype): Add netgrdb.
15623         (_PATH_NSCD_NETGROUP_DB): Define.
15624         (netgroup_iov_disabled): Declare.
15625         (xmalloc, xcalloc, xrealloc): Move declarations here.
15626         (cache_search): Adjust prototype.
15627         Add netgroup-related prototypes.
15628         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15629         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15630         (__nscd_innetgr): Declare.
15631         * nscd/selinux.c (perms): Use access_vector_t as element type and
15632         add netgroup-related initializers.
15633         * nscd/netgroupcache.c: New file.
15634         * nscd/nscd_netgroup.c: New file.
15635         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15636         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15637         For four parameters use innetgr.
15638         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15639         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15640         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15641         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15642
15643         * nscd/connections.c (register_traced_file): Don't register file
15644         for disabled databases.
15645
15646 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15647
15648         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15649
15650         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15651         from tree and freeing node.
15652
15653 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15654
15655         * nss/nsswitch.c (__nss_database_lookup): Handle
15656         nss_parse_service_list out of memory case.
15657
15658 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15659
15660         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15661         out of memory case.
15662
15663 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15664
15665         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15666         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15667         pass it down.
15668         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15669         elf_machine_rela, elf_machine_lazy_rel.
15670         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15671         (ELF_DYNAMIC_DO_REL): Likewise.
15672         (ELF_DYNAMIC_DO_RELA): Likewise.
15673         (ELF_DYNAMIC_RELOCATE): Likewise.
15674         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15675         to ELF_DYNAMIC_DO_REL.
15676         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15677         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15678         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15679         elf_machine_rela.
15680         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15681         skip_ifunc, don't call ifunc function if non-zero.
15682         (elf_machine_rela): Likewise.
15683         (elf_machine_lazy_rel): Likewise.
15684         (elf_machine_lazy_rela): Likewise.
15685         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15686         (elf_machine_lazy_rel): Likewise.
15687         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15688         Likewise.
15689         (elf_machine_lazy_rel): Likewise.
15690         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15691         Likewise.
15692         (elf_machine_lazy_rel): Likewise.
15693         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15694         (elf_machine_lazy_rel): Likewise.
15695         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15696         (elf_machine_lazy_rel): Likewise.
15697         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15698         (elf_machine_lazy_rel): Likewise.
15699         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15700         (elf_machine_lazy_rel): Likewise.
15701         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15702         (elf_machine_lazy_rel): Likewise.
15703         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15704         (elf_machine_lazy_rel): Likewise.
15705
15706 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15707
15708         * nss/nss_files/files-init.c (_nss_files_init): Use static
15709         initialization for all the *_traced_file variables.
15710
15711 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15712
15713         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15714
15715 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15716
15717         [BZ #13226]
15718         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15719
15720 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15721
15722         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15723         Reread the line before reparsing it.
15724
15725 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15726
15727         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15728
15729 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15730             Maxim Kuvyrkov  <maxim@codesourcery.com>
15731             Joseph Myers  <joseph@codesourcery.com>
15732
15733         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15734         if needed for __stack_chk_guard.
15735
15736 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15737
15738         * sysdeps/posix/spawni.c (script_execute): Always define it.
15739         It will be optimized away if unused.
15740         (maybe_script_execute): New function.
15741         (__spawni): Call it.
15742
15743         * Makerules: Don't include tls.make.
15744         (config-tls): Always set to thread.
15745         * tls.make.c: File removed.
15746
15747 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15748
15749         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15750         * config.make.in (CPPFLAGS-config): New substituted variable.
15751
15752 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15753
15754         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15755
15756         [BZ #13192]
15757         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15758         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15759
15760 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15761
15762         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15763         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15764         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15765         (CALL_FAIL): Likewise.
15766         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15767         (CALL_FAIL): Macro removed.
15768         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15769
15770 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15771
15772         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15773         for __FINITE_MATH_ONLY__ == 1.
15774
15775 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15776
15777         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15778         __ieee754_sqrt instead of sqrt.
15779         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15780         __ieee754_sqrtf instead of sqrtf.
15781         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15782         __floorf instead of floorf.
15783         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15784         __floorf, __truncf instead of floorf, truncf.
15785
15786 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15787
15788         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15789
15790         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15791         __extern_always_inline.
15792         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15793         32-bit.
15794
15795 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15796
15797         * elf/rtld.c (dl_main): Also relocate in dependency order when
15798         doing symbol dependency testing.
15799
15800 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15801
15802         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15803         Always define `refsym'.
15804
15805 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15806
15807         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15808         (__FD_ELT): Renamed from __FDELT.
15809         * misc/bits/select2.h (__FD_ELT): Likewise.
15810         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15811         __FD_MASK instead of __FDELT, __FDMASK.
15812         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15813         Likewise.
15814         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15815         Likewise.
15816
15817         * elf/Makefile (gen-ldd): Fix pattern.
15818
15819         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15820         (init_tls): Likewise.
15821
15822 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15823
15824         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15825
15826 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15827
15828         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15829         `struct cmsghdr *' instead of `void *'.
15830         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15831         Likewise.
15832
15833 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15834
15835         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15836         if non-absolute.
15837         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15838         ldd_rewrite_script.
15839
15840 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15841
15842         * configure.in: Remove --with-tls option.
15843         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15844         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15845         out in case it is missing.
15846         * sysdeps/ia64/elf/configure.in: Likewise.
15847         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15848         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15849         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15850         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15851         * sysdeps/sh/elf/configure.in: Likewise.
15852         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15853         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15854         * sysdeps/x86_64/elf/configure.in: Likewise.
15855         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15856         * sysdeps/mach/hurd/tls.h: Likewise.
15857
15858         [BZ #13067]
15859         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15860
15861         [BZ #13090]
15862         * configure.in: Fix use of AC_INIT.
15863
15864         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15865
15866 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15867
15868         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15869         __set_errno.
15870         * malloc/hooks.c: Likewise.
15871
15872         [BZ #11929]
15873         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15874         variables statically.
15875         (narenas): Initialize.
15876         (list_lock): Initialize.
15877         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15878         initializtion of main_arena and list_lock.  Small cleanups.
15879         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15880         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15881         Add initializers to main_arena and mp_.
15882         (malloc_state): Remove pagesize member.  Change all users to use
15883         GLRO(dl_pagesize).
15884
15885         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15886         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15887         is always initialized.
15888
15889         * malloc/malloc.c: Removed unused configurations and dead code.
15890         * malloc/arena.c: Likewise.
15891         * malloc/hooks.c: Likewise.
15892         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15893
15894         * include/tls.h: Removed.  USE___THREAD must always be defined.
15895         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15896         * elf/dl-libc.c: Likewise.
15897         * elf/dl-tsd.c: Likewise.
15898         * include/errno.h: Likewise.
15899         * include/netdb.h: Likewise.
15900         * include/resolv.h: Likewise.
15901         * inet/herrno-loc.c: Likewise.
15902         * inet/herrno.c: Likewise.
15903         * malloc/arena.c: Likewise.
15904         * malloc/hooks.c: Likewise.
15905         * malloc/malloc.c: Likewise.
15906         * resolv/res-state.c: Likewise.
15907         * resolv/res_libc.c: Likewise.
15908         * sysdeps/i386/dl-machine.h: Likewise.
15909         * sysdeps/ia64/dl-machine.h: Likewise.
15910         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15911         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15912         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15913         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15914         * sysdeps/sh/dl-machine.h: Likewise.
15915         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15916         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15917         * sysdeps/unix/i386/sysdep.S: Likewise.
15918         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15919         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15920         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15921         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15922         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15923         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15924         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15925         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15926         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15927         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15928         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15929         * sysdeps/x86_64/dl-machine.h: Likewise.
15930         * tls.make.c: Likewise.
15931
15932         * configure.in: Remove --with-__thread option.  Make tests for
15933         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15934         tls_model attribute fail if no support is available.  Remove
15935         USE_IN_LIBIO.
15936         * Makeconfig: Adjust for dropped configure option.  All features are
15937         now mandatory.
15938         * Makerules: Likewise.
15939         * Versions.def: Likewise.
15940         * argp/argp-fmtstream.c: Likewise.
15941         * argp/argp-fmtstream.h: Likewise.
15942         * argp/argp-help.c: Likewise.
15943         * assert/assert.c: Likewise.
15944         * config.h.in: Likewise.
15945         * config.make.in: Likewise.
15946         * configure: Likewise.
15947         * configure.in: Likewise.
15948         * csu/Versions: Likewise.
15949         * csu/init.c: Likewise.
15950         * elf/tst-audit2.c: Likewise.
15951         * elf/tst-tls10.c: Likewise.
15952         * elf/tst-tls10.h: Likewise.
15953         * elf/tst-tls11.c: Likewise.
15954         * elf/tst-tls12.c: Likewise.
15955         * elf/tst-tls14.c: Likewise.
15956         * elf/tst-tlsmod11.c: Likewise.
15957         * elf/tst-tlsmod12.c: Likewise.
15958         * elf/tst-tlsmod13.c: Likewise.
15959         * elf/tst-tlsmod13a.c: Likewise.
15960         * elf/tst-tlsmod14a.c: Likewise.
15961         * elf/tst-tlsmod15b.c: Likewise.
15962         * elf/tst-tlsmod16a.c: Likewise.
15963         * elf/tst-tlsmod16b.c: Likewise.
15964         * elf/tst-tlsmod7.c: Likewise.
15965         * elf/tst-tlsmod8.c: Likewise.
15966         * elf/tst-tlsmod9.c: Likewise.
15967         * gmon/gmon.c: Likewise.
15968         * grp/fgetgrent_r.c: Likewise.
15969         * grp/putgrent.c: Likewise.
15970         * hurd/fopenport.c: Likewise.
15971         * include/libc-symbols.h: Likewise.
15972         * include/tls.h: Likewise.
15973         * intl/gettextP.h: Likewise.
15974         * intl/loadinfo.h: Likewise.
15975         * locale/global-locale.c: Likewise.
15976         * locale/localeinfo.h: Likewise.
15977         * mach/devstream.c: Likewise.
15978         * malloc/arena.c: Likewise.
15979         * malloc/set-freeres.c: Likewise.
15980         * misc/err.c: Likewise.
15981         * misc/getttyent.c: Likewise.
15982         * misc/mntent_r.c: Likewise.
15983         * posix/getopt.c: Likewise.
15984         * posix/wordexp.c: Likewise.
15985         * pwd/fgetpwent_r.c: Likewise.
15986         * resolv/Versions: Likewise.
15987         * resolv/res_hconf.c: Likewise.
15988         * shadow/fgetspent_r.c: Likewise.
15989         * shadow/putspent.c: Likewise.
15990         * stdio-common/printf_fphex.c: Likewise.
15991         * stdio-common/tmpfile.c: Likewise.
15992         * stdlib/abort.c: Likewise.
15993         * stdlib/fmtmsg.c: Likewise.
15994         * sunrpc/auth_unix.c: Likewise.
15995         * sunrpc/clnt_perr.c: Likewise.
15996         * sunrpc/clnt_tcp.c: Likewise.
15997         * sunrpc/clnt_udp.c: Likewise.
15998         * sunrpc/clnt_unix.c: Likewise.
15999         * sunrpc/openchild.c: Likewise.
16000         * sunrpc/svc_simple.c: Likewise.
16001         * sunrpc/svc_tcp.c: Likewise.
16002         * sunrpc/svc_udp.c: Likewise.
16003         * sunrpc/svc_unix.c: Likewise.
16004         * sunrpc/xdr.c: Likewise.
16005         * sunrpc/xdr_array.c: Likewise.
16006         * sunrpc/xdr_rec.c: Likewise.
16007         * sunrpc/xdr_ref.c: Likewise.
16008         * sunrpc/xdr_stdio.c: Likewise.
16009
16010 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16011
16012         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16013
16014 2011-07-03  Andreas Jaeger  <aj@suse.de>
16015
16016         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16017         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16018         regenerate with gen-libm-tests.pl.
16019
16020 2010-05-12  Petr Baudis  <pasky@suse.cz>
16021
16022         [BZ #11589]
16023         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16024         around j0() zero points by switching to j1().
16025         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16026         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16027         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16028         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16029
16030 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16031
16032         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16033         instead of 0.
16034         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16035         instead of 0.                              .
16036         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16037         Patch in part by Pavel Roskin <proski@gnu.org>.
16038
16039         [BZ #13138]
16040         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16041         realloc.
16042         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16043         Free memory block if necessary.
16044
16045         [BZ #12847]
16046         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16047         be NULL.  Don't lock in this case.
16048
16049 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16050
16051         * elf/elf.h (ELFOSABI_GNU): New macro.
16052         (ELFOSABI_LINUX): Define to that.
16053
16054 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16055
16056         * string/strncat.c (strncat): Undef the symbol in case it has been
16057         defined in bits/string.h.
16058
16059 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16060
16061         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16062
16063         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16064         link map.
16065
16066 2011-08-17  Andreas Jaeger  <aj@suse.de>
16067
16068         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16069
16070 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16071             Ian Lance Taylor  <iant@google.com>
16072
16073         * math/libm-test.inc (lround_test): New testcase.
16074         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16075
16076 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16077
16078         * Makefile: Remove support for automatic cvs check-ins.
16079         * Makerules: Likewise.
16080         * config.make.in: Likewise.
16081         * configure.in: Likewise.
16082         * intl/Makefile: Likewise.
16083         * locale/Makefile: Likewise.
16084         * po/Makefile: Likewise.
16085         * posix/Makefile: Likewise.
16086         * sysdeps/gnu/Makefile: Likewise.
16087         * sysdeps/mach/hurd/Makefile: Likewise.
16088         * sysdeps/sparc/sparc32/Makefile: Likewise.
16089
16090         [BZ #13118]
16091         * posix/Makefile (bug-regex32-ENV): Define.
16092         Patch by John Stanley <jpsinthemix@verizon.net>.
16093
16094         * misc/Makefile (headers): Add bits/select2.h.
16095         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16096         * misc/bits/select2.h: New file.
16097         * include/bits/select2.h: New file.
16098         * debug/Makefile (routines): Add fdelt_chk.
16099         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16100         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16101         FD_ISSET.
16102         * debug/fdelt_chk.c: New file.
16103
16104         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16105         * wcsmbs/test-wmemcmp.c: Likewise.
16106         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16107         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16108
16109 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16110
16111         * string/Makefile (strop-tests): Add memcmp.
16112         * string/test-wmemcmp.c: New file.
16113         * string/test-memcmp.c: Add wmemcmp support.
16114
16115 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16116
16117         [BZ #13153]
16118         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16119         2011-07-19 change.
16120
16121         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16122         garbage value in a __mach_port_mod_refs call in the cases of the
16123         task-self and thread-self ports.
16124
16125 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16126
16127         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16128
16129 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16130
16131         * elf/dl-load.c (lose): Check for non-null L.
16132
16133 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16134
16135         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16136
16137         * elf/dl-libc.c (dlerror_run): Pass back error code from
16138         dl_catch_error.
16139
16140         [BZ #13123]
16141         * elf/dl-load.c (lose): Free l_origin if it is valid.
16142
16143         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16144         names.
16145         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16146         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16147         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16148         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16149         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16150         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16151
16152 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16153
16154         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16155         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16156         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16157         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16158         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16159         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16160         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16161         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16162         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16163         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16164
16165 2011-08-15  Alan Modra  <amodra@gmail.com>
16166
16167         [BZ #13092]
16168         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16169         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16170         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16171         ppc_mcount to static-only-routines.
16172         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16173         __mcount_internal.
16174         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16175         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16176
16177 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16178
16179         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16180         for finite and infinity parameters.
16181
16182 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16183
16184         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16185         and add nop instructions for throughput optimization.
16186         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16187
16188 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16189
16190         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16191         aligned copy for power7 with vector-scalar instructions.
16192         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16193
16194 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16195
16196         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16197         AVX check.
16198
16199 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16200
16201         [BZ #13144]
16202         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16203         last change.
16204
16205 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16206
16207         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16208         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16209         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16210         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16211         clock_gettime.
16212
16213 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16214
16215         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16216         Forgot to demangle the pointer.
16217
16218         * sysdeps/i386/sysdep.h: Define atom_text_section.
16219         * sysdeps/x86_64/sysdep.h: Likewise.
16220         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16221         section with atom_text_section.
16222         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16223         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16224         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16225         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16226         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16227
16228         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16229         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16230         already be defined.  Change to take two parameters and don't assign
16231         result to variable.  Adjust all users.
16232         Define INTERNAL_GETTIME if not already defined.
16233         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16234         call.
16235         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16236         HAVE_CLOCK_GETTIME_VSYSCALL.
16237         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16238
16239         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16240         gettimeofday vsyscall, just use time.
16241
16242 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16243
16244         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16245         <errno.h>.
16246
16247 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16248
16249         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16250         syscall on x86-64.
16251         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16252         syscall.
16253         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16254         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16255         syscall if possible.
16256
16257 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16258
16259         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16260         e_ident.  Don't pass to find_mapsXX.
16261         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16262
16263 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16264
16265         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16266         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16267         * sysdeps/x86_64/multiarch/strchr.S: Update.
16268         Check bit_slow_BSF bit.
16269         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16270         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16271         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16272
16273 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16274
16275         [BZ #13134]
16276         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16277         before glibc 2.15.
16278         (tryshell): Define.
16279         (__spawni): Change last parameter to be flag.  Test
16280         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16281         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16282         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16283         * posix/spawni.c: Likewise.
16284         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16285         * posix/spawnp.c: Likewise.  Change normal version to use
16286         SPAWN_XFLAGS_USE_PATH.
16287         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16288         SPAWN_XFLAGS_TRY_SHELL.
16289
16290         [BZ #13150]
16291         * posix/glob.h: Remove gcc 1.x support.
16292
16293         [BZ #13068]
16294         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16295
16296 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16297
16298         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16299         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16300         strrchr-sse2-bsf
16301         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16302         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16303         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16304         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16305         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16306         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16307
16308 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16309
16310         * sysdeps/x86_64/wcscmp.S: New file.
16311
16312         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16313         wcscmp-c wcscmp-sse2
16314         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16315         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16316         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16317         * wcsmbs/wcscmp.c: Allow renaming.
16318
16319 2011-09-05  David S. Miller  <davem@davemloft.net>
16320
16321         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16322         stack slot, rather than the struct return pointer slot.
16323         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16324         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16326         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16327
16328 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16329
16330         * po/ja.po: Update from translation team.
16331
16332         [BZ #13144]
16333         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16334         kernel in 64-bit binaries.
16335
16336 2011-09-01  David S. Miller  <davem@davemloft.net>
16337
16338         * elf/elf.h (HWCAP_SPARC_*): Move to..
16339         * sysdeps/sparc/sysdep.h: this new file and add new values.
16340         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16341         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16342         _DL_HWCAP_COUNT to 24.
16343         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16344         entries.
16345         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16346         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16347         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16348         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16349         instead of magic constants.
16350         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16351
16352 2011-08-31  David S. Miller  <davem@davemloft.net>
16353
16354         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16355         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16356         Reimplement to do errno handling inline.
16357         (SYSCALL_ERROR_HANDLER): New macro.
16358         (__SYSCALL_STRING): Do not do errno handling in asm.
16359         (__CLONE_SYSCALL_STRING): Delete.
16360         (__INTERNAL_SYSCALL_STRING): Delete.
16361         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16362         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16363         (PSEUDO): Reimplement to do errno handling inline.
16364         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16365         (SYSCALL_ERROR_HANDLER): New macro.
16366         (__SYSCALL_STRING): Do not do errno handling in asm.
16367         (__CLONE_SYSCALL_STRING): Delete.
16368         (__INTERNAL_SYSCALL_STRING): Delete.
16369         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16370         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16371         i386.
16372         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16373         (inline_syscall*): Add 'err' argument.
16374         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16375         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16376         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16377         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16378
16379         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16380         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16381
16382 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16383
16384         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16385
16386 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16387
16388         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16389         directive.
16390
16391 2011-08-24  David S. Miller  <davem@davemloft.net>
16392
16393         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16394
16395 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16396
16397         * elf/Makefile: Add rules to build and run unload8 test.
16398         * elf/unload8.c: New file.
16399         * elf/unload8mod1.c: New file.
16400         * elf/unload8mod1x.c: New file.
16401         * elf/unload8mod2.c: New file.
16402         * elf/unload8mod3.c: New file.
16403
16404         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16405         it wasn't used.
16406
16407 2011-08-23  David S. Miller  <davem@davemloft.net>
16408
16409         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16410         subtract stack bias.
16411         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16412         %sp not %fp in calculations.
16413         (_JMPBUF_UNWINDS_ADJ): Likewise.
16414
16415         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16416         (aio_suspend): Call it to force an exception region around the
16417         AIO_MISC_WAIT() invocation.
16418
16419 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16420
16421         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16422         backslash.
16423
16424 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16425
16426         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16427         protection macro.
16428         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16429         and <dl-machine.h>.
16430         (Elf64_FuncDesc): Remove.
16431
16432 2011-08-22  David S. Miller  <davem@davemloft.net>
16433
16434         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16435         sigaltstack check, add missing cfi directives.
16436         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16437         missing cfi directives, and sigaltstack handling.
16438
16439 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16440
16441         [BZ #11724]
16442         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16443         object is seen twice.
16444         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16445
16446         * elf/Makefile (distribute): Add tst-initorder2.c.
16447         (tests): Add tst-initorder2.
16448         (modules-names): Add tst-initorder2a tst-initorder2b
16449         tst-initorder2c tst-initorder2d.  Add rules to build them.
16450         ($(objpfx)tst-initorder2.out): New rule.
16451         * elf/tst-initorder2.c: New file.
16452         * elf/tst-initorder2.exp: New file.
16453
16454 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16455
16456         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16457
16458         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16459         dependencies back to end of function.
16460
16461         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16462         $(elfobjdir)/ld.so.
16463
16464 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16465
16466         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16467         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16468         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16469         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16470         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16471         of __vdso_gettimeofday.
16472         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16473         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16474         attribute_hidden.
16475         (_libc_vdso_platform_setup): Remove initialization of
16476         __vdso_gettimeofday and __vdso_time.
16477
16478 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16479
16480         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16481         and fgetc_unlocked.
16482         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16483         getc_unlocked.
16484
16485         * elf/dl-open.c (add_to_global): Report additions to the global scope
16486         for LD_DEBUG=scopes.
16487         (dl_open_worker): Also print scope of newly loaded dependencies.
16488         (_dl_show_scope): Indicate if there is no scope.
16489
16490         [BZ #13114]
16491         * stdio-common/Makefile (tests): Add bug24.
16492         * stdio-common/bug24.c: New file.
16493
16494 2011-08-19  Andreas Jaeger  <aj@suse.de>
16495
16496         [BZ #13114]
16497         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16498         non-existant file when using close-on-exec mode.
16499
16500 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16501
16502         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16503         the very first instruction.
16504
16505         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16506         the CFI state in the end.
16507         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16508         inclusion of dl-trampoline.h.
16509         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16510
16511 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16512
16513         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16514         expectations for long double.
16515
16516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16517         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16518
16519 2011-08-14  David S. Miller  <davem@davemloft.net>
16520
16521         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16522         artificual limit depends upon the system page size.
16523
16524 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16525
16526         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16527         * resolv/Makefile: Define CFLAGS-libresolv.
16528
16529 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16530
16531         * nss/makedb.c (compute_tables): Make variables used in nested
16532         function static.
16533
16534 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16535
16536         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16537         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16538         if buffer was too small.
16539
16540         * elf/pldd.c (main): Attach to all threads in the process.
16541         Rewrite /proc handling to use *at functions.
16542
16543 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16544
16545         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16546         specifies first scope to show.
16547         (dl_open_worker): Update callers.  Move printing scope of new
16548         object to before the relocation.
16549         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16550         * sysdeps/generic/ldsodefs.h: Update declaration.
16551
16552         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16553         string for the scope number.
16554
16555 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16556
16557         * nscd/servicescache.c (cache_addserv): Make sure written is always
16558         initialized.
16559
16560 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16561
16562         * sysdeps/i386/i486/bits/atomic.h
16563         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16564         statement expression, so as to suppress "set but not used" warning.
16565         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16566
16567         * string/strncat.c (STRNCAT): Use prototype definition.
16568
16569         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16570         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16571         -Iprograms here.
16572         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16573         (localedef-modules): Add localedef.
16574         (locale-modules): Add locale.
16575
16576         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16577         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16578         to avoid a warning.
16579
16580 2011-08-14  David S. Miller  <davem@davemloft.net>
16581
16582         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16583         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16584
16585 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16586
16587         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16588         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16589         * elf/rtld.c (dl_main): Set l_name of vDSO.
16590         Call _dl_show_scope when DL_DEBUG_SCOPES.
16591         (process_dl_debug): Recognize scopes flag and also set it for all.
16592         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16593         Declare _dl_show_scope.
16594
16595         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16596         (do_dlopen): Pass caller_dlopen to dl_open.
16597         (__libc_dlopen_mode): Initialize caller_dlopen.
16598
16599         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16600         of libc.  Make tolower call locale-independent.  Optimize a bit by
16601         using isdigit instead of isalnum.
16602         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16603
16604 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16605
16606         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16607         was a dependency or dynamically loaded.
16608
16609 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16610
16611         * intl/l10nflist.c: Allow architecture-specific pop function.
16612         * sysdeps/x86_64/l10nflist.c: New file.
16613
16614         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16615         classification.
16616
16617 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16618
16619         * include/dirent.h: Add libc_hidden_proto for scandirat and
16620         scandirat64.  Don't declare __scandirat64.
16621         * dirent/scandirat.c: Add libc_hidden_def.
16622         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16623         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16624
16625 2011-08-10  David S. Miller  <davem@davemloft.net>
16626
16627         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16628         enum.
16629         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16630         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16631         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16632
16633 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * Versions.def [libc]: Add GLIBC_2.15.
16636         * dirent/Makefile (routines): Add scandirat and scandirat64.
16637         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16638         GLIBC_2.15.
16639         * dirent/dirent.h: Declare scandirat and scandirat64.
16640         * dirent/scandirat.c: New file.
16641         * dirent/scandirat64.c: New file.
16642         * sysdeps/wordsize-64/scandirat.c: New file.
16643         * sysdeps/wordsize-64/scandirat64.c: New file.
16644         * dirent/opendir.c: Define opendirat.
16645         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16646         using scandirat.
16647         * dirent/scandir64.c: Adjust for scandir.c change.
16648         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16649         __scandirat64, and __scandir_cancel_handler.
16650         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16651         additional parameter and use openat instead of open (outside of ld.so).
16652         Add new __opendir as wrapper around __opendirat.
16653         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16654         here without requiring old scandirat implementation.
16655
16656 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16657
16658         * dirent/scandir.c (cancel_handler): Renamed to
16659         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16660         defined.  Adjust users.
16661         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16662         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16663
16664 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16665
16666         * string/test-string.h (IMPL): Use __STRING to expand name and then
16667         stringify it.
16668
16669         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16670         of cleanups.
16671
16672 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16673
16674         * string/Makefile: Update.
16675         (strop-tests): Append strncat.
16676         * string/test-wcscmp.c: New file.
16677         New comprehensive test for wcscmp.
16678         * string/test-strcmp.c: Update.
16679         (WIDE): New define.
16680
16681 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16682
16683         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16684         line.
16685
16686 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16687
16688         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16689         encoding to ACE if AI_IDN.
16690
16691 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16692
16693         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16694         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16695
16696 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16697
16698         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16699         Fix overflow bug in strncat.
16700         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16701
16702         * string/test-strncat.c: Update.
16703         Add new tests for checking overflow bugs.
16704
16705 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16706
16707         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16708         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16709         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16710         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16711         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16712         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16713         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16714         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16715         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16716
16717         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16718         (USE_AS_STRCAT): Define.
16719         Add strcat and strncat support.
16720         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16721
16722 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16723
16724         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16725         __n bigger than INT_MAX+1.
16726         (__strncmp_g): Likewise.
16727
16728 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16729
16730         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16731         * libio/stido.h: Likewise.
16732
16733         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16734         (AF_NFC): Define.
16735         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16736         (AF_NFC): Define.
16737
16738         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16739         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16740         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16741         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16742         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16743
16744         [BZ #13021]
16745         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16746         installed.
16747
16748         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16749         typo.
16750         (_dl_x86_64_save_sse): Likewise.
16751
16752 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16753
16754         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16755         OSXSAVE.
16756         (_dl_x86_64_save_sse): Likewise.
16757
16758         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16759
16760         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16761
16762 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16763
16764         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16765         change.
16766         (_dl_x86_64_save_sse): Use correct AVX check.
16767
16768 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16769
16770         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16771         bug in strncpy/strncat.
16772         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16773
16774 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16775
16776         * string/tester.c (test_strcat): Add tests for different alignments
16777         of source and destination.
16778         (test_strncat): Likewise.
16779
16780 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16781
16782         [BZ #12852]
16783         * posix/glob.c (glob): Check passed in values before using them in
16784         expressions to avoid some overflows.
16785         (glob_in_dir): Likewise.
16786
16787         [BZ #13007]
16788         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16789         check for AVX enablement so that we don't crash with old kernels and
16790         new hardware.
16791         * elf/tst-audit4.c: Add same checks here.
16792         * elf/tst-audit6.c: Likewise.
16793
16794         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16795
16796 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16797
16798         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16799
16800 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16801
16802         * po/cs.po: Update from translation team.
16803         * po/bg.po: Likewise.
16804
16805 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16806
16807         * misc/sys/cdefs.h: Add support for const attribute.
16808         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16809         to gnu_dev_{major,minor,makedev} functions.
16810
16811 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16812
16813         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16814
16815 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16816
16817         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16818         strlen results.
16819
16820 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16821
16822         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16823         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16824         register in order to avoid conflicts with the soft frame pointer
16825         being held in r11 when necessary.
16826         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16827         (INTERNAL_VSYSCALL_NCS): Likewise.
16828
16829 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16830
16831         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16832         * elf/dl-fini.c (_dl_fini): Adjust caller.
16833         * elf/dl-close.c (_dl_close_worker): Likewise.
16834         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16835
16836 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16837
16838         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16839         "aux_cache->nlibs < 0".
16840
16841         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16842         in the reload-count case.
16843
16844 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16845
16846         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16847         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16848         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16849         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16850         * sysdeps/x86_64/multiarch/strcat.S: New file.
16851         * sysdeps/x86_64/multiarch/strncat.S: New file.
16852         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16853         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16854         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16855         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16856         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16857         (USE_AS_STRCAT): Define.
16858         Add strcat and strncat support.
16859         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16860         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16861         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16862         * string/strncat.c: Update.
16863         (USE_AS_STRNCAT): Define.
16864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16865         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16866         and i7.
16867         * sysdeps/x86_64/multiarch/init-arch.h
16868         (bit_Prefer_PMINUB_for_stringop): New.
16869         (index_Prefer_PMINUB_for_stringop): Likewise.
16870         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16871         bit_Prefer_PMINUB_for_stringop.
16872
16873 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16874
16875         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16876         buffer64.
16877         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16878         of casting of buffer.
16879         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16880         buffer32 and buffer64.
16881         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16882         writes instead of casting of buffer.
16883         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16884         buffer32.
16885         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16886         casting of buffer.
16887
16888 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16889
16890         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16891
16892 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16893
16894         * nscd/nscd.c (termination_handler): Don't do anything for a database
16895         if it has not yet been initialized.
16896
16897 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16898
16899         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16900
16901 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16902
16903         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16904
16905 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16906
16907         * po/nl.po: Update from translation team.
16908         * po/sv.po: Likewise.
16909
16910 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16911
16912         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16913         now disallowed by GCC.
16914
16915         * configure.in (use-default-link): Default to yes if a test -shared
16916         link meets our qualifications.
16917         * configure: Regenerated.
16918
16919         * config.make.in (output-format): New variable.
16920         * configure.in: Check for ld --print-output-format support.
16921         * configure: Regenerated.
16922         * Makerules ($(common-objpfx)format.lds)
16923         [$(output-format) != unknown]: Just use $(output-format),
16924         instead of the linker-script munging.
16925
16926 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16927
16928         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16929         of $(common-objpfx)shlib.lds.
16930         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16931
16932         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16933         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16934
16935         * configure.in (-z relro check): Adjust test code to add a large
16936         writable data section after it.
16937         * configure: Regenerated.
16938
16939 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16940
16941         * configure.in (-z relro check): Fix test code to make the variable
16942         truly const.
16943         * configure: Regenerated.
16944
16945 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16946
16947         * nscd/nscd.h (struct traced_file): Define.
16948         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16949         elements.  Add traced_files.
16950         (inotify_fd): Declare.
16951         (register_traced_file): Declare.
16952         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16953         (inotify_fd): Export.
16954         (resolv_conf_descr): Remove.
16955         (nscd_init): Move inotify descriptor creation to main.
16956         Don't register files for notification here.
16957         (register_traced_file): New function.
16958         (invalidate_cache): Don't use reset_res to determine whether to call
16959         res_init, go through the list of registered files.
16960         (main_loop_poll): The inotify descriptors are now stored in the
16961         structures for the traced files.
16962         (main_loop_epoll): Likewise
16963         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16964         to __nss_disable_nscd.
16965         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16966         for a database anymore.  Check the records for all the registered
16967         files instead.
16968         * nss/Makefile (libnss_files-routines): Add files-init.
16969         (libnss_db-routines): Add db-init.
16970         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16971         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16972         * nss/nss_db/db-init.c: New file.
16973         * nss/nss_files/files-init.c: New file.
16974         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16975         __nss_lookup_function.
16976         (__nss_lookup_function): Call nss_load_library.
16977         (nss_load_all_libraries): New function.
16978         (__nss_disable_nscd): Take parameter with callback function for files
16979         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16980         used for the cached services.
16981         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16982         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16983         options for features to all the files in nscd.
16984
16985         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16986
16987 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16988
16989         * csu/elf-init.c (__libc_csu_init): Comment typo.
16990
16991 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16992
16993         * po/pl.po: Update from translation team.
16994         * po/ja.po: Likewise.
16995         * po/ru.po: Likewise.
16996         * po/ko.po: Likewise.
16997         * po/fr.po: Likewise.
16998
16999 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17000
17001         * configure.in (.ctors/.dtors header and trailer check):
17002         Use an empirical test on a built program.
17003         * configure: Regenerated.
17004
17005         * configure.in (-z relro check): Use an empirical test on a built DSO.
17006         Detect, but do not require, on ia64.
17007         * configure: Regenerated.
17008
17009         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17010         Update tests that use readelf to use $READELF instead.
17011         * configure: Regenerated.
17012
17013 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17014
17015         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17016         if the result is not used.
17017
17018 2011-07-05  Andreas Jaeger  <aj@suse.de>
17019
17020         [BZ#9696]
17021         * stdlib/tst-strtod.c: Add testcase.
17022
17023 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17024
17025         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17026         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17027         The latter has a higher limit.  Take additional parameter to pass to
17028         the new function.
17029         (__pathconf): Pass file to __statfs_link_max.
17030         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17031         __statfs_link_max.
17032         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17033         __statfs_link_max.
17034
17035         [BZ #12868]
17036         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17037         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17038         Handle Lustre.
17039         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17040         (__statfs_filesize_max): Likewise.
17041         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17042
17043 2011-07-05  Andreas Jaeger  <aj@suse.de>
17044
17045         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17046
17047 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17048
17049         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17050         `status' variable.
17051         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17052         Likewise.
17053
17054 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17055
17056         * Makefile (strop-tests): Add strncat.
17057         * string/test-strncat.c: New file.
17058
17059 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17060
17061         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17062
17063 2011-06-21  Andreas Jaeger  <aj@suse.de>
17064
17065         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17066         Copy rule from iconvdata/Makefile.
17067
17068 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17069
17070         [BZ #12922]
17071         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17072         but no long options are defined, just return 'W'.
17073
17074 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17075
17076         [BZ #9696]
17077         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17078
17079 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17080
17081         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17082         netgroups to read.
17083         (innetgr): Likewise.
17084
17085 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17086
17087         * config.make.in (install_root): Default to $(DESTDIR).
17088
17089 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17090
17091         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17092
17093 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17094
17095         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17096
17097         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17098         containing directory rather than embedding absolute directory names.
17099
17100         * scripts/check-local-headers.sh: Rewritten using awk.
17101         Match by word, not by line.  Print error messages for matches.
17102         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17103
17104         * Makerules [shlib-lds-flags empty]:
17105         ($(common-objpfx)libc_pic.opts): New target.
17106         ($(common-objpfx)libc_pic.os.clean): New target.
17107         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17108
17109         * config.make.in (OBJCOPY): New variable.
17110         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17111         * configure: Regenerated.
17112
17113         * config.make.in (use-default-link): New variable.
17114         * configure.in (use_default_link): Grok --with-default-link to set it.
17115         * configure: Regenerated.
17116         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17117         (shlib-lds, shlib-lds-flags): Define to empty.
17118
17119         * Makerules (shlib-lds): New variable.
17120         (shlib-lds-flags): New variable.
17121         (build-shlib, build-moduile, build-module-asneeded): Use it.
17122         ($(common-objpfx)libc.so): Use $(shlib-lds).
17123         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17124         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17125
17126         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17127         DT_FLAGS/DT_FLAGS_1 with zero flags.
17128
17129         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17130         linker script munging.
17131
17132 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17133
17134         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17135         as 128-bit value.
17136         * crypt/sha512.c (sha512_process_block): Perform total addition using
17137         128-bit if possible.
17138         (__sha512_finish_ctx): Likewise.
17139         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17140         as 64-bit value.
17141         * crypt/sha256.c (SWAP64): Define.
17142         (sha256_process_block): Perform total addition using 64-bit if
17143         possible.
17144         (__sha256_finish_ctx): Likewise.
17145
17146 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17147
17148         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17149         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17150         * nscd/hstcache.c (cache_addhst): Likewise.
17151         * nscd/grpcache.c (cache_addgr): Likewise.
17152         * nscd/aicache.c (addhstaiX): Likewise
17153         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17154
17155 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17156
17157         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17158         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17159         * nscd/hstcache.c (cache_addhst): Likewise.
17160         * nscd/grpcache.c (cache_addgr): Likewise.
17161         * nscd/aicache.c (addhstaiX): Likewise
17162
17163 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17164
17165         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17166         domain only when needed.
17167
17168 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17169
17170         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17171         is always restored.
17172
17173 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17174
17175         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17176         are re-adding the entry.
17177         * nscd/servicescache.c (cache_addserv): Likewise.
17178
17179 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17180
17181         * sysdeps/generic/dl-irel.h: fix protection against multiple
17182         inclusions.
17183         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17184
17185 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17186
17187         [BZ #12935]
17188         * malloc/memusage.sh: Fix quoting in message.
17189         * debug/xtrace.sh: Likewise.
17190
17191         * configure.in: Remove support for --experimental-malloc option, make
17192         it the default.
17193         * config.make.in: Likewise.
17194         * malloc/Makefile: Likewise.
17195
17196 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17197
17198         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17199         two-byte characters.
17200
17201 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17202
17203         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17204         AC_CACHE_CHECK invocation.
17205         * configure: Regenerated.
17206
17207         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17208
17209 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17210
17211         [BZ #12350]
17212         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17213         bit from old_res_options.
17214
17215         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17216
17217         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17218         value type for setfct.
17219
17220 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17221
17222         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17223         __gettimeofday instead of gettimeofday.
17224
17225 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17226
17227         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17228
17229 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17230
17231         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17232
17233         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17234         info.
17235
17236 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17237
17238         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17239         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17240         strcpy-sse2-unaligned strncpy-sse2-unaligned
17241         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17242         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17243         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17244         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17245         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17246         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17247         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17248         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17249         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17250         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17251         (STRCPY): Support SSE2 and SSSE3 versions.
17252
17253 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17254
17255         [BZ #12874]
17256         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17257         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17258         kernels which artificially limit size of requests.
17259
17260 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17261
17262         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17263         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17264         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17265         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17266         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17267         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17268         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17269         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17270         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17271         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17272         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17273         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17274         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17275         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17276         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17277         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17278         Enable unaligned load optimization for Intel Core i3, i5 and i7
17279         processors.
17280         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17281         Define.
17282         (index_Fast_Unaligned_Load): Define.
17283         (HAS_FAST_UNALIGNED_LOAD): Define.
17284
17285 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17286
17287         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17288
17289 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17290
17291         [BZ #12907]
17292         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17293         until it is clear that the information is realy needed.
17294         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17295
17296 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17297
17298         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17299
17300 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17301
17302         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17303         /sys/devices/system/cpu/online if it is usable.
17304
17305         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17306         reading the information from the /proc filesystem to once a second.
17307
17308 2011-06-21  Andreas Jaeger  <aj@suse.de>
17309
17310         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17311         NULL after inclusion of kernel headers.
17312
17313 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17314
17315         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17316         calls to internal_setent.
17317
17318         [BZ #12885]
17319         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17320         addresses using gethostbyname4_r ignore IPv4 addresses.
17321
17322         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17323         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17324
17325         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17326
17327 2011-06-20  David S. Miller  <davem@davemloft.net>
17328
17329         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17330         inclusions.
17331         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17332
17333         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17334         (elf_irel): Use it.
17335         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17336         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17337         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17338         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17339         * sysdeps/x86_64/dl-irel.h: Likewise.
17340
17341         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17342         * elf/dl-sym.c: Likewise.
17343
17344 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17345
17346         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17347         need to dereference resplen2.
17348
17349 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17350
17351         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17352
17353 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17354
17355         * Makeconfig: Define vardbdir and inst_vardbdir.
17356         * nss/Makefile: Add rules to install db-Makefile.
17357
17358         * nss/nss_db/db-XXX.c: Cleanup.
17359
17360         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17361         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17362         GLIBC_PRIVATE.
17363         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17364         * nss/makedb.c: Implement -g option to specify that value strings
17365         are generated and should not be added to table iterated over for
17366         get*ent calls.
17367         * nss/nss_db/db-initgroups.c: New file.
17368
17369         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17370         interface.
17371
17372         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17373         (internal_getgrouplist): Adjust to name change.
17374         Update use_initgroups_entry if this is not the first call.
17375         * nss/databases.def: Add initgroups entry.
17376
17377         * nss/makedb.c (compute_tables): Check result of multiple hash table
17378         sizes to minimize maximum chain length.
17379
17380 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17381
17382         * Versions.def: Add entry for libnss_db.
17383         * shlib-versions: Likewise.
17384         * nss/Makefile: Add rules to build libnss_db.
17385         * nss/Versions: Add libnss_db information.  Organize libnss_files
17386         entries better.
17387         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17388         makedb progra.  Some minor improvements to generate smaller files.
17389         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17390         here from...
17391         * nss/makedb.c: ...here.
17392         Improve database format to be smaller and require less memory at
17393         runtime.
17394         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17395         db anymore.
17396         * nss/nss_db/db-netgrp.c: Likewise.
17397         * nss/nss_db/db-open.c: Likewise.
17398         * nss/nss_files/flies-XXX.x: Adjust comments.
17399         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17400         * nss/nss_files/files-grp.c: Likewise.
17401         * nss/nss_files/files-hosts.c: Likewise.
17402         * nss/nss_files/files-network.c: Likewise.
17403         * nss/nss_files/files-proto.c: Likewise.
17404         * nss/nss_files/files-pwd.c: Likewise.
17405         * nss/nss_files/files-rpc.c: Likewise.
17406         * nss/nss_files/files-service.c: Likewise.
17407         * nss/nss_files/files-sgrp.c: Likewise.
17408         * nss/nss_files/files-spwd.c: Likewise.
17409         * nss/nss_db/db-alias.c: Removed.
17410         * nss/nss_db/dummy-db.h: Removed.
17411
17412 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17413
17414         * nss/makedb.c: Rewritten to not use database library.
17415         * nss/Makefile: Update to build new makedb program.
17416
17417 2011-06-14  Andreas Jaeger  <aj@suse.de>
17418
17419         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17420         memset declaration.
17421
17422 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17423
17424         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17425         tmpbuf.
17426
17427 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17428
17429         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17430         * elf/Makefile ($(objpfx)ld.so): Likewise.
17431
17432         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17433         Don't list ld.so twice in dependencies.
17434
17435         * posix/bug-regex31.c: Include <stdlib.h>.
17436
17437         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17438
17439         * nis/nss_compat/compat-spwd.c
17440         (getspent_next_nss_netgr): Remove unused variable.
17441         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17442
17443         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17444         nonmembers" output to use the right array.
17445
17446         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17447
17448         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17449
17450         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17451         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17452         * catgets/gencat.c (read_input_file): Likewise.
17453         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17454
17455         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17456         variable definition inside #if's controlling its use.
17457
17458         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17459
17460         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17461
17462         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17463
17464         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17465         unreachable code.
17466
17467         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17468
17469         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17470         * configure: Regenerated.
17471
17472         * Makerules: Revert last change.
17473         * elf/Makefile: Likewise.
17474
17475 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17476
17477         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17478         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17479         (reloc-link): Likewise.
17480
17481 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17482
17483         * elf/Makefile: Add rules to build pldd.
17484         * elf/pldd.c: New file.
17485         * elf/pldd-xx.c: New file.
17486
17487 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17488
17489         * version.h: Update for 2.15 development version.
17490
17491 2011-06-07  David S. Miller  <davem@davemloft.net>
17492
17493         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17494         ifuncs.
17495         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17496         elf_machine_lazy_rel): Likewise.
17497         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17498         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17499         elf_machine_lazy_rel): Likewise.
17500         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17501         dl_hwcap via passed in argument.
17502         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17503         Likewise.
17504
17505 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17506
17507         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17508
17509 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17510
17511         [BZ #12849]
17512         * manual/fdl-1.1.texi: New file, verbatim from:
17513         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17514         * manual/lgpl-2.1.texi: New file, verbatim from:
17515         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17516         * manual/Makefile (licenses): New variable, list those new file names.
17517         (texis): Use it.
17518         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17519
17520         * manual/fdl.texi: File removed.
17521         * manual/lesser.texi: File removed.
17522         * manual/libc.texinfo (Copying, Documentation License):
17523         Use new @include file names, put @appendix directive before @include.
17524
17525 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17526
17527         [BZ #12841]
17528         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17529         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17530         (mq_open): Add __NTH.
17531
17532 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17533
17534         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17535         Assume Intel Core i3/i5/i7 processor if AVX is available.
17536
17537 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17538
17539         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17540         typo.
17541
17542 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17543
17544         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17545         memory.  Use alloca_account.  Fix memory leak when retrying.
17546
17547 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17548
17549         * version.h (RELEASE): Bump for 2.14 release.
17550         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17551
17552         * config.make.in (RANLIB): Remove entry.
17553
17554 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17555
17556         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17557         (libc.pot): Work around missing support for .ksh extension in xgettext.
17558
17559         [BZ #12684]
17560         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17561         if both request failed.
17562         (send_dg): In case of server errors clear resplen or *resplen2.
17563
17564         [BZ #12454]
17565         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17566         when there are multiple maps.
17567         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17568         (_dl_fini): Remove test here.
17569
17570         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17571
17572 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17573
17574         [BZ #12350]
17575         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17576         bit from old_res_options.
17577         (gaih_inet): Likewise.
17578
17579         [BZ #11099]
17580         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17581         as signed.
17582
17583         * resolv/res_init.c (res_setoptions): Make the code more compact.
17584
17585         [BZ #11558]
17586         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17587         set RES_USEVC.
17588
17589         [BZ #11634]
17590         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17591
17592         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17593
17594         [BZ #11781]
17595         * malloc/malloc.h: Declare malloc hook variables as volatile.
17596
17597         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17598         in last patch.
17599
17600         [BZ #11799]
17601         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17602         raise in the comment.
17603         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17604         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17605         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17606
17607 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17608
17609         [BZ #12811]
17610         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17611         grow the buffers more if it already has to be sufficient.
17612         (build_wcs_upper_buffer): Likewise.
17613         * posix/regexec.c (check_matching): Likewise.
17614         (clean_state_log_if_needed): Likewise.
17615         (extend_buffers): Don't enlarge buffers beyond size of the input
17616         buffer.
17617         Patches mostly by Emil Wojak <emil@wojak.eu>.
17618         * posix/bug-regex32.c: New file.
17619         * posix/Makefile (tests): Add bug-regex32.
17620
17621         * locale/findlocale.c (_nl_find_locale): Return right away if
17622         _nl_explode_name failed.
17623         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17624
17625         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17626
17627         * debug/xtrace.sh: Unify messages.
17628         * malloc/memusage.sh: Likewise.
17629
17630         [BZ #12813]
17631         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17632         time symbol from vDSO.  Substitute with vsyscall if not available.
17633         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17634         __vdso_time.
17635
17636         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17637         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17638         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17639         Add sendmmsg and internal_sendmmsg.
17640         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17641         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17642         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17643
17644         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17645         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17646         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17647
17648 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17649
17650         [BZ #12813]
17651         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17652         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17653         available.
17654         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17655         __vdso_getcpu.
17656
17657         [BZ #12814]
17658         * iconvdata/Makefile (tests): Add bug-iconv9.
17659         * iconvdata/bug-iconv9.c: New file.
17660
17661 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17662
17663         [BZ #12814]
17664         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17665
17666 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17667
17668         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17669         (struct user_regs_struct): Change intcs field back to cs.
17670
17671 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17672
17673         * po/ja.po: Update from translation team.
17674
17675 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17676
17677         [BZ #12795]
17678         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17679         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17680
17681 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17682
17683         * stdlib/longlong.h: Update from GCC.
17684
17685 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17686
17687         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17688         parameter name.
17689         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17690         Add parameter name.
17691         (__sysconf): Pass it down.
17692
17693 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17694
17695         [BZ #12671]
17696         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17697         some situations.
17698         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17699         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17700         add in in __libc_use_alloca calls.  Adjust callers.
17701         (glob): Use malloc in some situations.
17702
17703         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17704         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17705         pltexit.
17706
17707 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17708
17709         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17710         and CLOCK_BOOTTIME_ALARM.
17711
17712         [BZ #12782]
17713         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17714         is returned.
17715
17716         * string/_strerror.c (__strerror_r): Print negative errors as signed
17717         numbers.
17718
17719         [BZ #12777]
17720         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17721         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17722         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17723
17724         * configure.in: Fix typo in redirection and correct removal of test
17725         files in two cases.
17726
17727         [BZ #12788]
17728         * locale/setlocale.c (new_composite_name): Fix test to check for
17729         identical name of all categories.
17730
17731         [BZ #12792]
17732         * libio/filedoalloc.c (local_isatty): New function.
17733         (_IO_file_doallocate): Use local_isatty.
17734         * stdio-common/perror.c (perror): In case a new stream is used
17735         forward the stream error.
17736         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17737         error flag.
17738
17739 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17740
17741         [BZ #11869]
17742         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17743         alloca.
17744         * include/alloca.h (extend_alloca_account): Define.
17745
17746         [BZ #11857]
17747         * posix/regex.h: Fix comments with documentation of user-accessible
17748         fields after compilation and describe correct free'ing of pattern
17749         after re_compile_pattern.
17750         Patch by Reuben Thomas <rrt@sc3d.org>.
17751
17752 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17753
17754         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17755         and -mno-altivec to prevent the compiler from using Altivec and/or
17756         VSX instructions when the corresponding registers are not available.
17757
17758 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17759
17760         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17761
17762 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17763
17764         * libio/freopen.c (freopen): Use __dup2, not dup2.
17765         * libio/freopen64.c (freopen64): Likewise.
17766
17767 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17768
17769         [BZ #12775]
17770         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17771         * math/Makefile (tests): Add test-powl.
17772         (CFLAGS-test-powl.c): Define.
17773         * math/test-powl.c: New file.
17774
17775 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17776
17777         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17778
17779 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17780
17781         [BZ #11837]
17782         * iconvdata/gb18030.c: Update to GB18020-2005.
17783
17784 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17785
17786         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17787         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17788         Patch by Aharon Robbins <arnold@skeeve.com>.
17789
17790         [BZ #11892]
17791         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17792         on the stack.
17793
17794         [BZ #11895]
17795         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17796         through underflows.
17797
17798         [BZ #12766]
17799         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17800         point to strings before performing equality test for error_one_per_line
17801         mode.
17802
17803         [BZ #11697]
17804         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17805
17806         [BZ #11820]
17807         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17808         (struct user_fpregs_struct): Avoid __uint*_t types.
17809
17810         [BZ #6420]
17811         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17812         symbol info.  Use it instead of calling _dl_addr locally.
17813         (lock_and_info): New function.
17814         (tr_freehook): Call lock_and_info and pass symbol info as additional
17815         parameter to tr_where.
17816         (tr_mallochook): Likewise.
17817         (tr_reallochook): Likewise.
17818         (tr_memalignhook): Likewise.
17819
17820         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17821         used and couldn't be at all thread-safe.
17822
17823 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17824
17825         * libio/freopen.c (freopen): Don't close old file descriptor
17826         before the new one is opened.  Instead dup the new file descriptor
17827         to the old one after the new stream is created.
17828         * libio/freopen64.c (freopen64): Likewise.
17829         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17830         * libio/fileops.c (_IO_new_file_close_it): Handle new
17831         _IO_FLAGS2_NOCLOSE flag.
17832         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17833         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17834         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17835         _IO_FLAGS2_NOCLOSE flag.
17836         * include/unistd.h: Add hidden_proto for dup3.
17837         Define __have_dup3.
17838         * io/dup3.c: Define hidden symbol.
17839         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17840
17841         [BZ #7101]
17842         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17843         when an incomplete long option is used.
17844         * posix/tst-getopt_long1.c: New file.
17845         * posix/Makefile (tests): Add tst-getopt_long1.
17846
17847         [BZ #10138]
17848         * scripts/config.guess: Update from autoconf-2.68.
17849         * scripts/config.sub: Likewise.
17850
17851         [BZ #10157]
17852         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17853         tests into ...
17854         (has_cpuclock): ...this.  New function.
17855         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17856         macro here based on has_cpuclock code.
17857
17858         [BZ #10149]
17859         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17860         First byte (not low byte) is now always NUL.
17861         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17862
17863         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17864         Use non-cancelable interfaces.
17865
17866         [BZ #9809]
17867         * locale/iso-639.def: Add entry for Sorani.
17868
17869         [BZ #11901]
17870         * include/stdlib.h: Move include protection to the right place.
17871         Define abort_msg_s.  Declare __abort_msg with it.
17872         * stdlib/abort.c (__abort_msg): Adjust type.
17873         * assert/assert.c (__assert_fail_base): New function.  Majority
17874         of code from __assert_fail.  Allocate memory for __abort_msg with
17875         mmap.
17876         (__assert_fail): Now call __assert_fail_base.
17877         * assert/assert-perr.c: Remove bulk of implementation.  Use
17878         __assert_fail_base.
17879         * include/assert.hL Declare __assert_fail_base.
17880         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17881         mmap.
17882         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17883
17884 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17885
17886         [BZ #11952]
17887         [BZ #12453]
17888         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17889         until all modules are registered in the DTV.
17890         * elf/Makefile: Add rules to build and run tst-tls19.
17891         * elf/tst-tls19.c: New file.
17892         * elf/tst-tls19mod1.c: New file.
17893         * elf/tst-tls19mod2.c: New file.
17894         * elf/tst-tls19mod3.c: New file.
17895         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17896
17897         [BZ #12083]
17898         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17899         correctly.
17900
17901         [BZ #12601]
17902         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17903         two-byte sequence errors.
17904         * iconvdata/Makefile (tests): Add bug-iconv8.
17905         * iconvdata/bug-iconv8.c: New file.
17906
17907         [BZ #12626]
17908         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17909         buf2 definition.
17910
17911         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17912
17913         [BZ #12432]
17914         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17915         (dummy_getcfa): New function.
17916         (init): Get _Unwind_GetCFA address, use dummy if not found.
17917         (backtrace_helper): In recursion check, also check whether CFA changes.
17918         (__backtrace): Completely initialize arg.
17919
17920         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17921         storing incomplete byte sequence in state object.  Avoid testing for
17922         guaranteed too small input if we know there is enough data available.
17923
17924 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17925
17926         * Makeconfig (+link-pie): Indent.
17927         * Rules (binaries-pie): Define if $(have-fpie) and
17928         $(build-shared).
17929         (binaries-shared): Also filter out $(binaries-pie).
17930         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17931         * nscd/Makefile (others-pie): Add nscd.
17932         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17933         ($(objpfx)nscd): Remove command override.
17934         * login/Makefile (others-pie): Add pt_chown.
17935         ($(objpfx)pt_chown): Remove command override.
17936         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17937         remove command overrides.
17938
17939 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17940
17941         * libio/tst_putwc.c: Fix error messages.
17942
17943         [BZ #12724]
17944         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17945         currently writing and seek to current position when not.
17946         * libio/Makefile (tests): Add bug-fclose1.
17947         * libio/bug-fclose1.c: New file.
17948
17949 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17950
17951         [BZ #12511]
17952         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17953         don't set DF_1_NODELETE here.
17954         (do_lookup_x): When entering new entry test for copy relocation
17955         and if necessary set DF_1_NODELETE flag.
17956         * elf/tst-unique4.cc: New file.
17957         * elf/tst-unique4.h: New file.
17958         * elf/tst-unique4lib.cc: New file.
17959         * elf/Makefile: Add rules to build and run tst-unique4.
17960         Patch by Piotr Bury <pbury@goahead.com>.
17961
17962 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17963
17964         [BZ #12052]
17965         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17966
17967         [BZ #12625]
17968         * misc/mntent_r.c (addmntent): Flush the stream after the output
17969
17970         [BZ #12393]
17971         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17972         (is_trusted_path_normalize): Skip initial colon.  Append slash
17973         to empty buffer.  Duplicate is_trusted_path code but allow
17974         constructed patch to be prefix.
17975         (is_dst): Allow $ORIGIN followed by /.
17976         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17977         Correct testing of result of is_trusted_path_normalize
17978         (decompose_rpath): Fix warning.
17979
17980 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17981
17982         [BZ #11257]
17983         * grp/initgroups.c (internal_getgrouplist): When we found the service
17984         list through the initgroups entry in nsswitch.conf do not always
17985         continue on a successful lookup.  Don't always use the
17986         __nss_group_database value if it is set.
17987         * nss/nsswitch.conf (initgroups): Change action for successful db
17988         lookup to continue for compatibility.
17989
17990 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17991
17992         [BZ #11532]
17993         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17994         and CP774 modules.
17995         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17996         and CP774 modules.
17997         * iconvdata/tst-tables.sh: Likewise.
17998         * iconvdata/cp770.c: New file.
17999         * iconvdata/cp771.c: New file.
18000         * iconvdata/cp772.c: New file.
18001         * iconvdata/cp773.c: New file.
18002         * iconvdata/cp774.c: New file.
18003         * iconvdata/testdata/CP770: New file.
18004         * iconvdata/testdata/CP770..UTF8: New file.
18005         * iconvdata/testdata/CP771: New file.
18006         * iconvdata/testdata/CP771..UTF8: New file.
18007         * iconvdata/testdata/CP772: New file.
18008         * iconvdata/testdata/CP772..UTF8: New file.
18009         * iconvdata/testdata/CP773: New file.
18010         * iconvdata/testdata/CP773..UTF8: New file.
18011         * iconvdata/testdata/CP774: New file.
18012         * iconvdata/testdata/CP774..UTF8: New file.
18013
18014         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18015         END CHARMAP line.
18016         * iconvdata/gen-8bit-gap.sh: Likewise.
18017         * iconvdata/gen-8bit.sh: Likewise.
18018
18019         * locale/iso-639.def: Add ary entry.
18020
18021         [BZ #11258]
18022         * locale/C-translit.h.in: Add U20A1 transliteration.
18023
18024         [BZ #12178]
18025         * locale/iso-639.def: Add wae entry.
18026         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18027
18028         [BZ #12545]
18029         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18030         for n.
18031
18032         [BZ #12711]
18033         * locale/C-translit.h.in: Add entry for U20B9.
18034         Patch by pravin.d.s@gmail.com.
18035
18036 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18037
18038         [BZ #12713]
18039         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18040         ENAMETOOLONG use generic getcwd.
18041         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18042         in rtld.  Use *stat64.
18043         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18044         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18045         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18046         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18047         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18048         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18049         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18050         __fstatat64 macros.
18051         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18052         * dirent/rewinddir.c: Add libc_hidden_def.
18053         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18054         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18055
18056         * include/dirent.h (__alloc_dir): Add flags parameter.
18057         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18058         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18059         __alloc_dir.
18060         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18061         from fdopendir if O_CLOEXEC is already set.
18062
18063 2011-03-15  Alan Modra  <amodra@gmail.com>
18064
18065         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18066         l_tls_firstbyte_offset non-zero.  Save padding offset in
18067         l_tls_firstbyte_offset for later use.
18068         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18069         freeing static tls block.
18070
18071 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18072
18073         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18074         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18075         being defined by the kernel headers.
18076
18077 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18078
18079         [BZ #12734]
18080         * resolv/resolv.h: Define RES_NOTLDQUERY.
18081         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18082         no-tld-query and set RES_NOTLDQUERY.
18083         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18084         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18085         modern BIND to search name as TLD unless forbidden.
18086
18087 2011-05-07  Petr Baudis  <pasky@suse.cz>
18088             Ulrich Drepper  <drepper@gmail.com>
18089
18090         [BZ #12393]
18091         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18092         (is_trusted_path): ...to here.
18093         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18094         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18095         using is_trusted_path_normalize() in setuid scripts.
18096
18097 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18098
18099         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18100         __BEGIN/__END_DECLS.
18101
18102 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18103
18104         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18105         NSS_STATUS_NOTFOUND if no record was found.
18106
18107 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18108
18109         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18110         (headers-not-in-tirpc): Remove rpc/netdb.h
18111         * resolv/netdb.h: Revert last change.
18112
18113 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18114
18115         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18116         circular dependency between libgcc.a and libc.a.
18117
18118 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18119
18120         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18121         * nis/Makefile: Don't install rpcsvc/*.
18122         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18123         instead of <rpc/types.h>.
18124         (MAXHOSTNAMELEN): Define.
18125
18126 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18127
18128         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18129
18130 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18131
18132         [BZ #12714]
18133         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18134         gethostbyname4_r when IPv6 results are possible.
18135
18136 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18137
18138         [BZ #12723]
18139         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18140         _PC_PIPE_BUF handling.
18141
18142 2011-04-30  Bruno Haible  <bruno@clisp.org>
18143
18144         [BZ #12717]
18145         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18146         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18147         to 'int'.
18148         * inet/getnameinfo.c (getnameinfo): Likewise.
18149
18150 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18151
18152         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18153         to groups setting in database lookup.
18154         * nss/nsswitch.conf: Add initgroups entry.
18155
18156 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18157
18158         [BZ #12685]
18159         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18160         mode string.
18161         Patch by Eric Blake <eblake@redhat.com>.
18162
18163 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18164
18165         * sunrpc/Makefile (need-export-routines): Add svc_run.
18166         (routines): Remove svc_run.
18167         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18168         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18169         * sunrpc/svc_run.c (svc_run): Likewise.
18170         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18171
18172 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18173
18174         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18175         problem in reallocation in last patch.
18176
18177 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18178
18179         * sunrpc/Makefile: Move inclusion of Rules.
18180
18181 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18182
18183         * nss/nss_files/files-initgroups.c: New file.
18184         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18185         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18186         _nss_files_initgroups_dyn.
18187
18188 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18189
18190         * elf/elf.h (R_ARM_IRELATIVE): Define.
18191
18192 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18193
18194         * po/ru.po: Update from translation team.
18195
18196 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18197
18198         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18199         dependencies.
18200
18201 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18202
18203         [BZ #12653]
18204         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18205         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18206         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18207         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18208         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18209
18210 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18211
18212         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18213         differing bytes.
18214         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18215         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18216         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18217
18218 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18219
18220         [BZ #12420]
18221         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18222         storing it.
18223         * stdlib/bug-getcontext.c: New file.
18224         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18225
18226 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18227
18228         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18229         instructions into .machine "z9-109".
18230         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18231         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18232
18233 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18234
18235         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18236         between environment variables and auxiliary vector.
18237
18238 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18239
18240         * Makefile: Add rules to build linkobj/libc.so.
18241         * include/libc-symbols.h: Define libc_hidden_nolink.
18242         * include/rpc/auth.h: Mark functions which are to be hidden.
18243         * include/rpc/auth_des.h: Likewise.
18244         * include/rpc/auth_unix.h: Likewise.
18245         * include/rpc/clnt.h: Likewise.
18246         * include/rpc/des_crypt.h: Likewise.
18247         * include/rpc/key_prot.h: Likewise.
18248         * include/rpc/pmap_clnt.h: Likewise.
18249         * include/rpc/pmap_prot.h: Likewise.
18250         * include/rpc/pmap_rmt.h: Likewise.
18251         * include/rpc/rpc_msg.h: Likewise.
18252         * include/rpc/svc.h: Likewise.
18253         * include/rpc/svc_auth.h: Likewise.
18254         * include/rpc/xdr.h: Likewise.
18255         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18256         * nss/Makefile: Likewise.
18257         * sunrpc/Makefile: Don't install headers.  Build library with normal
18258         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18259         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18260         for the compat linking library.  Remove use of INTDEF/INTUSE.
18261         * sunrpc/auth_none.c: Likewise.
18262         * sunrpc/auth_unix.c: Likewise.
18263         * sunrpc/authdes_prot.c: Likewise.
18264         * sunrpc/authuxprot.c: Likewise.
18265         * sunrpc/clnt_gen.c: Likewise.
18266         * sunrpc/clnt_perr.c: Likewise.
18267         * sunrpc/clnt_raw.c: Likewise.
18268         * sunrpc/clnt_simp.c: Likewise.
18269         * sunrpc/clnt_tcp.c: Likewise.
18270         * sunrpc/clnt_udp.c: Likewise.
18271         * sunrpc/clnt_unix.c: Likewise.
18272         * sunrpc/des_crypt.c: Likewise.
18273         * sunrpc/des_soft.c: Likewise.
18274         * sunrpc/get_myaddr.c: Likewise.
18275         * sunrpc/key_call.c: Likewise.
18276         * sunrpc/key_prot.c: Likewise.
18277         * sunrpc/netname.c: Likewise.
18278         * sunrpc/pm_getmaps.c: Likewise.
18279         * sunrpc/pm_getport.c: Likewise.
18280         * sunrpc/pmap_clnt.c: Likewise.
18281         * sunrpc/pmap_prot.c: Likewise.
18282         * sunrpc/pmap_prot2.c: Likewise.
18283         * sunrpc/pmap_rmt.c: Likewise.
18284         * sunrpc/publickey.c: Likewise.
18285         * sunrpc/rpc_cmsg.c: Likewise.
18286         * sunrpc/rpc_common.c: Likewise.
18287         * sunrpc/rpc_dtable.c: Likewise.
18288         * sunrpc/rpc_prot.c: Likewise.
18289         * sunrpc/rpc_thread.c: Likewise.
18290         * sunrpc/rtime.c: Likewise.
18291         * sunrpc/svc.c: Likewise.
18292         * sunrpc/svc_auth.c: Likewise.
18293         * sunrpc/svc_authux.c: Likewise.
18294         * sunrpc/svc_raw.c: Likewise.
18295         * sunrpc/svc_run.c: Likewise.
18296         * sunrpc/svc_simple.c: Likewise.
18297         * sunrpc/svc_tcp.c: Likewise.
18298         * sunrpc/svc_udp.c: Likewise.
18299         * sunrpc/svc_unix.c: Likewise.
18300         * sunrpc/svcauth_des.c: Likewise.
18301         * sunrpc/xcrypt.c: Likewise.
18302         * sunrpc/xdr.c: Likewise.
18303         * sunrpc/xdr_array.c: Likewise.
18304         * sunrpc/xdr_float.c: Likewise.
18305         * sunrpc/xdr_intXX_t.c: Likewise.
18306         * sunrpc/xdr_mem.c: Likewise.
18307         * sunrpc/xdr_rec.c: Likewise.
18308         * sunrpc/xdr_ref.c: Likewise.
18309         * sunrpc/xdr_sizeof.c: Likewise.
18310         * sunrpc/xdr_stdio.c: Likewise.
18311
18312 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18313
18314         [BZ #12650]
18315         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18316         * sysdeps/ia64/dl-tls.h: Likewise.
18317         * sysdeps/powerpc/dl-tls.h: Likewise.
18318         * sysdeps/s390/dl-tls.h: Likewise.
18319         * sysdeps/sh/dl-tls.h: Likewise.
18320         * sysdeps/sparc/dl-tls.h: Likewise.
18321         * sysdeps/x86_64/dl-tls.h: Likewise.
18322         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18323
18324 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18325
18326         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18327         rpath element also skip the following colon.
18328         (expand_dynamic_string_token): Add is_path parameter and pass
18329         down to DL_DST_REQUIRED and _dl_dst_substitute.
18330         (decompose_rpath): Call expand_dynamic_string_token with
18331         non-zero is_path.  Ignore empty rpaths.
18332         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18333         with zero is_path.
18334
18335 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18336
18337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18338         Make cancelable.
18339
18340 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18341
18342         [BZ #12655]
18343         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18344         Patch by Filipe David Manana <fdmanana@apache.org>.
18345
18346 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18347
18348         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18349         Maintain aligned stack.
18350         (CHECK_RSP): Remove unused macro.
18351
18352 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18353
18354         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18355         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18356
18357 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18358
18359         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18360
18361         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18362
18363 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18364
18365         [BZ #12518]
18366         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18367         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18368         * sysdeps/x86_64/memmove.c: New file.
18369         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18370         (memcpy): Renamed to ...
18371         (__new_memcpy): This.
18372         (memcpy): Provide GLIBC_2_14 memcpy.
18373         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18374         (memcpy): Provide GLIBC_2_2_5 memcpy.
18375
18376 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18377
18378         [BZ #12631]
18379         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18380
18381 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18382
18383         * misc/syncfs.c: New file.
18384         * misc/Makefile (routines): Add syncfs.
18385         * posix/unistd.h: Declare syncfs.
18386         * sysdeps/unix/syscalls.list: Add syncfs.
18387
18388 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18389
18390         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18391         open_by_handle_at.
18392         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18393         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18394         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18395         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18396         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18397         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18398         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18399
18400 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18401
18402         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18403         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18404         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18405         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18406         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18407         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18408         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18409
18410         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18411         sync_file_range.c with -fexceptions.
18412         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18413         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18414         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18415         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18416         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18417         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18418         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18419         sync_file_range as cancellation point
18420         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18421         now a wrapper around __call_sync_file_range with cancellation handling.
18422         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18423         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18424         function name to __call_sync_file_range.
18425         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18426         Add call_sync_file_range.
18427
18428 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18429
18430         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18431         bits/timex.h.
18432
18433 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18434
18435         * iconv/iconv.h: Fix typo in comment.
18436         * io/fcntl.h: Likewise.
18437         * libio/stdio.h: Likewise.
18438         * posix/spawn.h: Likewise.
18439         * posix/unistd.h: Likewise.
18440         * stdlib/stdlib.h: Likewise.
18441         * time/time.h: Likewise.
18442         * wcsmbs/wchar.h: Likewise.
18443
18444         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18445         open_by_handle): Add.
18446         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18447         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18448         Augment a few comments.
18449         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18450         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18451         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18452         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18453         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18454         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18455         open_by_handle.
18456
18457         * io/fcntl.h (AT_EMPTY_PATH): Define.
18458
18459 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18460
18461         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18462         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18463         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18464         to...
18465         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18466         * Versions.def: Add GLIBC_2.14.
18467         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18468         Export.
18469
18470 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18471
18472         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18473         round counter.
18474         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18475
18476 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18477
18478         [BZ #12597]
18479         * string/test-strncmp.c (do_page_test): New function.
18480         (check2): Likewise.
18481         (test_main): Call check2.
18482         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18483
18484 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18485
18486         [BZ #12587]
18487         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18488         Handle cache information in CPU leaf 4.
18489         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18490
18491 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18492
18493         [BZ #12583]
18494         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18495         character representation.
18496         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18497
18498 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18499
18500         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18501         END(__isnan) to END(__isnanf) to match function entry point/label
18502         EALIGN(__isnanf,...).
18503
18504 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18505
18506         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18507
18508 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18509
18510         [BZ #12510]
18511         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18512         copy from the symbol referenced in the relocation to initialize the
18513         used variable.
18514         Patch by Piotr Bury <pbury@goahead.com>.
18515         * elf/Makefile: Add rules to build and tst-unique3.
18516         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18517         * elf/tst-unique3.cc: New file.
18518         * elf/tst-unique3.h: New file.
18519         * elf/tst-unique3lib.cc: New file.
18520         * elf/tst-unique3lib2.cc: New file.
18521
18522         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18523
18524 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18525
18526         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18527         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18528         to _start.
18529
18530 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18531
18532         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18533         to-be-loaded object along a path to loader is ld.so.
18534
18535 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18536             Ulrich Drepper  <drepper@gmail.com>
18537
18538         * sysdeps/x86_64/memset.S: After aligning destination, code
18539         branches to different locations depending on the value of
18540         misalignment, when multiarch is enabled. Fix this.
18541
18542 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18543
18544         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18545         Set _x86_64_preferred_memory_instruction for AMD processsors.
18546         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18547         Set bit_Prefer_SSE_for_memop for AMD processors.
18548
18549 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18550
18551         * libio/fmemopen.c (fmemopen): Optimize a bit.
18552
18553 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18554
18555         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18556
18557 2011-03-03  Roland McGrath  <roland@redhat.com>
18558
18559         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18560
18561 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18562
18563         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18564         __bzero_ultra1 instead of __memset_ultra1.
18565
18566 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18567             Ulrich Drepper  <drepper@gmail.com>
18568
18569         [BZ #12509]
18570         * include/link.h (struct link_map): Add l_orig_initfini.
18571         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18572         returning unsuccessfully.
18573         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18574         close of a file loaded at startup, restore the original l_initfini
18575         list.
18576         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18577         list, store the pointer.
18578         * elf/Makefile ($(objpfx)noload-mem): New rule.
18579         (noload-ENV): Define.
18580         (tests): Add $(objpfx)noload-mem.
18581         * elf/noload.c: Include <memcheck.h>.
18582         (main): Call mtrace.  Close all opened handles.
18583
18584 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18585
18586         [BZ #12454]
18587         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18588         dependencies are missing.
18589
18590 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18591
18592         Fix __if_freereq crash: Unlike the generic version which uses free,
18593         Hurd needs munmap.
18594         * sysdeps/mach/hurd/ifreq.h: New file.
18595
18596 2011-01-27  Petr Baudis  <pasky@suse.cz>
18597             Ulrich Drepper  <drepper@gmail.com>
18598
18599         [BZ 12445]#
18600         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18601         to extend_alloca().
18602         * stdio-common/bug23.c: New file.
18603         * stdio-common/Makefile (tests): Add bug23.
18604
18605 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18606             Ulrich Drepper  <drepper@gmail.com>
18607
18608         [BZ #12489]
18609         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18610         before performing relro protection.  At old place add assertion
18611         to make sure nothing changed.
18612
18613 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18614             Glauber de Oliveira Costa  <glommer@gmail.com>
18615
18616         * elf/elf.h: Add new ARM TLS relocs.
18617
18618 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18619
18620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18621         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18622         cast from r3.
18623         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18624         'tests' variable.
18625         * sysdeps/wordsize-64/tst-writev.c: New file.
18626
18627 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18628
18629         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18630         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18631         insns in _dl_start to prevent a TOC reference before relocs are
18632         resolved.
18633
18634 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18635
18636         [BZ #12469]
18637         * Makeconfig: Remove RANLIB definition.
18638         * Makerules: Don't use RANLIB.
18639         * aclocal.m4: Remove ranlib test.
18640         * configure.in: No need to check for ranlib.
18641         * elf/rtld-Rules: Don't use RANLIB.
18642
18643 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18644
18645         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18646         protection macro.
18647         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18648         inclusion protection macro.
18649
18650         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18651         SIGRTMIN and SIGRTMAX and print information in that case only when
18652         SIGRTMIN is defined.
18653
18654 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18655
18656         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18657         arginfo fn returning -1.
18658
18659         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18660         and thousands string is zero terminated.
18661
18662 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18663
18664         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18665         sysdeps/unix/sysv/linux/bits/socket.h.
18666
18667 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18668
18669         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18670         (__CPU_COUNT): Remove old macros.
18671         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18672         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18673         (__CPU_ALLOC, __CPU_FREE): Add macros.
18674         (__sched_cpualloc, __sched_cpufree): Add declarations.
18675
18676 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18677
18678         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18679         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18680         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18681         (readdhstai): Return value of addhstaiX call.
18682         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18683         (addgrbyX): Return value returned by cache_addgr.
18684         (readdgrbyname): Return value returned by addgrbyX.
18685         (readdgrbygid): Likewise.
18686         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18687         (addpwbyX): Return value returned by cache_addpw.
18688         (readdpwbyname): Return value returned by addhstbyX.
18689         (readdpwbyuid): Likewise.
18690         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18691         (addservbyX): Return value returned by cache_addserv.
18692         (readdservbyname): Return value returned by addservbyX:
18693         (readdservbyport): Likewise.
18694         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18695         (addhstbyX): Return value returned by cache_addhst.
18696         (readdhstbyname): Return value returned by addhstbyX.
18697         (readdhstbyaddr): Likewise.
18698         (readdhstbynamev6): Likewise.
18699         (readdhstbyaddrv6): Likewise.
18700         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18701         (readdinitgroups): Return value returned by addinitgroupsX.
18702         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18703         (prune_cache): Keep track of timeout value of re-added entries.
18704         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18705         * nscd/nscd.h: Adjust prototypes of readd* functions.
18706
18707 2011-02-04  Roland McGrath  <roland@redhat.com>
18708
18709         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18710         (nis_stats): Likewise.
18711         * nis/nis_modify.c (nis_modify): Likewise.
18712         * nis/nis_remove.c (nis_remove): Likewise.
18713         * nis/nis_add.c (nis_add): Likewise.
18714
18715         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18716
18717         * posix/fnmatch_loop.c: Add some consts.
18718
18719         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18720
18721 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18722
18723         [BZ #12460]
18724         * config.make.in (config-cflags-novzeroupper): Define.
18725         * configure.in: Substitute libc_cv_cc_novzeroupper.
18726         * elf/Makefile (AVX-CFLAGS): Define.
18727         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18728         (CFLAGS-tst-auditmod4a.c): Likewise.
18729         (CFLAGS-tst-auditmod4b.c): Likewise.
18730         (CFLAGS-tst-auditmod6b.c): Likewise.
18731         (CFLAGS-tst-auditmod6c.c): Likewise.
18732         (CFLAGS-tst-auditmod7b.c): Likewise.
18733         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18734
18735 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18736
18737         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18738         function to the callback.
18739         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18740
18741 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18742
18743         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18744         of errno.
18745
18746 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18747
18748         [BZ #11724]
18749         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18750         of constructors.
18751         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18752         of destructors.
18753         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18754
18755         [BZ #11724]
18756         * elf/Makefile: Add rules to build and run new test.
18757         * elf/tst-initorder.c: New file.
18758         * elf/tst-initorder.exp: New file.
18759         * elf/tst-initordera1.c: New file.
18760         * elf/tst-initordera2.c: New file.
18761         * elf/tst-initordera3.c: New file.
18762         * elf/tst-initordera4.c: New file.
18763         * elf/tst-initorderb1.c: New file.
18764         * elf/tst-initorderb2.c: New file.
18765         * elf/tst-order-a1.c: New file.
18766         * elf/tst-order-a2.c: New file.
18767         * elf/tst-order-a3.c: New file.
18768         * elf/tst-order-a4.c: New file.
18769         * elf/tst-order-b1.c: New file.
18770         * elf/tst-order-b2.c: New file.
18771         * elf/tst-order-main.c: New file.
18772         New test case by George Gensure <werkt0@gmail.com>.
18773
18774 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18775
18776         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18777         decoding ACE if AI_CANONIDN.
18778
18779 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18780
18781         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18782
18783 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18784
18785         * version.h (RELEASE): Bump for 2.13 release.
18786         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18787
18788         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18789
18790         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18791         MADV_NOHUGEPAGE.
18792         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18793         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18794         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18795         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18796         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18797         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18798
18799         * posix/getconf.c: Update copyright year.
18800         * catgets/gencat.c: Likewise.
18801         * csu/version.c: Likewise.
18802         * debug/catchsegv.sh: Likewise.
18803         * debug/xtrace.sh: Likewise.
18804         * elf/ldconfig.c: Likewise.
18805         * elf/ldd.bash.in: Likewise.
18806         * elf/sprof.c (print_version): Likewise.
18807         * iconv/iconv_prog.c: Likewise.
18808         * iconv/iconvconfig.c: Likewise.
18809         * locale/programs/locale.c: Likewise.
18810         * locale/programs/localedef.c: Likewise.
18811         * malloc/memusage.sh: Likewise.
18812         * malloc/mtrace.pl: Likewise.
18813         * nscd/nscd.c (print_version): Likewise.
18814         * nss/getent.c: Likewise.
18815
18816         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18817         PF_CAIF, and PF_ALG.
18818         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18819
18820 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18821
18822         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18823         (modules-names): Use them.
18824         (ifunc-test-modules, ifunc-pie-tests): Define.
18825         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18826         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18827         (test-extras): Likewise.
18828         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18829         $(compile-command.c).
18830         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18831         (all-built-dso): Define.
18832         (check-textrel.out, check-execstack.out): Depend on it.
18833
18834         * configure.in: Don't override --enable-multi-arch.
18835
18836 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18837
18838         [BZ #6812]
18839         * nscd/hstcache.c (tryagain): Define.
18840         (cache_addhst): Return tryagain not notfound for temporary errors.
18841         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18842         failed.
18843
18844 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18845
18846         [BZ #10563]
18847         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18848         to make the syscall.
18849         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18850
18851         [BZ #12378]
18852         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18853         and fall back to matching as normal character if the string ends before
18854         the matching ']' is found.  This is what POSIX requires.
18855         * posix/testfnm.c: Adjust test result.
18856         * posix/globtest.sh: Adjust test result.  Add new test.
18857         * posix/tst-fnmatch.input: Likewise.
18858         * posix/tst-fnmatch2.c: Add new test.
18859
18860 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18861
18862         * elf/Makefile (check-execstack): Revert last change.  Depend on
18863         check-execstack.h.
18864         (check-execstack.h): New target.
18865         (generated): Add check-execstack.h.
18866         * elf/check-execstack.c: Include "check-execstack.h".
18867         (main): Revert last change.
18868         (handle_file): Return zero if GNU_STACK is absent and
18869         DEFAULT_STACK_PERMS doesn't include PF_X.
18870
18871 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18872
18873         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18874         in child fails because the descriptor is already closed.
18875         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18876         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18877         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18878
18879         [BZ #12397]
18880         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18881         syscall.
18882
18883         [BZ #10484]
18884         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18885         temporary buffer used to handle multi lookups locally.
18886         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18887
18888 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18889
18890         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18891         loader is ld.so.
18892
18893 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18894
18895         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18896         alignment for SSE2.
18897
18898 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18899
18900         [BZ #12394]
18901         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18902         characters.  When rounding increased number of integer digits recompute
18903         number of groups.
18904         * stdio-common/tst-grouping.c: New file.
18905         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18906
18907 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18908
18909         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18910         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18911
18912         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18913         void.
18914         * bits/select.h: Likewise.
18915
18916 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18917
18918         * po/ja.po: Update from translation team.
18919
18920 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18921
18922         [BZ #11155]
18923         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18924         implementation just like for lxstat, fxstatat, et al.
18925
18926 2010-12-27  Jim Meyering  <meyering@redhat.com>
18927
18928         [BZ #12348]
18929         * posix/regexec.c (build_trtable): Return failure indication upon
18930         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18931
18932 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18933
18934         [BZ #12201]
18935         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18936         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18937         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18938         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18939
18940         [BZ #12207]
18941         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18942
18943         [BZ #12204]
18944         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18945         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18946
18947 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18948
18949         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18950         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18951         script has SORT_BY_INIT_PRIORITY.
18952         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18953         NO_CTORS_DTORS_SECTIONS is defined.
18954         * elf/soinit.c: Likewise.
18955         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18956         NO_CTORS_DTORS_SECTIONS is defined.
18957         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18958         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18959         * sysdeps/sh/init-first.c: Likewise.
18960         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18961
18962 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18963
18964         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18965         always use the slow path.
18966
18967 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18968
18969         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18970         similar rule which adds the sysdep directories to the header search in
18971         order to pick up the correct platform stackinfo.h.
18972         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18973         perform test if it is, otherwise return successfully without testing.
18974         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18975         DEFAULT_STACK_PERMS define in stackinfo.h.
18976         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18977         defined in stackinfo.h.
18978         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18979         DEFAULT_STACK_PERMS defined in stackinfo.h.
18980         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18981         * sysdeps/ia64/stackinfo.h: Likewise.
18982         * sysdeps/s390/stackinfo.h: Likewise.
18983         * sysdeps/sh/stackinfo.h: Likewise.
18984         * sysdeps/sparc/stackinfo.h: Likewise.
18985         * sysdeps/x86_64/stackinfo.h: Likewise.
18986         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18987         PF_X for powerpc64.  Retain PF_X for powerpc32.
18988
18989 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18990
18991         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18992         accurately.
18993         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18994         GETDENTS_64BIT_ALIGNED.
18995
18996 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18997
18998         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18999
19000 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19001
19002         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19003         _GNU_SOURCE.
19004
19005         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19006         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19007         Remove __restrict.
19008         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19009         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19010
19011 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19012
19013         [BZ #11655]
19014         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19015         are initialized.
19016
19017 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19018
19019         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19020
19021 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19022
19023         * po/it.po: Update from translation team.
19024
19025 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19026
19027         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19028         unused codes.
19029
19030 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19031
19032         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19033
19034 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19035
19036         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19037         specially.
19038         (gaih_getanswer_slice): Likewise.
19039
19040 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19041
19042         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19043
19044 2010-05-31  Petr Baudis  <pasky@suse.cz>
19045
19046         [BZ #11149]
19047         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19048         silently even in the chroot mode.
19049
19050 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19051
19052         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19053         last patch a bit.  Pretty printing
19054
19055 2010-05-31  Petr Baudis <pasky@suse.cz>
19056
19057         [BZ #10085]
19058         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19059         initialization of skip_initgroups_dyn.
19060
19061 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19062
19063         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19064         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19065
19066 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19067
19068         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19069
19070 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19071
19072         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19073         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19074         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19075         ($(objpfx)tst-fnmatch-mem): New rule.
19076         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19077         * posix/tst-fnmatch.c (main): Call mtrace.
19078
19079 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19080
19081         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19082         Support Intel processor model 6 and model 0x2c.
19083
19084 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19085
19086         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19087           signed comparison.
19088
19089 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19090
19091         [BZ #12205]
19092         * string/test-strncasecmp.c (check_result): New function.
19093         (do_one_test): Use it.
19094         (check1): New function.
19095         (test_main): Use it.
19096         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19097         Support strcasecmp and strncasecmp.
19098
19099 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19100
19101         [BZ #12194]
19102         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19103         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19104
19105 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19106
19107         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19108         IFUNC support.
19109         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19110         memset-x86-64.
19111         * sysdeps/x86_64/multiarch/bzero.S: New file.
19112         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19113         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19114         * sysdeps/x86_64/multiarch/memset.S: New file.
19115         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19116         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19117         Set bit_Prefer_SSE_for_memop for Intel processors.
19118         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19119         Define.
19120         (index_Prefer_SSE_for_memop): Define.
19121         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19122
19123 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19124
19125         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19126         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19127
19128 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19129
19130         [BZ #12191]
19131         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19132         (__x86_64_raw_data_cache_size_half): Likewise.
19133         (__x86_64_raw_shared_cache_size): Likewise.
19134         (__x86_64_raw_shared_cache_size_half): Likewise.
19135
19136         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19137         (__x86_64_raw_data_cache_size_half): Likewise.
19138         (__x86_64_raw_shared_cache_size): Likewise.
19139         (__x86_64_raw_shared_cache_size_half): Likewise.
19140         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19141         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19142         and __x86_64_raw_shared_cache_size_half.  Round
19143         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19144         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19145         to multiple of 256 bytes.
19146
19147 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19148
19149         [BZ #12167]
19150         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19151         of inacessible symlinks.  Verify result of symlink before returning it.
19152         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19153         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19154
19155 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19156
19157         * math/math.h (isinf): Fix typo in comment.
19158
19159 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19160
19161         * po/da.po: Update from translation team.
19162
19163 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19164
19165         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19166         is added to the list.
19167
19168 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19169             Ulrich Drepper  <drepper@gmail.com>
19170
19171         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19172         the global list here.  Move code to...
19173         (_dl_add_to_namespace_list): ...here.  New function.
19174         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19175         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19176         * elf/dl-load.c (lose): Don't remove the element from the list.
19177         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19178         (_dl_map_object): Likewise.
19179
19180 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19181
19182         [BZ #12159]
19183         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19184         into all bytes of SSE register.
19185         Patch by Richard Li <richardpku@gmail.com>.
19186
19187 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19188
19189         [BZ #12140]
19190         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19191         perturbing.
19192
19193 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19194
19195         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19196         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19197         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19198         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19200         submachine.
19201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19202
19203 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19204
19205         * include/dlfcn.h (__RTLD_SECURE): Define.
19206         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19207         mode & __RTLD_SECURE instead.
19208         (open_path): Rename preloaded parameter to secure.
19209         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19210         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19211         * elf/dl-deps.c (openaux): Likewise.
19212         * elf/rtld.c (struct map_args): Remove is_preloaded.
19213         (map_doit): Don't use it.
19214         (dl_main): Likewise.
19215         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19216         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19217
19218 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19219
19220         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19221         (sysd-rules-targets): Remove duplicates.
19222         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19223         rtld-%.$o dependency.
19224
19225 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19226
19227         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19228         _dl_map_object do it.
19229
19230 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19231
19232         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19233         fast fma builtins, define the macros in the C99 standard.
19234         (FP_FAST_FMAF): Likewise.
19235         (FP_FAST_FMAL): Likewise.
19236         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19237
19238         * bits/mathdef.h: Update copyright year.
19239         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19240
19241 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19242
19243         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19244         builtins, define the macros in the C99 standard.
19245         (FP_FAST_FMAF): Likewise.
19246         (FP_FAST_FMAL): Likewise.
19247         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19248         multiply/add.
19249         (FP_FAST_FMAF): Likewise.
19250
19251 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19252
19253         [BZ #3268]
19254         * math/libm-test.inc (fma_test): Some new testcases.
19255         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19256         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19257         y and infinite z.  Do multiplication by C already in long double.
19258         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19259         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19260         y and infinite z.  Do bitwise or of inexact bit into u.d.
19261         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19262         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19263         * sysdeps/i386/fpu/s_fma.S: Removed.
19264         * sysdeps/i386/fpu/s_fmal.S: Removed.
19265
19266 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19267
19268         [BZ #3268]
19269         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19270         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19271         computation is not scheduled after fetestexcept.  Fix value
19272         of minimum denormal long double.
19273
19274 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19275
19276         [BZ #3268]
19277         * math/libm-test.inc (fma_test): Add some more tests.
19278         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19279         correctly.
19280
19281 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19282
19283         * scripts/data/localplt-s390-linux-gnu.data: New file.
19284         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19285
19286 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19287
19288         [BZ #3268]
19289         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19290         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19291         instead of dbl-64.
19292         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19293         inlines.
19294         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19295         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19296         if one of x and y is very large and the other is subnormal.
19297         * sysdeps/s390/fpu/s_fmaf.c: New file.
19298         * sysdeps/s390/fpu/s_fma.c: New file.
19299         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19300         * sysdeps/powerpc/fpu/s_fma.S: New file.
19301         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19302         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19303         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19304
19305 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19306
19307         [BZ #3268]
19308         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19309         fma tests.
19310         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19311         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19312         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19313         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19314         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19315         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19316         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19317
19318 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19319
19320         [BZ #12078]
19321         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19322         * posix/bug-regex31.input: Add test case.
19323
19324 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19325
19326         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19327         * posix/bug-regex31.input: New file.
19328
19329         [BZ #12078]
19330         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19331         (parse_sub_exp): Fix last change, use postorder.
19332
19333         * posix/bug-regex31.c: New file.
19334         * posix/Makefile: Add rules to build and run bug-regex31.
19335
19336         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19337
19338         [BZ #12078]
19339         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19340
19341         [BZ #12108]
19342         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19343         to have entries in sys_siglist.
19344
19345         [BZ #12093]
19346         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19347         be NULL.
19348
19349 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19350
19351         [BZ #3268]
19352         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19353         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19354         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19355         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19356         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19357         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19358         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19359         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19360         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19361         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19362         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19363         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19364         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19365         * math/ftestexcept.c (fetestexcept): Likewise.
19366         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19367         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19368         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19369         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19370         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19371         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19372         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19373
19374 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19375
19376         [BZ #12107]
19377         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19378         newline.
19379
19380 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19381
19382         * string/bug-strstr1.c: New file.
19383         * string/Makefile: Add rules to build and run bug-strstr1.
19384
19385 2010-10-05  Eric Blake  <eblake@redhat.com>
19386
19387         [BZ #12092]
19388         * string/str-two-way.h (two_way_long_needle): Always clear memory
19389         when skipping input due to the shift table.
19390
19391 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19392
19393         [BZ #12005]
19394         * malloc/mcheck.c: Handle large requests.
19395
19396         [BZ #12077]
19397         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19398         for strncmp and strncasecmp.
19399         * string/stratcliff.c: Add tests for strcmp and strncmp.
19400         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19401
19402 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19403
19404         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19405         __set_fpscr.
19406
19407 2010-09-30  Andreas Jaeger  <aj@suse.de>
19408
19409         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19410         (CGROUP_SUPER_MAGIC): Define.
19411         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19412         Handle btrfs and cgroup file systems.
19413         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19414         Likewise.
19415
19416 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19417
19418         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19419         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19420
19421 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19422
19423         [BZ #12067]
19424         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19425         trying to locate the ELF header.
19426
19427 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19428
19429         [BZ #11611]
19430         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19431         Mask out sign-bit copies when constructing f_fsid.
19432
19433 2010-09-24  Petr Baudis <pasky@suse.cz>
19434
19435         * debug/stack_chk_fail_local.c: Add missing licence exception.
19436         * debug/warning-nop.c: Likewise.
19437
19438 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19439
19440         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19441         implementing getdents64 using getdents syscall, set d_type if
19442         __ASSUME_GETDENTS32_D_TYPE.
19443
19444 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19445
19446         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19447         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19448
19449 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19450
19451         [BZ #12037]
19452         * posix/unistd.h: Undo change of feature selection for ftruncate from
19453         2010-01-11.
19454
19455 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19456
19457         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19458         detection.
19459
19460 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19461
19462         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19463         fanotify_mark.
19464         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19465
19466 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19467
19468         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19469         variables after CHECK_SP call.
19470         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19471
19472 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19473             Ulrich Drepper  <drepper@redhat.com>
19474
19475         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19476         re-relocationg ld.so.
19477         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19478         _dl_init_paths call.
19479         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19480         here anymore.
19481
19482 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19483
19484         * resolv/res_init.c (__res_vinit): Count the default server we added.
19485
19486 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19487             Ulrich Drepper  <drepper@redhat.com>
19488
19489         [BZ #11968]
19490         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19491         (____longjmp_chk): Use %ebx for saving value across system call.
19492         Add unwind info.
19493
19494 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19495
19496         * manual/Makefile: Don't mix pattern rules with normal rules.
19497
19498 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19499
19500         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19501         operation.
19502         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19503         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19504         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19505         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19506         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19507         Likewise.
19508
19509 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19510
19511         [BZ #11979]
19512         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19513         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19514
19515 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19516
19517         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19518         * sysdeps/x86_64/addmul_1.S: Likewise.
19519         * sysdeps/x86_64/lshift.S: Likewise.
19520         * sysdeps/x86_64/mul_1.S: Likewise.
19521         * sysdeps/x86_64/rshift.S: Likewise.
19522         * sysdeps/x86_64/sub_n.S: Likewise.
19523         * sysdeps/x86_64/submul_1.S: Likewise.
19524
19525 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19526
19527         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19528         Define __sched_param instead of SCHED_* and sched_param when
19529         <bits/sched.h> is included with __need_schedparam defined.
19530         * bits/sched.h [__need_schedparam]
19531         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19532         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19533         (__defined_schedparam): Define to 1.
19534         (__sched_param): New structure, identical to sched_param.
19535         (__need_schedparam): Undefine.
19536
19537 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19538
19539         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19540         (epoll_create1): Declare.
19541
19542         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19543
19544 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19545
19546         [BZ #7066]
19547         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19548         shifting retval into place.
19549
19550 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19551
19552         * nis/rpcsvc/nis.h: Update copyright notice.
19553         * nis/rpcsvc/nis.x: Likewise.
19554         * nis/rpcsvc/nis_callback.h: Likewise.
19555         * nis/rpcsvc/nis_callback.x: Likewise.
19556         * nis/rpcsvc/nis_object.x: Likewise.
19557         * nis/rpcsvc/nis_tags.h: Likewise.
19558         * nis/rpcsvc/yp.h: Likewise.
19559         * nis/rpcsvc/yp.x: Likewise.
19560         * nis/rpcsvc/ypupd.h: Likewise.
19561         * nis/yp_xdr.c: Likewise.
19562         * nis/ypupdate_xdr.c: Likewise.
19563
19564         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19565         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19566         (pmap_getport): Use __libc_rpc_getport.
19567         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19568         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19569         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19570
19571 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19572
19573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19574         fanotify_mark.
19575
19576 2010-08-27  Roland McGrath  <roland@redhat.com>
19577
19578         * sysdeps/i386/i686/multiarch/Makefile
19579         (CFLAGS-varshift.c): New variable.
19580
19581 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19582
19583         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19584         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19585
19586         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19587
19588         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19589
19590 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19591
19592         * sysdeps/x86_64/strlen.S: Unroll the loop.
19593         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19594         strlen-sse2 strlen-sse2-bsf.
19595         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19596         __strlen_no_bsf if bit_Slow_BSF is set.
19597         (__strlen_sse42): Removed.
19598         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19599         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19600
19601 2010-08-25  Roland McGrath  <roland@redhat.com>
19602
19603         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19604         * sysdeps/x86_64/multiarch/varshift.c: New file.
19605         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19606         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19607         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19608         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19609
19610 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19611
19612         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19613         strlen-sse2 strlen-sse2-bsf.
19614         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19615         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19616         (__strlen_sse2): Removed.
19617         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19618         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19619         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19620         bit_Slow_BSF for Atom.
19621         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19622         (index_Slow_BSF): Define.
19623         (HAS_SLOW_BSF): Define.
19624
19625 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19626
19627         [BZ #10851]
19628         * resolv/res_init.c (__res_vinit): When no server address at all
19629         is given default to loopback.
19630
19631 2010-08-24  Roland McGrath  <roland@redhat.com>
19632
19633         * configure.in: Remove config-name.h generation.
19634         * configure: Regenerated.
19635         * config-name.in: File removed.
19636         * scripts/config-uname.sh: New file.
19637         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19638         ($(objdir)config-name.h): New target.
19639
19640         * sunrpc/rpc_parse.h: Avoid nested comment.
19641
19642 2010-08-24  Richard Henderson  <rth@redhat.com>
19643             Ulrich Drepper  <drepper@redhat.com>
19644             H.J. Lu  <hongjiu.lu@intel.com>
19645
19646         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19647         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19648         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19649         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19650         _mm_alignr_epi8 with _mm_loadu_si128.
19651         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19652         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19653         (__m128i_shift_right): Removed.
19654         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19655         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19656         * sysdeps/x86_64/multiarch/varshift.h: New file.
19657         * sysdeps/x86_64/multiarch/varshift.S: New file.
19658
19659 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19660
19661         * configure.in: Move assembler checks to before sysdep dir checking.
19662
19663 2010-08-20  Petr Baudis  <pasky@suse.cz>
19664
19665         * LICENSES: Sync the sunrpc license.
19666
19667 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19668
19669         * sunrpc/auth_des.c: Update copyright notice once again.
19670         * sunrpc/auth_none.c: Likewise.
19671         * sunrpc/auth_unix.c: Likewise.
19672         * sunrpc/authdes_prot.c: Likewise.
19673         * sunrpc/authuxprot.c: Likewise.
19674         * sunrpc/bindrsvprt.c: Likewise.
19675         * sunrpc/clnt_gen.c: Likewise.
19676         * sunrpc/clnt_perr.c: Likewise.
19677         * sunrpc/clnt_raw.c: Likewise.
19678         * sunrpc/clnt_simp.c: Likewise.
19679         * sunrpc/clnt_tcp.c: Likewise.
19680         * sunrpc/clnt_udp.c: Likewise.
19681         * sunrpc/clnt_unix.c: Likewise.
19682         * sunrpc/des_crypt.c: Likewise.
19683         * sunrpc/des_soft.c: Likewise.
19684         * sunrpc/get_myaddr.c: Likewise.
19685         * sunrpc/getrpcport.c: Likewise.
19686         * sunrpc/key_call.c: Likewise.
19687         * sunrpc/key_prot.c: Likewise.
19688         * sunrpc/openchild.c: Likewise.
19689         * sunrpc/pm_getmaps.c: Likewise.
19690         * sunrpc/pm_getport.c: Likewise.
19691         * sunrpc/pmap_clnt.c: Likewise.
19692         * sunrpc/pmap_prot.c: Likewise.
19693         * sunrpc/pmap_prot2.c: Likewise.
19694         * sunrpc/pmap_rmt.c: Likewise.
19695         * sunrpc/rpc/auth.h: Likewise.
19696         * sunrpc/rpc/auth_unix.h: Likewise.
19697         * sunrpc/rpc/clnt.h: Likewise.
19698         * sunrpc/rpc/des_crypt.h: Likewise.
19699         * sunrpc/rpc/key_prot.h: Likewise.
19700         * sunrpc/rpc/netdb.h: Likewise.
19701         * sunrpc/rpc/pmap_clnt.h: Likewise.
19702         * sunrpc/rpc/pmap_prot.h: Likewise.
19703         * sunrpc/rpc/pmap_rmt.h: Likewise.
19704         * sunrpc/rpc/rpc.h: Likewise.
19705         * sunrpc/rpc/rpc_des.h: Likewise.
19706         * sunrpc/rpc/rpc_msg.h: Likewise.
19707         * sunrpc/rpc/svc.h: Likewise.
19708         * sunrpc/rpc/svc_auth.h: Likewise.
19709         * sunrpc/rpc/types.h: Likewise.
19710         * sunrpc/rpc/xdr.h: Likewise.
19711         * sunrpc/rpc_clntout.c: Likewise.
19712         * sunrpc/rpc_cmsg.c: Likewise.
19713         * sunrpc/rpc_common.c: Likewise.
19714         * sunrpc/rpc_cout.c: Likewise.
19715         * sunrpc/rpc_dtable.c: Likewise.
19716         * sunrpc/rpc_hout.c: Likewise.
19717         * sunrpc/rpc_main.c: Likewise.
19718         * sunrpc/rpc_parse.c: Likewise.
19719         * sunrpc/rpc_parse.h: Likewise.
19720         * sunrpc/rpc_prot.c: Likewise.
19721         * sunrpc/rpc_sample.c: Likewise.
19722         * sunrpc/rpc_scan.c: Likewise.
19723         * sunrpc/rpc_scan.h: Likewise.
19724         * sunrpc/rpc_svcout.c: Likewise.
19725         * sunrpc/rpc_tblout.c: Likewise.
19726         * sunrpc/rpc_util.c: Likewise.
19727         * sunrpc/rpc_util.h: Likewise.
19728         * sunrpc/rpcinfo.c: Likewise.
19729         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19730         * sunrpc/rpcsvc/key_prot.x: Likewise.
19731         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19732         * sunrpc/rpcsvc/mount.x: Likewise.
19733         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19734         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19735         * sunrpc/rpcsvc/rex.x: Likewise.
19736         * sunrpc/rpcsvc/rstat.x: Likewise.
19737         * sunrpc/rpcsvc/rusers.x: Likewise.
19738         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19739         * sunrpc/rpcsvc/spray.x: Likewise.
19740         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19741         * sunrpc/rtime.c: Likewise.
19742         * sunrpc/svc.c: Likewise.
19743         * sunrpc/svc_auth.c: Likewise.
19744         * sunrpc/svc_authux.c: Likewise.
19745         * sunrpc/svc_raw.c: Likewise.
19746         * sunrpc/svc_run.c: Likewise.
19747         * sunrpc/svc_simple.c: Likewise.
19748         * sunrpc/svc_tcp.c: Likewise.
19749         * sunrpc/svc_udp.c: Likewise.
19750         * sunrpc/svc_unix.c: Likewise.
19751         * sunrpc/svcauth_des.c: Likewise.
19752         * sunrpc/xcrypt.c: Likewise.
19753         * sunrpc/xdr.c: Likewise.
19754         * sunrpc/xdr_array.c: Likewise.
19755         * sunrpc/xdr_float.c: Likewise.
19756         * sunrpc/xdr_mem.c: Likewise.
19757         * sunrpc/xdr_rec.c: Likewise.
19758         * sunrpc/xdr_ref.c: Likewise.
19759         * sunrpc/xdr_sizeof.c: Likewise.
19760         * sunrpc/xdr_stdio.c: Likewise.
19761
19762         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19763         handling.
19764
19765 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19766
19767         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19768
19769 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19770
19771         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19772         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19773         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19774         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19775         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19776         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19777         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19778         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19779         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19780         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19781         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19782         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19783         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19784         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19785
19786 2010-07-26  Anton Blanchard  <anton@samba.org>
19787
19788         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19789         * malloc/arena.c (heap_trim): Likewise.
19790
19791 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19792
19793         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19794         here.  Not...
19795         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19796         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19797
19798 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19799
19800         * sysdeps/i386/elf/Makefile: New file.
19801
19802 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19803
19804         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19805         from fanotify_init.
19806         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19807         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19808
19809 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19810
19811         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19812         of strncasecmp_l.
19813         * sysdeps/multiarch/strcmp.S: Likewise.
19814
19815 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19816
19817         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19818         strncase_l-nonascii.
19819         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19820         Add strncase_l-ssse3.
19821         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19822         * sysdeps/x86_64/strcmp.S: Likewise.
19823         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19824         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19825         * sysdeps/x86_64/strncase.S: New file.
19826         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19827         * sysdeps/x86_64/strncase_l.S: New file.
19828         * string/Makefile (strop-tests): Add strncasecmp.
19829         * string/test-strncasecmp.c: New file.
19830
19831         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19832         warning.
19833
19834         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19835         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19836
19837 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19838
19839         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19840
19841 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19842
19843         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19844         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19845         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19846
19847 2010-05-01  Alan Modra  <amodra@gmail.com>
19848
19849         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19850         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19851         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19852         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19853         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19854         tidying.  Don't tail-call __sigjmp_save for static lib.
19855         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19856         save location.
19857         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19858         (CALL_MCOUNT): Add eh info, and nop after bl.
19859         (TAIL_CALL_SYSCALL_ERROR): New macro.
19860         (PSEUDO_RET): Use it.
19861         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19862         Correct save location of integer regs and cr.
19863         (_dl_profile_resolve): Correct cr save location.  Delete nops
19864         after bl when SHARED.  Reduce cfi size a little by better
19865         placement of cfi directives.
19866         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19867         make a stack frame.  Instead use parm save area as a temp.
19868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19869         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19871         Don't make a stack frame for parent, use parm save area.
19872         Increase child stack frame to 112 bytes.  Don't save unused reg,
19873         and adjust reg usage.  Set up cfi on error recovery and
19874         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19876         (__makecontext): Add dummy nop after jump to exit.
19877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19878         Use correct parm save area and cr save, reduce stack frame.
19879         Correct cfi for possible PSEUDO_RET frame setup.
19880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19881         Branch to local label emitted by PSEUDO_RET rather than
19882         __syscall_error.
19883
19884 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19885
19886         [BZ #11904]
19887         * locale/programs/locale.c (print_assignment): New function.
19888         (show_locale_vars): Use it.
19889
19890 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19891
19892         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19893         field.
19894         (struct statfs64): Likewise.
19895         (_STATFS_F_FLAGS): Define.
19896         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19897         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19898         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19899         (ST_VALID): Define locally.
19900         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19901         __statvfs_getflags, use the provided value.
19902         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19903         __ASSUME_STATFS_F_FLAGS.
19904
19905         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19906
19907         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19908         Add sys/fanotify.h.
19909         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19910         fanotify_mask for GLIBC_2.13.
19911         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19912         fanotify_init and fanotify_mark.
19913         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19914         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19915
19916         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19917         Add prlimit.
19918         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19919         prlimit64 for GLIBC_2.13.
19920         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19921         prlimit64.
19922         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19923         syscall.
19924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19925         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19926         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19927         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19928         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19929         add prlimit alias.
19930         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19931
19932         [BZ #11903]
19933         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19934         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19935
19936         * nss/Makefile: Add rules to build and run tst-nss-test1.
19937         * shlib-versions: Add entry for libnss_test1.
19938         * nss/nss_test1.c: New file.
19939         * nss/tst-nss-test1.c: New file.
19940
19941         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19942         (__nss_configure_lookup): Set appropriate entry in
19943         __nss_configure_lookup to true.
19944         * nss/nsswitch.h: Define enum with indeces of databases in
19945         databases and __nss_database_custom arrays.  Declare
19946         __nss_database_custom.
19947         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19948         to avoid using nscd when custom rules are installed.
19949         * nss/getXXbyYY_r.c: Likewise.
19950         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19951
19952         * nss/nss_files/files-parse.c: Whitespace fixes.
19953
19954 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19955
19956         [BZ #11883]
19957         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19958         * posix/fnmatch_loop.c: Likewise.
19959
19960 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19961
19962         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19963         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19964         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19965         * Versions.def [GLIBC_2.13]: Add.
19966
19967 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19968
19969         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19970         Also fail if tpwd after pwuid call is NULL.
19971
19972 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19973
19974         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19975         when converting to ms.
19976
19977 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19978
19979         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19980         EOPNOTSUPP errors with ENOTTY.
19981         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19982         EOPNOTSUPP errors with ENOTTY.
19983
19984 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19985
19986         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19987         Add strcasecmp_l-ssse3.
19988         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19989         strcasecmp.
19990         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19991         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19992         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19993
19994 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19995
19996         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19997
19998         * string/Makefile (strop-tests): Add strcasecmp.
19999         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20000         strcasecmp_l-nonascii.
20001         (gen-as-const-headers): Add locale-defines.sym.
20002         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20003         * sysdeps/x86_64/strcasecmp.S: New file.
20004         * sysdeps/x86_64/strcasecmp_l.S: New file.
20005         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20006         * sysdeps/x86_64/locale-defines.sym: New file.
20007         * string/test-strcasecmp.c: New file.
20008
20009         * string/test-strcasestr.c: Test both ends of the range of characters.
20010         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20011
20012 2010-07-29  Roland McGrath  <roland@redhat.com>
20013
20014         [BZ #11856]
20015         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20016
20017 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20018
20019         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20020         for ld.so.
20021
20022 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20023
20024         * manual/memory.texi (Malloc Tunable Parameters): Document
20025         M_PERTURB.
20026
20027 2010-07-26  Roland McGrath  <roland@redhat.com>
20028
20029         [BZ #11840]
20030         * configure.in (-fgnu89-inline check): Set and substitute
20031         gnu89_inline, not libc_cv_gnu89_inline.
20032         * configure: Regenerated.
20033         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20034
20035 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20036
20037         * string/test-strnlen.c: New file.
20038         * string/Makefile (strop-tests): Add strnlen.
20039         * string/tester.c (test_strnlen): Add a few more test cases.
20040         * string/tst-strlen.c: Better error reporting.
20041
20042         * sysdeps/x86_64/strnlen.S: New file.
20043
20044 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20045
20046         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20047         lower-latency instructions.
20048
20049 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20050
20051         * string/test-strcasestr.c: New file.
20052         * string/test-strstr.c: New file.
20053         * string/Makefile (strop-tests): Add strstr and strcasestr.
20054         * string/str-two-way.h: Don't undefine MAX.
20055         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20056
20057 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20058
20059         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20060         strcasestr-nonascii.
20061         (CFLAGS-strcasestr-nonascii.c): Define.
20062         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20063         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20064         Remove unused attribute.
20065
20066 2010-07-20  Roland McGrath  <roland@redhat.com>
20067
20068         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20069         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20070         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20071         like LD_HWCAP_MASK can disable hwcaps.
20072
20073 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20074
20075         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20076
20077 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20078
20079         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20080         call in strcasestr.
20081         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20082         __strcasestr_sse42_nonascii.
20083         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20084         strcasestr-nonascii.c.
20085         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20086
20087 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20088
20089         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20090         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20091         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20092         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20093
20094 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20095
20096         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20097         fcntl.
20098
20099 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20100
20101         [BZ #11577]
20102         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20103         dl_signal_cerror.
20104
20105 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20106
20107         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20108         _PC_PIPE_BUF using F_GETPIPE_SZ.
20109
20110 2010-07-05  Roland McGrath  <roland@redhat.com>
20111
20112         * manual/arith.texi (Rounding Functions): Fix rint description
20113         implicit in round description.
20114
20115 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20116
20117         * elf/Makefile: Fix linking for a few tests to make recent linker
20118         happy.
20119
20120 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20121
20122         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20123         $(common-objpfx)libc_nonshared.a.
20124
20125 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20126
20127         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20128         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20129         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20130         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20131         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20132         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20133         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20134         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20149         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20150         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20151         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20152         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20153         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20154         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20155         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20156         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20157         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20158         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20159         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20160         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20175
20176 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20177
20178         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20179         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20180         * string/memmove.c (memmove): Renamed to ...
20181         (MEMMOVE): ...this.  Default to memmove.
20182         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20183         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20184         (END_CHK): Define.
20185         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20186         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20187         mempcpy-ssse3-back memmove-ssse3-back.
20188         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20189         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20190         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20191         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20192         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20193         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20194         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20195         * sysdeps/x86_64/multiarch/memmove.c: New file.
20196         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20197         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20198         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20199         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20200         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20201         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20202         Define.
20203         (index_Fast_Copy_Backward): Define.
20204         (HAS_ARCH_FEATURE): Define.
20205         (HAS_FAST_REP_STRING): Define.
20206         (HAS_FAST_COPY_BACKWARD): Define.
20207
20208 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20209
20210         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20211         Restore proper fallback handling.
20212
20213 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20214
20215         [BZ #11701]
20216         * posix/group_member.c (__group_member): Correct checking loop.
20217
20218         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20219         OOM in getpwuid_r correctly.  Return error number when the caller
20220         should return, otherwise -1.
20221         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20222         call returning > 0 value.
20223         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20224
20225 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20226
20227         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20228         libc_nonshared.a from targets in modules-names.
20229
20230 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20231
20232         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20233         requires it.
20234
20235 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20236
20237         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20238         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20239         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20240         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20241
20242 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20243
20244         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20245
20246 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20247
20248         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20249         and F_GETPIPE_SZ.
20250         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20251         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20252         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20253         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20254         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20255         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20256
20257 2010-06-14  Roland McGrath  <roland@redhat.com>
20258
20259         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20260
20261 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20262
20263         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20264         __REDIRECT followed by __THROW.
20265         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20266         * posix/getopt.h (getopt): Likewise.
20267
20268 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20269
20270         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20271         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20272         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20273         in AT_FLAGS.
20274         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20275         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20276
20277 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20278
20279         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20280
20281 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20282
20283         [BZ #11640]
20284         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20285         Properly check family and model.
20286
20287 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20288
20289         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20290
20291 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20292
20293         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20294
20295 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20296
20297         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20298         symbol reference.
20299
20300 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20301
20302         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20303         symbol reference.
20304
20305 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20306
20307         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20308         and internal_recvmmsg.
20309         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20310         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20311         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20312         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20313
20314         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20315         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20316         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20317
20318 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20319
20320         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20321
20322 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20323
20324         POWER7 optimizations.
20325         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20326         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20327
20328 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20329
20330         * version.h: Update for 2.13 development version.
20331
20332 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20333
20334         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20335         exceptions.  Return 0.
20336
20337 2010-05-07  Roland McGrath  <roland@redhat.com>
20338
20339         * elf/ldconfig.c (main): Add a const.
20340
20341 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20342
20343         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20344         (args_options): Add no-idn option.
20345         (ahosts_keys_int): Add idn_flags to ai_flags.
20346         (parse_option): Handle 'i' option to clear idn_flags.
20347
20348         * malloc/malloc.c (_int_free): Possible race in the most recently
20349         added check.  Only act on the data if no current modification
20350         happened.
20351
20352 See ChangeLog.17 for earlier changes.