Use __uint64_t in x86 __bswap_64
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
4         (__bswap_64): __uint64_t for unsigned 64-bit int.
5
6 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
7
8         * include/string.h (memmem): Declare libc hidden alias.
9         * string/memmem.c (memmem): Define libc hidden alias.
10         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
11         __read, __close instead of open, read, close.
12
13 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
14
15         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
16         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
17         global and hidden.
18         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
19         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
20         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
21         Likewise.
22         (__rawmemchr_sse2): Likewise.
23         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
24         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
25         (__strchr_sse2): Likewise.
26         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
27         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
28         (__strcasecmp_sse2): Likewise.
29         (__strncasecmp_sse2): Likewise.
30         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
31         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
32         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
33         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
34         (__strrchr_sse2): Likewise.
35         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
36         ifunc-impl-list.c.
37         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
38         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
39         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
40         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
41         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
42         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
43         * sysdeps/x86_64/multiarch/memset.S: Likewise.
44         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
45         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
46         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
47         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
48         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
49         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
50         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
51         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
52         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
53         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
54         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
55         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
58         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
59         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
60         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
61         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
62         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
63         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
64         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
65         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
66         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
67
68         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
69         global and hidden.
70         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
71         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
72         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
73         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
74         Likewise.
75         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
76         Likewise.
77         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
78         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
79         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
80         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
81         ifunc-impl-list.c.
82         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
83         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
84         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
85         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
86         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
87         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
88         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
89         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
90         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
91         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
92         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
93         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
94         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
95         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
96         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
97         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
98         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
99         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
100         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
101         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
102         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
103         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
104         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
105         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
106         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
107         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
108         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
109         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
110         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
111         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
112         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
113         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
114         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
115         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
116         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
117         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
118         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
119         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
120         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
121         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
122         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
123
124         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
125         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
126         * include/ifunc-impl-list.h: New file.
127         * misc/ifunc-impl-list.c: Likewise.
128         * misc/Makefile (routines): Add ifunc-impl-list.
129         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
130         * string/test-string.h: Include <ifunc-impl-list.h>.
131         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
132         impl_array): New variables.
133         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
134         are defined.
135         (test_init): Call __libc_ifunc_impl_list to initialize
136         func_list if TEST_IFUNC and TEST_NAME are defined.
137
138         * string/Makefile (strop-tests): Add bcopy and bzero.
139         * string/test-bcopy.c: New file.
140         * string/test-bzero.c: Likewise.
141         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
142         defined.
143         * string/test-memset.c: Support bzero test if TEST_BZERO is
144         defined.
145         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
146         __libc_memmove.
147         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
148         __libc_memset.
149         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
150         of memset.
151
152 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
153
154         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
155         * configure: Regenerated.
156
157         * Makeconfig (+link-static-before-libc): Don't include
158         $(link-static-libc).
159
160         * libio/libio.h (_IO_pos_t): Remove.
161
162 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
163
164         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
165         McGrath.
166
167 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
168
169         * crypt/crypt-entry.c: Include fips-private.h.
170         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
171         * crypt/md5c-test.c (main): Tolerate disabled MD5.
172         * sysdeps/unix/sysv/linux/fips-private.h: New file.
173         * sysdeps/generic/fips-private.h: New file, dummy fallback.
174
175 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
176
177         * crypt/crypt-private.h: Include stdbool.h.
178         (_ufc_setup_salt_r): Return bool.
179         * crypt/crypt-entry.c: Include errno.h.
180         (__crypt_r): Return NULL with EINVAL for bad salt.
181         * crypt/crypt_util.c (bad_for_salt): New.
182         (_ufc_setup_salt_r): Check that salt is long enough and within
183         the specified alphabet.
184         * crypt/badsalttest.c: New file.
185         * crypt/Makefile (tests): Add it.
186         ($(objpfx)badsalttest): New.
187
188 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
189
190         * NEWS: Add entry for BZ #14602.
191
192 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
193
194         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
195         type-generic.
196         * math/libm-test.inc: Update comment listing what functions and
197         macros are tested.
198         (isgreater_test): New function.
199         (isgreaterequal_test): Likewise.
200         (isless_test): Likewise.
201         (islessequal_test): Likewise.
202         (islessgreater_test): Likewise.
203         (isunordered_test): Likewise.
204         (main): Call the new functions.
205
206 2012-10-09  Roland McGrath  <roland@hack.frob.com>
207
208         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
209         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
210         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
211         * sysdeps/i386/configure: Regenerated.
212         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
213         * sysdeps/mach/configure: Regenerated.
214         * sysdeps/mach/hurd/configure: Regenerated.
215         * sysdeps/powerpc/configure: Regenerated.
216         * sysdeps/powerpc/powerpc32/configure: Regenerated.
217         * sysdeps/powerpc/powerpc64/configure: Regenerated.
218         * sysdeps/s390/s390-32/configure: Regenerated.
219         * sysdeps/s390/s390-64/configure: Regenerated.
220         * sysdeps/sh/configure: Regenerated.
221         * sysdeps/sparc/configure: Regenerated.
222         * sysdeps/unix/sysv/linux/configure: Regenerated.
223         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
224         * sysdeps/x86_64/configure: Regenerated.
225
226         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
227         defined.  Don't check if MAP is NULL.
228
229 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
230
231         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
232         (_G_stat64): Likewise.
233         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
234         (_G_stat64): Likewise.
235         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
236         instead of struct _G_stat64.
237         * libio/fileops.c (mmap_remap_check): Likewise.
238         (decide_maybe_mmap): Likewise.
239         (_IO_new_file_seekoff): Likewise.
240         (_IO_file_stat): Likewise.
241         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
242         _G_off64_t.
243         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
244         instead of struct _G_stat64.
245         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
246
247 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
248
249         [BZ #14602]
250         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
251         Replace with ...
252         (CHECK_EOL): New macro.
253         (two_way_short_needle): Check beginning of haystack for EOL.  Use
254         CHECK_EOL.
255         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
256         Replace with CHECK_EOL.
257         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
258         Replace with CHECK_EOL.
259
260 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
261
262         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
263         type-generic.
264         * math/libm-test.inc: Update comment listing what functions and
265         macros are tested.
266         (finite_test): New function.
267         (isinf_test): Likewise.
268         (isnan_test): Likewise.
269         (fpclassify_test): Test subnormal input.
270         (isfinite_test): Likewise.
271         (isnormal_test): Likewise.
272         (main): Call the new functions.
273
274 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
275
276         [BZ #14660]
277         * Makerules (%.dynsym): Force C locale when running
278         $(OBJDUMP) --dynamic-syms.
279
280 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
281
282         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
283         <stdint.h>.
284
285 2012-10-06  David S. Miller  <davem@davemloft.net>
286
287         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
288         upper 32-bits of the length value in %o2 since we use branch-on-register
289         tests which consider the entire 64-bit register.
290
291 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
292
293         * string/test-strstr.c (check2): Add a test for page boundary.
294
295 2012-10-05  David S. Miller  <davem@davemloft.net>
296
297         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
298         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
299         file.
300         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
301         sysdep_routines.
302         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
303         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
304         and bzero when HWCAP_SPARC_CRYPTO is present.
305
306 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
307
308         [BZ #14602]
309         * string/test-strstr.c (check2): New function.
310         (test_main): Call check2.
311
312         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
313         and bug-strchr1.
314         * string/bug-strcasestr1.c (do_test): Moved to ...
315         * string/test-strcasestr.c (check1): Here.  New function.
316         (do_one_test): Break out result checking code into ...
317         (check_result): This.  New function.
318         (do_one_test): Call check_result.
319         (test_main): Call check1.
320         * string/bug-strchr1.c (do_test): Moved to ...
321         * string/test-strchr.c (check1): Here.  New function.
322         (do_one_test): Break out result checking code into ...
323         (check_result): This.  New function.
324         (do_one_test): Call check_result.
325         (test_main): Call check1.
326         * string/bug-strstr1.c (main): Moved to ...
327         * string/test-strchr.c (check1): Here.  New function.
328         (do_one_test): Break out result checking code into ...
329         (check_result): This.  New function.
330         (do_one_test): Call check_result.
331         (test_main): Call check1.
332         * string/bug-strcasestr1.c: Removed.
333         * string/bug-strchr1.c: Likewise.
334         * string/bug-strstr1.c: Likewise.
335
336         * elf/Makefile (dl-routines): Add hwcaps.
337         * elf/dl-support.c (_dl_important_hwcaps): Removed.
338         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
339         (_dl_important_hwcaps): Moved to ...
340         * elf/dl-hwcaps.c: Here.  New file.
341         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
342
343         [BZ #14557]
344         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
345         if IS_IN_rtld isn't defined.
346
347         * elf/dl-support.c (_dl_sysinfo_map): New.
348         Include "get-dynamic-info.h" and "setup-vdso.h".
349         (_dl_non_dynamic_init): Call setup_vdso.
350         * elf/dynamic-link.h: Don't include <assert.h>.
351         (elf_get_dynamic_info): Moved to ...
352         * elf/get-dynamic-info.h: Here.  New file.
353         * elf/dynamic-link.h: Include "get-dynamic-info.h".
354         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
355         * elf/setup-vdso.h: Here.  New file.
356         * elf/rtld.c: Include "setup-vdso.h".
357         (dl_main): Call setup_vdso.
358
359 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
360
361         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
362         creal in comment listing functions tested.  List finite, isinf,
363         isnan, isless, islessequal, isgreater, isgreaterequal,
364         islessgreater, isunordered, lgamma_r and pow10 as functions and
365         macros not tested.  Mention which functions not tested are aliases
366         for other functions.  Fix typo.  Note that signs of NaNs are not
367         tested.
368
369         * scripts/config.guess: Update from config.git.
370         * scripts/config.sub: Likewise.
371
372 2012-10-04  Roland McGrath  <roland@hack.frob.com>
373
374         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
375         * misc/madvise.c (madvise): Renamed to __madvise.
376         Make madvise a weak alias.
377         * include/sys/mman.h: Declare __madvise.
378         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
379         * sysdeps/unix/syscalls.list
380         (madvise): Make __madvise the strong name, and madvise a weak alias.
381         * sysdeps/unix/sysv/linux/syscalls.list
382         (madvise, mmap): Remove redundant entries.
383         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
384         * malloc/malloc.c (mtrim): Likewise.
385         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
386
387 2012-10-03  Roland McGrath  <roland@hack.frob.com>
388
389         * sysdeps/mach/hurd/dl-cache.c: File removed.
390         * config.h.in (USE_LDCONFIG): New #undef.
391         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
392         * configure: Regenerated.
393         * elf/Makefile (dl-routines): Add dl-cache only under
394         [$(use-ldconfig) = yes].
395         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
396         cache on [USE_LDCONFIG].
397         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
398         [USE_LDCONFIG].
399         * elf/rtld.c (dl_main): Likewise.
400
401 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
402
403         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
404         _SC_LEVEL4_CACHE_LINESIZE.
405
406 2012-10-03  Roland McGrath  <roland@hack.frob.com>
407
408         * sysdeps/unix/bsd/confstr.h: File removed.
409
410 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
411
412         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
413         sys/sdt-config.h.
414
415 2012-10-02  Roland McGrath  <roland@hack.frob.com>
416
417         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
418         Make 'mapoff' field ElfW(Off) rather than off_t.
419
420 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
421
422         * nscd/Makefile: Remove nscd-cflags and all its users.
423         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
424         (CFLAGS-nonlib): Add compiler flags for nscd modules.
425
426         [BZ #10631]
427         * malloc.c (malloc_printerr): Clarify error message.
428
429 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
430
431         [BZ #14648]
432         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
433         Set bit_FMA_Usable if FMA is supported.
434         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
435         macro.
436         (bit_FMA4_Usable): Updated.
437         (index_FMA_Usable): New macro.
438         (CPUID_FMA): Likewise
439         (HAS_FMA): Defined with bit_FMA_Usable.
440
441 2012-10-01  Roland McGrath  <roland@hack.frob.com>
442
443         * bits/types.h (__swblk_t): Type removed.
444         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
445         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
446         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
447         (__SWBLK_T_TYPE): Likewise.
448         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
449         (__SWBLK_T_TYPE): Likewise.
450         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
451         (__SWBLK_T_TYPE): Likewise.
452         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
453         (__SWBLK_T_TYPE): Likewise.
454
455 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
456             Honza Horak <hhorak@redhat.com>
457
458         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
459         (xdr_mapname): Use YPMAXMAP as maxsize.
460         (xdr_peername): Use YPMAXPEER as maxsize.
461         (xdr_keydat): Use YPAXRECORD as maxsize.
462         (xdr_valdat): Use YPMAXRECORD as maxsize.
463
464 2012-10-01  Roland McGrath  <roland@hack.frob.com>
465
466         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
467
468         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
469         * csu/init-first.c: ... here.
470         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
471         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
472         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
473         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
474         * sysdeps/i386/init-first.c: File removed.
475         * sysdeps/sh/init-first.c: File removed.
476
477 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
478
479         [BZ #14645]
480         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
481         if x * y might underflow to zero and z is zero.
482         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
483         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
484         * math/libm-test.inc (min_subnorm_value): New variable.
485         (fma_test): Add more tests.
486         (fma_test_towardzero): Likewise.
487         (fma_test_downward): Likewise
488         (fma_test_upward): Likewise.
489         (initialize): Set min_subnorm_value.
490
491 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
492
493         [BZ #14638]
494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
495         0 + 0.
496         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
497         mode for addition resulting in exact zero.
498         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
499         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
500         exact 0 + 0.
501         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
502         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
503         * math/libm-test.inc (fma_test): Add more tests.
504         (fma_test_towardzero): New function.
505         (fma_test_downward): Likewise.
506         (fma_test_upward): Likewise.
507         (main): Call the new functions.
508
509 2012-09-28  David S. Miller  <davem@davemloft.net>
510
511         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
512
513 2012-09-28  Roland McGrath  <roland@hack.frob.com>
514
515         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
516         instead of SIGALRM.
517
518         * sysdeps/gnu/_G_config.h: Moved to ...
519         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
520         * sysdeps/mach/hurd/_G_config.h: Moved to ...
521         * sysdeps/generic/_G_config.h: ... here.
522
523         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
524
525         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
526
527         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
528         Conditionalize target on [libnss_test1.so-version].
529
530         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
531
532         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
533         (elfobjdir): Move out of conditionals.
534
535         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
536         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
537         (__nss_lookup_function): Conditionalize label remove_from_tree on
538         [!DO_STATIC_NSS || SHARED], matching its only use.
539
540 2012-09-28  David S. Miller  <davem@davemloft.net>
541
542         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
543         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
544         file.
545         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
546         sysdep_routines.
547         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
548         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
549         when HWCAP_SPARC_CRYPTO is present.
550
551 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
552
553         * io/tst-mknodat.c: Create a FIFO instead of a socket.
554
555 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
556
557         [BZ #6530]
558         * stdio-common/vfprintf.c (process_string_arg): Revert
559         2000-07-22 change.
560
561 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
562
563         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
564         for testcase.
565         * stdio-common/tst-sprintf.c: Include <locale.h>
566         (main): Test sprintf's handling of incomplete multibyte
567         characters.
568
569 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
570
571         * elf/dl-runtime.c (VERSYMIDX): Removed.
572         * elf/dl-version.c (VERSYMIDX): Likewise.
573         * elf/do-rel.h (VERSYMIDX): Likewise.
574         (VALIDX): Likewise.
575         * elf/dynamic-link.h (VERSYMIDX): Likewise.
576         * elf/rtld.c (VALIDX): Likewise.
577         (ADDRIDX): Likewise.
578         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
579         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
580         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
581         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
582         (VALIDX): Likewise.
583         (ADDRIDX): Likewise.
584
585 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
586
587         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
588
589 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
590
591         [BZ #11438]
592         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
593         to global scope.
594         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
595         addresses are in the same scope as 192.0.2/24.
596         * posix/gai.conf: Document new scope table defaults.
597
598 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
599
600         [BZ #5298]
601         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
602         for ftell.  Compute offsets from write pointers instead.
603         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
604
605 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
606
607         [BZ #14543]
608         * libio/Makefile (tests): New test case tst-fseek.
609         * libio/tst-fseek.c: New test case to verify that fseek/ftell
610         combination works in wide mode.
611         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
612         state when the external buffer state changes.
613
614 2012-09-27  David S. Miller  <davem@davemloft.net>
615
616         [BZ #14376]
617         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
618         pass reloc->r_addend in as the 'high' argument to
619         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
620
621         * sysdeps/sparc/fpu/libm-test-ulps: Update.
622
623 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
624
625         * rt/tst-aio2.c: Include <pthread.h>.
626         * rt/tst-aio3.c: Likewise.
627
628 2012-09-27  Steve Ellcey  <sellcey@mips.com>
629
630         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
631
632 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
633
634         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
635         contents on [SHARED].
636
637 2012-09-26  Marek Polacek  <polacek@redhat.com>
638
639         [BZ #14530]
640         [BZ #13741]
641         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
642         for C++ and GCC <4.3 as well as for non GCC compilers.
643
644 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
645
646         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
647
648 2012-09-25  Roland McGrath  <roland@hack.frob.com>
649
650         * Makefile.in (all, install): Declare with .PHONY.
651         Reported by Michael Hope <michael.hope@linaro.org>.
652
653 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
654
655         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
656         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
657         system header.
658         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
659         Likewise.
660         (sydep_routines): Add the new and the internal functions.
661         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
662         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
664         (GLIBC_2.17): Add the new function.
665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
666         (GLIBC_2.17): Likewise.
667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
668         (GLIBC_2.17): Likewise.
669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
670         (GLIBC_2.17): Likewise.
671         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
672
673 2012-09-25  Alan Modra  <amodra@gmail.com>
674
675         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
676         Add release barrier before setting once_control to say
677         initialisation is done.  Add hints on lwarx.  Use macro in
678         place of isync.
679         (clear_once_control): Add release barrier.
680
681 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
682
683         [BZ #13629]
684         * math/s_clog.c (__clog): Handle more values close to |z| = 1
685         specially.
686         * math/s_clog10.c (__clog10): Likewise.
687         * math/s_clog10f.c (__clog10f): Likewise.
688         * math/s_clog10l.c (__clog10l): Likewise.
689         * math/s_clogf.c (__clogf): Likewise.
690         * math/s_clogl.c (__clogl): Likewise.
691         * math/Makefile (libm-calls): Add x2y2m1.
692         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
693         (__x2y2m1): Likewise.
694         (__x2y2m1l): Likewise.
695         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
696         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
697         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
698         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
699         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
700         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
701         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
702         * sysdeps/i386/fpu/libm-test-ulps: Update.
703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
704
705         [BZ #14621]
706         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
707         int as type of variable DEPTH.
708         (glob): Use size_t instead of int as type of variables NEWCOUNT
709         and OLD_PATHC.
710
711 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
712
713         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
714         Add s_sincosf-sse2.
715         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
716         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
717         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
718         macros for using routine as __sincosf_ia32.
719         Use macro for function declaration and weak_alias.
720         * sysdeps/i386/fpu/libm-test-ulps: Update.
721
722         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
723         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
724
725         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
726         subnormal argument.
727         * math/s_cexpf.c (__cexpf): Likewise.
728         * math/s_csinf.c (__csinf): Likewise.
729         * math/s_csinhf.c (__csinhf): Likewise.
730         * math/s_ctanf.c (__ctanf): Likewise.
731         * math/s_ctanhf.c (__ctanhf): Likewise.
732         * math/s_ccosh.c (__ccoshf): Likewise.
733         * math/s_cexp.c (__cexpl): Likewise.
734         * math/s_csin.c (__csin): Likewise.
735         * math/s_csinh.c (__csinh): Likewise.
736         * math/s_ctan.c (__ctan): Likewise.
737         * math/s_ctanh.c (ctanh): Likewise.
738         * math/s_ccoshl.c (__ccoshl): Likewise.
739         * math/s_cexpl.c (__cexpl): Likewise.
740         * math/s_csinl.c (__csinl): Likewise.
741         * math/s_csinhl.c (__csinhl): Likewise.
742         * math/s_ctanl.c (__ctanl): Likewise.
743         * math/s_ctanhl.c (__ctanhl): Likewise.
744
745 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
746
747         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
748         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
749         (_IO_off_t): Define to __off_t, not _G_off_t.
750         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
751         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
752         (_IO_wint_t): Define to wint_t, not _G_wint_t.
753         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
754         type of __dummy and __dummy2 fields.
755         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
756         (_G_ssize_t): Likewise.
757         (_G_off_t): Likewise.
758         (_G_pid_t): Likewise.
759         (_G_uid_t): Likewise.
760         (_G_wchar_t): Likewise.
761         (_G_wint_t): Likewise.
762         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
763         (_G_ssize_t): Likewise.
764         (_G_off_t): Likewise.
765         (_G_pid_t): Likewise.
766         (_G_uid_t): Likewise.
767         (_G_wchar_t): Likewise.
768         (_G_wint_t): Likewise.
769         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
770         (_G_ssize_t): Likewise.
771         (_G_off_t): Likewise.
772         (_G_pid_t): Likewise.
773         (_G_uid_t): Likewise.
774         (_G_wchar_t): Likewise.
775         (_G_wint_t): Likewise.
776
777 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
778
779         * malloc/arena.c: Include malloc-sysdep.h.
780         (shrink_heap): Use check_may_shrink_heap to decide if madvise
781         is sufficient to shrink the heap or an unmap is needed.
782         * sysdeps/generic/malloc-sysdep.h: New file.  Define
783         new function check_may_shrink_heap.
784         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
785         new function check_may_shrink_heap.
786
787 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
788
789         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
790         comments.
791
792 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
793
794         * catgets/test-gencat.sh: Add "set -e".
795         * elf/tst-pathopt.sh: Likewise.
796         * grp/tst_fgetgrent.sh: Likewise.
797         * iconvdata/run-iconv-test.sh: Likewise.
798         * intl/tst-gettext.sh: Likewise.
799         * intl/tst-gettext2.sh: Likewise.
800         * intl/tst-gettext4.sh: Likewise.
801         * intl/tst-gettext6.sh: Likewise.
802         * intl/tst-translit.sh: Likewise.
803         * io/ftwtest-sh: Likewise.
804         * libio/test-freopen.sh: Likewise.
805         * malloc/tst-mtrace.sh: Likewise.
806         * posix/globtest.sh: Likewise.
807         * posix/tst-getconf.sh: Likewise.
808         * posix/wordexp-tst.sh: Likewise.
809         * stdio-common/tst-printf.sh: Likewise.
810         * stdio-common/tst-unbputc.sh: Likewise.
811         * stdlib/tst-fmtmsg.sh: Likewise.
812         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
813         * catgets/Makefile: Do not specify -e option when running
814         testsuite shell scripts.
815         * elf/Makefile: Likewise.
816         * grp/Makefile: Likewise.
817         * iconvdata/Makefile: Likewise.
818         * intl/Makefile: Likewise.
819         * io/Makefile: Likewise.
820         * libio/Makefile: Likewise.
821         * malloc/Makefile: Likewise.
822         * posix/Makefile: Likewise.
823         * stdio-common/Makefile: Likewise.
824         * stdlib/Makefile: Likewise.
825         * sysdeps/x86_64/Makefile: Likewise.
826
827         * io/ftwtest-sh: Add copyright header.
828         * posix/globtest.sh: Likewise.
829         * posix/tst-getconf.sh: Likewise.
830         * posix/wordexp-tst.sh: Likewise.
831         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
832
833 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
834
835         [BZ #13679]
836         * Makeconfig (+link): Defined as $(+link-static) if
837         $(build-shared) isn't yes.
838         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
839         isn't yes.
840         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
841
842         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
843
844         [BZ #14562]
845         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
846         new chunk size with MALLOC_ALIGN_MASK.
847
848 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
849
850         [BZ #5044]
851         * stdio-common/printf_fphex.c: Include <stdbool.h> and
852         <rounding-mode.h>.
853         (__printf_fphex): Determine rounding using get_rounding_mode and
854         round_away.
855         * stdio-common/tst-printf-round.c (struct hex_test): New
856         structure.
857         (hex_tests): New variable.
858         (test_hex_in_one_mode): New function.
859         (do_test): Also run tests for hex float output.
860
861 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
862
863         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
864         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
865         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
866         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
867         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
868         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
869         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
870         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
871
872 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
873
874         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
875         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
876         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
877         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
878
879 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
880
881         [BZ #14579]
882         * elf/rtld.c (dl_main): Limit the check for self loading to normal
883         mode only.
884         * elf/tst-rtld-load-self.sh: New test.
885         * elf/Makefile: Run it.
886
887 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
888
889         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
890         (tst-writev-ENV): Remove.
891         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
892
893 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
894
895         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
896
897 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
898
899         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
900         unconditional.
901         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
902         Likewise.
903         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
904         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
905         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
906         Likewise.
907
908 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
909
910         [BZ #14587]
911         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
912         * config.make.in (have-cpp-asm-debuginfo): Removed.
913         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
914         * configure: Regenerated.
915
916 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
917
918         [BZ #5044]
919         * stdio-common/printf_fp.c: Include <stdbool.h> and
920         <rounding-mode.h>.
921         (___printf_fp): Determine rounding using get_rounding_mode and
922         round_away.
923         * stdio-common/tst-printf-round.c: New file.
924         * stdio-common/Makefile (tests): Add tst-printf-round.
925         (link-libm): New variable.
926         ($(objpfx)tst-printf-round): Depend in $(link-libm).
927
928 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
929
930         [BZ #14576]
931         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
932         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
933         Likewise.
934         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
935         Likewise.
936
937 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
938
939         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
940         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
941         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
942         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
943
944 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
945
946         [BZ #14518]
947         * include/rounding-mode.h: New file.
948         * sysdeps/generic/get-rounding-mode.h: Likewise.
949         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
950         * stdlib/strtod_l.c: Include <rounding-mode.h>.
951         (MAX_VALUE): New macro.
952         (MIN_VALUE): Likewise.
953         (overflow_value): New function.
954         (underflow_value): Likewise.
955         (round_and_return): Use overflow_value and underflow_value to
956         determine return values in overflow and underflow cases.  Use
957         round_away to determine rounding depending on rounding mode.
958         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
959         determine return values in overflow and underflow cases.
960         * stdlib/tst-strtod-round.c: Include <fenv.h>.
961         (struct test_results): New structure.
962         (struct test): Use struct test_results to store expected results
963         for all rounding modes.
964         (TEST): Include expected results for all rounding modes.
965         (test_in_one_mode): New function.
966         (do_test): Use test_in_one_mode to compute and check results.
967         Check results for all rounding modes.
968         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
969         $(link-libm).
970
971 2012-12-09  Allan McRae  <allan@archlinux.org>
972
973         * sysdeps/i386/fpu/libm-test-ulps: Update
974
975 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
976
977         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
978         (_G_int32_t): Likewise.
979         (_G_uint16_t): Likewise.
980         (_G_uint32_t): Likewise.
981         (_G_HAVE_BOOL): Likewise.
982         (_G_HAVE_ATEXIT): Likewise.
983         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
984         (_G_HAVE_IO_FILE_OPEN): Likewise.
985         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
986         (_G_int32_t): Likewise.
987         (_G_uint16_t): Likewise.
988         (_G_uint32_t): Likewise.
989         (_G_HAVE_BOOL): Likewise.
990         (_G_HAVE_ATEXIT): Likewise.
991         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
992         (_G_HAVE_IO_FILE_OPEN): Likewise.
993         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
994         (_G_int32_t): Likewise.
995         (_G_uint16_t): Likewise.
996         (_G_uint32_t): Likewise.
997         (_G_HAVE_BOOL): Likewise.
998         (_G_HAVE_ATEXIT): Likewise.
999         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1000         (_G_HAVE_IO_FILE_OPEN): Likewise.
1001
1002 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1003
1004         * csu/libc-tls.c: Update copyright years.
1005
1006 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1007
1008         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1009         [!_G_USING_THUNKS]: Remove conditional code.
1010         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1011         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1012
1013         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1014         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1015         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1016         (_G_VTABLE_LABEL_PREFIX): Likewise.
1017         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1018         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1019         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1020         (_G_VTABLE_LABEL_PREFIX): Likewise.
1021         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1022         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1023         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1024         (_G_VTABLE_LABEL_PREFIX): Likewise.
1025         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1026
1027 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1028
1029         * libio/Makefile: Include ../Makeconfig before tests.
1030         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1031         only if $(build-shared) is yes.
1032
1033         * iconv/gconv_db.c: Update copyright years.
1034
1035 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1036
1037         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1038         unwind info if defined PIC. Fix special cases description.
1039         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1040
1041         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1042         DP_HI_MASK entry.
1043         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1044
1045 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1046
1047         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1048
1049         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1050         is NULL.
1051
1052         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1053         (LDLIBS-tst-chk4): This.
1054         (LDFLAGS-tst-chk5): Renamed to ...
1055         (LDLIBS-tst-chk5): This.
1056         (LDFLAGS-tst-chk6): Renamed to ...
1057         (LDLIBS-tst-chk6): This.
1058         (LDFLAGS-tst-lfschk4): Renamed to ...
1059         (LDLIBS-tst-lfschk4): This.
1060         (LDFLAGS-tst-lfschk5): Renamed to ...
1061         (LDLIBS-tst-lfschk5): This.
1062         (LDFLAGS-tst-lfschk6): Renamed to ...
1063         (LDLIBS-tst-lfschk6): This.
1064
1065         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1066         on $(common-objpfx)soversions.mk.
1067
1068 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1069
1070         [BZ #10014]
1071         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1072         example host name.
1073
1074 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1075
1076         * malloc/arena.c (arena_get_retry): New function that gets
1077         another arena for the caller to try its request on.
1078         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1079         current arena cannot fulfill the request.
1080         (__libc_memalign): Likewise.
1081         (__libc_memalign): Likewise.
1082         (__libc_pvalloc): Likewise.
1083         (__libc_calloc): Likewise.
1084
1085 2012-09-05  John Tobey  <john.tobey@gmail.com>
1086
1087         [BZ #13542]
1088         * manual/arith.texi (Operations on Complex): Fix description
1089         of carg branch cut.
1090
1091 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1092
1093         [BZ #10014]
1094         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1095         host name.
1096
1097         [BZ #10038]
1098         * manual/memory.texi (Memory): Make order of menu items match
1099         order of sections.
1100
1101 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1102
1103         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1104         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1105         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1106
1107 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1108
1109         * csu/libc-tls.c (static_dtv): Renamed to ...
1110         (_dl_static_dtv): This.  Make it global.
1111         (_dl_initial_dtv): Removed.
1112         (__libc_setup_tls): Updated.
1113         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1114         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1115         DL_INITIAL_DTV.
1116
1117 2012-09-06  Petr Machata  <pmachata@redhat.com>
1118
1119         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1120         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1121         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1122         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1123
1124 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1125
1126         [BZ #14545]
1127         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1128         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1129         freeing dtv[-1].
1130
1131 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1132
1133         [BZ #14544]
1134         * Makeconfig (link-static-before-libc): Replace $(+prector)
1135         with $(+prectorT).
1136         (link-static-after-libc): Replace $(+postctor) with
1137         $(+postctorT).
1138         (link-bounded): Replace $(+prector)/$(+postctor) with
1139         $(+prectorT)/$(+postctorT).
1140         (+prectorT): New macro.
1141         (+postctorT): Likewise.
1142
1143 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1144
1145         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1146         (round_str): Handle values above the maximum for IBM long double
1147         as inexact.
1148         * stdlib/tst-strtod-round.c (tests): Regenerated.
1149
1150 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1151
1152         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1153         assembler flag.
1154         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1155         zarch_nohighgprs around the zarch optimized routines.
1156         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1157         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1158         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1159         for zarch.
1160
1161 2012-09-05  David S. Miller  <davem@davemloft.net>
1162
1163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1164
1165         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1166         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1167         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1168         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1169         entries.
1170
1171 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1172
1173         * malloc/arena.c: Fold copyright years.
1174         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1175
1176 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1177
1178         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1179
1180 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1181
1182         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1183
1184 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1185
1186         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1187         change internal state upon failure.
1188
1189 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1190
1191         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1192         * malloc/memusage.c (mmap): Likewise.
1193         (mmap64, mremap): Likewise.  Adjust name in comment.
1194
1195 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1196
1197         * libio/fileops.c: Fix typos in comments.
1198         * libio/oldfileops.c: Likewise.
1199         * libio/wfileops.c: Likewise.
1200
1201 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1202
1203         [BZ #1349]
1204         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1205         (tst-malloc-usable-ENV): Set environment for test case.
1206         * malloc/hooks.c (malloc_check_get_size): New function to get
1207         requested size.
1208         * malloc/malloc.c (musable): Use malloc_check_get_size.
1209         * malloc/tst-malloc-usable.c: New test case.
1210
1211 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1212
1213         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1214
1215 2012-09-05  Allan McRae  <allan@archlinux.org>
1216
1217         [BZ #13966]
1218         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1219         determine header location.
1220         * configure: Regenerated.
1221
1222 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1223
1224         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1225         float format.
1226         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1227         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1228         format.
1229         (test): Regenerate.
1230
1231 2012-09-04  David S. Miller  <davem@davemloft.net>
1232
1233         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1234         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1235         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1236
1237 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1238
1239         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1240         failures.
1241
1242         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1243
1244 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1245
1246         [BZ #9914]
1247         * libio/iogetdelim.c: Include <limits.h>.
1248         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1249         + len + 1 would overflow.
1250
1251 2012-09-03  Andreas Jaeger  <aj@suse.de>
1252
1253         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1254         * sysdeps/i386/fpu/libm-test-ulps: Update.
1255
1256 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1257
1258         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1259         Add s_sinf-sse2, s_conf-sse2.
1260
1261         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1262         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1263         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1264         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1265
1266         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1267         for using routine as __sinf_ia32.
1268         Use macro for function declaration and weak_alias.
1269         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1270         for using routine as __cosf_ia32.
1271         Use macro for function declaration and weak_alias.
1272
1273         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1274         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1275
1276         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1277         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1279
1280         * math/libm-test.inc (cos_test): Add more test cases.
1281         (sin_test): Likewise.
1282         (sincos_test): Likewise.
1283
1284 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1285
1286         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1287         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1288         hidden.
1289         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1290
1291 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1292
1293         [BZ #14538]
1294         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1295         first element of the GOT.
1296         (elf_machine_load_address): Return the difference between
1297         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1298
1299 2012-09-01  Allan McRae  <allan@archlinux.org>
1300
1301         [BZ #13412]
1302         * configure.in (AWK): Require gawk version 3.0 or later.
1303         * configure: Regenerated.
1304
1305 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1306
1307         * sysdeps/unix/sysv/linux/kernel-features.h
1308         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1309         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1310         [__NR_clock_getres]: Make code unconditional.
1311         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1312         (clock_getcpuclockid): Remove code left unreachable by removal of
1313         conditionals.
1314         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1315         code unconditional.
1316         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1317         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1318         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1319         Make code unconditional.
1320         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1321         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1322         * sysdeps/unix/sysv/linux/clock_settime.c
1323         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1324         conditional code.
1325         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1326         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1327
1328 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1329
1330         [BZ #14476]
1331         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1332         scripts/test-installation.pl.
1333
1334         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1335         and $ld_so_version if it is set.
1336
1337 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1338
1339         [BZ #14516]
1340         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1341         failure if reading from procfs failed.
1342         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1343
1344 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1345
1346         * sysdeps/unix/sysv/linux/kernel-features.h
1347         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1348         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1349         Remove conditional code.
1350         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1351         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1352         Remove conditional code.
1353         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1354         * sysdeps/unix/sysv/linux/i386/fxstat.c
1355         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1356         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1357         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1358         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1359         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1360         * sysdeps/unix/sysv/linux/i386/lxstat.c
1361         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1362         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1363         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1364         Remove conditional code.
1365         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1366         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1367         Remove conditional code.
1368         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1369         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1370         <kernel-features.h>.
1371         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1372         Remove.
1373         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1374         Remove conditional code.
1375         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1376         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1377         Remove conditional.
1378
1379 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1380
1381         [BZ #5400]
1382         * NEWS: Add fixed bug number.
1383
1384 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1385
1386         [BZ #14519]
1387         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1388         underflowing exponent in case of negative sign.
1389         * stdlib/tst-strtod-round-data: Add more tests.
1390         * stdlib/tst-strtod-round.c (tests): Regenerated.
1391
1392         [BZ #3479]
1393         * stdlib/strtod_l.c (NDIG): Remove.
1394         (HEXNDIG): Likewise.
1395         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1396         smallest representable value.
1397         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1398         lie within an exact representation of 1/2 ulp of the result.
1399         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1400         unconditionally.
1401         (TENS_P9_IDX): Define unconditionally.
1402         (TENS_P9_SIZE): Likewise.
1403         (TENS_P10_IDX): Likewise.
1404         (TENS_P10_SIZE): Likewise.
1405         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1406         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1407         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1408         entries for 10^2^13 and 10^2^14.
1409         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1410         (TENS_P13_IDX): Define.
1411         (TENS_P13_SIZE): Likewise.
1412         (TENS_P14_IDX): Likewise.
1413         (TENS_P14_SIZE): Likewise.
1414         (_fpioconst_pow10): Change array size to
1415         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1416         unconditional.
1417         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1418         1024]: Add entries for 10^2^13 and 10^2^14.
1419         [LAST_POW10 > _LAST_POW10]: Remove #error.
1420         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1421         (_fpioconst_pow10): Change array size to
1422         FPIOCONST_POW10_ARRAY_SIZE.
1423         * stdlib/gen-fpioconst.c: New file.
1424         * stdlib/gen-tst-strtod-round.c: Likewise.
1425         * stdlib/tst-strtod-round-data: Likewise.
1426         * stdlib/tst-strtod-round.c: Likewise.
1427         * stdlib/Makefile (tests): Add tst-strtod-round.
1428
1429         [BZ #14459]
1430         * stdlib/strtod_l.c: Include <stdint.h>.
1431         (NDEBUG): Do not define.
1432         (round_and_return): Change EXPONENT parameter to type intmax_t.
1433         Rearrange calculations to avoid internal overflow possibilities.
1434         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1435         Rearrange calculations to avoid internal overflow possibilities.
1436         Assert that number fits inside MPNSIZE limbs.
1437         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1438         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1439         calculations and add assertions to avoid internal overflow
1440         possibilities.  Add casts to avoid signed/unsigned operations.
1441         * stdlib/tst-strtod-overflow.c: New file.
1442         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1443
1444 2012-08-25  Marek Polacek  <polacek@redhat.com>
1445
1446         * time/time.h: Fix some typos in comments.
1447
1448 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1449
1450         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1451         * posix/tst-rfc3484-2.c: Likewise.
1452         * posix/tst-rfc3484-3.c: Likewise.
1453
1454 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1455
1456         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1457         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1458
1459 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1460
1461         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1462         #include of fxstatat64.c.
1463
1464 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1465
1466         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1467         * shadow/getspent_r.c: Likewise.
1468         * shadow/getspnam.c: Likewise.
1469         * shadow/getspnam_r.c: Likewise.
1470         * gshadow/getsgent.c: Likewise.
1471         * gshadow/getsgent_r.c: Likewise.
1472         * gshadow/getsgnam.c: Likewise.
1473         * gshadow/getsgnam_r.c: Likewise.
1474         * inet/getnetbyad.c: Likewise.
1475         * inet/getnetbyad_r.c: Likewise.
1476         * inet/getnetbynm.c: Likewise.
1477         * inet/getnetbynm_r.c: Likewise.
1478         * inet/getnetent.c: Likewise.
1479         * inet/getnetent_r.c: Likewise.
1480         * inet/getproto.c: Likewise.
1481         * inet/getproto_r.c: Likewise.
1482         * inet/getprtent.c: Likewise.
1483         * inet/getprtent_r.c: Likewise.
1484         * inet/getprtname.c: Likewise.
1485         * inet/getprtname_r.c: Likewise.
1486         * inet/getrpcbyname.c: Likewise.
1487         * inet/getrpcbyname_r.c: Likewise.
1488         * inet/getrpcbynumber.c: Likewise.
1489         * inet/getrpcbynumber_r.c: Likewise.
1490         * inet/getrpcent.c: Likewise.
1491         * inet/getrpcent_r.c: Likewise.
1492         * inet/getaliasent.c: Likewise.
1493         * inet/getaliasent_r.c: Likewise.
1494         * inet/getaliasname.c: Likewise.
1495         * inet/getaliasname_r.c: Likewise.
1496         * nscd/getgrgid_r.c: Likewise.
1497         * nscd/getgrnam_r.c: Likewise.
1498         * nscd/gethstbyad_r.c: Likewise.
1499         * nscd/gethstbynm3_r.c: Likewise.
1500         * nscd/getpwnam_r.c: Likewise.
1501         * nscd/getpwuid_r.c: Likewise.
1502         * nscd/getsrvbynm_r.c: Likewise.
1503         * nscd/getsrvbypt_r.c: Likewise.
1504         * nscd/gai.c: Likewise.
1505
1506         * configure.in (build_nscd): New substituted variable, set
1507         by --disable-build-nscd and defaults to $use_nscd.
1508         * configure: Regenerated.
1509         * config.make.in (build-nscd): New substituted variable.
1510         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1511         Change conditional to require [$(build-nscd) = yes] as well.
1512         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1513
1514         [BZ# 13696]
1515         * configure.in (use_nscd): New substituted variable, set by
1516         --disable-nscd.  If enabled, define USE_NSCD.
1517         * configure: Regenerated.
1518         * config.h.in: Add USE_NSCD.
1519         * config.make.in (use-nscd): New substituted variable.
1520         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1521         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1522         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1523         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1524         (CFLAGS-getgrnam_r.c): Likewise.
1525         (CFLAGS-initgroups.c): Likewise.
1526         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1527         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1528         Variables removed.
1529         * inet/getnetgrent_r.c
1530         (nscd_setnetgrent): New function, broken out of ...
1531         (setnetgrent): ... here.  Call it.
1532         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1533         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1534         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1535         * nscd/Makefile (routines, aux): Move definitions after include of
1536         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1537         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1538         Conditionalize on [USE_NSCD].
1539         (is_nscd, nscd_init_cb): Likewise.
1540         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1541         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1542         * nss/nss_db/db-init.c: Likewise.
1543         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1544         [USE_NSCD].
1545         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1546         (make_request): Use it.
1547         (cache_valid_p): New function.
1548         (__check_pf): Use it.
1549         * NEWS: Add item for --disable-nscd.
1550
1551 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1552
1553         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1554         to support sed >= 4.2.1-20-ga9bf076.
1555         * configure: Regenerated.
1556
1557 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1558
1559         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1560         Conditionalize whole body on [IREL].
1561
1562 2012-08-22  Jeff Law <law@redhat.com>
1563
1564         [BZ #14505]
1565         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1566         if the family is PF_UNSPEC.
1567
1568 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1569
1570         * Makerules (lib-version): Rename from V.
1571         (install-lib-nosubdir): Change V to lib-version.
1572
1573 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1574
1575         [BZ #14252]
1576         * powerpc32/power6/wcschr.c: New file.
1577         * powerpc32/power6/wcscpy.c: New file.
1578         * powerpc32/power6/wcsrchr.c: New file.
1579         * powerpc64/power6/wcschr.c: New file.
1580         * powerpc64/power6/wcscpy.c: New file.
1581         * powerpc64/power6/wcsrchr.c: New file.
1582
1583 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1584
1585         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1586         (two_way_short_needle): Use it.
1587         * string/strstr.c (AVAILABLE1_USES_J): Define.
1588         * string/strcasestr.c: Likewise.
1589
1590         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1591         array references.
1592         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1593
1594         [BZ #11607]
1595         * NEWS: Add an entry.
1596         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1597         define their defaults.
1598         (two_way_short_needle): Detect end-of-string on-the-fly.
1599         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1600         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1601         * string/bug-strcasestr1.c: New test.
1602         * string/Makefile: Run it.
1603
1604 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1605
1606         [BZ #11607]
1607         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1608         the first character.
1609
1610 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1611
1612         * csu/elf-init.c (__libc_csu_irel): Function removed.
1613         * csu/libc-start.c (apply_irel): New function.
1614         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1615
1616 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1617
1618         * sysdeps/unix/sysv/linux/kernel-features.h
1619         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1620         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1621         <kernel-features.h>.
1622         [__NR_fadvise64_64]: Make code unconditional.
1623         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1624         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1625         !__NR_fadvise64_64)]: Likewise.
1626         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1627         !__NR_fadvise64_64))]: Likewise.
1628         [__NR_fadvise64]: Make code unconditional.
1629         [!__NR_fadvise64]: Remove conditional code.
1630         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1631         <kernel-features.h>.
1632         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1633         unconditional.
1634         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1635         conditional code.
1636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1637         not include <kernel-features.h>.
1638         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1639         unconditional.
1640         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1641         conditional code.
1642         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1643         include <kernel-features.h>.
1644         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1645         unconditional.
1646         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1647         conditional code.
1648
1649 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1650
1651         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1652         slight instruction rearrangements per scrollpipe analysis.
1653         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1654
1655 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1656
1657         * manual/syslog.texi (syslog; vsyslog, closelog):
1658         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1659         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1660
1661         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1662         DSOCAPS to match condition on defining it.
1663
1664 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1665
1666         * sysdeps/unix/sysv/linux/kernel-features.h
1667         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1669         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1670         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1672         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1673         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1675         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1676         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1677
1678         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1679         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1680
1681         * sysdeps/unix/sysv/linux/kernel-features.h
1682         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1683         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1684         unconditional.
1685         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1686         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1687         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1688         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1689         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1690         Make code unconditional.
1691         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1692         (__mmap64) [!__NR_mmap2]: Likewise.
1693         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1694         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1695         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1696         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1697         [__NR_mmap2]: Make code unconditional.
1698         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1699         (__mmap64) [!__NR_mmap2]: Likewise.
1700
1701 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1702
1703         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1704
1705 2012-08-18  Andreas Jaeger  <aj@suse.de>
1706
1707         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1708
1709 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1710
1711         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1712         * include/unistd.h (__have_sock_cloexec): Likewise.
1713         (__have_pipe2): Likewise.
1714         (__have_dup3): Likewise.
1715
1716 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1717
1718         [BZ #9685]
1719         * include/unistd.h (__have_pipe2): Change define into an extern int.
1720         (__have_dup3): Likewise.
1721         * socket/have_sock_cloexec.c: Include fcntl.h.
1722         (__have_pipe2): New variable.
1723         (__have_dup3): Likewise.
1724
1725 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1726
1727         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1728
1729 2012-08-17  Marek Polacek  <polacek@redhat.com>
1730
1731         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1732         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1733
1734 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1735
1736         * configure.in: Add AC_SUBST for sysheaders.
1737         * configure: Regenerated.
1738         * config.make.in (sysheaders): New substituted variable.
1739
1740         * sysdeps/unix/mkfifo.c: Moved ...
1741         * sysdeps/posix/mkfifo.c: ... here.
1742         * sysdeps/unix/mkfifoat.c: Moved ...
1743         * sysdeps/posix/mkfifoat.c: ... here.
1744
1745         * sysdeps/unix/utime.c: Moved ...
1746         * sysdeps/posix/utime.c: ... here.
1747
1748         * sysdeps/unix/time.c: Moved ...
1749         * sysdeps/posix/time.c: ... here.
1750         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1751         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1752
1753         * sysdeps/unix/nice.c: Moved ...
1754         * sysdeps/posix/nice.c: ... here.
1755
1756         * sysdeps/unix/alarm.c: Moved ...
1757         * sysdeps/posix/alarm.c: ... here.
1758
1759         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1760
1761 2012-08-17  Jeff Law <law@redhat.com>
1762
1763         * intl/Makefile (codeset_mo): New variable.
1764         ($(codeset_mo)): New target.
1765         (tst-codeset.out): Depend on that.  Remove explicit rule.
1766         (tst-gettext3.out, tst-gettext5.out): Likewise.
1767         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1768         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1769         * intl/tst-codeset.sh: Remove.
1770         * intl/tst-gettext3.sh: Likewise.
1771         * intl/tst-gettext5.sh: Likewise.
1772
1773 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1774
1775         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1776         * sysdeps/unix/syscalls.list: ... here.
1777
1778         * sysdeps/posix/getaddrinfo.c
1779         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1780         (gaiconf_init, gaiconf_reload): Use them.
1781         [!_STATBUF_ST_NSEC]
1782         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1783         Define using time_t rather than struct timespec.
1784
1785         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1786         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1787         Macros removed.
1788         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1789         [!NO_THREADS].
1790         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1791         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1792         Likewise.
1793
1794         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1795         __libc_cleanup_push argument.
1796
1797         * bits/param.h: New file.
1798         * misc/sys/param.h: New file.
1799         * include/sys/param.h: New file.
1800         * misc/Makefile (headers): Add bits/param.h.
1801         * sysdeps/generic/sys/param.h: File removed.
1802         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1803         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1804         * sysdeps/mach/hurd/bits/param.h: New file.
1805         * sysdeps/mach/hurd/sys/param.h: New file.
1806
1807         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1808         last change.
1809
1810         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1811         [_IO_MTSAFE_IO].
1812         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1813         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1814         New macros.
1815
1816         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1817         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1818         rather than -D_IO_MTSAFE_IO conditionally.
1819         * stdio-common/Makefile (CPPFLAGS): Likewise.
1820         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1821         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1822         Use $(libio-mtsafe).
1823         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1824         of -D_IO_MTSAFE_IO.
1825         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1826         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1827         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1828         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1829         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1830         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1831         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1832         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1833         (CFLAGS-fread_u_chk.c): Likewise.
1834         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1835         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1836         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1837         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1838         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1839         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1840         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1841         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1842         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1843
1844         * libio/Makefile: Test [$(libc-reentrant) = yes]
1845         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1846
1847         * Makeconfig
1848         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1849         * sysdeps/pthread/configure: File removed.
1850         * sysdeps/pthread/Makeconfig: New file.
1851         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1852         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1853
1854 2012-08-16  Gary Benson  <gbenson@redhat.com>
1855
1856         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1857         unmapping the first object in a namespace.
1858
1859 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1860
1861         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1862         (__internal_setnetgrent): ... this.  Add internal_function to
1863         definition.  Add libc_hidden_def.
1864         (setnetgrent): Update caller.
1865         (internal_endnetgrent): Renamed to ...
1866         (__internal_endnetgrent): ... this.  Add internal_function to
1867         definition.  Add libc_hidden_def.
1868         (endnetgrent): Update caller.
1869         (internal_getnetgrent_r): Renamed to ...
1870         (__internal_getnetgrent_r): ... this.  Add internal_function to
1871         definition.  Add libc_hidden_def.
1872         (__getnetgrent_r): Update caller.
1873         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1874
1875 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1876
1877         * stdlib/longlong.h: Update from GCC.
1878
1879 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1880
1881         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1882         on _QL, which is set by umul_ppmm but never used.
1883         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1884         variables, which are set by GMP macros but never used.
1885         * stdio-common/_itowa.c (_itowa): Likewise.
1886         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1887         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1888
1889 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1890
1891         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1892         struct La_sh_regs is not constant.
1893         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1894         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1895         and struct La_sparc64_regs are not constant.
1896
1897 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1898
1899         * sysdeps/unix/sysv/linux/kernel-features.h
1900         (__ASSUME_POSIX_TIMERS): Remove.
1901         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1902         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1903         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1904         Make code unconditional.
1905         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1906         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1907         Make code unconditional.
1908         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1909         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1910         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1911         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1912         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1913         Make code unconditional.
1914         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1915         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1916         (__libc_missing_posix_timers): Remove.
1917
1918 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1919
1920         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1921         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1922
1923         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1924
1925         * elf/dl-sym.c: Include <stdlib.h>.
1926
1927         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1928         constants, which avoids warnings in 32-bit builds.
1929
1930         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1931         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1932
1933         * misc/lseek.c: File moved to ...
1934         * io/lseek.c: ... here.
1935
1936         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1937
1938         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1939         shifting LEN more than 31 bits at once.
1940
1941 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1942
1943         [BZ #14195]
1944         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1945         segmentation fault for a case of two empty input strings.
1946         * string/test-strncasecmp.c (check1): Renamed to...
1947         (bz12205): ...this.
1948         (bz14195): Add new testcase for two empty input strings and N > 0.
1949         (test_main): Call new testcase, adapt for renamed function.
1950
1951 2012-08-15  Andreas Jaeger  <aj@suse.de>
1952
1953         [BZ #14090]
1954         * crypt/md5test2.c: New test, based on test supplied by Serge
1955         Belyshev <belyshev@depni.sinp.msu.ru>.
1956         * crypt/Makefile (xtests): Add md5test-giant..
1957         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1958
1959 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1960
1961         [BZ #14090]
1962         * crypt/md5.c (md5_process_block): Don't assume the buffer
1963         length is less than 2**32.
1964         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1965         length is less than 2**64.
1966
1967 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1968
1969         * string/str-two-way.h: Include <sys/param.h>.
1970         (MAX): Macro removed.
1971
1972         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1973         Move #define and #undef of memmove to just before and after
1974         including <string.h>.
1975
1976         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1977         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1978         and after including <string.h>.  Move declarations of
1979         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1980         to before #include "string/memmove.c".
1981
1982         * include/dirent.h: Declare __getdirentries.
1983
1984         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1985         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1986
1987 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1988
1989         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1990         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1991         * sysdeps/i386/configure: Regenerated.
1992         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1993         STABS_CURRENT_FILE, and STABS_FUN.
1994         (END): Remove call to STABS_FUN_END.
1995         (STABS_CURRENT_FILE1): Delete.
1996         (STABS_CURRENT_FILE): Likewise.
1997         (STABS_FUN): Likewise.
1998         (STABS_FUN_END): Likewise.
1999         (STABS_FUN2): Likewise.
2000         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2001         * sysdeps/x86_64/configure: Regenerated.
2002
2003 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2004
2005         * elf/dl-open.c: Include <atomic.h>.
2006         * elf/dl-lookup.c: Likewise.
2007
2008 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2009
2010         * sysdeps/unix/sysv/linux/kernel-features.h
2011         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2012         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2013         unconditionally.
2014         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2015         unconditionally.
2016         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2017         condition on __ASSUME_CLONE_THREAD_FLAGS.
2018
2019 2012-08-14  Andreas Jaeger  <aj@suse.de>
2020
2021         * sysdeps/i386/fpu/libm-test-ulps: Update.
2022
2023 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2024
2025         * include/atomic.h (atomic_exchange_and_add): Split into ...
2026         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2027         New atomic macros.
2028
2029 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2030
2031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2032
2033 2012-08-13  Jeff Law <law@redhat.com>
2034
2035         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2036         null byte in the output string.
2037
2038 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2039
2040         * sysdeps/unix/sysv/linux/kernel-features.h
2041         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2042         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2043         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2044         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2045         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2046         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2047         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2048
2049 2012-08-09  Jeff Law <law@redhat.com>
2050
2051         [BZ #13939]
2052         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2053         When avoid_arena is set, don't retry in the that arena.  Pick the
2054         next one, whatever it might be.
2055         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2056         (arena_lock): Pass in new parameter to arena_get2.
2057         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2058         arena_get2.
2059         (__libc_malloc): Unify retrying after main arena failure with
2060         __libc_memalign version.
2061         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2062
2063 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2064
2065         [BZ #14166]
2066         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2067         to __redirect_strstr.
2068         (__strstr_sse42): Use typeof __redirect_strstr.
2069         (__strstr_ia32): Likewise.
2070         (__libc_strstr): New prototype.
2071         (strstr): Renamed to ...
2072         (__libc_strstr): This.
2073         (strstr): New strong alias of __libc_strstr.
2074         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2075         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2076         __redirect_time.
2077         Include <time.h>.
2078         (__libc_time): New prototype.
2079         (time_ifunc): Replace time with __libc_time.
2080         (time): New strong alias and hidden definition of __libc_time.
2081         (__GI_time): Remove strong alias.
2082         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2083         Include <stddef.h>.
2084         (memmove): Redefined to __redirect_memmove.
2085         (__memmove_sse2): Use typeof __redirect_memmove.
2086         (__memmove_ssse3): Likewise.
2087         (__memmove_ssse3_back): Likewise.
2088         (__libc_memmove): New prototype.
2089         (memmove): Renamed to ...
2090         (__libc_memmove): This.
2091         (memmove): New strong alias of __libc_memmove.
2092
2093 2012-08-08  Mark Salter  <msalter@redhat.com>
2094
2095         * elf/elf.h
2096         (R_MN10300_TLS_GD): Define.
2097         (R_MN10300_TLS_LD): Likewise.
2098         (R_MN10300_TLS_LDO): Likewise.
2099         (R_MN10300_TLS_GOTIE): Likewise.
2100         (R_MN10300_TLS_IE): Likewise.
2101         (R_MN10300_TLS_LE): Likewise.
2102         (R_MN10300_TLS_DTPMOD): Likewise.
2103         (R_MN10300_TLS_DTPOFF): Likewise.
2104         (R_MN10300_TLS_TPOFF): Likewise.
2105         (R_MN10300_SYM_DIFF): Likewise.
2106         (R_MN10300_ALIGN): Likewise.
2107         (R_MN10300_NUM): Update.
2108
2109 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2110
2111         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2112         Remove.
2113
2114 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2115
2116         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2117
2118         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2119         sysdeps/unix -> sysdeps/posix move.
2120         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2121
2122 2012-08-07      Allan McRae     <allan@archlinux.org>
2123
2124         [BZ #14303]
2125         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2126         (SUNOS_CPP): Likewise.
2127         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2128         not found.
2129         (open_input): Call CPP using execvp.
2130
2131 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2132
2133         * sysdeps/unix/sysv/linux/kernel-features.h
2134         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2135         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2136         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2137         (__ASSUME_WAITID_SYSCALL): Likewise.
2138         * sysdeps/unix/sysv/linux/dl-execstack.c
2139         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2140         code unconditional.
2141         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2142         conditional code.
2143         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2144         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2145         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2146         code.
2147         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2148         unconditional.
2149         [__ASSUME_WAITID_SYSCALL]: Likewise.
2150         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2151
2152 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2153
2154         * sysdeps/unix/closedir.c: Renamed to ...
2155         * sysdeps/posix/closedir.c: ... here.
2156         * sysdeps/unix/dirfd.c: Renamed to ...
2157         * sysdeps/posix/dirfd.c: ... here.
2158         * sysdeps/unix/dirstream.h: Renamed to ...
2159         * sysdeps/posix/dirstream.h: ... here.
2160         * sysdeps/unix/fdopendir.c: Renamed to ...
2161         * sysdeps/posix/fdopendir.c: ... here.
2162         * sysdeps/unix/opendir.c: Renamed to ...
2163         * sysdeps/posix/opendir.c: ... here.
2164         * sysdeps/unix/readdir.c: Renamed to ...
2165         * sysdeps/posix/readdir.c: ... here.
2166         * sysdeps/unix/readdir_r.c: Renamed to ...
2167         * sysdeps/posix/readdir_r.c: ... here.
2168         * sysdeps/unix/rewinddir.c: Renamed to ...
2169         * sysdeps/posix/rewinddir.c: ... here.
2170         * sysdeps/unix/seekdir.c: Renamed to ...
2171         * sysdeps/posix/seekdir.c: ... here.
2172         * sysdeps/unix/telldir.c: Renamed to ...
2173         * sysdeps/posix/telldir.c: ... here.
2174         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2175         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2176         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2177         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2178
2179         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2180         * bits/fcntl.h: ... here.
2181
2182         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2183         not 0.
2184         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2185         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2186         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2187         (struct flock): Move l_start, l_len to the beginning.
2188         Use __pid_t for l_pid.
2189         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2190         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2191         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2192         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2193         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2194         [__USE_LARGEFILE64] (struct flock64): New type.
2195         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2196
2197         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2198         * bits/dirent.h: ... here.
2199
2200         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2201         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2202
2203 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2204
2205         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2206         Change from 2.6.0 to 2.6.16.
2207         * sysdeps/unix/sysv/linux/configure: Regenerated.
2208         * sysdeps/unix/sysv/linux/kernel-features.h
2209         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2210         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2211         version.
2212         (__ASSUME_UTIMES): Likewise.
2213         (__ASSUME_CLONE_STOPPED): Remove.
2214         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2215         architectures, not kernel version.
2216         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2217         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2218         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2219         (__ASSUME_WAITID_SYSCALL): Likewise.
2220         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2221         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2222         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2223         refer to older versions.
2224
2225 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2226
2227         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2228         Define alphasort64 as an alias.
2229         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2230         Define versionsort64 as an alias.
2231         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2232         Define scandir64 as an alias.
2233         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2234         Define scandirat64 as an alias.
2235         * dirent/alphasort64.c (alphasort64):
2236         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2237         * dirent/versionsort64.c: Likewise.
2238         * dirent/scandir64.c: Likewise.
2239         * dirent/scandirat64.c: Likewise.
2240         * sysdeps/wordsize-64/alphasort.c: File removed.
2241         * sysdeps/wordsize-64/alphasort64.c: File removed.
2242         * sysdeps/wordsize-64/scandir.c: File removed.
2243         * sysdeps/wordsize-64/scandir64.c: File removed.
2244         * sysdeps/wordsize-64/scandirat.c: File removed.
2245         * sysdeps/wordsize-64/scandirat64.c: File removed.
2246         * sysdeps/wordsize-64/versionsort.c: File removed.
2247         * sysdeps/wordsize-64/versionsort64.c: File removed.
2248         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2249         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2250         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2251         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2252         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2253         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2254         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2255         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2256
2257         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2258         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2259         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2260         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2261         [defined __arch64__ || defined __sparcv9]
2262         (__INO_T_MATCHES_INO64_T): New macro.
2263         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2264         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2265         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2266         * sysdeps/unix/sysv/linux/bits/dirent.h
2267         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2268         (_DIRENT_MATCHES_DIRENT64): New macro.
2269
2270         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2271         Define lockf64 as an alias.
2272         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2273         Define fseeko64 as an alias.
2274         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2275         Define ftello64 as an alias.
2276         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2277         Define _IO_fgetpos64 and fgetpos64 as aliases.
2278         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2279         Define _IO_fsetpos64 and fsetpos64 as aliases.
2280         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2281         Conditionalize body on this.
2282         * libio/fseeko64.c: Likewise.
2283         * libio/ftello64.c: Likewise.
2284         * libio/iofgetpos64.c: Likewise.
2285         * libio/iofsetpos64.c: Likewise.
2286         * sysdeps/wordsize-64/lockf.c: File removed.
2287         * sysdeps/wordsize-64/lockf64.c: File removed.
2288         * sysdeps/wordsize-64/fseeko.c: File removed.
2289         * sysdeps/wordsize-64/fseeko64.c: File removed.
2290         * sysdeps/wordsize-64/ftello.c: File removed.
2291         * sysdeps/wordsize-64/ftello64.c: File removed.
2292         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2293         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2294         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2295         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2296         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2297         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2298         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2299         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2300         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2301         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2302         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2303         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2304         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2305         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2306
2307         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2308         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2309         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2310         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2311         [defined __arch64__ || defined __sparcv9]
2312         (__OFF_T_MATCHES_OFF64_T): New macro.
2313         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2314         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2315         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2316         (__OFF_T_MATCHES_OFF64_T): New macro.
2317
2318 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2319
2320         * stdlib/secure-getenv.c (__secure_getenv): Replace
2321         GLIBC_2_16 with GLIBC_2_17.
2322
2323 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2324
2325         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2326         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2327
2328 2012-08-03  David S. Miller  <davem@davemloft.net>
2329
2330         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2331
2332 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2333
2334         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2335         Remove.
2336         (__ASSUME_CORRECT_SI_PID): Likewise.
2337         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2338         (__ASSUME_TMPFS_NAME): Likewise.
2339         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2340         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2341         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2342         (HAVE_AUX_SECURE): Make definition unconditional.
2343         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2344         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2345
2346 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2347
2348         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2349         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2350         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2351         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2352         __eloop_threshold instead of SYMLOOP_MAX.
2353
2354         * sysdeps/generic/eloop-threshold.h: New file.
2355         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2356         of MAXSYMLINKS.
2357         * elf/chroot_canon.c (chroot_canon): Likewise.
2358
2359 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2360
2361         [BZ #13717]
2362         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2363         Change to 2.6.0 everywhere.
2364         * sysdeps/unix/sysv/linux/configure: Regenerated.
2365         * sysdeps/unix/sysv/linux/kernel-features.h
2366         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2367         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2368         kernel versions.
2369         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2370         (__ASSUME_FUTEX_REQUEUE): Remove.
2371         (__ASSUME_STATFS64): Define unconditionally.
2372         (__ASSUME_AT_SECURE): Likewise.
2373         (__ASSUME_CORRECT_SI_PID): Likewise.
2374         (__ASSUME_TGKILL): Define without depending on kernel version for
2375         i386.
2376         (__ASSUME_UTIMES): Likewise.
2377         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2378         kernel version.
2379         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2380         (__ASSUME_TMPFS_NAME): Likewise.
2381         * README: Update reference to Linux kernel versions.
2382
2383 2012-08-02  Marek Polacek  <polacek@redhat.com>
2384
2385         [BZ# 14150]
2386         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2387         libc_cv_asm_type_prefix with %.
2388         * configure: Regenerated.
2389         * include/libc-symbols.h: Remove comment about
2390         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2391         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2392         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2393         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2394         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2395         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2396         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2397         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2398         * elf/tst-unique2mod1.c: Likewise.
2399         * elf/tst-unique1mod2.c: Likewise.
2400         * elf/tst-unique1mod1.c: Likewise.
2401         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2402         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2403         Replace ASM_TYPE_DIRECTIVE with .type.
2404         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2405         * sysdeps/i386/sysdep.h: Likewise.
2406         * sysdeps/x86_64/sysdep.h: Likewise.
2407         * sysdeps/sh/sysdep.h: Likewise.
2408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2409         Do not define ASM_TYPE_DIRECTIVE.
2410         * sysdeps/powerpc/sysdep.h: Likewise.
2411         * sysdeps/powerpc/powerpc32/sysdep.h:
2412         Replace ASM_TYPE_DIRECTIVE with .type.
2413         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2414         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2415         * sysdeps/i386/fpu/e_powf.S: Likewise.
2416         * sysdeps/i386/fpu/e_expl.S: Likewise.
2417         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2418         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2419         * sysdeps/i386/fpu/e_pow.S: Likewise.
2420         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2421         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2422         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2423         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2424         * sysdeps/i386/fpu/e_log2.S: Likewise.
2425         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2426         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2427         * sysdeps/i386/fpu/e_powl.S: Likewise.
2428         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2429         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2430         * sysdeps/i386/fpu/e_logl.S: Likewise.
2431         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2432         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2433         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2434         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2435         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2436         * sysdeps/i386/fpu/e_log.S: Likewise.
2437         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2438         * sysdeps/i386/fpu/e_logf.S: Likewise.
2439         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2440         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2441         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2442         * sysdeps/i386/fpu/e_log10.S: Likewise.
2443         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2444         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2445         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2446         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2447         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2448         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2449         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2450         * sysdeps/i386/i686/strtok.S: Likewise.
2451         * sysdeps/i386/i386-mcount.S: Likewise.
2452         * sysdeps/i386/strtok.S: Likewise.
2453         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2454         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2455         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2456         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2457         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2458         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2459         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2460         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2461         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2462         * sysdeps/x86_64/_mcount.S: Likewise.
2463         * sysdeps/x86_64/strtok.S: Likewise.
2464         * sysdeps/sh/_mcount.S: Likewise.
2465
2466 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2467
2468         * libio/iofopen.c: Include <fcntl.h>.
2469         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2470         (_IO_fopen64, fopen64): Define as aliases.
2471         * libio/iofopen64.c: Include <fcntl.h>.
2472         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2473         Conditionalize body on this.
2474         * sysdeps/wordsize-64/iofopen.c: File removed.
2475         * sysdeps/wordsize-64/iofopen64.c: File removed.
2476
2477 2012-08-01  Marek Polacek  <polacek@redhat.com>
2478
2479         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2480         Use dlfcn directly instead of a variable.
2481         (binfmt-subdir): Do not define.
2482         (dlfcn): Likewise.
2483
2484 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2485
2486         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2487         Remove all definitions.
2488         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2489         <kernel-features.h>.
2490         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2491         (miss_F_GETOWN_EX): Remove all definitions.
2492         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2493         macro definition.
2494         [!__ASSUME_FCNTL64]: Remove conditional code.
2495         [__ASSUME_FCNTL64]: Make code unconditional.
2496         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2497         <kernel-features.h>.
2498         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2499         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2500         (lockf64) [__NR_fcntl64]: Make code unconditional.
2501         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2502
2503         * sysdeps/unix/sysv/linux/kernel-features.h
2504         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2505         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2506         Make code unconditional.
2507         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2508         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2510         [__NR_vfork]: Make code unconditional.
2511         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2512         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2514         [__NR_vfork]: Make code unconditional.
2515         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2516         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2517
2518 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2519
2520         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2521         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2522
2523         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2524         Define mkstemp64 as an alias.
2525         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2526         Define mkstemps64 as an alias.
2527         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2528         Define mkostemp64 as an alias.
2529         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2530         Define mkostemps64 as an alias.
2531         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2532         Conditionalize body on this.
2533         * misc/mkostemp64.c: Likewise.
2534         * misc/mkostemps64.c: Likewise.
2535         * misc/mkstemps64.c: Likewise.
2536         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2537         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2538         * sysdeps/wordsize-64/mkostemp.c: File removed.
2539         * sysdeps/wordsize-64/mkstemp.c: File removed.
2540         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2541         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2542         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2543         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2544
2545         [BZ #14138]
2546         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2547         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2548         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2549         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2550
2551         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2552         compat_symbol macros from <shlib-compat.h> rather than the underlying
2553         default_symbol_version and symbol_version macros, so that DEFAULT
2554         lines in shlib-versions are respected.
2555         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2556
2557 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2558
2559         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2560         Declare with warn_unused_result.
2561         (setgid, setregid, setegid, setresgid): Likewise.
2562         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2563         Likewise.
2564         * WUR-REPORT: Remove set*id functions.
2565
2566 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2567
2568         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2569
2570 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2571
2572         * include/sys/socket.h (__libc_accept, __libc_accept4):
2573         Add attribute_hidden.
2574         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2575
2576         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2577         use of PTR_MANGLE.
2578         * inet/getnetgrent_r.c (setup): Likewise.
2579
2580         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2581
2582 2012-07-31  David S. Miller  <davem@davemloft.net>
2583
2584         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2585
2586 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2587
2588         [BZ #13629]
2589         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2590         value between 1.0 and 2.0 and smaller part has absolute value less
2591         than 1.0.
2592         * math/s_clog10.c (__clog10): Likewise.
2593         * math/s_clog10f.c (__clog10f): Likewise.
2594         * math/s_clog10l.c (__clog10l): Likewise.
2595         * math/s_clogf.c (__clogf): Likewise.
2596         * math/s_clogl.c (__clogl): Likewise.
2597         * math/libm-test.inc (clog_test): Add more tests.
2598         (clog10_test): Likewise.
2599         * sysdeps/i386/fpu/libm-test-ulps: Update.
2600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2601
2602 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2603
2604         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2605         Exit with zero in case no suitable GID is found, and write a
2606         message to standard error.
2607
2608 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2609
2610         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2611         rather than to 1.
2612         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2613         (MAXPATHLEN): Removed.
2614         (NOGROUP, NODEV): New macros.
2615         (setbit, clrbit, isset, isclr): New macros.
2616         (howmany, roundup, powerof2): New macros.
2617         (DEV_BSIZE): New macro.
2618
2619         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2620         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2621
2622         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2623         definition on [!__NO_LONG_DOUBLE_MATH].
2624
2625         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2626         PTR_MANGLE and PTR_DEMANGLE.
2627
2628         * socket/accept4.c (accept4): Rename to __libc_accept4.
2629         Define accept4 as a weak alias.
2630
2631         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2632         on [_DIRENT_HAVE_D_TYPE].
2633         * io/ftw.c (ftw_dir): Likewise.
2634
2635         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2636
2637         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2638
2639         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2640         Use the BSD numbers rather than the arbitrary ones we had.
2641         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2642         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2643         (SIGXCPU, SIGXFSZ): New macros.
2644         (_NSIG): Now 32.
2645
2646         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2647         initializer on [_LIBC_REENTRANT].
2648
2649         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2650         definitions inside [_POSIX_MAPPED_FILES].
2651
2652         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2653
2654         * dirent/opendir.c: Include <fcntl.h>.
2655
2656         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2657         (__libc_getspecific): Likewise.
2658         (__libc_key_create): Likewise.
2659
2660         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2661         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2662         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2663         (tmpfile64): Define as alias.
2664         * sysdeps/wordsize-64/tmpfile.c: File removed.
2665         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2666         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2667         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2668
2669         * stdio-common/vfscanf.c: Include <stdbool.h>.
2670         * nss/makedb.c: Likewise.
2671         * stdio-common/_i18n_number.h: Likewise.
2672         * argp/argp-help.c: Likewise.
2673         * posix/wordexp.c: Likewise.
2674         * sysdeps/posix/spawni.c: Likewise.
2675         * nss/nss_files/files-initgroups.c: Likewise.
2676         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2677         * nss/nss_files/files-initgroups.c: Likewise.
2678         * nss/nss_db/db-netgrp.c: Likewise.
2679         * nss/nss_db/db-initgroups.c: Likewise.
2680         * io/fchmodat.c: Include <sys/stat.h>.
2681
2682         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2683         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2684
2685         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2686         [HAVE_MMAP].
2687
2688         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2689         Add multiple inclusion protection.
2690
2691 2012-07-27  David S. Miller  <davem@davemloft.net>
2692
2693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2694
2695 2012-07-27  Gary Benson  <gbenson@redhat.com>
2696
2697         [BZ #14298]
2698         * elf/rtld.c: Include <stap-probe.h>.
2699         (dl_main): Added static probes "init_start" and "init_complete".
2700         * elf/dl-load.c: Include <stap-probe.h>.
2701         (lose): Take new parameter "nsid".
2702         Added static probe "map_failed".
2703         (_dl_map_object_from_fd): Pass namespace id to lose.
2704         Added static probe "map_start".
2705         (open_verify): Pass namespace id to lose.
2706         * elf/dl-open.c: Include <stap-probe.h>.
2707         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2708         and "reloc_complete".
2709         * elf/dl-close.c: Include <stap-probe.h>.
2710         (_dl_close_worker): Added static probes "unmap_start" and
2711         "unmap_complete".
2712         * elf/rtld-debugger-interface.txt: New file documenting the above.
2713
2714 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2715
2716         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2717         rather than a string variable.
2718         * sunrpc/rpc_main.c (h_output): Likewise.
2719         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2720
2721 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2722
2723         * inet/check_native.c: New file.
2724
2725 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2726
2727         [BZ #13629]
2728         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2729         if larger part has absolute value 1.0.
2730         * math/s_clog10.c (__clog10): Likewise.
2731         * math/s_clog10f.c (__clog10f): Likewise.
2732         * math/s_clog10l.c (__clog10l): Likewise.
2733         * math/s_clogf.c (__clogf): Likewise.
2734         * math/s_clogl.c (__clogl): Likewise.
2735         * math/libm-test.inc (clog_test): Add more tests.
2736         (clog10_test): Likewise.
2737         * sysdeps/i386/fpu/libm-test-ulps: Update.
2738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2739
2740         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2741         (pltexit): Likewise.
2742         (La_regs): Likewise.
2743         (La_retval): Likewise.
2744         (int_retval): Likewise.
2745         Update #error for removed macros to refer only to definitions in
2746         tst-audit.h.
2747         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2748         macro.
2749         (pltexit): Likewise.
2750         (La_regs): Likewise.
2751         (La_retval): Likewise.
2752         (int_retval): Likewise.
2753         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2754         macro.
2755         (pltexit): Likewise.
2756         (La_regs): Likewise.
2757         (La_retval): Likewise.
2758         (int_retval): Likewise.
2759         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2760         macro.
2761         (pltexit): Likewise.
2762         (La_regs): Likewise.
2763         (La_retval): Likewise.
2764         (int_retval): Likewise.
2765         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2766         macro.
2767         (pltexit): Likewise.
2768         (La_regs): Likewise.
2769         (La_retval): Likewise.
2770         (int_retval): Likewise.
2771         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2772         macro.
2773         (pltexit): Likewise.
2774         (La_regs): Likewise.
2775         (La_retval): Likewise.
2776         (int_retval): Likewise.
2777         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2778         macro.
2779         (pltexit): Likewise.
2780         (La_regs): Likewise.
2781         (La_retval): Likewise.
2782         (int_retval): Likewise.
2783         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2784         macro definitions in tst-audit.h.
2785         * sysdeps/i386/tst-audit.h: New file.
2786         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2787         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2788         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2789         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2790         * sysdeps/sh/tst-audit.h: Likewise.
2791         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2792         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2793         * sysdeps/x86_64/tst-audit.h: Likewise.
2794
2795 2012-07-26  Andreas Jaeger  <aj@suse.de>
2796
2797         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2798         ptrace.
2799
2800         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2801         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2802         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2803         PTRACE_O_MASK.
2804         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2805         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2806         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2807
2808         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2809         value.
2810
2811         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2812         _sigsys.
2813         (si_call_addr, si_syscall, si_arch): Define new macro.
2814         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2815         _sigsys.
2816         (si_call_addr, si_syscall, si_arch): Define new marcro.
2817         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2818         _sigsys.
2819         (si_call_addr, si_syscall, si_arch): Define new macro.
2820         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2821         _sigsys.
2822         (si_call_addr, si_syscall, si_arch): Define new macro.
2823
2824 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2825
2826         [BZ #13717]
2827         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2828         Change to 2.4.21 where previously 2.4.1.
2829         * sysdeps/unix/sysv/linux/configure: Regenerated.
2830         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2831         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2832         Linux kernel version.
2833         (__ASSUME_STD_AUXV): Remove.
2834         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2835         kernel version.
2836         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2837         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2838         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2839         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2840         (__ASSUME_NETLINK_SUPPORT): Likewise.
2841         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2842         (__no_netlink_support): Remove conditional definition.
2843         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2844         Remove.
2845         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2846         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2847         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2848         (if_nameindex_ioctl): Remove.
2849         (if_nameindex_netlink): Do not handle __no_netlink_support.
2850         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2851         code.
2852         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2853         Remove conditional code.
2854         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2855         code.
2856         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2857         unconditional.
2858         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2859         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2860         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2861         Remove.
2862         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2863         [!__ASSUME_STD_AUXV]: Remove conditional code.
2864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2865         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2866         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2868         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2869         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2870         code.
2871         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2873         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2874         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2875         conditional code.
2876         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2878         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2879         code.
2880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2881         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2882         conditional code.
2883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2884         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2885         code unconditional.
2886         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2887         conditional code.
2888         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2889         unconditional.
2890         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2891         conditional code.
2892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2893         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2894         unconditional.
2895         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2896         conditional code.
2897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2898         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2899         code unconditional.
2900         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2901         conditional code.
2902         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2903         unconditional.
2904         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2905         conditional code.
2906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2907         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2908         code unconditional.
2909         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2910         conditional code.
2911         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2912         unconditional.
2913         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2914         conditional code.
2915
2916 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2917
2918         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2919         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2920         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2921         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2922         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2923         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2924         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2925         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2926         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2927         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2928         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2929         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2930         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2931         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2932         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2933         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2934         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2935         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2936         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2937         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2938         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2939         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2940         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2941
2942 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2943
2944         * Versions.def: Add GLIBC_2.17.
2945         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2946         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2947         Introduce __libc_secure_getenv.
2948         * stdlib/Versions (2.17): Add secure_getenv
2949         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2950         * stdlib/secure-getenv.c: Rename __secure_getenv to
2951         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2952         symbol __secure_getenv for GLIBC_2.0.
2953         * stdlib/tst-secure-getenv.c: New.
2954         * stdlib/Makefile (tests): Add testcase.
2955         * manual/startup.texi (Environment Access): Document
2956         secure_getenv.
2957         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2958         __libc_secure_getenv.
2959         * inet/ruserpass.c (ruserpass): Likewise.
2960         * malloc/mtrace.c (mtrace): Likewise.
2961         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2962         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2963         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2964         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2965         HAVE_SECURE_GETENV.
2966         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2967         __secure_getenv to __libc_secure_getenv.
2968         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2970         Likewise.
2971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2972         Likewise.
2973         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2974         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2975         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2976         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2978         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2980
2981 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2982
2983         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2984         (struct La_i86_retval): Likewise.
2985         (struct La_x86_64_regs): Likewise.
2986         (struct La_x86_64_retval): Likewise.
2987         (struct La_x32_regs): Likewise.
2988         (struct La_x32_retval): Likewise.
2989         (struct La_ppc32_regs): Likewise.
2990         (struct La_ppc32_retval): Likewise.
2991         (struct La_ppc64_regs): Likewise.
2992         (struct La_ppc64_retval): Likewise.
2993         (struct La_sh_regs): Likewise.
2994         (struct La_sh_retval): Likewise.
2995         (struct La_s390_32_regs): Likewise.
2996         (struct La_s390_32_retval): Likewise.
2997         (struct La_s390_64_regs): Likewise.
2998         (struct La_s390_64_retval): Likewise.
2999         (struct La_sparc32_regs): Likewise.
3000         (struct La_sparc32_retval): Likewise.
3001         (struct La_sparc64_regs): Likewise.
3002         (struct La_sparc64_retval): Likewise.
3003         (struct audit_ifaces): Remove architecture-specific pltenter and
3004         pltexit members.
3005         * sysdeps/i386/ldsodefs.h: New file.
3006         * sysdeps/powerpc/ldsodefs.h: Likewise.
3007         * sysdeps/s390/ldsodefs.h: Likewise.
3008         * sysdeps/sh/ldsodefs.h: Likewise.
3009         * sysdeps/sparc/ldsodefs.h: Likewise.
3010         * sysdeps/x86_64/ldsodefs.h: Likewise.
3011
3012 2012-07-25  Marek Polacek  <polacek@redhat.com>
3013
3014         [BZ #6808]
3015         * math/libm-test.inc (yn_test): Add another test.
3016         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3017         to ERANGE when the result is +-Inf.
3018         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3019         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3020         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3021         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3022
3023 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3024
3025         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3026         equal to 0.
3027         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3028         clock_t.
3029         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3030
3031 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3032
3033         * configure.in <sysdeps resolving>: Correct printing
3034         Implies_before.
3035         * configure: Regenerate.
3036
3037 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3038
3039         * math/w_ilogb.c: Include <limits.h>.
3040         * math/w_ilogbl.c: Likewise.
3041
3042 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3043
3044         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3045         va_copy.  Document allowing for unavailable va_copy only as
3046         pre-C99 compatibility.
3047         * manual/string.texi (Copying and Concatenation): Use va_copy
3048         instead of __va_copy in concat example.
3049
3050 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3051
3052         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3053         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3054         it if not null.
3055
3056         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3057         with O_NOLINK passed to __file_name_lookup.
3058
3059         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3060         with O_NOLINK passed to __file_name_lookup.
3061
3062         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3063         negative N or less than NGIDS.
3064
3065         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3066         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3067         enough.  Use memcpy instead of strncpy.
3068
3069 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3070
3071         * elf/Makefile (check-data): Remove.
3072         (localplt.data): New vpath directive.
3073         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3074         instead of $(check-data).
3075         * scripts/data/localplt-generic.data: Move to ...
3076         * sysdeps/generic/localplt.data: ... here.
3077         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3078         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3079         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3081         ... here.
3082         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3084         ... here.
3085         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3087         ... here.
3088         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3090         ... here.
3091         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3092         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3093         ... here.
3094         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3095         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3096         ... here.
3097
3098 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3099
3100         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3101         PPC32 and PPC64 files.
3102         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3103         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3104
3105 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3106
3107         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3108         __makecontext_ret to ...
3109         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3110         ... here and call exit if uc_link is NULL.  New file.
3111         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3112         __makecontext_ret.S.
3113         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3114         __makecontext_ret to ...
3115         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3116         ... here and call exit if uc_link is NULL.  New file.
3117         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3118         __makecontext_ret.S.
3119
3120 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3121
3122         * elf/elf.h (R_390_IRELATIVE): New definition.
3123         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3124         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3125         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3126         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3127         (elf_machine_lazy_rel): Likewise.
3128         * sysdeps/s390/dl-irel.h: New file.
3129         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3130         * sysdeps/s390/s390-64/memset.S: New asm code.
3131         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3132         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3133         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3134         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3135         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3136         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3137         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3138         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3139         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3140         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3141         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3142         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3143         * sysdeps/s390/s390-32/memset.S: New asm code.
3144         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3145
3146 2012-07-17  Marek Polacek  <polacek@redhat.com>
3147
3148         [BZ #14349]
3149         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3150         * sysdeps/s390/s390-64/configure.in: Likewise.
3151         * sysdeps/sparc/configure.in: Likewise.
3152         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3153         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3154         * sysdeps/i386/configure.in: Likewise.
3155         * sysdeps/x86_64/configure.in: Likewise.
3156         * sysdeps/sh/configure.in: Likewise.
3157         * sysdeps/s390/s390-32/configure: Regenerated.
3158         * sysdeps/s390/s390-64/configure: Likewise.
3159         * sysdeps/x86_64/configure: Likewise.
3160         * sysdeps/sh/configure: Likewise.
3161         * sysdeps/powerpc/powerpc64/configure: Likewise.
3162         * sysdeps/powerpc/powerpc32/configure: Likewise.
3163         * sysdeps/sparc/configure: Likwise.
3164         * sysdeps/i386/configure: Likewise.
3165
3166         * elf/dl-open.c: Comment fixes.
3167
3168 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3169
3170         * Makefile [CXX] (check-data): Remove.
3171         [CXX] (c++-types.data): New vpath directive.
3172         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3173         vpath.  Do not allow for C++ type data being missing.
3174         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3175         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3176         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3177         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3178         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3179         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3180         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3182         ... here.
3183         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3185         ... here.
3186         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3188         ... here.
3189         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3190         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3191         ... here.
3192         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3193         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3194         ... here.
3195         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3196         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3197         ... here.
3198         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3199         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3200         ... here.
3201         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3203
3204         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3205         definitions to architecture-specific files.
3206         (TLS_IE): Likewise.
3207         (TLS_LD): Likewise.
3208         (TLS_GD): Likewise.
3209         * sysdeps/i386/tls-macros.h: New file.
3210         * sysdeps/powerpc/tls-macros.h: Likewise.
3211         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3212         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3213         * sysdeps/sh/tls-macros.h: Likewise.
3214         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3215         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3216         * sysdeps/x86_64/tls-macros.h: Likewise.
3217
3218 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3219
3220         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3221         zero value for regular exit case.
3222
3223         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3224         (__start_context): Preserve zero value for regular exit case.
3225
3226 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3227             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3228
3229         * manual/setjmp.texi (setcontext): Clarify normal process
3230         termination when uc_link is the null pointer.
3231         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3232         exit call.
3233
3234 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3235
3236         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3237         preprocessor.  Test for each exception mask separately.
3238
3239 2012-07-16  Andreas Jaeger  <aj@suse.de>
3240
3241         * po/ru.po: Update from translation team.
3242
3243 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3244
3245         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3246         equal to 0.
3247         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3248         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3249         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3250         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3251         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3252
3253 2012-07-13  Andreas Jaeger  <aj@suse.de>
3254
3255         * po/fr.po: Update from translation team.
3256
3257 2012-07-12  Marek Polacek  <polacek@redhat.com>
3258
3259         [BZ #14173]
3260         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3261         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3262         loop condition.
3263
3264 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3265
3266         [BZ #13717]
3267         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3268         Change to 2.4.1 where previously 2.4.0.
3269         * sysdeps/unix/sysv/linux/configure: Regenerated.
3270         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3271         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3272         version.
3273         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3274         (__ASSUME_AT_CLKTCK): Remove.
3275         (__ASSUME_AT_PAGESIZE): Likewise.
3276         (__ASSUME_AT_XID): Likewise.
3277         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3278         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3279         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3280         unconditionally.
3281         (HAVE_AUX_PAGESIZE): Likewise.
3282         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3283         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3284         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3285
3286 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3287
3288         [BZ #14307]
3289         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3290         the temporary buffer used to invoke __gethostbyname2_r,
3291         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3292         host_data / struct gaih_addrtuple.
3293         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3294         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3295         header file nss/nsswitch.h.
3296         * nss/nsswitch.h (global scope): Add definition of implementation
3297         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3298         resolv/nss_dns/dns-host.c).
3299
3300 2012-07-11  Andreas Jaeger  <aj@suse.de>
3301
3302         * po/fr.po: Update from translation team.
3303
3304         * po/sv.po: Update from translation team
3305         * po/fr.po: Another update from translation team.
3306
3307 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3308
3309         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3310         for subnormals or multiply small sinh result by itself.
3311         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3313
3314 2012-07-11  David S. Miller  <davem@davemloft.net>
3315
3316         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3317
3318 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3319
3320         [BZ #14347]
3321         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3322         (INTERNAL_MARK): Shift it here.
3323
3324 2012-07-10  Marek Polacek  <polacek@redhat.com>
3325
3326         [BZ #14151]
3327         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3328         libc_cv_asm_global_directive with .globl.
3329         * configure: Regenerated.
3330         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3331         with .globl.
3332         * sysdeps/i386/configure: Regenerated.
3333         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3334         with .globl.
3335         * sysdeps/x86_64/configure: Regenerated.
3336         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3337         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3338         * elf/tst-unique2mod2.c: Likewise.
3339         * elf/tst-unique2mod1.c: Likewise.
3340         * elf/tst-unique1mod2.c: Likewise.
3341         * elf/tst-unique1mod1.c: Likewise.
3342         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3343         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3344         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3345         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3346         * sysdeps/mach/sysdep.h: Likewise.
3347         * sysdeps/i386/sysdep.h: Likewise.
3348         * sysdeps/i386/i386-mcount.S: Likewise.
3349         * sysdeps/x86_64/_mcount.S: Likewise.
3350         * sysdeps/x86_64/sysdep.h: Likewise.
3351         * sysdeps/sh/_mcount.S: Likewise.
3352         * sysdeps/sh/sysdep.h: Likewise.
3353         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3354         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3355         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3356         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3357         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3358         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3359         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3360         * locale/localeinfo.h: Likewise.
3361         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3362         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3363
3364 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3365
3366         [BZ #14336]
3367         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3368         system".
3369         * manual/message.texi (The Uniforum approach): Likewise.
3370         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3371         (glibc iconv Implementation): Likewise.
3372
3373 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3374
3375         [BZ #14337]
3376         * math/s_clog.c (__clog): Avoid scaling a value down where that
3377         could result in underflow.
3378         * math/s_clog10.c (__clog10): Likewise.
3379         * math/s_clog10f.c (__clog10f): Likewise.
3380         * math/s_clog10l.c (__clog10l): Likewise.
3381         * math/s_clogf.c (__clogf): Likewise.
3382         * math/s_clogl.c (__clogl): Likewise.
3383         * math/libm-test.inc (clog_test): Add more tests.
3384         (clog10_test): Likewise.
3385         * sysdeps/i386/fpu/libm-test-ulps: Update.
3386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3387
3388 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3389
3390         [BZ #14283]
3391         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3392         by 7 not 8 to examine high bit of fractional part.
3393
3394         [BZ #14042]
3395         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3396         for call to __mcount_internal.
3397         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3398         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3399         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3400
3401 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3402
3403         [BZ #14154]
3404         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3405         approximation for values within 0x1p-13f of an odd multiple of
3406         pi/4.
3407         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3408         exception.  Add more tests.
3409         * sysdeps/i386/fpu/libm-test-ulps: Update.
3410
3411         [BZ #6778]
3412         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3413         inputs and return -1 for them.  Do not check for +Inf in case not
3414         reachable for +Inf.
3415         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3416         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3417         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3418         and return -1 for them.  Do not check for +Inf in case not
3419         reachable for +Inf.
3420         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3421         define.
3422         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3423         and return -1 for them.  Do not check for +Inf in case not
3424         reachable for +Inf.
3425         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3426         spurious underflow.
3427         * sysdeps/i386/fpu/libm-test-ulps: Update.
3428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3429
3430 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3431
3432         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3433
3434 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3435
3436         [BZ #14157]
3437         [BZ #14331]
3438         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3439         could result in spurious underflow.  Scale down values above
3440         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3441         * math/s_csqrtf.c (__csqrtf): Likewise.
3442         * math/s_csqrtl.c (__csqrtl): Likewise.
3443         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3444         spurious underflow.
3445         * sysdeps/i386/fpu/libm-test-ulps: Update.
3446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3447
3448 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3449
3450         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3451         xopen-msg.sed.
3452         * catgets/xopen-msg.awk: New file.
3453         * catgets/xopen-msg.sed: Removed.
3454
3455         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3456         po2text.sed.
3457         * intl/po2test.awk: New file.
3458         * intl/po2test.sed: Removed.
3459
3460 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3461
3462         [BZ #14328]
3463         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3464         or multiply small sinh result by itself.
3465         * math/s_ctanf.c (__ctanf): Likewise.
3466         * math/s_ctanh.c (__ctanh): Likewise.
3467         * math/s_ctanhf.c (__ctanhf): Likewise.
3468         * math/s_ctanhl.c (__ctanhl): Likewise.
3469         * math/s_ctanl.c (__ctanl): Likewise.
3470         * math/libm-test.inc (ctan_test_tonearest): New function.
3471         (ctan_test_towardzero): Likewise.
3472         (ctan_test_downward): Likewise.
3473         (ctan_test_upward): Likewise.
3474         (ctanh_test_tonearest): Likewise.
3475         (ctanh_test_towardzero): Likewise.
3476         (ctanh_test_downward): Likewise.
3477         (ctanh_test_upward): Likewise.
3478         (main): Call these new functions.
3479         * sysdeps/i386/fpu/libm-test-ulps: Update.
3480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3481
3482 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3483
3484         * .gitignore: Delete /ports entry.
3485
3486 2012-07-03  Andreas Jaeger  <aj@suse.de>
3487
3488         * po/bg.po: Update from translation team.
3489         * po/cs.po: Likewise.
3490         * po/de.po: Likewise.
3491         * po/hr.po: Likewise.
3492         * po/nl.pl: Likewise.
3493         * po/pl.po: Likewise.
3494         * po/vi.po: Likewise.
3495
3496 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3497
3498         * Makeconfig [!+link] (+link-before-libc): New variable.
3499         [!+link] (+link-after-libc): Likewise.
3500         [!+link] (+link-tests): Likewise.
3501         [!+link] (+link): Define in terms of $(+link-before-libc) and
3502         $(+link-after-libc).
3503         [!+link-static] (+link-static-before-libc): New variable.
3504         [!+link-static] (+link-static-after-libc): Likewise.
3505         [!+link-static] (+link-static-tests): Likewise.
3506         [!+link-static] (+link-static): Define in terms of
3507         $(+link-static-before-libc) and $(+link-static-after-libc).
3508         [build-shared] (link-libc-before-gnulib): New variable.
3509         [build-shared] (link-libc-tests): Likewise.
3510         [build-shared] (link-libc): Define in terms of
3511         $(link-libc-before-gnulib).
3512         [!build-shared] (link-libc-tests): New variable.
3513         (link-libc-static-tests): New variable.
3514         [!gnulib] (gnulib-arch): New variable.
3515         [!gnulib] (gnulib-tests): Likewise.
3516         [!gnulib] (static-gnulib-arch): Likewise.
3517         [!gnulib] (static-gnulib-tests): Likewise.
3518         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3519         Define with "=" instead of ":=".
3520         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3521         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3522         * Rules (binaries-all-notests): New variable.
3523         (binaries-all-tests): Likewise.
3524         (binaries-static-notests): Likewise.
3525         (binaries-static-tests): Likewise.
3526         (binaries-all): Define using $(binaries-all-notests) and
3527         $(binaries-all-tests).
3528         (binaries-static): Define using $(binaries-static-notests) and
3529         $(binaries-static-tests).
3530         (binaries-shared-tests): New variable.
3531         (binaries-shared-notests): Likewise.
3532         (binaries-shared): Remove variable.
3533         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3534         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3535         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3536         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3537         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3538         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3539         * elf/Makefile (sln-modules): New variable.
3540         (extra-objs): Add $(sln-modules:=.o).
3541         (ldconfig-modules): Add static-stubs.
3542         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3543         * elf/static-stubs.c: New file.
3544
3545         [BZ #14283]
3546         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3547         by 7 not 8 to examine high bit of fractional part.  Use volatile
3548         variables when splitting into final array of floats if
3549         __FLT_EVAL_METHOD__ != 0.
3550         * math/libm-test.inc (cos_test): Add another test.
3551         (sin_test): Likewise.
3552         * sysdeps/i386/fpu/libm-test-ulps: Update.
3553
3554         [BZ #14273]
3555         * math/libm-test.inc (cosh_test): Add more tests.
3556
3557         * version.h (RELEASE): Set to "development".
3558         (VERSION): Set to "2.16.90".
3559
3560 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3561
3562         * NEWS: Update copyright. Remove last-updated date.
3563         Mention math library bug fixes and timezone data changes.
3564         * README: Mention GNU/Hurd, x32, and HPPA support status.
3565
3566 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3567
3568         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3569
3570 2012-06-27  Andreas Jaeger  <aj@suse.de>
3571
3572         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3573
3574 2012-06-25  Andreas Jaeger  <aj@suse.de>
3575
3576         * sysdeps/s390/fpu/libm-test-ulps: Update.
3577
3578 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3579             Thomas Schwinge  <thomas@codesourcery.com>
3580
3581         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3582         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3583         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3584         fanotify_mark.
3585
3586 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3587
3588         * sysdeps/mach/start.c: Remove file.
3589         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3590         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3591         * sysdeps/sh/init-first.c: Likewise.
3592
3593         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3594         registers for frame unwinding purposes, add CFI directives.
3595         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3596         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3597         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3598         Likewise.
3599
3600         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3601         __fortify_fail returning.
3602         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3603
3604         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3605         sysdeps/sh/____longjmp_chk.S.
3606         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3607         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3608         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3609         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3610
3611         * sysdeps/sh/abort-instr.h: New file.
3612         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3613         process in case exit returns.
3614
3615         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3616         initialize the GOT register before use.
3617
3618         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3619         calculation of ARGC > 4.
3620
3621         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3622         meaningful names to some local labels.
3623
3624 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3625             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3626
3627         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3628         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3629         (__arch_compare_and_exchange_val_16_acq): Likewise.
3630         (__arch_compare_and_exchange_val_32_acq): Likewise.
3631         (atomic_exchange_and_add): Fix gUSA sequence.
3632         (atomic_add): Likewise.
3633         (atomic_add_negative): Likewise.
3634         (atomic_add_zero): Likewise.
3635         (atomic_bit_test_set): Likewise.
3636
3637 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3638
3639         [BZ #13579]
3640         * include/link.h (struct link_map): Add l_free_initfini.
3641         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3642         l_initfini.
3643         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3644         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3645         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3646         set.
3647
3648 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3649
3650         * configure.in: Use AC_LANG_SOURCE.
3651         * configure: Regenerate.
3652
3653 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3654
3655         * configure.in (libc_cv_localstatedir): New substituted variable.
3656         * configure: Regenerated.
3657         * config.make.in (localstatedir): New variable, substituted from
3658         libc_cv_localstatedir.
3659         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3660         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3661         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3662         * sysdeps/gnu/configure: Regenerated.
3663
3664 2012-06-21  Jeff Law  <law@redhat.com>
3665
3666         [BZ #14277]
3667         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3668         free.  Simplify list management for _LIBC case.
3669
3670 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3671
3672         [BZ #14273]
3673         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3674         Clear sign bit of 64-bit integer value before comparing against
3675         overflow value.
3676
3677         * sysdeps/mach/configure: Regenerated.
3678
3679 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3680
3681         [BZ #14278]
3682         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3683
3684 2012-06-21  Jeff Law  <law@redhat.com>
3685
3686         [BZ #13882]
3687         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3688         uint16_t for elements in the "seen" array to avoid char overflows.
3689         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3690         * elf/dl-open.c (dl_open_worker): Likewise.
3691
3692 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3693
3694         * scripts/list-sources.sh: Scan PORTS for translations.
3695         * po/libc.pot: Regenerated.
3696
3697 2012-06-21  Andreas Jaeger  <aj@suse.de>
3698
3699         [BZ #12194]
3700         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3701         warning.
3702         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3703         * bits/byteswap-16.h (__bswap_16): Likewise.
3704         * bits/byteswap.h (__bswap_constant_16): Likewise.
3705
3706 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3707
3708         [BZ #14117]
3709         * sysdeps/i386/fpu_control.h: Removed.
3710         * sysdeps/x86_64/fpu_control.h: Moved to ...
3711         * sysdeps/x86/fpu_control.h: Here.
3712
3713         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3714         (_FPU_SETCW): Likewise.
3715
3716 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3717
3718         [BZ #14117]
3719         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3720         * sysdeps/x86/fpu/bits/mathinline.h: This.
3721         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3722
3723         [BZ #14050]
3724         [BZ #14117]
3725         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3726         functions if __x86_64__ is defined.
3727
3728 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3729
3730         * string/endian.h: Add !__ASSEMBLER__ condition for including
3731         conversion interfaces.
3732
3733 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3734
3735         [BZ #14241]
3736         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3737         of ABS(x) in calculating zero to negative powers other than odd
3738         integers.
3739         * math/libm-test.inc (pow_test): Add more tests.
3740
3741 2012-06-15  Andreas Jaeger  <aj@suse.de>
3742
3743         * manual/contrib.texi (Contributors): Update entry of Liubov
3744         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3745         Machado Filho.
3746
3747 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3748
3749         * string/string.h: Add __wur to GNU version of strerror_r.
3750
3751 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3752
3753         [BZ #14229]
3754         * string/Makefile (tests): Add tst-strtok_r.
3755         * string/tst-strtok_r.c: New file.
3756         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3757         RAX_LP/RDX_LP on SAVE_PTR.
3758
3759 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3760
3761         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3762
3763 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3764
3765         * libm_test.inc (csqrt_test): Allow more spurious underflow
3766         exceptions.
3767         (j0_test): Likewise.
3768         (j1_test): Likewise.
3769         (y0_test): Likewise.
3770         (y1_test): Likewise.
3771
3772 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3773
3774         * po/Makefile (libc.pot): Use UTF-8 charset.
3775
3776 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3777
3778         [BZ #14210]
3779         Suppress sign-conversion warning from FD_SET.
3780         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3781         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3782         not unsigned long int.
3783         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3784
3785 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3786
3787         [BZ #14050]
3788         [BZ #14117]
3789         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3790         __extern_always_inline instead of __extern_inline.
3791         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3792         (__signbit): Likewise.
3793         (__signbitl): Support C++ namespace.
3794         (lrintf): New inline function.
3795         (lrint): Likewise.
3796         (llrintf): Likewise.
3797         (llrint): Likewise.
3798         (fmaxf): Likewise.
3799         (fmax): Likewise.
3800         (fminf): Likewise.
3801         (fmin): Likewise.
3802         (rint): Likewise.
3803         (rintf): Likewise.
3804         (ceil): Likewise.
3805         (ceilf): Likewise.
3806         (floor): Likewise.
3807         (floorf): Likewise.
3808         (nearbyint): Likewise.
3809         (nearbyintf): Likewise.
3810
3811 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3812
3813         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3814         non-default versions.
3815
3816 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3817
3818         [BZ #14218]
3819         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3820
3821 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3822
3823         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3824         (FE_UPWARD, FE_DOWNWARD): Don't define.
3825         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3826         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3827
3828         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3829         reading it.
3830         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3831         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3832
3833 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3834
3835         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3836         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3837         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3838         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3839
3840 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3841
3842         [BZ #14117]
3843         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3844         * sysdeps/i386/fpu/Implies: New file.
3845         * sysdeps/x86_64/fpu/Implies: Likewise.
3846         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3847         * sysdeps/x86/fpu/bits/fenv.h: This.
3848
3849         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3850         __SSE_MATH__.
3851
3852 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3853
3854         [BZ #14134]
3855         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3856         character 0xffff that matches the last element of the
3857         conversion table.
3858
3859 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3860
3861         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3862         fmodl commit.
3863
3864 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3865
3866         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3867         values higher than 25.6283.
3868
3869 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3870
3871         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3872         subnormal exponent extraction and add some __builtin_expect.
3873         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3874         Fix for subnormal mantissa calculation.
3875
3876 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3877
3878         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3879         cpu2 is -1 and errno is not ENOSYS.
3880
3881 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3882
3883         [BZ #14117]
3884         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3885         * sysdeps/x86/bits/string.h: This.
3886         * sysdeps/x86_64/bits/string.h: Removed.
3887
3888         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3889         if not compiling for x86-64, but compiling for >= i486.
3890
3891         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3892         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3893
3894         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3895         New macro from Linux kernel 3.4.0.
3896         (FP_XSTATE_MAGIC2): Likewise.
3897         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3898         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3899         (struct _fpx_sw_bytes): New struct.
3900         (struct _xsave_hdr): Likewise.
3901         (struct _ymmh_state): Likewise.
3902         (struct _xstate): Likewise.
3903
3904         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3905         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3906         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3907         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3908         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3909         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3910
3911         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3912         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3913         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3914         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3915         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3916         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3917
3918 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3919
3920         [BZ #13743]
3921         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3922         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3923         (sysdep_headers): Include sys/platform/ppc.h.
3924         * sysdeps/powerpc/test-gettimebase.c: Test for
3925         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3926         * manual/Makefile (appendices): Include platform.texi.
3927         * manual/contrib.texi (Contributors): Update @node pointers.
3928         * manual/maint.texi (Maintenance): Likewise.
3929         (Platform): New node.
3930         * manual/platform.texi: New file.  Document the new features.
3931
3932 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3933             Jakub Jelinek  <jakub@redhat.com>
3934
3935         [BZ #14188]
3936         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3937         where __builtin_expect is unavailable.
3938
3939 2012-06-03  David S. Miller  <davem@davemloft.net>
3940
3941         * stdlib/longlong.h: Updated from GCC.
3942
3943 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3944
3945         [BZ #14042]
3946         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3947         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3948         __mcount_internal.
3949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3950         (GLIBC_2.16): Likewise.
3951
3952 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3953
3954         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3955
3956 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3957
3958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3959         (default-abi): New variable.
3960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3961         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3962         variable.
3963         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3964         Likewise.
3965         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3966         Likewise.
3967         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3968         Likewise.
3969
3970         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3971         definition.  Document in comment.
3972
3973 2012-06-01  David S. Miller  <davem@davemloft.net>
3974
3975         * stdlib/longlong.h: Updated from GCC.
3976
3977 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3978
3979         [BZ #14117]
3980         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3981         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3982         sys/debugreg.h sys/io.h here.
3983         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3984         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3985         sys/io.h.
3986         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3987         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3988         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3989         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3990         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3991         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3992
3993         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3994         Define only if __x86_64__ is defined.
3995
3996 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3997
3998         [BZ #14048]
3999         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4000         Use int64_t for variable i.
4001         * math/libm-test.inc (fmod_test): Add more tests.
4002
4003         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4004         z computation is not scheduled after fetestexcept.
4005         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4006         Use math_force_eval instead of asm to ensure calculation scheduled
4007         before exception test.
4008         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4009         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4010
4011 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4012
4013         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4014         computation is not scheduled after fetestexcept.
4015
4016 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4017
4018         [BZ #14117]
4019         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4020         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4021
4022 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4023
4024         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4025         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4026
4027 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4028
4029         [BZ #14117]
4030         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4031         <bits/wordsize.h>.
4032         (__WCHAR_MIN): Support __WORDSIZE == 64.
4033         (__WCHAR_MAX): Likewise.
4034
4035         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4036         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4037
4038         [BZ #14183]
4039         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4040         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4041
4042         [BZ #14117]
4043         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4044         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4045
4046         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4047         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4048
4049         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4050         Defined to 1 if __x86_64__ isn't defined.
4051         (_STAT_VER_LINUX_OLD): New.
4052         (st_atime): Remove duplicate.
4053         (st_mtime): Likewise.
4054         (st_ctime): Likewise.
4055
4056 2012-05-31  David S. Miller  <davem@davemloft.net>
4057
4058         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4059         entries.
4060
4061 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4062
4063         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4064         gen-libm-test.pl.
4065
4066         [BZ #14132]
4067         * elf/dl-reloc.c: Include <_itoa.h>.
4068         (_dl_reloc_bad_type): Remove use of INTUSE.
4069         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4070         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4071         * stdio-common/psiginfo.c (psiginfo): Likewise.
4072         * stdio-common/psignal.c (psignal): Likewise.
4073         * string/strsignal.c (strsignal): Likewise.
4074         * include/signal.h (_sys_siglist): Declare hidden proto.
4075         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4076         INTVARDEF with libc_hidden_data_def.
4077         * stdio-common/itoa-udigits.c: Likewise.
4078         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4079         (_itoa_lower_digits_internal): Remove declaration.
4080         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4081         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4082         (_sys_sigabbrev_internal): Remove aliases.
4083         (_sys_siglist): Define hidden alias.
4084
4085 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4086
4087         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4088         bits/sysctl.h.
4089
4090 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4091
4092         [BZ #14117]
4093         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4094         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4095
4096         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4097         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4098         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4099         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4100         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4101         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4102
4103         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4104         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4105         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4106
4107         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4108         with __addr.
4109         (insw): Likewise.
4110         (insl): Likewise.
4111         (outsb): Likewise.
4112         (outsw): Likewise.
4113         (outsl): Likewise.
4114
4115         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4116         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4117         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4118
4119         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4120         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4121         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4122         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4123         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4124         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4125
4126         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4127         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4128
4129         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4130         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4131
4132         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4133         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4134         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4135
4136         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4137         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4138         to ...
4139         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4140
4141         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4142         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4143         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4144
4145         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4146         for x86-64.
4147         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4148
4149 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4150
4151         * math/math.h (M_El): Use two more decimal places.
4152         (M_LOG2El): Likewise.
4153         (M_LOG10El): Likewise.
4154         (M_LN2l): Likewise.
4155         (M_LN10l): Likewise.
4156         (M_PIl): Likewise.
4157         (M_PI_2l): Likewise.
4158         (M_PI_4l): Likewise.
4159         (M_1_PIl): Likewise.
4160         (M_2_PIl): Likewise.
4161         (M_2_SQRTPIl): Likewise.
4162         (M_SQRT2l): Likewise.
4163         (M_SQRT1_2l): Likewise.
4164
4165 2012-05-31  David S. Miller  <davem@davemloft.net>
4166
4167         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4168         values between float registers.
4169         * sysdeps/sparc/sparc64/memset.S: Likewise.
4170         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4171
4172 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4173
4174         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4175         -D_FORTIFY_SOURCE=1.
4176         (CPPFLAGS-tst-longjmp_chk.c): Define.
4177         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4178         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4179         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4180         CFLAGS-tst-wchar-h.c.
4181
4182 2012-05-31  Marek Polacek  <polacek@redhat.com>
4183
4184         [BZ #14132]
4185         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4186         __endmntent_internal): Remove declaration.
4187         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4188         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4189         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4190
4191 2012-05-30  David S. Miller  <davem@davemloft.net>
4192
4193         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4194         (___Q_simulate_exceptions): Use real FP ops rather than writing
4195         into the %fsr.
4196         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4197         Likewise.
4198
4199 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4200
4201         [BZ #14117]
4202         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4203         * sysdeps/x86/bits/xtitypes.h: This.
4204
4205         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4206         * sysdeps/x86/bits/wordsize.h: This.
4207
4208         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4209         * sysdeps/x86/bits/huge_vall.h: This.
4210
4211         * sysdeps/i386/bits/select.h: Removed.
4212         * sysdeps/x86_64/bits/select.h: Renamed to ...
4213         * sysdeps/x86/bits/select.h: This.
4214
4215         * sysdeps/i386/bits/setjmp.h: Removed.
4216         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4217         * sysdeps/x86/bits/setjmp.h: This.
4218
4219         * sysdeps/i386/bits/mathdef.h: Removed.
4220         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4221         * sysdeps/x86/bits/mathdef.h: This.
4222
4223 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4224
4225         [BZ #14132]
4226         * include/sys/socket.h (__connect_internal)
4227         (__libc_sa_len_internal): Remove declaration.
4228         (__connect, __libc_sa_len): Declare hidden_proto.
4229         (SA_LEN): Remove use of INTUSE.
4230         * socket/connect.c: Add libc_hidden_def.
4231         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4232         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4233         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4234         alias.
4235         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4236         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4237         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4238         of adding _internal alias.
4239
4240 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4241
4242         [BZ #14117]
4243         * sysdeps/i386/bits/link.h: Removed.
4244         * sysdeps/i386/bits/linkmap.h: Likewise.
4245         * sysdeps/x86_64/bits/link.h: Renamed to ...
4246         * sysdeps/x86/bits/link.h: This.
4247         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4248         * sysdeps/x86/bits/linkmap.h: This.
4249
4250         * sysdeps/i386/bits/endian.h: Removed.
4251         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4252         * sysdeps/x86/bits/endian.h: This.
4253
4254         * sysdeps/i386/bits/byteswap.h: Removed.
4255         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4256         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4257         * sysdeps/x86/bits/byteswap.h: This.
4258         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4259         * sysdeps/x86/bits/byteswap-16.h: This.
4260         * sysdeps/i386/Implies: Add x86.
4261         * sysdeps/x86_64/Implies: Likewise.
4262
4263 2012-05-30  David S. Miller  <davem@davemloft.net>
4264
4265         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4266         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4267         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4268         (FP_TRAPPING_EXCEPTIONS): Define.
4269         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4270         (FP_TRAPPING_EXCEPTIONS): Define.
4271         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4272         subnormals only when inexact has been signalled or underflow
4273         exceptions are enabled.
4274         (_FP_PACK_CANONICAL): Likewise.
4275
4276 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4277
4278         [BZ #14183]
4279         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4280         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4281
4282 2012-05-30  Richard Henderson  <rth@twiddle.net>
4283
4284         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4285         with #ifndef NOT_IN_libc.
4286
4287         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4288         marked to avoid plt entry.
4289
4290 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4291
4292         [BZ #14112]
4293         * Makeconfig (default-abi): New macro.
4294         (abi-includes): Likewise.
4295         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4296         $(abi-$(default-abi)-lib-soname) for soname if defined.
4297         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4298         abi-variants.
4299         * Makefile (installed-stubs): Likewise.
4300         * include/stubs-biarch.h: Removed.
4301         * scripts/lib-names.awk: Only handle one library at a time.
4302         * scripts/soversions.awk: Remove WORDSIZE support.
4303         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4304         entries.
4305         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4306         Removed.
4307         (syscall-list-default-condition): Likewise.
4308         (syscall-list-default-condition): Likewise.
4309         (syscall-list-includes): Likewise.
4310         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4311         syscall-list-* with abi-*.  Handle undefined abi-variants.
4312         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4313         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4314         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4315         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4316         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4317         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4318         Removed.
4319         (syscall-list-32-options): Likewise.
4320         (syscall-list-32-condition): Likewise.
4321         (syscall-list-64-options): Likewise.
4322         (syscall-list-64-condition): Likewise.
4323         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4324         macro.
4325         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4326         Renamed to ...
4327         (abi-*): This.
4328         (abi-64-ld-soname): New macro.
4329         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4330         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4331         Renamed to ...
4332         (abi-*): This.
4333         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4334         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4335
4336 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4337
4338         * sysdeps/unix/sysv/linux/kernel-features.h
4339         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4340         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4341         include <kernel-features.h>.
4342         [!__NR_ftruncate64]: Remove conditional code.
4343         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4344         [__NR_ftruncate64]: Make code unconditional.
4345         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4346         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4347         include <kernel-features.h>.
4348         [!__NR_ftruncate64]: Remove conditional code.
4349         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4350         [__NR_ftruncate64]: Make code unconditional.
4351         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4353         include <kernel-features.h>.
4354         [!__NR_ftruncate64]: Remove conditional code.
4355         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4356         [__NR_ftruncate64]: Make code unconditional.
4357         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4359         include <kernel-features.h>.
4360         [!__NR_ftruncate64]: Remove conditional code.
4361         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4362         [__NR_ftruncate64]: Make code unconditional.
4363         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4364
4365         * configure.in (libc_cv_fpie): Weaken to a compile test using
4366         LIBC_TRY_CC_OPTION.
4367         * configure: Regenerated.
4368
4369 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4370
4371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4373         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4374         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4375         Refreshed.
4376         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4378         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4380         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4382         Refreshed.
4383
4384 2012-05-27  David S. Miller  <davem@davemloft.net>
4385
4386         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4387         (___Q_zero): New.
4388         (__Q_simulate_exceptions): Return void.  Change to simulate
4389         exceptions by writing into the %fsr.
4390         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4391         (__Qp_handle_exceptions): Likewise.
4392         (numbers): Delete.
4393         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4394         __Qp_handle_exceptions.
4395         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4396         __Qp_handle_exceptions.
4397         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4398         as unused and give dummy FP_RND_NEAREST initializer.
4399         (FP_INHIBIT_RESULTS): Define.
4400         (___Q_simulate_exceptions): Update declaration.
4401         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4402         formatting.
4403         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4404         as unused and give dummy FP_RND_NEAREST initializer.
4405         (__Qp_handle_exceptions): Update declaration.
4406         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4407         formatting.
4408
4409 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4410
4411         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4412         the temporary FPU control word.
4413         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4414         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4415         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4416         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4417         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4418         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4419         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4420         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4421         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4422         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4423         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4424
4425 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4426
4427         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4428         fields.
4429
4430 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4431
4432         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4433         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4434         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4435         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4436         Likewise.
4437         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4438         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4439         Likewise.
4440
4441 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4442
4443         * po/h.po: Update from translation team.
4444
4445 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4446
4447         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4448
4449         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4450         handling of denormals.
4451         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4452         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4453         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4454         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4455         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4456         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4457         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4458         Likewise.
4459
4460 2012-05-26  Marek Polacek  <polacek@redhat.com>
4461
4462         [BZ #14152]
4463         * math/libm-test.inc (fma_test): Don't always expect underflow
4464         exception.
4465
4466 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4467
4468         [BZ #12416]
4469         * elf/tst-execstack.c: Include stackinfo.h.
4470         (do_test): Adjust test case to ensure that pthread_getattr_np
4471         behaviour remains the same after marking stack executable.
4472
4473 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4474
4475         * sysdeps/unix/sysv/linux/kernel-features.h
4476         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4477         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4478         kernel-features.h.
4479         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4480         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4481         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4482         kernel-features.h.
4483         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4484         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4485
4486 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4487
4488         * configure.in: Define the default includes to being none.
4489         * configure: Regenerated.
4490
4491 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4492
4493         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4494         * sysdeps/x86_64/setjmp.S: Likewise.
4495         * sysdeps/i386/bsd-setjmp.S: Likewise.
4496         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4497         * sysdeps/i386/setjmp.S: Likewise.
4498         * sysdeps/i386/__longjmp.S: Likewise.
4499         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4500         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4501
4502         * include/stap-probe.h: New file.
4503         * configure.in: Handle --enable-systemtap.
4504         * configure: Regenerated.
4505         * config.h.in (USE_STAP_PROBE): New #undef.
4506         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4507         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4508         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4509
4510 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4511
4512         [BZ #13717]
4513         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4514         to 2.4.0 where earlier.
4515         * sysdeps/unix/sysv/linux/configure: Regenerated.
4516         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4517         <kernel-features.h>.
4518         [__ASSUME_32BITUIDS]: Make code unconditional.
4519         [!__ASSUME_32BITUIDS]: Remove conditional code.
4520         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4521         <kernel-features.h>.
4522         [__ASSUME_32BITUIDS]: Make code unconditional.
4523         [!__ASSUME_32BITUIDS]: Remove conditional code.
4524         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4525         [__ASSUME_32BITUIDS]: Make code unconditional.
4526         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4527         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4528         <kernel-features.h>.
4529         [__ASSUME_32BITUIDS]: Make code unconditional.
4530         [!__ASSUME_32BITUIDS]: Remove conditional code.
4531         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4532         <kernel-features.h>.
4533         [__ASSUME_32BITUIDS]: Make code unconditional.
4534         [!__ASSUME_32BITUIDS]: Remove conditional code.
4535         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4536         <kernel-features.h>.
4537         [__ASSUME_32BITUIDS]: Make code unconditional.
4538         [!__ASSUME_32BITUIDS]: Remove conditional code.
4539         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4540         <kernel-features.h>.
4541         [__ASSUME_32BITUIDS]: Make code unconditional.
4542         [!__ASSUME_32BITUIDS]: Remove conditional code.
4543         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4544         <kernel-features.h>.
4545         [__ASSUME_32BITUIDS]: Make code unconditional.
4546         [!__ASSUME_32BITUIDS]: Remove conditional code.
4547         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4548         <kernel-features.h>.
4549         [__ASSUME_32BITUIDS]: Make code unconditional.
4550         [!__ASSUME_32BITUIDS]: Remove conditional code.
4551         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4552         <kernel-features.h>.
4553         [__ASSUME_32BITUIDS]: Make code unconditional.
4554         [!__ASSUME_32BITUIDS]: Remove conditional code.
4555         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4556         <kernel-features.h>.
4557         [__ASSUME_32BITUIDS]: Make code unconditional.
4558         [!__ASSUME_32BITUIDS]: Remove conditional code.
4559         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4560         <kernel-features.h>.
4561         [__ASSUME_32BITUIDS]: Make code unconditional.
4562         [!__ASSUME_32BITUIDS]: Remove conditional code.
4563         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4564         <kernel-features.h>.
4565         [__ASSUME_32BITUIDS]: Make code unconditional.
4566         [!__ASSUME_32BITUIDS]: Remove conditional code.
4567         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4568         <kernel-features.h>.
4569         [__NR_setresgid] (__setresgid): Do not declare.
4570         [__ASSUME_32BITUIDS]: Make code unconditional.
4571         [!__ASSUME_32BITUIDS]: Remove conditional code.
4572         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4573         <kernel-features.h>.
4574         [__NR_setresuid] (__setresuid): Do not declare.
4575         [__ASSUME_32BITUIDS]: Make code unconditional.
4576         [!__ASSUME_32BITUIDS]: Remove conditional code.
4577         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4578         <kernel-features.h>.
4579         [__ASSUME_32BITUIDS]: Make code unconditional.
4580         [!__ASSUME_32BITUIDS]: Remove conditional code.
4581         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4582         <kernel-features.h>.
4583         [__ASSUME_32BITUIDS]: Make code unconditional.
4584         [!__ASSUME_32BITUIDS]: Remove conditional code.
4585         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4586         <kernel-features.h>.
4587         [__ASSUME_32BITUIDS]: Make code unconditional.
4588         [!__ASSUME_32BITUIDS]: Remove conditional code.
4589         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4590         <kernel-features.h>.
4591         [__ASSUME_32BITUIDS]: Make code unconditional.
4592         [!__ASSUME_32BITUIDS]: Remove conditional code.
4593         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4594         <kernel-features.h>.
4595         [__ASSUME_32BITUIDS]: Make code unconditional.
4596         [!__ASSUME_32BITUIDS]: Remove conditional code.
4597         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4598         <kernel-features.h>.
4599         [__ASSUME_32BITUIDS]: Make code unconditional.
4600         [!__ASSUME_32BITUIDS]: Remove conditional code.
4601         * sysdeps/unix/sysv/linux/i386/setresuid.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/setreuid.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/setuid.c: Do not include
4610         <kernel-features.h>.
4611         [__ASSUME_32BITUIDS]: Make code unconditional.
4612         [!__ASSUME_32BITUIDS]: Remove conditional code.
4613         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4614         <kernel-features.h>.
4615         [__ASSUME_32BITUIDS]: Make code unconditional.
4616         [!__ASSUME_32BITUIDS]: Remove conditional code.
4617         * sysdeps/unix/sysv/linux/kernel-features.h
4618         (__ASSUME_SETRESUID_SYSCALL): Remove.
4619         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4620         (__ASSUME_32BITUIDS): Likewise.
4621         (__ASSUME_LDT_WORKS): Likewise.
4622         (__ASSUME_O_DIRECTORY): Likewise.
4623         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4624         architecture but not kernel version.
4625         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4626         (__ASSUME_MMAP2_SYSCALL): Likewise.
4627         (__ASSUME_STAT64_SYSCALL): Likewise.
4628         (__ASSUME_IPC64): Likewise.
4629         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4630         <kernel-features.h>.
4631         [__ASSUME_32BITUIDS]: Make code unconditional.
4632         [!__ASSUME_32BITUIDS]: Remove conditional code.
4633         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4634         <kernel-features.h>.
4635         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4636         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4637         132096]: Remove conditional code.
4638         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4639         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4640         <kernel-features.h>.
4641         [__ASSUME_32BITUIDS]: Make code unconditional.
4642         [!__ASSUME_32BITUIDS]: Remove conditional code.
4643         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4644         <kernel-features.h>.
4645         [__ASSUME_32BITUIDS]: Make code unconditional.
4646         [!__ASSUME_32BITUIDS]: Remove conditional code.
4647         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4648         <kernel-features.h>.
4649         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4650         unconditional.
4651         (__setresgid): Do not declare.
4652         [__ASSUME_32BITUIDS]: Make code unconditional.
4653         [!__ASSUME_32BITUIDS]: Remove conditional code.
4654         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4655         <kernel-features.h>.
4656         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4657         unconditional.
4658         (__setresuid): Do not declare.
4659         [__ASSUME_32BITUIDS]: Make code unconditional.
4660         [!__ASSUME_32BITUIDS]: Remove conditional code.
4661         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4662         <kernel-features.h>.
4663         [__ASSUME_32BITUIDS]: Make code unconditional.
4664         [!__ASSUME_32BITUIDS]: Remove conditional code.
4665         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4666         <kernel-features.h>.
4667         [__ASSUME_32BITUIDS]: Make code unconditional.
4668         [!__ASSUME_32BITUIDS]: Remove conditional code.
4669
4670 2012-05-25  Richard Henderson  <rth@twiddle.net>
4671
4672         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4673         dl_hwcap to ifunc resolver.
4674         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4675         elf_ifunc_invoke.
4676         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4677         dl_hwcap to ifunc resolver.
4678         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4679
4680 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4681
4682         [BZ #14153]
4683         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4684         for |x| <= 2**-26, not 2**-57.
4685         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4686         exception.
4687
4688 2012-05-24  Jeff Law  <law@redhat.com>
4689
4690         * stdio-common/Makefile (tests): Add bug25.
4691         * stdio-common/bug25.c: New test.
4692
4693 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4694
4695         [BZ #13576]
4696         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4697         multiple of MALLOC_ALIGNMENT in size.
4698         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4699
4700 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4701
4702         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4703         Require >= 256.
4704         (FILENAME_MAX): Use macro-int-constant.
4705         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4706         (_IOFBF): Use macro-int-constant.
4707         (_IOLBF): Likewise.
4708         (_IONBF): Likewise.
4709         (SEEK_CUR): Likewise.
4710         (SEEK_END): Likewise.
4711         (SEEK_SET): Likewise.
4712         (TMP_MAX): Likewise.
4713         (EOF): Use macro-int-constant.  Require < 0.
4714         (NULL): Use macro-constant.  Require == 0.
4715         (stdin): Require type to be FILE *.
4716         (stdout): Likewise.
4717         (stderr): Likewise.
4718         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4719         macro-int-constant.
4720         (EXIT_SUCCESS): Likewise.
4721         (NULL): Use macro-constant.  Require == 0.
4722         (RAND_MAX): Use macro-int-constant.
4723         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4724         [C99-based standards] (strtof): Require function.
4725         [C99-based standards] (strtold): Likewise.
4726         [C99-based standards] (strtoll): Likewise.
4727         [C99-based standards] (strtoull): Likewise.
4728         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4729         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4730         [ISO || ISO99 || ISO11] (math.h): Likewise.
4731         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4732         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4733         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4734
4735 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4736
4737         [BZ #14132]
4738         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4739         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4740         * intl/dgettext.c (DCGETTEXT): Likewise.
4741         * intl/gettext.c (DCGETTEXT): Likewise.
4742         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4743         * posix/regex_internal.h (gettext): Likewise.
4744         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4745         Remove declaration.
4746         * include/argz.h (__argz_count_internal)
4747         (__argz_stringify_internal): Remove declaration.
4748         (__argz_count, __argz_stringify): Declare hidden proto.
4749         * intl/dcgettext.c: Remove use of INTDEF.
4750         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4751         * string/argz-stringify.c: Likewise.
4752         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4753         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4754         Declare hidden proto.
4755         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4756         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4757         Declare hidden proto.
4758         * include/stdio.h (__asprintf_internal): Don't declare.
4759         (__asprintf): Don't define as macro.  Declare hidden proto.
4760         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4761         (__fsetlocking): Declare hidden proto.
4762         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4763         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4764         hidden proto.
4765         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4766         (_IO_setlinebuf): Remove use of INTUSE.
4767         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4768         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4769         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4770         Remove declaration.
4771         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4772         (_IO_do_flush): Remove use of INTUSE.
4773         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4774         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4775         (_IO_adjust_column, _IO_least_wmarker)
4776         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4777         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4778         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4779         (_IO_default_doallocate, _IO_wdefault_doallocate)
4780         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4781         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4782         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4783         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4784         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4785         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4786         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4787         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4788         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4789         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4790         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4791         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4792         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4793         proto.
4794         (_IO_flush_all_internal, _IO_adjust_column_internal)
4795         (_IO_default_uflow_internal, _IO_default_finish_internal)
4796         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4797         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4798         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4799         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4800         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4801         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4802         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4803         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4804         (_IO_file_close_internal, _IO_file_close_it_internal)
4805         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4806         (_IO_file_init_internal, _IO_file_attach_internal)
4807         (_IO_file_fopen_internal, _IO_file_read_internal)
4808         (_IO_file_sync_internal, _IO_file_seek_internal)
4809         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4810         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4811         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4812         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4813         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4814         (_IO_list_all_internal, _IO_link_in_internal)
4815         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4816         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4817         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4818         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4819         (_IO_do_write_internal, _IO_padn_internal)
4820         (_IO_getline_info_internal, _IO_getline_internal)
4821         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4822         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4823         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4824         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4825         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4826         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4827         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4828         with libc_hidden_ver, remove use of INTUSE.
4829         * libio/genops.c: Likewise.
4830         * libio/freopen.c: Likewise.
4831         * libio/freopen64.c: Likewise.
4832         * libio/iofclose.c: Likewise.
4833         * libio/iofdopen.c: Likewise.
4834         * libio/iofflush.c: Likewise.
4835         * libio/iofflush_u.c: Likewise.
4836         * libio/iofgets.c: Likewise.
4837         * libio/iofgets_u.c: Likewise.
4838         * libio/iofopen.c: Likewise.
4839         * libio/iofopncook.c: Likewise.
4840         * libio/iofread.c: Likewise.
4841         * libio/iofread_u.c: Likewise.
4842         * libio/ioftell.c: Likewise.
4843         * libio/iofwrite.c: Likewise.
4844         * libio/iogetline.c: Likewise.
4845         * libio/iogets.c: Likewise.
4846         * libio/iogetwline.c: Likewise.
4847         * libio/iopadn.c: Likewise.
4848         * libio/iopopen.c: Likewise.
4849         * libio/ioseekoff.c: Likewise.
4850         * libio/ioseekpos.c: Likewise.
4851         * libio/iosetbuffer.c: Likewise.
4852         * libio/iosetvbuf.c: Likewise.
4853         * libio/ioungetc.c: Likewise.
4854         * libio/ioungetwc.c: Likewise.
4855         * libio/iovdprintf.c: Likewise.
4856         * libio/iovsprintf.c: Likewise.
4857         * libio/iovsscanf.c: Likewise.
4858         * libio/memstream.c: Likewise.
4859         * libio/obprintf.c: Likewise.
4860         * libio/oldfileops.c: Likewise.
4861         * libio/oldiofclose.c: Likewise.
4862         * libio/oldiofdopen.c: Likewise.
4863         * libio/oldiofopen.c: Likewise.
4864         * libio/oldiopopen.c: Likewise.
4865         * libio/oldstdfiles.c: Likewise.
4866         * libio/putc.c: Likewise.
4867         * libio/setbuf.c: Likewise.
4868         * libio/setlinebuf.c: Likewise.
4869         * libio/stdfiles.c: Likewise.
4870         * libio/strops.c: Likewise.
4871         * libio/vasprintf.c: Likewise.
4872         * libio/vscanf.c: Likewise.
4873         * libio/vsnprintf.c: Likewise.
4874         * libio/vswprintf.c: Likewise.
4875         * libio/wfiledoalloc.c: Likewise.
4876         * libio/wfileops.c: Likewise.
4877         * libio/wgenops.c: Likewise.
4878         * libio/wmemstream.c: Likewise.
4879         * libio/wstrops.c: Likewise.
4880         * libio/__fpurge.c: Likewise.
4881         * libio/__fsetlocking.c: Likewise.
4882         * assert/assert.c: Likewise.
4883         * debug/fgets_chk.c: Likewise.
4884         * debug/fgets_u_chk.c: Likewise.
4885         * debug/fread_chk.c: Likewise.
4886         * debug/fread_u_chk.c: Likewise.
4887         * debug/gets_chk.c: Likewise.
4888         * debug/obprintf_chk.c: Likewise.
4889         * debug/vasprintf_chk.c: Likewise.
4890         * debug/vdprintf_chk.c: Likewise.
4891         * debug/vsnprintf_chk.c: Likewise.
4892         * debug/vsprintf_chk.c: Likewise.
4893         * malloc/mtrace.c: Likewise.
4894         * misc/error.c: Likewise.
4895         * misc/syslog.c: Likewise.
4896         * stdio-common/asprintf.c: Likewise.
4897         * stdio-common/fxprintf.c: Likewise.
4898         * stdio-common/getw.c: Likewise.
4899         * stdio-common/isoc99_fscanf.c: Likewise.
4900         * stdio-common/isoc99_scanf.c: Likewise.
4901         * stdio-common/isoc99_vfscanf.c: Likewise.
4902         * stdio-common/isoc99_vscanf.c: Likewise.
4903         * stdio-common/isoc99_vsscanf.c: Likewise.
4904         * stdio-common/printf-prs.c: Likewise.
4905         * stdio-common/printf_fp.c: Likewise.
4906         * stdio-common/printf_fphex.c: Likewise.
4907         * stdio-common/printf_size.c: Likewise.
4908         * stdio-common/putw.c: Likewise.
4909         * stdio-common/scanf.c: Likewise.
4910         * stdio-common/sprintf.c: Likewise.
4911         * stdio-common/tmpfile.c: Likewise.
4912         * stdio-common/vfprintf.c: Likewise.
4913         * stdio-common/vfscanf.c: Likewise.
4914         * stdlib/strfmon_l.c: Likewise.
4915         * sunrpc/openchild.c: Likewise.
4916         * sunrpc/xdr_stdio.c: Likewise.
4917         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4918         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4919
4920 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4921
4922         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4923
4924         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4925         in the third column, to generate for the shared library an IFUNC
4926         that uses _dl_vdso_vsym.
4927         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4928         * Makeconfig (object-suffixes-noshared): New variable.
4929
4930         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4931         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4932         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4933         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4934
4935         [BZ #14132]
4936         * include/sys/time.h (__gettimeofday): Remove macro.
4937         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4938         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4939         Remove INTDEF.
4940         (__gettimeofday): Add libc_hidden_def.
4941         (gettimeofday): Add libc_hidden_weak.
4942         * sysdeps/mach/gettimeofday.c: Likewise.
4943         * sysdeps/posix/gettimeofday.c: Likewise.
4944         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4945         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4946         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4947         (__gettimeofday_internal): Remove strong_alias.
4948         (__gettimeofday): Add libc_hidden_def.
4949         (gettimeofday): Add libc_hidden_weak.
4950         * sysdeps/unix/syscalls.list (gettimeofday):
4951         Remove __gettimeofday_internal alias.
4952
4953 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4954             H.J. Lu  <hongjiu.lu@intel.com>
4955
4956         [BZ #12495]
4957         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4958         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4959         (largebin_index_32_big): New.
4960         (largebin_index): Use it for 16-byte alignment.
4961         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4962         correction with front_misalign.
4963
4964 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4965
4966         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4968         Likewise.
4969         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4970         Likewise.
4971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4972         Likewise.
4973         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4974         Likewise.
4975         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4976         Likewise.
4977         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4978         Likewise.
4979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4980         Likewise.
4981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4982         Likewise.
4983         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4984         Likewise.
4985         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4986         Likewise.
4987         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4988         Likewise.
4989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4990         Likewise.
4991
4992         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4993         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4994
4995 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4996
4997         [BZ #10846]
4998         [BZ #14036]
4999         * math/libm-test.inc (exp_test): Add test from bug 14036.
5000         (pow_test): Add test from bug 10846.
5001
5002         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5003         and other flags.
5004         (special_function): Do not include flags in test name.
5005         (parse_args): Likewise.
5006         * sysdeps/i386/fpu/libm-test-ulps: Update.
5007         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5008         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5009         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5011
5012         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5013         exceptions.
5014         * math/libm-test.inc ("Philosophy"): Update comment about
5015         exception testing.
5016         (UNDERFLOW_EXCEPTION): New macro.
5017         (UNDERFLOW_EXCEPTION_OK): Likewise.
5018         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5019         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5020         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5021         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5022         (INVALID_EXCEPTION_OK): Update value.
5023         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5024         (OVERFLOW_EXCEPTION_OK): Likewise.
5025         (IGNORE_ZERO_INF_SIGN): Likewise.
5026         (test_exceptions): Handle underflow exceptions.
5027         (acos_test): Update for underflow exception expectations.
5028         (cexp_test): Likewise.
5029         (clog_test): Likewise.
5030         (clog10_test): Likewise.
5031         (csqrt_test): Likewise.
5032         (ctan_test): Likewise.
5033         (ctanh_test): Likewise.
5034         (exp_test): Likewise.
5035         (exp10_test): Likewise.
5036         (exp2_test): Likewise.
5037         (expm1_test): Likewise.
5038         (fma_test): Likewise.
5039         (j0_test): Likewise.
5040         (jn_test): Likewise.
5041         (nexttoward_test): Likewise.
5042         (pow_test): Likewise.
5043         (scalbn_test): Likewise.
5044         (scalbln_test): Likewise.
5045         (tan_test): Likewise.
5046         (y1_test): Likewise.
5047         * sysdeps/i386/fpu/libm-test-ulps: Update.
5048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5049
5050 2012-05-23  David S. Miller  <davem@davemloft.net>
5051
5052         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5053         (__libc_sigaction): Remove unused local variables.
5054
5055 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5056
5057         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5058
5059 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5060
5061         mktime: avoid signed integer overflow
5062         * time/mktime.c (__mktime_internal): Do not mishandle the case
5063         where diff == INT_MIN.
5064
5065         mktime: simplify computation of average
5066         * time/mktime.c (ranged_convert): Use new time_t_avg function
5067         instead of rolling our own (probably-slower) code.
5068
5069         mktime: do not assume signed right shift propagates sign bit
5070         * time/mktime.c (isdst_differ): New static function.
5071         (__mktime_internal): No need to normalize tm_isdst now.
5072         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5073         tm_isdst values.
5074
5075         mktime: merge another wrapv change from gnulib
5076         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5077         from some compilers.
5078
5079         mktime: remove incorrect attempt at unusual arithmetics
5080         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5081         The code didn't really work on such machines anyway.
5082         (TYPE_MINIMUM): Assume two's complement.
5083         (twos_complement_arithmetic): Verify that long_int and time_t
5084         are two's complement (or unsigned, in the latter case).
5085
5086         mktime: check signed shifts on long_int and time_t, too
5087         * time/mktime.c (SHR): Check that shifts work as desired
5088         on the types long_int and time_t too, as SHR is used on
5089         such types.
5090
5091         mktime: do not assume 'long' is wide enough
5092         * time/mktime.c (verify): Move decl up.
5093         (long_int): New type.
5094         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5095         to remove assumption in the code that 'long' is wide enough to
5096         store year values.  This assumption is not true on x32 and on
5097         some non-glibc platforms.
5098
5099         mktime: merge wrapv change from gnulib
5100         * time/mktime.c (WRAPV): New macro.
5101         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5102         (guess_time_tm, __mktime_internal): Do not assume that signed
5103         integer overflow wraps around; modern compilers generate code
5104         where this assumption is no longer valid.
5105
5106 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5107
5108         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5109         Replace "jmp L(pseudo_end)" with "ret".
5110         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5111         Likewise.
5112
5113 2012-05-23  Andreas Jaeger  <aj@suse.de>
5114
5115         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5116         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5117
5118 2012-05-23  Andreas Jaeger  <aj@suse.de>
5119             Maximilian Attems  <max@stro.at>
5120
5121         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5122         New macros.
5123
5124 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5125
5126         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5127         code so that pseudo_end is just ret and the stack pointer is
5128         correct also for static library in error case.
5129
5130 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5131
5132         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5133         move to syscalls.list.
5134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5138
5139         * manual/install.texi (Running make install): Do not mention Linux
5140         kernel version for which pt_chown is not needed.
5141         (Linux): Do not mention problems with nscd with 2.0 kernels.
5142         * INSTALL: Regenerated.
5143
5144 2012-05-23  Andreas Jaeger  <aj@suse.de>
5145
5146         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5147         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5148         macro.
5149         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5150         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5151         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5152         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5153         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5154         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5155         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5156         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5157         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5158         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5159         * sysdeps/unix/sysv/linux/bits/in.h
5160         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5161
5162 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5163
5164         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5165         (PREPARE_VERSION): Just use assert instead, it will be elided
5166         under [NDEBUG] anyway.
5167
5168 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5169
5170         * sysdeps/unix/sysv/linux/Makefile: Include
5171         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5172         (sysdep_routines): Remove sysctl.
5173         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5174         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5175         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5176         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5177         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5178
5179 2012-05-22  Andreas Jaeger  <aj@suse.de>
5180
5181         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5182         that pseudo_end is just ret and the stack pointer is correct also
5183         for static library in error case.
5184
5185 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5186
5187         [BZ #14122]
5188         * nss/nsswitch.c (defconfig_entries): New variable.
5189         (__nss_database_lookup): Don't leak defconfig entries.
5190         (nss_parse_service_list): Don't leak on error paths.
5191         (free_database_entries): New function.
5192         (free_defconfig): New function.
5193         (free_mem): Move common code to free_database_entries.
5194
5195 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5196
5197         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5198         Add arch_prctl.
5199         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5200
5201         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5202         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5203         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5204         New macro.
5205         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5206         (INTERNAL_SYSCALL_TYPES): Likewise.
5207         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5208         (LOAD_REGS_TYPES_[1-6]): Likewise.
5209         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5210         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5211
5212 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5213
5214         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5215         copysignl for GLIBC_2_0.
5216         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5217         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5218         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5219         logbl for GLIBC_2_0.
5220         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5221         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5222
5223 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5224
5225         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5226         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5227
5228         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5229         Use "neg %eax".
5230
5231         * time/mktime.c: Update copyright years.
5232
5233 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5234
5235         mktime: merge comment-quoting-style change from gnulib
5236         * time/mktime.c: Quote 'like this' in comments.
5237         The GNU coding standards suggest that we no longer quote `like this',
5238         as "`" and "'" are typically rendered asymmetrically nowadays.
5239         The typical gnulib style is to quote 'like this' when quoting
5240         code, and "like this" when quoting English.
5241
5242         * time/mktime.c (compile-command): Add "-I.".
5243
5244         mktime: merge mktime-internal.h change from gnulib
5245         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5246
5247         mktime: merge time_r change from gnulib
5248         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5249
5250         mktime: merge DEBUG change from gnulib
5251         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5252         case system <time.h> has a #define.
5253
5254         mktime: merge <sys/types.h> change from gnulib
5255         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5256         since <time.t> is now guaranteed to define time_t.
5257
5258         mktime: merge HAVE_CONFIG_H change from gnulib
5259         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5260
5261 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5262
5263         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5264         Use "neg %eax".
5265
5266         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5267         __rlim_t cast.
5268         (struct rusage): Use anonymous union to pad each field to
5269         __syscall_slong_t.
5270
5271 2012-05-21  David S. Miller  <davem@davemloft.net>
5272
5273         * Makefules (o-iterator): Remove .s cases.
5274         (compile-command.s): Delete.
5275         (COMPILE.s): Delete.
5276         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5277
5278 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5279
5280         * configure.in (libc_cv_predef_stack_protector): Only consider
5281         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5282         * configure: Regenerated.
5283
5284 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5285
5286         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5287         New macro.  Use R*LP on int and pointer.
5288         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5289         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5290         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5291         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5292
5293         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5294         [__WORDSIZE_TIME64_COMPAT32] instead of
5295         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5296         (struct utmp): Likewise.
5297         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5298         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5299         Renamed to ...
5300         (__WORDSIZE_TIME64_COMPAT32): This.
5301         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5302         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5303         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5304         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5305         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5306         (__WORDSIZE_TIME64_COMPAT32): New macro.
5307
5308 2012-05-21  Andreas Jaeger  <aj@suse.de>
5309
5310         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5311         only if [SHARED]. Add prototype for __wcschr_ia32.
5312
5313 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5314
5315         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5316         of %rbp unmolested in the jmp_buf while mangling the low bits.
5317         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5318         unmolested high bits of %rbp while demangling the low bits.
5319         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5320
5321 2012-05-21  Andreas Jaeger  <aj@suse.de>
5322
5323         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5324         * sunrpc/svc_simple.c: Use it for registerrpc.
5325         * sunrpc/xcrypt.c: Use it for passwd2des.
5326
5327         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5328
5329 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5330
5331         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5332         Don't define if [__SYSCALL_WORDSIZE != 32].
5333         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5334         New macro.
5335
5336 2012-05-21  Bruno Haible  <bruno@clisp.org>
5337             Andreas Jaeger  <aj@suse.de>
5338
5339         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5340         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5341         inptr and inend for must_buffer_ch.
5342         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5343         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5344         * stdio-common/Makefile (tests): Remove bug15.
5345         (bug15-ENV): Remove macro.
5346         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5347         anymore.
5348
5349 2012-05-19  Andreas Jaeger  <aj@suse.de>
5350             Roland McGrath  <roland@hack.frob.com>
5351
5352         * manual/contrib.texi: Completely rewritten. It contains now an
5353         alphabetical list of contributors and their contributions.
5354
5355 2012-05-21  Richard Henderson  <rth@twiddle.net>
5356
5357         * misc/getauxval.c (__getauxval): Use unsigned long int.
5358         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5359         (getauxval): Use unsigned long int.
5360
5361 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5362
5363         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5364
5365 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5366
5367         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5368         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5369         __alignof__ (long double).
5370
5371 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5372
5373         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5374
5375 2012-05-20  Richard Henderson  <rth@twiddle.net>
5376
5377         * misc/getauxval.c: New file.
5378         * misc/sys/auxv.h: New file.
5379         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5380         (routines): Add getauxval.
5381         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5382         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5383         * elf/dl-sysdep.c (_dl_auxv): Remove.
5384         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5385         * elf/dl-support.c (_dl_auxv): New variable.
5386         (_dl_aux_init): Initialize it.
5387         * manual/startup.texi (Auxiliary Vector): New node.
5388         * sysdeps/generic/bits/hwcap.h: New file.
5389         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5390         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5391         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5392         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5393         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5394         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5396         Update.
5397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5398         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5399         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5400         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5401         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5402         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5403         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5404         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5405
5406 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5407
5408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5409
5410 2012-05-19  David S. Miller  <davem@davemloft.net>
5411
5412         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5413
5414 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5415
5416         [BZ #14123]
5417         * math/s_ccosh.c: Include <float.h>
5418         (__ccosh): Avoid internal overflow calculating sinh and cosh
5419         values before multiplying by sin and cos values.
5420         * math/s_ccoshf.c: Likewise.
5421         * math/s_ccoshl.c: Likewise.
5422         * math/s_csin.c: Likewise.
5423         * math/s_csinf.c: Likewise.
5424         * math/s_csinl.c: Likewise.
5425         * math/s_csinh.c: Likewise.
5426         * math/s_csinhf.c: Likewise.
5427         * math/s_csinhl.c: Likewise.
5428         * math/libm-test.inc (ccos_test): Add more tests.
5429         (ccosh_test): Likewise.
5430         (csin_test): Likewise.
5431         (csinh_test): Likewise.
5432         * sysdeps/i386/fpu/libm-test-ulps: Update.
5433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5434
5435 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5436
5437         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5438         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5439
5440         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5441
5442 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5443
5444         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5445         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5446         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5447         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5448         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5449         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5450         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5451         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5452         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5453         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5454         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5455         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5456         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5457         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5458         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5459         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5460         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5461         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5462         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5463         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5464         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5465         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5466         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5467         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5468         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5469         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5470         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5471         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5472         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5473         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5474         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5475
5476 2012-05-18  Andreas Jaeger  <aj@suse.de>
5477
5478         * csu/.gitignore: Delete.
5479
5480 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5481
5482         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5483         (timex): Use __syscall_slong_t.
5484
5485 2012-05-18  Andreas Jaeger  <aj@suse.de>
5486             Carlos O'Donell  <carlos_odonell@mentor.com>
5487
5488         * manual/install.texi (Configuring and compiling): Update
5489         description about files modified in the source directory.
5490         * INSTALL: Regenerated.
5491
5492 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5493
5494         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5495         value.  Use "or" to set return value to -1.
5496         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5497         negate return value.
5498
5499 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5500
5501         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5502         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5503         failure if the compiler has Graphite support disabled.
5504         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5505         Likewise.
5506         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5507         CFLAGS-memmove.c): Likewise.
5508         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5509         Likewise.
5510
5511 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5512
5513         * sysdeps/x86_64/x32/_itoa.h: New file.
5514
5515         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5516         getdents system call only if kernel and user dirents have the
5517         same d_ino and d_off.
5518
5519         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5520         LLONG_MAX != LONG_MAX.
5521         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5522         (_fitoa_word): Likewise.
5523
5524         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5525         years.
5526         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5527         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5528         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5529
5530         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5531         include <bits/wordsize.h>.  Check __x86_64__ instead of
5532         __WORDSIZE.
5533         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5534         if __x86_64__ is defined.  Use anonymous union on fpstate.
5535
5536         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5537         anonymous union.
5538
5539 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5540
5541         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5542         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5543         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5544         Refer to _rtld_local_ro instead of _rtld_global_ro.
5545         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5546         Likewise.
5547         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5548         Likewise.
5549         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5550         Likewise.
5551         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5552         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5553         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5554
5555         * sysdeps/powerpc/powerpc32/dl-machine.c
5556         (__elf_machine_runtime_setup) [PROF]: Don't reference
5557         _dl_prof_resolve.
5558
5559 2012-05-18  Andreas Jaeger  <aj@suse.de>
5560
5561         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5562         function only available for GCCs before 3.4 since GCC 3.4
5563         introduced a builtin.
5564         (lrint): Likewise.
5565         (llrintf): Likewise.
5566         (llrint): Likewise.
5567         (fmaxf): Likewise.
5568         (fmax): Likewise.
5569         (fminf): Likewise.
5570         (fmin): Likewise.
5571         (rint): Likewise.
5572         (rintf): Likewise.
5573         (nearbyint): Likewise.
5574         (nearbyintf): Likewise.
5575         (ceil): Likewise.
5576         (ceilf): Likewise.
5577         (floor): Likewise.
5578         (floorf): Likewise.
5579
5580 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5581
5582         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5583         on both fields and cast pointer to __syscall_ulong_t.
5584
5585         * bits/types.h (__fsword_t): New type.
5586         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5587         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5588         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5589         (__FSWORD_T_TYPE): Likewise.
5590         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5591         (__FSWORD_T_TYPE): Likewise.
5592         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5593         (__FSWORD_T_TYPE): Likewise.
5594         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5595         (__FSWORD_T_TYPE): Likewise.
5596         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5597         __SWORD_TYPE with __fsword_t.
5598         (statfs64): Likewise.
5599
5600 2012-05-17  David S. Miller  <davem@davemloft.net>
5601
5602         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5603
5604 2012-05-17  Andreas Jaeger  <aj@suse.de>
5605
5606         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5607         warning.
5608
5609 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5610
5611         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5612
5613 2012-05-17  Andreas Jaeger  <aj@suse.de>
5614
5615         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5616         when it is used.
5617
5618 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5619
5620         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5621
5622 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5623
5624         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5625         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5626
5627 2012-05-17  Andreas Jaeger  <aj@suse.de>
5628             Carlos O'Donell  <carlos_odonell@mentor.com>
5629
5630         [BZ #14059]
5631         * sysdeps/x86_64/multiarch/init-arch.h
5632         (bit_YMM_Usable): Rename to...
5633         (bit_AVX_Usable): ... this.
5634         (bit_FMA4_Usable): New macro.
5635         (bit_XMM_state): New macro.
5636         (bit_YMM_state): New macro.
5637         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5638         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5639         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5640         (CPUID_OSXSAVE): New macro.
5641         (CPUID_AVX): New macro.
5642         (CPUID_FMA4): New macro.
5643         (index_YMM_Usable): Rename to...
5644         (index_AVX_Usable): ... this.
5645         (HAS_AVX): Use HAS_ARCH_FEATURE.
5646         (HAS_FMA4): Likewise.
5647         (HAS_YMM_USABLE): Remove.
5648         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5649         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5650         are present.
5651         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5652         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5653         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5654         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5655         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5656
5657 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5658
5659         * math/libm-test.c: Support platforms without multiple rounding modes.
5660         * math/bug-nextafter.c: Support platforms without FP exceptions.
5661         * math/bug-nexttoward.c: Likewise.
5662         * math/test-fenv.c: Likewise.
5663         * math/test-misc.c: Likewise.
5664         * stdlib/bug-getcontext.c: Likewise.
5665
5666 2012-05-17  Andreas Jaeger  <aj@suse.de>
5667
5668         * manual/examples/search.c (critter_cmp): Change signature to
5669         avoid warnings.
5670         * manual/string.texi (Collation Functions): Likewise.
5671
5672 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5673
5674         * bits/types.h: Fold copyright years.
5675         * bits/typesizes.h: Likewise.
5676         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5677         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5678         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5679         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5680         * time/time.h: Likewise.
5681
5682 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5683
5684         [BZ #208]
5685         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5686         in instead of returning them.  Return void.
5687         (__libc_mallinfo): Accumulate over all arenas.
5688         (__malloc_stats): Adjust for change in int_mallinfo interface.
5689
5690 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5691
5692         [BZ #10375]
5693         * configure.in (NM): Add AC_CHECK_TOOL for it.
5694         (libc_extra_cflags): New substituted variable.
5695         Check for -fstack-protector being used implicitly.
5696         * configure: Regenerated.
5697         * config.make.in (config-extra-cflags): New variable,
5698         gets @libc_extra_cflags@.
5699         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5700
5701         [BZ #10375]
5702         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5703         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5704         * configure: Regenerated.
5705         * config.make.in (CPPUNDEFS): New substituted variable.
5706         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5707         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5708         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5709
5710 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5711
5712         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5713         (mq_attr): Use __syscall_slong_t.
5714
5715 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5716
5717         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5718         Check __x86_64__ instead of __WORDSIZE.
5719         (_STAT_VER_LINUX): Likewise.
5720         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5721         __syscall_ulong_t and __syscall_slong_t.
5722         (stat64): Likewise.
5723
5724 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5725
5726         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5727
5728 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5729
5730         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5731
5732 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5733
5734         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5735         __syscall_ulong_t.
5736
5737         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5738         include <bits/wordsize.h>.  Check __x86_64__ instead of
5739         __WORDSIZE.
5740         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5741         defined.
5742         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5743
5744         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5745         include <bits/wordsize.h>.  Check __x86_64__ instead of
5746         __WORDSIZE.
5747         (user_regs_struct): Use "__extension__ unsigned long long"
5748         instead of "unsigned long" if __x86_64__ is defined.
5749         (user): Likewise.  Pad after pointer field if __ILP32__ is
5750         defined.
5751
5752 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5753
5754         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5755         versions 5 to 9.
5756         * configure: Regenerated.
5757         * manual/install.texi (texinfo): Increase version requirement to
5758         4.5 or later.
5759         * INSTALL: Regenerated.
5760
5761         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5762
5763 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5764
5765         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5766
5767         * sysdeps/x86_64/x32/ffs.c: New file.
5768
5769         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5770         __syscall_ulong_t.
5771         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5772         defined.  Use __syscall_ulong_t.
5773         (shminfo): Use __syscall_ulong_t.
5774         (shm_info): Likewise.
5775
5776         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5777         __syscall_ulong_t.
5778
5779         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5780         <bits/wordsize.h>.
5781         (msgqnum_t): Use __syscall_ulong_t.
5782         (msglen_t): Likewise.
5783         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5784         __syscall_ulong_t.
5785
5786         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5787         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5788
5789         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5790
5791         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5792         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5793
5794         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5795         __syscall_slong_t.
5796
5797         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5798         include <bits/wordsize.h>.  Check __x86_64__ instead of
5799         __WORDSIZE.
5800
5801         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5802         "unsigned long long int" if __x86_64__ is defined.
5803         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5804
5805         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5806         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5807         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5808
5809         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5810         <stdint.h>.
5811         (GET_PC): Cast to uintptr_t first.
5812         (GET_FRAME): Likewise.
5813         (GET_STACK): Likewise.
5814
5815         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5816         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5817         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5818         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5819         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5820         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5821         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5822         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5823         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5824         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5825         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5826         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5827         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5828         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5829         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5830         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5831         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5832         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5833         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5834         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5835         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5836         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5837         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5838         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5839         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5840         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5841         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5842         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5843         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5844
5845 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5846
5847         * Makerules (+depfiles): Also collect depfiles from .oS in
5848         $(extra-objs).
5849         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5850         .oS, $(libnldbl-routines)).
5851
5852         * Makerules (native-compile-mkdep-flags): Define.
5853         * sunrpc/Makefile (extra-objs): Add $(addprefix
5854         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5855         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5856         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5857         calling $(make-target-directory).
5858
5859 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5860
5861         * bits/types.h (__snseconds_t): Removed.
5862         * time/time.h (struct timespec): Replace __snseconds_t with
5863         __syscall_slong_t.
5864         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5865         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5866         Likewise.
5867         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5868         (__SNSECONDS_T_TYPE): Likewise.
5869         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5870         (__SNSECONDS_T_TYPE): Likewise.
5871         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5872         (__SNSECONDS_T_TYPE): Likewise.
5873
5874 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5875
5876         * sysdeps/mach/hurd/bits/typesizes.h
5877         (__SYSCALL_SLONG_TYPE): New macro.
5878         (__SYSCALL_ULONG_TYPE): Likewise.
5879
5880 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5881
5882         * bits/types.h (__syscall_slong_t): New type.
5883         (__syscall_ulong_t): Likewise.
5884
5885         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5886         (__SYSCALL_ULONG_TYPE): Likewise.
5887         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5888         (__SYSCALL_SLONG_TYPE): Likewise.
5889         (__SYSCALL_ULONG_TYPE): Likewise.
5890         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5891         (__SYSCALL_SLONG_TYPE): Likewise.
5892         (__SYSCALL_ULONG_TYPE): Likewise.
5893         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5894         (__SYSCALL_SLONG_TYPE): Likewise.
5895         (__SYSCALL_ULONG_TYPE): Likewise.
5896
5897 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5898
5899         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5900         Add sigaltstack-offsets.sym.
5901         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5902         <sigaltstack-offsets.h>.
5903         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5904         longjmp_msg pointer.
5905         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5906         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5907         signal stack.
5908         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5909
5910 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5911
5912         * elf/stackguard-macros.h: Remove file.
5913         * sysdeps/generic/stackguard-macros.h: New file.
5914         * sysdeps/i386/stackguard-macros.h: Likewise.
5915         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5916         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5917         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5918         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5919         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5920         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5921         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5922         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5923         <elf/stackguard-macros.h>.
5924
5925         [BZ #14109]
5926         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5927         __aligned__ in attribute.
5928         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5929         (gregset_t): Likewise.
5930
5931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5932
5933         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5934         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5935         * sysdeps/x86_64/x32/Implies-after: New file.
5936
5937 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5938
5939         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5940         and access return value for _dl_profile_fixup.  Use R10_LP to
5941         load frame size.
5942
5943 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5944
5945         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5946
5947 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5948
5949         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5950         * sysdeps/x86_64/x32/sysdep.h: New file.
5951
5952 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5953
5954         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5955         * sysdeps/x86_64/setjmp.S: Likewise.
5956
5957 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5958
5959         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5960         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5961         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5962         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5963         remove unused global constant.
5964
5965 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5966
5967         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5968         include of <not-cancel.h>.
5969
5970 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5971
5972         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5973
5974 2012-05-15  Jeff Law  <law@redhat.com>
5975             Andreas Jaeger  <aj@suse.de>
5976
5977         [BZ #13594]
5978         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5979         out from...
5980         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5981         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5982         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5983         code changing __hst_map_handle.map.
5984
5985 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5986
5987         * configure.in (sysnames): Look for Implies-before and Implies-after
5988         files.
5989         * configure: Regenerated.
5990
5991 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5992
5993         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5994         8-byte data alignment with LP_SIZE alignment.
5995
5996 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5997
5998         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5999         into R10_LP.
6000
6001 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6002
6003         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6004
6005 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6006
6007         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6008         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6009         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6010         Likewise.
6011         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6012
6013 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6014
6015         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6016         (stackinfo_sub_sp): Likewise.
6017
6018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6019
6020         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6021         RAX_LP.
6022
6023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6024
6025         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6026         into R*_LP.
6027
6028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6031         sizes into R*_LP.
6032
6033 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6034
6035         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6036
6037 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6038
6039         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6040         into R11_LP and load __x86_64_shared_cache_size_half into
6041         R8_LP.
6042
6043 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6044
6045         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6046         R8_LP.
6047
6048 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6049
6050         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6051         logb for POWER7.
6052         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6053         logbf for POWER7.
6054         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6055         logbl for POWER7.
6056         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6057         powerpc32/power7/fpu/s_logb.c via #include.
6058         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6059         powerpc32/power7/fpu/s_logbf.c via #include.
6060         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6061         powerpc32/power7/fpu/s_logbl.c via #include.
6062
6063 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6064
6065         * README.libm: Remove file.
6066
6067 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6068
6069         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6070         count for x32.  Use R*_LP and omit operand-size suffix.
6071
6072 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6073
6074         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6075         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6076         * sysdeps/x86_64/x32/shlib-versions: New file.
6077
6078 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6079
6080         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6081         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6082         Use _dl_fatal_printf instead.
6083
6084 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6085
6086         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6087         set if not set by the user.  Do not allow for being unset.
6088         * sysdeps/unix/sysv/linux/configure: Regenerated.
6089
6090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6091
6092         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6093         the `q' suffix from lea and replace .quad with ASM_ADDR.
6094
6095 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6096
6097         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6098         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6099         instead of $17.
6100         (PTR_DEMANGLE): Likewise.
6101
6102 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6103
6104         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6105         (LP_OP): Likewise.
6106         (ASM_ADDR): Likewise.
6107         (RAX_LP): Likewise.
6108         (RBP_LP): Likewise.
6109         (RBX_LP): Likewise.
6110         (RCX_LP): Likewise.
6111         (RDI_LP): Likewise.
6112         (RSI_LP): Likewise.
6113         (RSP_LP): Likewise.
6114         (R8_LP): Likewise.
6115         (R9_LP): Likewise.
6116         (R10_LP): Likewise.
6117         (R10_LP): Likewise.
6118         (R11_LP): Likewise.
6119         (R12_LP): Likewise.
6120         (R13_LP): Likewise.
6121         (R14_LP): Likewise.
6122         (R15_LP): Likewise.
6123
6124 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6125
6126         * sysdeps/x86_64/x32/dl-machine.h: New file.
6127
6128 2012-05-14  Andreas Jaeger  <aj@suse.de>
6129
6130         * manual/Makefile (subdir): Remove export of subdir.
6131         (all): Remove target.
6132         (.PHONY): Remove all from list.
6133         (mkinstalldirs): Remove.
6134         (.PHONY): Remove installdirs from list.
6135         ($(inst_infodir)/libc.info): Use make-target-directory.
6136         (installdirs): Remove.
6137         (subdir_%): Remove.
6138         (glibc-targets): Remove.
6139         (lib): Remove.
6140         (stubs): Remove.
6141         ($(objpfx)stubs ../po/manual.pot): Remove.
6142         ($(objpfx)stamp%): Remove.
6143         (make-target-directory): Remove.
6144         (subdir_install): Remove.
6145         (routines): Remove.
6146         (aux): Remove.
6147         (sources): Remove.
6148         (objects): Remove.
6149         (headers): Remove.
6150
6151         [BZ #13750]
6152         * manual/.gitignore: Remove, it's not needed anymore.
6153         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6154         all files in it.
6155         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6156         directory.
6157         (texis): Renamed to $(objpfx)texis.
6158         (texis-path): New, contains path to generated files.
6159         (chapters.%): Use texis-path for complete path, add extra argument
6160         libc-texinfo.sh.
6161         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6162         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6163         (summary,texi, stamp-summary): Use complete path of
6164         files. Generate files in build dir.
6165         (dir-add.texi): Build in build dir.
6166         (libm-err.texi,stamp-libm-err): Likewise.
6167         (version.texi, stamp-version): Likewise.
6168         (.%c.texi): Likewise.
6169         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6170         (mostlyclean): Remove target.
6171         (realclean): Remove target.
6172         (generated): Add new variable with contents from mostlyclean and
6173         realclean, remove entries duplicated in common-mostlyclean, add
6174         stamp-libm-err and stamp-version.
6175         (generated-dirs): Add libc directory.
6176         ($(inst_infodir)/libc.info): Install files from build dir.
6177
6178         * manual/install.texi (Configuring and compiling): Adjust since
6179         the info files are not part of the tar ball anymore.
6180
6181 2012-05-14  Andreas Jaeger  <aj@suse.de>
6182
6183         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6184         variable.
6185
6186 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6187
6188         [BZ #13717]
6189         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6190         to 2.2.0 where earlier.
6191         * sysdeps/unix/sysv/linux/configure: Regenerated.
6192         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6193         Remove conditional code.
6194         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6195         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6196         Remove conditional code.
6197         [!__NR_lchown]: Likewise.
6198         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6199         [__NR_lchown]: Likewise.
6200         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6201         comment referencing __ASSUME_LCHOWN_SYSCALL.
6202         * sysdeps/unix/sysv/linux/i386/sigaction.c
6203         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6204         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6205         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6206         Remove conditional code.
6207         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6208         (__protocol_available): Remove #if 0 code.
6209         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6210         conditional code.
6211         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6212         * sysdeps/unix/sysv/linux/kernel-features.h
6213         (__ASSUME_GETCWD_SYSCALL): Don't define.
6214         (__ASSUME_REALTIME_SIGNALS): Likewise.
6215         (__ASSUME_PREAD_SYSCALL): Likewise.
6216         (__ASSUME_PWRITE_SYSCALL): Likewise.
6217         (__ASSUME_POLL_SYSCALL): Likewise.
6218         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6219         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6220         non-SPARC.
6221         (__ASSUME_SIOCGIFNAME): Don't define.
6222         (__ASSUME_MSG_NOSIGNAL): Likewise.
6223         (__ASSUME_SENDFILE): Define unconditionally.
6224         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6225         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6226         conditional code.
6227         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6228         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6229         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6230         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6231         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6232         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6233         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6235         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6236         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6238         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6239         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6241         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6242         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6244         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6245         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6247         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6248         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6250         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6251         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6253         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6254         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6256         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6257         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6258         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6259         Remove conditional code.
6260         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6261         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6262         Remove conditional code.
6263         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6264         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6265         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6266         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6267         Remove conditional code.
6268         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6269         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6270         Remove conditional code.
6271         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6272         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6273         Remove conditional code.
6274         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6275         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6276         Remove conditional code.
6277         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6278         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6279         Remove conditional code.
6280         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6281         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6282         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6283         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6284         * sysdeps/unix/sysv/linux/sigaction.c
6285         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6286         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6287         * sysdeps/unix/sysv/linux/sigpending.c
6288         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6289         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6290         * sysdeps/unix/sysv/linux/sigprocmask.c
6291         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6292         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6293         * sysdeps/unix/sysv/linux/sigsuspend.c
6294         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6295         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6296         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6297         (__libc_missing_rt_sigs): Remove.
6298         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6299         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6300         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6301         Remove conditional code.
6302         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6303         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6304         return 1.
6305         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6306         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6307         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6308         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6309
6310 2012-05-14  Andreas Jaeger  <aj@suse.de>
6311
6312         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6313         it's not used in glibc.
6314         (__coshm1): Likewise.
6315         (__acosh1p): Likewise.
6316         (__sgn): Likewise.
6317
6318         * manual/string.texi (Copying and Concatenation): Add missing
6319         variable in concat example.
6320         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6321
6322 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6323
6324         [BZ #14103]
6325         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6326         __builtin_clzl with __builtin_clzll.
6327
6328 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6329
6330         [BZ #14104]
6331         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6332         libc_freeres_ptr.
6333
6334 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6335
6336         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6337         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6338         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6339         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6340
6341 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6342
6343         * NEWS: Update ia64 info.
6344
6345 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6346
6347         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6348         used as bcopy.
6349
6350 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6351
6352         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6353         * sysdeps/unix/syscalls.list (dup3): Likewise.
6354         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6355         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6356
6357 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6358
6359         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6360         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6361
6362 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6363
6364         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6365         thread pointer.
6366         (TLS_IE): Use mov/add instead of movq/addq to load thread
6367         pointer.
6368         (TLS_GD_PREFIX): New.
6369         (TLS_GD): Use it.
6370
6371 2012-05-11  David S. Miller  <davem@davemloft.net>
6372
6373         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6374         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6375         (_FPU_SETCW): Likewise.
6376
6377 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6378
6379         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6380         is 32-byte aligned.
6381
6382 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6383
6384         [BZ #11837]
6385         * iconvdata/gb18030.c: Update tables.
6386         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6387         characters specially.
6388         (BODY for TO_LOOP): Add encoding of missing ranges.
6389
6390 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6391
6392         [BZ #13673]
6393         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6394         * sysdeps/mach/hurd/dup3.c: Likewise.
6395         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6396         * sysdeps/powerpc/memmove.c:: Likewise.
6397
6398 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6399
6400         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6401         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6402
6403 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6404
6405         * elf/elf.h (R_X86_64_RELATIVE64): New.
6406         (R_X86_64_NUM): Updated.
6407         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6408         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6409         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6410         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6411         tst-quad1pie tst-quad2pie
6412         (modules-names): Add tst-quadmod1 tst-quadmod2.
6413         ($(objpfx)tst-quad1): New dependency.
6414         ($(objpfx)tst-quad2): Likewise.
6415         ($(objpfx)tst-quad1pie): Likewise.
6416         ($(objpfx)tst-quad2pie): Likewise.
6417         * sysdeps/x86_64/tst-quad1.c: New file.
6418         * sysdeps/x86_64/tst-quad1pie.c: New file.
6419         * sysdeps/x86_64/tst-quad2.c: Likewise.
6420         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6421         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6422         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6423         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6424         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6425
6426 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6427
6428         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6429         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6430         * streams/stropts.h (t_scalar_t): Define type.
6431
6432         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6433         (_PATH_PRESERVE): Set to "/var/lib".
6434         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6435
6436         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6437         instead of int.
6438
6439         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6440         if __dir_mkfile succeeded.
6441
6442         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6443         checking for _hurd_dtablesize.  Unlock it right after having
6444         finished _hurd_dtable allocation.
6445
6446 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6447
6448         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6449         * sysdeps/mach/hurd/configure: Regenerated.
6450         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6451         special-casing to...
6452         * sysdeps/gnu/configure.in: ... this new file.
6453         * sysdeps/unix/sysv/linux/configure: Regenerated.
6454         * sysdeps/gnu/configure: New generated file.
6455
6456         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6457         for Linux: use nsec instead of usec, as well as:
6458         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6459         members of type struct timespec.
6460         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6461         New macros.
6462         (struct stat64): Likewise.
6463         (_STATBUF_ST_NSEC): New macro.
6464         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6465
6466         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6467         __strtoul_internal rather than strtoul.
6468
6469 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6470
6471         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6472         and reject them.
6473
6474 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6475
6476         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6477         which preserves existing values.
6478         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6479
6480 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6481
6482         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6483         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6484         greater than FD_SETSIZE.
6485
6486 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6487
6488         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6489         allocated, call __vm_protect to finish enabling the existing space, and
6490         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6491         allocate the remainder.
6492
6493 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6494
6495         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6496         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6497
6498 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6499
6500         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6501         sysdeps/mach/hurd/readlink.c.
6502
6503         * posix/tst-sysconf.c (posix_options): Only use
6504         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6505         _POSIX_SYNCHRONIZED_IO when they are defined
6506         * sysdeps/mach/hurd/bits/posix_opt.h:
6507         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6508         (_XOPEN_REALTIME): Undefine macro.
6509         (_XOPEN_REALTIME_THREADS): Undefine macro.
6510         (_XOPEN_SHM): Undefine macro.
6511         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6512         macro to -1.
6513         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6514         macro to -1.
6515         (_POSIX_ASYNC_IO): Undefine macro.
6516         (_POSIX_PRIORITIZED_IO): Undefine macro.
6517         (_POSIX_SPIN_LOCKS): Define macro to -1.
6518
6519         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6520         SA_NODEFER, SA_RESETHAND.
6521         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6522         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6523         F_DUPFD_CLOEXEC.
6524
6525 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6526
6527         * elf/Makefile (pldd-modules): Define unconditionally.
6528
6529 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6530
6531         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6532
6533 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6534
6535         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6536         Return ENOENT when name is empty.
6537         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6538
6539 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6540
6541         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6542
6543         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6544
6545 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6546
6547         Fix mlock in all cases except non-readable pages.
6548         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6549         instead of VM_PROT_ALL as parameter to __vm_wire function.
6550
6551         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6552         (__mkdir): When path is `/', just fail with EEXIST.
6553         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6554
6555 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6556
6557         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6558         <sys/uio.h> (for writev).
6559         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6560         and <sys/param.h> (for MIN).
6561
6562 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6563
6564         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6565         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6566         if interrupted.
6567
6568 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6569
6570         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6571         Depend on against $(link-rpcuserlibs).
6572
6573 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6574
6575         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6576         (__libc_stack_end): Do not use attribute_relro.
6577         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6578         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6579         to libthread-provided value.
6580         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6581         attribute_relro.
6582
6583 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6584
6585         [BZ #3748]
6586         * bits/libc-lock.h (__libc_once_get): New macro.
6587         * sysdeps/mach/bits/libc-lock.h: Likewise.
6588         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6589         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6590         instead of using implementation details.
6591
6592         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6593         * libio/freopen.c: Likewise.
6594         * libio/freopen64.c: Likewise.
6595         * misc/syslog.c: Likewise.
6596         * nscd/connections.c: Likewise.
6597         * nscd/netgroupcache.c: Likewise.
6598         * sysdeps/posix/getcwd.c: Likewise.
6599
6600 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6601
6602         * math/w_ilogbf.c: Add #include <limits.h>.
6603
6604 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6605
6606         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6607         path instead of returning without unlocking.
6608
6609         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6610         immediate-write ioctls.
6611         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6612
6613 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6614
6615         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6616         __builtin_frame_address instead of making assumptions about the
6617         location of the return address relative to DATA.  Force early load of
6618         the return address.
6619         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6620         __builtin_frame_address.
6621
6622         dup3 for GNU Hurd.
6623         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6624         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6625         implement dup3 and do some further code clean-ups.
6626         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6627         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6628
6629 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6630
6631         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6632
6633         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6634         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6635         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6636         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6637         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6638         d->port.lock.
6639
6640         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6641         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6642         when handler == SIG_ERR, not when handler != SIG_ERR.
6643
6644 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6645
6646         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6647         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6648         definitions.
6649
6650         accept4 for GNU Hurd.
6651         * include/sys/socket.h (__libc_accept4): New prototype.
6652         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6653         to implement __libc_accept4.
6654         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6655         __libc_accept4.
6656         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6657
6658         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6659         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6660         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6661         signal-defines.sym.
6662
6663 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6664
6665         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6666
6667 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6668
6669         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6670         assertion on O_CLOEXEC flag.
6671         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6672         * hurd/intern-fd.c: Likewise.
6673         * hurd/port2fd.c: Likewise.
6674
6675 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6676
6677         [BZ #3906]
6678         * bits/in.h (IPV6_PKTINFO): Define new macro.
6679         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6680
6681 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6682
6683         [BZ #13954]
6684         [BZ #13955]
6685         [BZ #13956]
6686         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6687         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6688         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6689         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6690         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6691         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6692         * math/libm-test.inc (logb_test) : Additional logb tests.
6693
6694 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6695             Andreas Jaeger  <aj@suse.de>
6696
6697         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6698         * configure: Regenerated.
6699         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6700         * config.make.in (link-obsolete-rpc): New substituted variable.
6701         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6702         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6703         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6704         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6705         so that libc.a contains the symbols.
6706         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6707         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6708         * sunrpc/auth_none.c: Likewise.
6709         * sunrpc/auth_unix.c: Likewise.
6710         * sunrpc/authdes_prot.c: Likewise.
6711         * sunrpc/authuxprot.c: Likewise.
6712         * sunrpc/clnt_gen.c: Likewise.
6713         * sunrpc/clnt_perr.c: Likewise.
6714         * sunrpc/clnt_raw.c: Likewise.
6715         * sunrpc/clnt_simp.c: Likewise.
6716         * sunrpc/clnt_tcp.c: Likewise.
6717         * sunrpc/clnt_udp.c: Likewise.
6718         * sunrpc/clnt_unix.c: Likewise.
6719         * sunrpc/des_crypt.c: Likewise.
6720         * sunrpc/des_soft.c: Likewise.
6721         * sunrpc/get_myaddr.c: Likewise.
6722         * sunrpc/key_call.c: Likewise.
6723         * sunrpc/key_prot.c: Likewise.
6724         * sunrpc/netname.c: Likewise.
6725         * sunrpc/pm_getmaps.c: Likewise.
6726         * sunrpc/pm_getport.c: Likewise.
6727         * sunrpc/pmap_clnt.c: Likewise.
6728         * sunrpc/pmap_prot.c: Likewise.
6729         * sunrpc/pmap_prot2.c: Likewise.
6730         * sunrpc/pmap_rmt.c: Likewise.
6731         * sunrpc/publickey.c: Likewise.
6732         * sunrpc/rpc_cmsg.c: Likewise.
6733         * sunrpc/rpc_common.c: Likewise.
6734         * sunrpc/rpc_dtable.c: Likewise.
6735         * sunrpc/rpc_prot.c: Likewise.
6736         * sunrpc/rpc_thread.c: Likewise.
6737         * sunrpc/rtime.c: Likewise.
6738         * sunrpc/svc.c: Likewise.
6739         * sunrpc/svc_auth.c: Likewise.
6740         * sunrpc/svc_raw.c: Likewise.
6741         * sunrpc/svc_run.c: Likewise.
6742         * sunrpc/svc_tcp.c: Likewise.
6743         * sunrpc/svc_udp.c: Likewise.
6744         * sunrpc/svc_unix.c: Likewise.
6745         * sunrpc/svcauth_des.c: Likewise.
6746         * sunrpc/xcrypt.c: Likewise.
6747         * sunrpc/xdr.c: Likewise.
6748         * sunrpc/xdr_array.c: Likewise.
6749         * sunrpc/xdr_float.c: Likewise.
6750         * sunrpc/xdr_intXX_t.c: Likewise.
6751         * sunrpc/xdr_mem.c: Likewise.
6752         * sunrpc/xdr_rec.c: Likewise.
6753         * sunrpc/xdr_ref.c: Likewise.
6754         * sunrpc/xdr_sizeof.c: Likewise.
6755         * sunrpc/xdr_stdio.c: Likewise.
6756
6757 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6758
6759         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6760         change.  Update copyright years.
6761
6762 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6763
6764         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6765
6766 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6767             Joseph Myers  <joseph@codesourcery.com>
6768             Paul Pluzhnikov  <ppluzhnikov@google.com>
6769
6770         [BZ #14012]
6771         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6772         requiring rpcgen.
6773         [cross-compiling] (extra-libs): Likewise.
6774         [cross-compiling] (extra-libs-others): Likewise.
6775         [cross-compiling] (librpcsvc-routines): Likewise.
6776         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6777         [cross-compiling] (omit-deps): Likewise.
6778         (sunrpc-CPPFLAGS): New variable.
6779         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6780         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6781         (cross-rpcgen-objs): New variable.
6782         (extra-objs): Append $(cross-rpcgen-objs).
6783         ($(cross-rpcgen-objs)): New rule.
6784         ($(objpfx)cross-rpcgen): Likewise.
6785         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6786         comment.
6787         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6788         ($(objpfx)x%.stmp): Likewise.
6789         * sunrpc/proto.h [IS_IN_build] (_): Define.
6790         [IS_IN_build] (_libc_intl_domainname): Likewise.
6791
6792 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6793
6794         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6795         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6796         and R_X86_64_TPOFF64.
6797
6798 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6799
6800         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6801         sysdeps/unix/sysv/syscalls.list.
6802         (stime): Likewise.
6803         (utime): Likewise.
6804         * sysdeps/unix/sysv/syscalls.list: Remove file.
6805
6806 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6807
6808         [BZ #3440]
6809         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6810         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6811         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6812         (__LC_IDENTIFICATION): Make these macros useful in #if
6813         expressions, as required by C99.
6814
6815 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6816
6817         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6818         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6819         after this.
6820
6821 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6822
6823         * stdlib/longlong.h: Updated from GCC.
6824
6825 2012-05-09  Andreas Jaeger  <aj@suse.de>
6826
6827         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6828         default is first entry.
6829         (run_mode): Set type.
6830         (main): Remove informal message about syslog.
6831         (options): Fix typo.
6832
6833         [BZ #14053]
6834         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6835         to asm.
6836         (lrint): Likewise.
6837         (llrintf): Likewise.
6838         (llrint): Likewise.
6839         (rint): Likewise.
6840         (rintf): Likewise.
6841         (nearbyint): Likewise.
6842         (nearbyintf): Likewise.
6843
6844 2012-05-09  Andreas Jaeger  <aj@suse.de>
6845             Pedro Alves  <palves@redhat.com>
6846
6847         * nscd/nscd.c (run_mode): Use enum.
6848         (main): Cleanup coding style issue.
6849
6850 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6851             Andreas Jaeger  <aj@suse.de>
6852
6853         * nscd/nscd.c (go_background): Replaced with...
6854         (run_mode): ... this.
6855         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6856         (options): Add -F --foreground.
6857         (main): Implement it.
6858         (parse_opt): Parse it.
6859
6860 2012-05-09  Andreas Jaeger  <aj@suse.de>
6861
6862         [BZ #14083]
6863         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6864         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6865         -Wconversion warning.
6866         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6867         Likewise.
6868
6869 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6870
6871         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6872         == 0.
6873         (LC_ALL): Use macro-int-constant.
6874         (LC_COLLATE): Likewise.
6875         (LC_CTYPE): Likewise.
6876         (LC_MESSAGES): Likewise.
6877         (LC_MONETARY): Likewise.
6878         (LC_NUMERIC): Likewise.
6879         (LC_TIME): Likewise.
6880         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6881         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6882         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6883         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6884         Specify type.
6885         [C99-based standards] (float_t): Expect type.
6886         [C99-based standards] (double_t): Expect type.
6887         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6888         type.
6889         [C99-based standards] (HUGE_VALL): Likewise.
6890         [C99-based standards] (INFINITY): Likewise.
6891         [C99-based standards] (NAN): Likewise.
6892         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6893         [C99-based standards] (FP_NAN): Likewise.
6894         [C99-based standards] (FP_NORMAL): Likewise.
6895         [C99-based standards] (FP_SUBNORMAL): Likewise.
6896         [C99-based standards] (FP_ZERO): Likewise.
6897         [C99-based standards] (FP_FAST_FMA): Use
6898         optional-macro-int-constant.  Specify type.  Require == 1.
6899         [C99-based standards] (FP_FAST_FMAF): Likewise.
6900         [C99-based standards] (FP_FAST_FMAL): Likewise.
6901         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6902         [C99-based standards] (FP_ILOGBNAN): Likewise.
6903         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6904         Specify type.
6905         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6906         [C99-based standards] (math_errhandling): Specify type.
6907         [ISO99 || ISO11] (signgam): Do not allow.
6908         [non-C99-based standards] (copysignf): Do not allow.
6909         [non-C99-based standards] (exp2f): Likewise.
6910         [non-C99-based standards] (log2f): Likewise.
6911         [non-C99-based standards] (modff): Allow.
6912         [non-C99-based standards] (erff): Do not allow.
6913         [non-C99-based standards] (erfcf): Likewise.
6914         [non-C99-based standards] (gammaf): Likewise.
6915         [non-C99-based standards] (hypotf): Likewise.
6916         [non-C99-based standards] (j0f): Likewise.
6917         [non-C99-based standards] (j1f): Likewise.
6918         [non-C99-based standards] (jnf): Likewise.
6919         [non-C99-based standards] (lgammaf): Likewise.
6920         [non-C99-based standards] (tgammaf): Likewise.
6921         [non-C99-based standards] (y0f): Likewise.
6922         [non-C99-based standards] (y1f): Likewise.
6923         [non-C99-based standards] (ynf): Likewise.
6924         [non-C99-based standards] (isnanf): Likewise.
6925         [non-C99-based standards] (acoshf): Likewise.
6926         [non-C99-based standards] (asinhf): Likewise.
6927         [non-C99-based standards] (atanhf): Likewise.
6928         [non-C99-based standards] (cbrtf): Likewise.
6929         [non-C99-based standards] (expm1f): Likewise.
6930         [non-C99-based standards] (ilogbf): Likewise.
6931         [non-C99-based standards] (log1pf): Likewise.
6932         [non-C99-based standards] (logbf): Likewise.
6933         [non-C99-based standards] (nextafterf): Likewise.
6934         [non-C99-based standards] (remainderf): Likewise.
6935         [non-C99-based standards] (rintf): Likewise.
6936         [non-C99-based standards] (scalbf): Likewise.
6937         [non-C99-based standards] (copysignl): Likewise.
6938         [non-C99-based standards] (exp2l): Likewise.
6939         [non-C99-based standards] (log2l): Likewise.
6940         [non-C99-based standards] (modfl): Allow.
6941         [non-C99-based standards] (erfl): Do not allow.
6942         [non-C99-based standards] (erfcl): Likewise.
6943         [non-C99-based standards] (gammal): Likewise.
6944         [non-C99-based standards] (hypotl): Likewise.
6945         [non-C99-based standards] (j0l): Likewise.
6946         [non-C99-based standards] (j1l): Likewise.
6947         [non-C99-based standards] (jnl): Likewise.
6948         [non-C99-based standards] (lgammal): Likewise.
6949         [non-C99-based standards] (tgammal): Likewise.
6950         [non-C99-based standards] (y0l): Likewise.
6951         [non-C99-based standards] (y1l): Likewise.
6952         [non-C99-based standards] (ynl): Likewise.
6953         [non-C99-based standards] (isnanl): Likewise.
6954         [non-C99-based standards] (acoshl): Likewise.
6955         [non-C99-based standards] (asinhl): Likewise.
6956         [non-C99-based standards] (atanhl): Likewise.
6957         [non-C99-based standards] (cbrtl): Likewise.
6958         [non-C99-based standards] (expm1l): Likewise.
6959         [non-C99-based standards] (ilogbl): Likewise.
6960         [non-C99-based standards] (log1pl): Likewise.
6961         [non-C99-based standards] (logbl): Likewise.
6962         [non-C99-based standards] (nextafterl): Likewise.
6963         [non-C99-based standards] (remainderl): Likewise.
6964         [non-C99-based standards] (rintl): Likewise.
6965         [non-C99-based standards] (scalbl): Likewise.
6966         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6967         [non-C99-based standards] (FP_*): Do not allow.
6968         [C99-based standards] (FP_*): Change to
6969         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6970         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6971         allow.
6972         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6973         (SIG_ERR): Likewise.
6974         [X/Open-based standards] (SIG_HOLD): Likewise.
6975         (SIG_IGN): Likewise.
6976         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6977         positive value.
6978         (SIGFPE): Likewise.
6979         (SIGILL): Likewise.
6980         (SIGINT): Likewise.
6981         (SIGSEGV): Likewise.
6982         (SIGTER): Likewise.
6983         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6984         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6985         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6986         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6987         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6988         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6989         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6990         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6991         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6992         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6993         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6994         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6995         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6996         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6997         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6998         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6999         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7000         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7001         [X/Open-based standards] (SIGTRAP): Likewise.
7002         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7003         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7004         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7005         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7006         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7007         allow.
7008
7009 2012-05-08  Ian Wienand  <ianw@vmware.com>
7010
7011         [BZ #14080]
7012         * time/tzset.c (__tzset_parse_tz): Update default rules for
7013         daylight time changes in the Energy Policy Act of 2005.
7014
7015 2012-05-09  Andreas Jaeger  <aj@suse.de>
7016
7017         [BZ #13983]
7018         * elf/ldconfig.c (parse_conf): Change string to make clear that
7019         ldconfig only issued a warning if ld.so.conf does not exist.
7020
7021 2012-05-08  David S. Miller  <davem@davemloft.net>
7022
7023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7024         movxtod instead of popping the value on the stack.
7025
7026         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7027
7028 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7029
7030         * config.h.in: Add HAVE_ARM_PCS_VFP.
7031
7032 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7033
7034         [BZ #13979]
7035         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7036         checking but the checks are disabled for any reason.
7037
7038 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7039
7040         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7041         and ELF64_R_TYPE with ELFW(R_TYPE).
7042
7043 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7044
7045         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7046         (ulimit): Likewise.
7047
7048         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7049         (settimeofday): Likewise.
7050
7051 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7052
7053         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7054         a struct th_u2 inside the union, and move tu_block/tu_code into
7055         a new th_u3 union of tu_block/tu_code inside of that.  Move
7056         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7057         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7058         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7059         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7060         (th_stuff): Change to th_u1.tu_stuff.
7061         (th_data): Define.
7062         (th_msg): Change to th_u1.th_u2.tu_data.
7063
7064 2012-05-07  David S. Miller  <davem@davemloft.net>
7065
7066         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7067
7068         [BZ #14074]
7069         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7070         (SETUP_PIC_REG): Use it.
7071         (SETUP_PIC_REG_LEAF): Use it.
7072
7073 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7074
7075         [BZ #13885]
7076         [BZ #13923]
7077         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7078         USE_AS_EXPM1L.
7079         (EXPL_FINITE): Likewise.
7080         (FLDLOG): Likewise.
7081         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7082         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7083         e_expl.S.
7084         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7085         USE_AS_EXPM1L.
7086         (EXPL_FINITE): Likewise.
7087         (FLDLOG): Likewise.
7088         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7089         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7090         e_expl.S.
7091         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7092         test of -max_value argument for long double.
7093         * sysdeps/i386/fpu/libm-test-ulps: Update.
7094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7095
7096 2012-05-06  David S. Miller  <davem@davemloft.net>
7097
7098         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7099         quad soft-float symbols whose references which are compiler
7100         generated.
7101         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7102
7103 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7104
7105         [BZ #13884]
7106         [BZ #13914]
7107         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7108         USE_AS_EXP10L.
7109         (EXPL_FINITE): Likewise.
7110         (FLDLOG): Likewise.
7111         (c0): Likewise.
7112         (c1): Likewise.
7113         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7114         Adjust comments for base varying.
7115         (__expl_finite): Change alias to EXPL_FINITE.
7116         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7117         e_expl.S.
7118         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7119         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7120         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7121         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7122         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7123         USE_AS_EXP10L.
7124         (EXPL_FINITE): Likewise.
7125         (FLDLOG): Likewise.
7126         (c0): Likewise.
7127         (c1): Likewise.
7128         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7129         Adjust comments for base varying.
7130         (__expl_finite): Change alias to EXPL_FINITE.
7131         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7132         tests for bugs.
7133         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7134
7135         [BZ #14064]
7136         * math/libm-test.inc (check_float_internal): Correct ulp
7137         calculation for subnormal expected results.
7138
7139 2012-05-06  Andreas Jaeger  <aj@suse.de>
7140
7141         * Makeconfig (+math-flags): New, set to -frounding-math.
7142         (+cflags): Add +math-flags so that all of glibc gets compiled with
7143         it.
7144
7145         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7146
7147 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7148
7149         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7150         Disable one test.
7151
7152         [BZ #13787]
7153         [BZ #13922]
7154         [BZ #14036]
7155         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7156         (__ieee754_expl): Allow for and saturate large arguments.
7157         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7158         (u_threshold): Likewise.
7159         (__exp): Call __ieee754_exp before checking for overflow and
7160         underflow.
7161         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7162         (u_threshold): Likewise.
7163         (__expf): Call __ieee754_expf before checking for overflow and
7164         underflow.
7165         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7166         (u_threshold): Likewise.
7167         (__expl): Call __ieee754_expl before checking for overflow and
7168         underflow.
7169         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7170         (__ieee754_expl): Allow for and saturate large arguments.
7171         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7172         missing overflow exception on overflow.
7173         (expm1_test): Do not allow missing overflow exception on overflow.
7174
7175         * sysdeps/i386/fpu/e_expl.c: Move to ...
7176         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7177         rather than using inline asm.
7178         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7179         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7180         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7181
7182         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7183         (nice): Likewise.
7184         (poll): Likewise.
7185         (signal): Likewise.
7186         (time): Likewise.
7187         (times): Likewise.
7188
7189 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7190
7191         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7192         sysdeps/unix/common/syscalls.list.
7193         (fchmod): Likewise.
7194         (fchown): Likewise.
7195         (ftruncate): Likewise.
7196         (getrusage): Likewise.
7197         (gettimeofday): Likewise.
7198         (setpgid): Likewise.
7199         (setregid): Likewise.
7200         (setreuid): Likewise.
7201         (sigaction): Likewise.
7202         (truncate): Likewise.
7203         (vhangup): Likewise.
7204         * sysdeps/unix/common/syscalls.list: Remove file.
7205         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7206         * sysdeps/unix/sysv/linux/Implies: Likewise.
7207
7208 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7209
7210         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7211         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7212         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7213         Moved to ...
7214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7215         Here.
7216         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7217         to ...
7218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7219         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7220         to ...
7221         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7222         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7223         to ...
7224         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7225         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7226         to ...
7227         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7228         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7229         to ...
7230         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7231         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7232         to ...
7233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7234         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7235         to ...
7236         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7237         Here.
7238         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7239         to ...
7240         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7241         Here.
7242         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7243         to ...
7244         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7245         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7246         Moved to ...
7247         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7248         Here.
7249         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7250         to ...
7251         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7252
7253 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7254
7255         * sysdeps/unix/common/bits/dirent.h: Remove file.
7256         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7257
7258         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7259         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7260         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7261         * sysdeps/unix/bsd/isatty.c: Likewise.
7262         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7263         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7264         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7265
7266 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7267
7268         [BZ #13563]
7269         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7270         long double comparison inaccuracies.
7271         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7272         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7273
7274 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7275
7276         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7277         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7278
7279 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7280
7281         [BZ #14049]
7282         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7283         nonzero digits before rounding a hex value.
7284         * stdlib/tst-strtod.c (tests): Add another test.
7285
7286 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7287
7288         * sysdeps/s390/fpu/libm-test-ulps: Update.
7289
7290 2012-05-03  Andreas Jaeger  <aj@suse.de>
7291
7292         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7293         does not get optimized out.
7294         (malloc_opt_barrier): New.
7295
7296 2012-05-03  Andreas Jaeger  <aj@suse.de>
7297             Roland McGrath  <roland@hack.frob.com>
7298
7299         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7300         intermediate file deletion.
7301         (generated): Add .symlist files.
7302
7303 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7304
7305         [BZ #13775]
7306         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7307         Redirect under this condition.
7308         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7309         [__USE_GNU] (__dprintf_chk): Not under this condition.
7310         [__USE_GNU] (__vdprintf_chk): Likewise.
7311         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7312         under this condition.
7313         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7314         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7315         [__USE_XOPEN2K8] (vdprintf): Likewise.
7316         [__USE_GNU] (__dprintf_chk): Not under this condition.
7317         [__USE_GNU] (__vdprintf_chk): Likewise.
7318         [__USE_GNU] (dprintf): Likewise.
7319         [__USE_GNU] (vdprintf): Likewise.
7320
7321 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7322
7323         * elf/Makefile (common-generated): Set this instead of generated for
7324         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7325         $(all-built-dso)-derived lists.
7326
7327 2012-05-03  Andreas Jaeger  <aj@suse.de>
7328
7329         * sysdeps/i386/fpu/libm-test-ulps: Update.
7330
7331         * FAQ: Removed.
7332         * FAQ.in: Likewise.
7333         * scripts/gen-FAQ.pl: Likewise.
7334         * manual/install.texi (Installation): Point to online location of
7335         FAQ.
7336         * Makefile (files-for-dist): Remove FAQ.
7337         (FAQ): Remove.
7338
7339 2012-05-02  Allan McRae  <allan@archlinux.org>
7340
7341         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7342         (LDFLAGS-reldepmod5.so): Likewise.
7343         (LDFLAGS-reldep6mod1.so): Likewise.
7344         (LDFLAGS-reldep6mod4.so): Likewise.
7345         (LDFLAGS-reldep8mod3.so): Likewise.
7346         (LDFLAGS-unload4mod1.so): Likewise.
7347         (LDFLAGS-unload4mod2.so): Likewise.
7348         (LDFLAGS-tst-initorder): Likewise.
7349         (LDFLAGS-tst-initordera2.so): Likewise.
7350         (LDFLAGS-tst-initordera3.so): Likewise.
7351         (LDFLAGS-tst-initordera4.so): Likewise.
7352         (LDFLAGS-tst-initorderb2.so): Likewise.
7353         (LDFLAGS-noload): Likewise.
7354         (LDFLAGS-next): Likewise.
7355         (LDFLAGS-order2mod1.so): Likewise.
7356         (LDFLAGS-order2mod2.so): Likewise.
7357         (LDFLAGS-tst-initorder2): Likewise.
7358         (LDFLAGS-tst-initorder2a.so): Likewise.
7359         (LDFLAGS-tst-initorder2b.so): Likewise.
7360         (LDFLAGS-tst-initorder2c.so): Likewise.
7361         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7362
7363 2012-05-02  David S. Miller  <davem@davemloft.net>
7364
7365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7366
7367 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7368
7369         [BZ #14055]
7370         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7371
7372 2012-05-02  Andreas Jaeger  <aj@suse.de>
7373
7374         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7375         since we manipulate rounding mode.
7376         (CPPFLAGS-test-idouble.c): Likewise.
7377         (CPPFLAGS-test-ifloat.c): Likewise.
7378         (CFLAGS-test-ldouble.c): Likewise.
7379         (CFLAGS-test-double.c): Likewise.
7380         (CFLAGS-test-float.c): Likewise.
7381         (CFLAGS-test-misc.c): Likewise.
7382         (CFLAGS-test-test-fenv.c): Likewise.
7383
7384 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7385
7386         [BZ #2550]
7387         [BZ #2570]
7388         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7389         comparisons to determine direction to adjust input.
7390
7391 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7392
7393         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7394         output to the target.
7395
7396         * scripts/localplt.awk: New file.
7397         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7398         (check-localplt-CFLAGS): Variable removed.
7399         ($(all-built-dso:=.jmprel)): New static pattern rule.
7400         (generated): Add those targets.
7401         (localplt-built-dso): New variable.
7402         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7403
7404         * elf/check-localplt.c: File removed.
7405
7406         * scripts/check-execstack.awk: New file.
7407         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7408         (check-execstack-CFLAGS): Variable removed.
7409         ($(objpfx)check-execstack.h): Target removed.
7410         ($(objpfx)execstack-default): New target.
7411         (generated): Add that instead of check-execstack.h.
7412         ($(all-built-dso:=.phdr)): New static pattern rule.
7413         (generated): Add those targets.
7414         * elf/check-execstack.c: File removed.
7415
7416         * scripts/check-textrel.awk: New file.
7417         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7418         (check-textrel-CFLAGS): Variable removed.
7419         (all-built-dso): Use := to define.o
7420         ($(all-built-dso:=.dyn)): New static pattern rule.
7421         (generated): Add those targets.
7422         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7423         * config.make.in (READELF): New substituted variable.
7424         * elf/check-textrel.c: File removed.
7425
7426 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7427
7428         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7429         allow.
7430         * conform/data/ctype.h-data [C99-based standards] (isblank):
7431         Expect function.
7432         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7433         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7434         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7435         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7436         Specify type.  Require positive value.
7437         (EILSEQ): Likewise.
7438         (ERANGE): Likewise.
7439         [ISO || POSIX] (EILSEQ): Do not expect.
7440         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7441         Specify type.  Require positive value.
7442         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7443         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7444         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7445         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7446         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7447         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7448         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7449         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7450         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7451         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7452         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7453         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7454         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7455         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7456         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7457         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7458         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7459         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7460         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7461         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7462         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7463         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7464         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7465         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7466         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7467         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7468         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7469         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7470         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7471         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7472         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7473         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7474         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7475         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7476         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7477         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7478         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7479         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7480         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7481         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7482         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7483         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7484         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7485         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7486         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7487         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7488         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7489         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7490         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7491         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7492         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7493         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7494         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7495         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7496         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7497         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7498         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7499         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7500         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7501         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7502         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7503         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7504         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7505         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7506         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7507         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7508         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7509         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7510         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7511         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7512         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7513         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7514         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7515         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7516         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7517         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7518         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7519         Require >= 2.
7520         (FLT_ROUNDS): Expect as macro, not constant.
7521         (FLT_MANT_DIG): Use macro-int-constant.
7522         (DBL_MANT_DIG): Likewise.
7523         (LDBL_MANT_DIG): Likewise.
7524         (FLT_DIG): Likewise.
7525         (DBL_DIG): Likewise.
7526         (LDBL_DIG): Likewise.
7527         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7528         (DBL_MIN_EXP): Likewise.
7529         (LDBL_MIN_EXP): Likewise.
7530         (FLT_MAX_EXP): Use macro-int-constant.
7531         (DBL_MAX_EXP): Likewise.
7532         (LDBL_MAX_EXP): Likewise.
7533         (FLT_MAX_10_EXP): Likewise.
7534         (DBL_MAX_10_EXP): Likewise.
7535         (LDBL_MAX_10_EXP): Likewise.
7536         (FLT_MAX): Use macro-constant.
7537         (DBL_MAX): Likewise.
7538         (LDBL_MAX): Likewise.
7539         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7540         (DBL_EPSILON): Likewise.
7541         (LDBL_EPSILON): Likewise.
7542         (FLT_MIN): Likewise.
7543         (DBL_MIN): Likewise.
7544         (LDBL_MIN): Likewise.
7545         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7546         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7547         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7548         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7549         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7550         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7551         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7552         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7553         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7554         [ISO11] (FLT_TRUE_MIN): Likewise.
7555         [ISO11] (LDBL_TRUE_MIN): Likewise.
7556         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7557         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7558         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7559         (SCHAR_MAX): Likewise.
7560         (UCHAR_MAX): Likewise.
7561         (CHAR_MIN): Likewise.
7562         (CHAR_MAX): Likewise.
7563         (MB_LEN_MAX): Use macro-int-constant.
7564         (SHRT_MIN): Use macro-int-constant.  Specify type.
7565         (SHRT_MAX): Likewise.
7566         (USHRT_MAX): Likewise.
7567         (INT_MAX): Likewise.
7568         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7569         bound negative.
7570         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7571         bound with "U".
7572         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7573         bound with "L".
7574         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7575         bound negative.  Suffix upper bound with "L".
7576         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7577         bound with "UL".
7578         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7579         Specify type.
7580         [C99-based standards] (LLONG_MAX): Likewise.
7581         [C99-based standards] (ULLONG_MAX): Likewise.
7582         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7583         == 0.
7584         [ISO11] (max_align_t): Require type.
7585         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7586
7587         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7588         from $CFLAGS, without defining away __attribute__ calls.
7589         (checknamespace): Use $CFLAGS_namespace.
7590
7591         * conform/conformtest.pl (@keywords): Only include C99 keywords
7592         for standards based on C99 or C11.
7593
7594         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7595         Disable tests.
7596         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7597         UNIX98]: Likewise.
7598
7599         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7600         usability of symbols in #if.
7601
7602         * conform/conformtest.pl: If macro or constant types start
7603         "promoted:", expect the symbol to be of the following type
7604         promoted by the integer promotions.
7605
7606         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7607         in one place.  Also handle "macro-constant".
7608
7609         * conform/conformtest.pl: Only accept expected macro values with
7610         "==".  Parse all "macro" lines in one place.
7611         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7612
7613         * conform/conformtest.pl: Handle braced types on "constant" lines
7614         instead of handling "typed-constant".
7615         * conform/data/signal.h-data: Use "constant" instead of
7616         "typed-constant".
7617
7618         * conform/conformtest.pl: Handle "optional-" at start of lines in
7619         one place rather than duplicating several cases.  Handle each
7620         format of "macro" line with initial "optional-".
7621
7622         * conform/conformtest.pl: Only accept expected constant or
7623         optional-constant values with "==".  Parse all "constant" lines in
7624         one place.  Parse all "optional-constant" lines in one place.
7625         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7626         * conform/data/fmtmsg.h-data: Likewise.
7627         * conform/data/netinet/in.h-data: Likewise.
7628         * conform/data/tar.h-data: Likewise.
7629         * conform/data/limits.h-data: Use "==" form on "constant" and
7630         "optional-constant" lines.
7631
7632         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7633         Use -std=c99 for XOPEN2K.
7634         (@knownproblems): Remove.
7635         (newtoken): Don't check %isknown.
7636
7637         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7638         Do not expect macro.
7639         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7640         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7641         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7642         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7643         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7644         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7645         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7646         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7647         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7648         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7649         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7650         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7651         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7652         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7653         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7654         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7655         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7656         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7657         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7658         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7659         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7660         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7661         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7662         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7663         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7664         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7665         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7666         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7667         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7668         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7669         [XPG3] (acosh): Likewise.
7670         [XPG3] (asinh): Likewise.
7671         [XPG3] (atanh): Likewise.
7672         [XPG3] (cbrt): Likewise.
7673         [XPG3] (expm1): Likewise.
7674         [XPG3] (ilogb): Likewise.
7675         [XPG3] (log1p): Likewise.
7676         [XPG3] (logb): Likewise.
7677         [XPG3] (nextafter): Likewise.
7678         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7679         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7680         [XPG3] (remainder): Likewise.
7681         [XPG3] (rint): Likewise.
7682         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7683         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7684         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7685         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7686         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7687         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7688         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7689         [UNIX98 || XOPEN2K] (scalb): Expect.
7690         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7691         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7692         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7693         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7694         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7695         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7696         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7697         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7698         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7699         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7700         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7701         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7702         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7703         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7704         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7705         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7706         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7707         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7708         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7709         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7710         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7711         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7712         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7713         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7714         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7715         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7716         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7717         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7718         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7719         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7720         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7721         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7722         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7723         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7724         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7725         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7726         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7727         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7728         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7729         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7730         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7731         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7732         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7733         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7734         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7735         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7736         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7737         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7738         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7739         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7740         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7741         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7742         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7743         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7744         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7745         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7746         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7747         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7748         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7749         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7750         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7751         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7752         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7753         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7754         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7755         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7756         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7757         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7758         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7759         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7760         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7761         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7762         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7763         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7764         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7765         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7766         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7767         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7768         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7769         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7770         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7771         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7772         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7773         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7774         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7775         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7776         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7777         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7778         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7779         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7780         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7781         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7782         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7783         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7784         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7785         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7786         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7787         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7788         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7789         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7790         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7791         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7792         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7793         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7794         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7795         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7796         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7797         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7798         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7799         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7800         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7801         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7802         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7803         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7804         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7805         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7806         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7807         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7808         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7809         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7810         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7811         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7812         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7813         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7814         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7815         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7816         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7817         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7818         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7819         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7820         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7821         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7822         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7823         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7824         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7825         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7826         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7827
7828         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7829         _XOPEN_SOURCE_EXTENDED for XPG4.
7830
7831         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7832
7833         * Makeconfig (localtime): Remove variable.
7834         (inst_localtime-file): Likewise.
7835
7836 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7837
7838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7839         Update.
7840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7841         Update.
7842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7843         Update.
7844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7845         Update.
7846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7847         Update.
7848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7849         Update.
7850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7851         Update.
7852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7853         Update.
7854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7855         Update.
7856
7857 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7858
7859         [BZ #2550]
7860         [BZ #2570]
7861         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7862         comparisons to determine direction to adjust input.
7863         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7864         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7865         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7866         Likewise.
7867         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7868         Likewise.
7869         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7870         Likewise.
7871         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7872         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7873         Likewise.
7874         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7875         Likewise.
7876         * math/libm-test.inc (nexttoward_test): Add more tests.
7877
7878 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7879
7880         [BZ #14040]
7881         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7882         in version GLIBC_2.1, not GLIBC_2.0.
7883         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7884         Likewise.
7885
7886 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7887
7888         [BZ #13942]
7889         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7890         (1 - x) * (1 + x).
7891         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7892         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7893         * math/libm-test.inc (acos_test): Add more tests.
7894         (asin_test): Likewise.
7895         * sysdeps/i386/fpu/libm-test-ulps: Update.
7896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7897
7898         [BZ #14034]
7899         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7900         of square root.
7901         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7902         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7903         * math/libm-test.inc (acos_test_tonearest): New function.
7904         (acos_test_towardzero): Likewise.
7905         (acos_test_downward): Likewise.
7906         (acos_test_upward): Likewise.
7907         (asin_test_tonearest): Likewise.
7908         (asin_test_towardzero): Likewise.
7909         (asin_test_downward): Likewise.
7910         (asin_test_upward): Likewise.
7911         (main): Call the new functions.
7912         * sysdeps/i386/fpu/libm-test-ulps: Update.
7913         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7914
7915         [BZ #13884]
7916         [BZ #13924]
7917         * math/e_exp10.c: Include <float.h>.
7918         (__ieee754_exp10): Handle underflow here rather than multiplying
7919         large negative argument by M_LN10.
7920         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7921         of __ieee754_expf.
7922         * math/e_exp10l.c: Include <float.h>.
7923         (__ieee754_exp10l): Handle underflow here rather than multiplying
7924         large negative argument by M_LN10l.
7925         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7926         spurious overflow exception on underflow.
7927
7928 2012-04-29  Marek Polacek  <polacek@redhat.com>
7929
7930         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7931         (__fortify_function): New macro.
7932         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7933         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7934         __extern_always_inline.
7935         * libio/bits/stdio2.h: Likewise.
7936         * libio/bits/stdio.h: Likewise.
7937         * string/string.h: Likewise.
7938         * string/bits/string3.h: Likewise.
7939         * include/stdio.h: Likewise.
7940         * stdlib/bits/stdlib.h: Likewise.
7941         * stdlib/stdlib.h: Likewise.
7942         * rt/bits/mqueue2.h: Likewise.
7943         * rt/mqueue.h: Likewise.
7944         * posix/bits/unistd.h: Likewise.
7945         * posix/unistd.h: Likewise.
7946         * io/bits/poll2.h: Likewise.
7947         * io/bits/fcntl2.h: Likewise.
7948         * io/fcntl.h: Likewise.
7949         * io/sys/poll.h: Likewise.
7950         * misc/bits/syslog.h: Likewise.
7951         * misc/bits/syslog-ldbl.h: Likewise.
7952         * misc/sys/syslog.h: Likewise.
7953         * socket/bits/socket2.h: Likewise.
7954         * socket/sys/socket.h: Likewise.
7955         * debug/tst-chk1.c: Likewise.
7956         * wcsmbs/bits/wchar2.h: Likewise.
7957         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7958         * wcsmbs/wchar.h: Likewise.
7959
7960 2012-04-29  Andreas Jaeger  <aj@suse.de>
7961
7962         * Makerules (tests): Remove enable-check-abi protection.
7963         (check-abi-warn): Remove.
7964         (check-abi-%): Remove check-abi-warn usage.
7965
7966         * configure.in: Remove check-abi configure option.
7967         * configure: Regenerated.
7968         * config.make.in (enable-check-abi): Remove.
7969
7970 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7971
7972         [BZ #14033]
7973         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7974         double functions to double *_finite functions.
7975
7976         [BZ #13941]
7977         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7978         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7979         LDBL_MIN_EXP.
7980         * stdio-common/Makefile (tests): Add tst-sprintf3.
7981         * stdio-common/tst-sprintf3.c: New file.
7982
7983         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7984         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7985
7986 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7987
7988         * conform/conformtest.pl: Remove duplicate typed-constant
7989         handling.
7990
7991 2012-04-28  David S. Miller  <davem@davemloft.net>
7992
7993         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7994         (check-abi-%): Remove AWK script prerequisite and explicit
7995         abilist directory.
7996         (check-abi): Rewrite to just diff the symlist with the abilist.
7997         (config-tls, config-abi-config): Delete, no longer used.
7998         (update-abi-%): Remove AWK script and explicit abilist directory.
7999         (update-abi): Rewrite to simply compare and conditionally copy the
8000         symlist and the sysdep abilist file.  Remove update-abi-config
8001         checks.
8002         * abilist/ld.abilist: Remove.
8003         * abilist/libBrokenLocale.abilist: Remove.
8004         * abilist/libanl.abilist: Remove.
8005         * abilist/libcrypt.abilist: Remove.
8006         * abilist/libdl.abilist: Remove.
8007         * abilist/librt.abilist: Remove.
8008         * abilist/libthread_db.abilist: Remove.
8009         * abilist/libutil.abilist: Remove.
8010         * scripts/extract-abilist.awk: Remove.
8011         * scripts/merge-abilist.awk: Remove.
8012         * sysdeps/generic/libcidn.abilist: New file.
8013         * sysdeps/generic/libnss_compat.abilist: New file.
8014         * sysdeps/generic/libnss_db.abilist: New file.
8015         * sysdeps/generic/libnss_dns.abilist: New file.
8016         * sysdeps/generic/libnss_files.abilist: New file.
8017         * sysdeps/generic/libnss_hesiod.abilist: New file.
8018         * sysdeps/generic/libnss_nis.abilist: New file.
8019         * sysdeps/generic/libnss_nisplus.abilist: New file.
8020         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8021         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8022         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8023         file.
8024         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8025         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8026         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8027         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8028         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8029         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8030         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8031         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8032         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8033         file.
8034         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8035         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8036         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8037         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8038         file.
8039         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8040         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8041         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8042         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8043         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8044         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8045         file.
8046         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8047         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8048         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8049         file.
8050         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8051         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8052         New file.
8053         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8054         New file.
8055         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8056         New file.
8057         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8058         New file.
8059         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8060         New file.
8061         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8062         New file.
8063         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8064         New file.
8065         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8066         New file.
8067         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8068         New file.
8069         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8070         New file.
8071         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8072         New file.
8073         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8074         New file.
8075         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8076         New file.
8077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8078         file.
8079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8080         New file.
8081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8082         New file.
8083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8084         file.
8085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8086         New file.
8087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8088         New file.
8089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8090         file.
8091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8092         New file.
8093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8094         New file.
8095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8096         New file.
8097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8098         New file.
8099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8100         New file.
8101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8102         New file.
8103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8104         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8105         file.
8106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8107         New file.
8108         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8109         file.
8110         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8111         file.
8112         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8113         file.
8114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8115         file.
8116         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8117         file.
8118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8119         New file.
8120         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8121         file.
8122         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8123         file.
8124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8125         New file.
8126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8127         file.
8128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8130         file.
8131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8132         New file.
8133         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8134         file.
8135         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8136         file.
8137         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8138         file.
8139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8140         file.
8141         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8142         file.
8143         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8144         New file.
8145         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8146         file.
8147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8148         file.
8149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8150         New file.
8151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8152         file.
8153         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8154         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8155         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8156         file.
8157         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8158         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8159         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8160         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8161         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8162         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8163         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8164         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8165         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8166         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8167         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8168         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8169         file.
8170         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8171         New file.
8172         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8173         file.
8174         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8175         file.
8176         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8177         file.
8178         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8179         file.
8180         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8181         file.
8182         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8183         New file.
8184         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8185         New file.
8186         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8187         file.
8188         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8189         New file.
8190         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8191         file.
8192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8194         file.
8195         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8196         New file.
8197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8198         file.
8199         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8200         file.
8201         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8202         file.
8203         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8204         file.
8205         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8206         file.
8207         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8208         New file.
8209         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8210         New file.
8211         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8212         file.
8213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8214         New file.
8215         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8216         file.
8217
8218 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8219
8220         * conform/conformtest.pl: Fix typo in handling typed-constant from
8221         allow-header.
8222
8223 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8224
8225         * README: Cut down references to pre-2.6 Linux kernels and
8226         Linuxthreads.  Update lists of configurations in libc and ports
8227         and sort alphabetically.  Say "or newer" with Linux kernel version
8228         requirements.
8229
8230         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8231
8232 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8233
8234         [BZ #887]
8235         * math/libm-test.inc (logb_test_downward): New test to expose
8236         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8237         rounding mode.
8238
8239 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8240
8241         [BZ #14027]
8242         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8243         to be done.
8244         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8245         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8246
8247 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8248
8249         * sysdeps/unix/i386/brk.S: Remove file.
8250         * sysdeps/unix/i386/dl-brk.S: Likewise.
8251         * sysdeps/unix/i386/pipe.S: Likewise.
8252         * sysdeps/unix/i386/sigreturn.S: Likewise.
8253         * sysdeps/unix/i386/syscall.S: Likewise.
8254         * sysdeps/unix/i386/vfork.S: Likewise.
8255         * sysdeps/unix/i386/wait.S: Likewise.
8256
8257         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8258         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8259
8260         * configure.in (arm*-none*): Do not allow without
8261         --enable-hacker-mode.
8262         (netbsd*): Remove case setting base_os.
8263         (386bsd*): Likewise.
8264         (freebsd*): Likewise.
8265         (bsdi*): Likewise.
8266         (osf*): Likewise.
8267         (sunos*): Likewise.
8268         (ultrix*): Likewise.
8269         (newsos*): Likewise.
8270         (dynix*): Likewise.
8271         (*bsd*): Likewise.
8272         (sysv*): Likewise.
8273         (isc*): Likewise.
8274         (esix*): Likewise.
8275         (sco*): Likewise.
8276         (minix*): Likewise.
8277         (irix4*): Likewise.
8278         (irix6*): Likewise.
8279         (solaris[2-9]*): Likewise.
8280         (none): Likewise.
8281         * configure: Regenerated.
8282
8283 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8284
8285         [BZ #11521]
8286         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8287         overflow or cancellation in calculating denominator.
8288         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8289         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8290         down expression to avoid unexpected rounding in newer GCCs.
8291         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8292
8293 2012-04-26  David S. Miller  <davem@davemloft.net>
8294
8295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8296         long-double compat symbols.
8297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8310
8311 2012-04-25  David S. Miller  <davem@davemloft.net>
8312
8313         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8314         HWCAP_* values only after the memory barriers have been defined.
8315         (atomic_full_barrier): Define.
8316         (atomic_read_barrier): Define.
8317         (atomic_write_barrier): Define.
8318
8319 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8320
8321         * shlib-versions: Add libgcc_s version information.
8322         * sysdeps/generic/libgcc_s.h: Remove.
8323         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8324         libgcc_s.h.
8325         * sysdeps/gnu/unwind-resume.c: Likewise.
8326         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8327
8328 2012-04-25  David S. Miller  <davem@davemloft.net>
8329
8330         * sysdeps/unix/sparc/brk.S: Delete.
8331         * sysdeps/unix/sparc/dl-brk.S: Delete.
8332         * sysdeps/unix/sparc/pipe.S: Delete.
8333         * sysdeps/unix/sparc/sysdep.S: Delete.
8334         * sysdeps/unix/sparc/sysdep.h: Delete.
8335         * sysdeps/unix/sparc/vfork.S: Delete.
8336         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8337         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8338         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8339         ret_ERRVAL, r0, r1, MOVE): Define.
8340         (JUMPTARGET): Remove.
8341         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8342         sysdeps/unix/sparc/sysdep.h
8343         (ENTRY, END): Remove.
8344         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8345
8346 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8347
8348         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8349         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8350         -DIS_IN_build.
8351
8352         * timezone/README: Update upstream location and email address for
8353         tzcode and tzdata.
8354         * timezone/zdump.c: Update from tzcode 2012b.
8355         * timezone/zic.c: Likewise.
8356
8357         * configure.in (libc_cv_as_needed): Remove test.
8358         * configure: Regenerated.
8359         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8360         conditional definition.
8361         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8362         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8363         * config.make.in (have-as-needed): Remove variable.
8364
8365 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8366             Paul Pluzhnikov  <ppluzhnikov@google.com>
8367
8368         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8369         strings correctly.
8370
8371 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8372
8373         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8374         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8375         * sysdeps/sh/strlen.S: Likewise.
8376
8377 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8378
8379         * sysdeps/unix/fork.S: Remove file.
8380         * sysdeps/unix/i386/fork.S: Likewise.
8381         * sysdeps/unix/sparc/fork.S: Likewise.
8382
8383         * sysdeps/unix/system.c: Remove file.
8384         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8385
8386         * sysdeps/unix/getegid.S: Remove file.
8387         * sysdeps/unix/geteuid.S: Likewise.
8388
8389 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8390
8391         * scripts/check-localplt.awk: New file.
8392         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8393         of diff.
8394         * scripts/data/localplt-generic.data: Add a comment.
8395
8396         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8397         NODE when __dir_mkfile failed.
8398         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8399         Reported by Ludovic Courtès <ludo@gnu.org>.
8400
8401 2012-04-24  Andreas Jaeger  <aj@suse.de>
8402
8403         * Makerules (common-clean): Also remove gen-as-const-headers
8404         files.
8405
8406 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8407
8408         * Makerules (native-compile): Do not change working directory for
8409         build.  Use $(OUTPUT_OPTION) in command.
8410         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8411
8412 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8413
8414         [BZ #13886]
8415         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8416         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8417         * math/libm-test.inc (floor_test): Add more tests.
8418         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8419
8420 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8421
8422         * sysdeps/unix/getdents.c: Remove file.
8423         * sysdeps/unix/sysv/getdents.c: Likewise.
8424         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8425
8426         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8427         sysdeps/unix/mman/syscalls.list.
8428         (mmap): Likewise.
8429         (mprotect): Likewise.
8430         (msync): Likewise.
8431         (munmap): Likewise.
8432         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8433         * sysdeps/unix/mman/syscalls.list: Remove.
8434         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8435
8436         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8437         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8438         * configure: Regenerated.
8439         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8440         $(libgcc_s_suffix).
8441         * config.make.in (libgcc_s_suffix): Remove variable.
8442
8443 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8444
8445         * sysdeps/unix/sysv/gethostname.c: Move to ...
8446         * sysdeps/posix/gethostname.c: ... here.
8447
8448         * sysdeps/unix/execve.S: Remove file.
8449
8450         * sysdeps/unix/_exit.S: Remove file.
8451
8452 2012-04-23  Andreas Jaeger  <aj@suse.de>
8453
8454         [BZ #13739]
8455         * manual/Makefile: Remove make dist support, there's no
8456         need for a stand-alone documentation tar ball.
8457         (TEXI2DVI): Define always, it's not in Makeconfig.
8458         (dist): Removed.
8459         (tar-it): Removed.
8460         (edition): Removed.
8461         (glibc-doc-$(edition).tar): Removed
8462         (%.Z): Removed.
8463         (%.gz): Removed.
8464         (%.uu): Removed.
8465         (ETAGS): Remove, it's in Makeconfig.
8466         (move-if-change): Remove, it's in Makeconfig.
8467
8468 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8469
8470         [BZ #13970]
8471         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8472         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8473         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8474         (strtod_l, strtof_l, strtold_l): Remove __wur.
8475         It is not necessarily an error to ignore strtol's return value.
8476         One can reliably look at the stored endptr to decide whether
8477         the number had valid syntax.
8478
8479 2012-04-21  Andreas Jaeger  <aj@suse.de>
8480
8481         [BZ #13739]
8482         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8483
8484 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8485
8486         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8487         * sysdeps/unix/sysv/Versions: Remove file.
8488
8489 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8490
8491         [BZ #13927]
8492         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8493
8494 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8495
8496         [BZ #7064]
8497         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8498         version from __vm86.
8499
8500 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8501
8502         * sysdeps/unix/common/lxstat.c: Remove file.
8503         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8504
8505         * sysdeps/unix/sysv/Makefile: Remove file.
8506
8507         * sysdeps/unix/sysv/direct.h: Remove file.
8508
8509         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8510         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8511         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8512         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8513         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8514         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8515         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8516
8517         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8518
8519         * sysdeps/unix/xmknod.c: Remove file.
8520         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8521
8522         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8523
8524         * sysdeps/unix/sysv/i386/time.S: Remove file.
8525
8526         * sysdeps/unix/fxstat.c: Remove file.
8527         * sysdeps/unix/xstat.c: Likewise.
8528         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8529
8530         * sysdeps/unix/sysv/sigaction.c: Remove file.
8531
8532         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8533         (sysdep_headers): Remove variable.
8534         [termio.h not in sysdep_headers] (generated): Likewise.
8535         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8536         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8537         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8538         * sysdeps/unix/sysv/tcflow.c: Likewise.
8539         * sysdeps/unix/sysv/tcflush.c: Likewise.
8540         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8541         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8542         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8543         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8544         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8545
8546         * sysdeps/unix/siglist.c: Remove file.
8547
8548         * sysdeps/unix/getppid.S: Remove file.
8549
8550         * sysdeps/unix/mkdir.c: Remove file.
8551         * sysdeps/unix/rmdir.c: Likewise.
8552
8553 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8554
8555         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8556         ERR_MAX value.
8557         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8558         errlist-compat value.
8559
8560 2012-04-18  David S. Miller  <davem@davemloft.net>
8561
8562         * sysdeps/generic/memcopy.h (reg_char): Delete.
8563         * debug/strcat_chk.c: Use char, not reg_char.
8564         * debug/strcpy_chk.c: Likewise.
8565         * debug/strncat_chk.c: Likewise.
8566         * debug/strncpy_chk.c: Likewise.
8567         * string/memchr.c: Likewise.
8568         * string/memrchr.c: Likewise.
8569         * string/rawmemchr.c: Likewise.
8570         * string/strcat.c: Likewise.
8571         * string/strchr.c: Likewise.
8572         * string/strchrnul.c: Likewise.
8573         * string/strcmp.c: Likewise.
8574         * string/strcpy.c: Likewise.
8575         * string/strncat.c: Likewise.
8576         * string/strncmp.c: Likewise.
8577         * string/strncpy.c: Likewise.
8578
8579 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8580
8581         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8582         __builtin_memcopy is called when src and dest ranges are known to not
8583         overlap.
8584
8585 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8586
8587         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8588         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8589         fwd_align_merge macro call.
8590         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8591         bwd_align_merge macro call.
8592         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8593
8594 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8595
8596         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8597         bwd_align_merge macros.
8598         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8599         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8600         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8601
8602 2012-04-18  David S. Miller  <davem@davemloft.net>
8603
8604         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8605
8606 2012-04-18  Andreas Jaeger  <aj@suse.de>
8607
8608         [BZ# 6794]
8609         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8610         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8611         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8612
8613         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8614         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8615         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8616
8617         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8618         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8619         Adjust for changed ldbl-128 files.
8620
8621         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8622         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8623         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8624
8625 2012-04-17  David S. Miller  <davem@davemloft.net>
8626
8627         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8628
8629 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8630
8631         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8632         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8633         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8634         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8635         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8636         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8637
8638 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8639
8640         [BZ #6794]
8641         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8642         * math/libm-test.inc: Add ilogb errno and exception tests.
8643         * math/w_ilogb.c: New file: ilogb wrapper.
8644         * math/w_ilogbf.c: New file: ilogbf wrapper.
8645         * math/w_ilogbl.c: New file: ilogbl wrapper.
8646         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8647         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8648         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8649         exception being thrown with 0.0 as argument.
8650         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8651         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8652         exception being thrown with 0.0 as argument.
8653         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8654         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8655         exception being thrown with 0.0 as argument.
8656         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8657         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8658         exception being thrown with 0.0 as argument.
8659         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8660         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8661         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8662         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8663         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8664         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8665         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8666         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8667         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8668
8669 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8670
8671         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8672         with altivec.
8673
8674 2012-04-16  Marek Polacek  <polacek@redhat.com>
8675
8676         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8677
8678 2012-04-16  Marek Polacek  <polacek@redhat.com>
8679
8680         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8681         operands of fdivp instruction.
8682
8683 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8684
8685         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8686         * elf/tst-auditmod3b.c: Likewise.
8687         * elf/tst-auditmod4b.c: Likewise.
8688         * elf/tst-auditmod5b.c: Likewise.
8689         * elf/tst-auditmod6b.c: Likewise.
8690         * elf/tst-auditmod6c.c: Likewise.
8691         * elf/tst-auditmod7b.c: Likewise.
8692         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8693         * sysdeps/x86_64/preconfigure.in: Likewise.
8694         * sysdeps/x86_64/preconfigure: Regenerated.
8695
8696 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8697
8698         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8699         __ILP32__.
8700
8701 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8702
8703         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8704         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8705
8706 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8707
8708         [BZ #13973]
8709         * locale/iso-639.def: Fix gl language name. Spotted by
8710         Yaron Shahrabani.
8711
8712 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8713
8714         [BZ #2074]
8715         * libio/libio.h (__io_write_fn): Update comment.
8716
8717 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8718
8719         [BZ #2074]
8720         * stdio.texi (Hook Functions): The user provided writer function
8721         is not allowed to return -1.
8722
8723 2012-04-11  David S. Miller  <davem@davemloft.net>
8724
8725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8726
8727 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8728
8729         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8730         Add a leading slash to rtkaio.
8731
8732 2012-04-11  Jim Meyering  <meyering@redhat.com>
8733
8734         [BZ #11959]
8735         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8736         It is not necessarily an error to ignore fwrite's return
8737         value.  One can reliably use ferror to test for errors after
8738         the fact.
8739
8740 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8741
8742         * bits/types.h (__snseconds_t): New type.
8743         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8744
8745         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8746         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8747         (__SNSECONDS_T_TYPE): Likewise.
8748         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8749         (__SNSECONDS_T_TYPE): Likewise.
8750         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8751         (__SNSECONDS_T_TYPE): Likewise.
8752
8753 2012-04-10  Andreas Jaeger  <aj@suse.de>
8754
8755         [BZ #2636]
8756         * manual/time.texi (Processor Time): Return type of times is
8757         elapsed real time since an arbitrary point in the past.
8758         (CPU Time): Move CLK_TCK from here...
8759         (Processor Time): ...to here.  Correct description.
8760         * manual/conf.texi (Constants for Sysconf): Correct description of
8761         _SC_CLK_TCK.
8762
8763 2012-04-10  David S. Miller  <davem@davemloft.net>
8764
8765         [BZ #13967]
8766         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8767         where the is a gap between DT_REL(A) and DT_JMPREL.
8768
8769 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8770
8771         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8772         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8773         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8774
8775 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8776
8777         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8778         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8779         (dl_main): Handle --inhibit-cache.
8780         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8781         _dl_inhibit_cache.
8782         * elf/dl-load.c (_dl_map_object): Use it.
8783         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8784
8785 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8786
8787         [BZ #13872]
8788         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8789         (__ieee754_powl): Saturate large exponents rather than testing for
8790         overflow of y*log2(x).
8791         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8792         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8793         exceptions.
8794
8795         [BZ #11521]
8796         * math/s_ctan.c: Include <float.h>.
8797         (__ctan): Avoid internal overflow or cancellation in calculating
8798         denominator.
8799         * math/s_ctanf.c: Likewise.
8800         * math/s_ctanl.c: Likewise.
8801         * math/s_ctanh.c: Likewise.
8802         * math/s_ctanhf.c: Likewise.
8803         * math/s_ctanhl.c: Likewise.
8804         * math/libm-test.inc (ctan_test): Add more tests.
8805         (ctanh_test): Likewise.
8806         * sysdeps/i386/fpu/libm-test-ulps: Update.
8807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8808
8809 2012-04-09  Andreas Jaeger  <aj@suse.de>
8810
8811         [BZ #6894]
8812         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8813         is an optional BSD extension.
8814
8815         [BZ #10254]
8816         * manual/stdio.texi (Opening Streams): Document additional fopen
8817         parameters.
8818
8819 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8820
8821         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8822         %eax without telling the compiler.
8823
8824 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8825
8826         [BZ # 13963]
8827         * manual/install.texi: Use sourceware.org.
8828
8829 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8830
8831         [BZ #13873]
8832         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8833         (__ieee754_pow): Generate overflow and underflow using huge*huge
8834         and tiny*tiny rather than just returning constant infinity or zero
8835         for large exponents.
8836         * math/libm-test.inc (pow_test): Require overflow exceptions for
8837         applicable cases of large exponents.
8838
8839         [BZ #706]
8840         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8841         (__ieee754_pow): Use iterative multiplication algorithm only for
8842         integer exponents with absolute value below 1024.  Check for odd
8843         integer exponents when using algorithm for real exponents.
8844         * math/libm-test.inc (pow_test): Add more tests.
8845         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8846
8847 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8848
8849         [BZ #13705]
8850         * math/libm-test.inc (exp_test): Do not allow overflow exception
8851         on underflow test.
8852
8853 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8854
8855         [BZ #13705]
8856         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8857         instead of __kernel_standard_f.
8858
8859 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8860
8861         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8862         * sysdeps/x86_64/memset_chk.S: Likewise.
8863
8864 2012-04-08  Andreas Jaeger  <aj@suse.de>
8865
8866         [BZ #10153]
8867         * manual/startup.texi (Environment Access): Describe return value
8868         for putenv and setenv.
8869
8870         [BZ #6895]
8871         * manual/filesys.texi (Directory Entries): Add description for
8872         DT_LNK.
8873
8874         [BZ #6890]
8875         * manual/filesys.texi (Directory Entries): Clarify that it's file
8876         system not operating system in the description of DT_UNKNOWN.
8877
8878         [BZ #6578]
8879         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8880
8881 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8882
8883         [BZ #6649]
8884         * manual/llio.texi (Opening and Closing Files): Add cross
8885         reference to explain mode argument.
8886
8887 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8888
8889         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8890         * sysdeps/x86_64/memset_chk.S: Likewise.
8891
8892 2012-04-07  David S. Miller  <davem@davemloft.net>
8893
8894         * elf/elf.h (R_SPARC_WDISP10): Define.
8895         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8896         R_SPARC_SIZE32.
8897         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8898         R_SPARC_SIZE64 and R_SPARC_H34.
8899
8900 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8901
8902         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8903         conditions and remove no longer applicable assertion.
8904
8905 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8906
8907         * bits/byteswap.h: Include <features.h>.
8908         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8909         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8910
8911 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8912
8913         * bits/byteswap.h (__bswap_16): Removed.
8914         Include <bits/byteswap-16.h> to get __bswap_16.
8915         * sysdeps/i386/bits/byteswap.h: Likewise.
8916         * sysdeps/s390/bits/byteswap.h: Likewise.
8917         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8918         * bits/byteswap-16.h: New file.
8919         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8920         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8921         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8922         * string/Makefile (headers): Add bits/byteswap-16.h.
8923
8924 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8925
8926         [BZ #13895]
8927         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8928         extra indirection.
8929         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8930         * nss/tst-nss-static.c: New.
8931
8932 2012-04-06  Robert Millan  <rmh@gnu.org>
8933
8934         [BZ #6486]
8935         * manual/llio.texi (File Position Primitive): lseek
8936         refers to WHENCE when it really means OFFSET.
8937
8938 2012-04-06  Andreas Jaeger  <aj@suse.de>
8939
8940         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8941         strncmp declarations.
8942
8943         * abilist/libc.abilist: Add __poll and __ppoll.
8944
8945 2012-04-05  David S. Miller  <davem@davemloft.net>
8946
8947         * scripts/check-local-headers.sh: Accept a host triplet in the
8948         path matched by the exclude regexp.
8949
8950         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8951         definition.
8952         * sysdeps/powerpc/powerpc32/dl-machine.h
8953         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8954         * sysdeps/s390/s390-32/dl-machine.h
8955         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8956         * sysdeps/sparc/sparc32/dl-machine.h
8957         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8958         * sysdeps/sparc/sparc64/dl-machine.h
8959         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8960
8961         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8962         lazy binding.
8963         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8964         undefined symbol errors.
8965
8966         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8967         DT_NEEDED entries.
8968
8969 2012-04-05  Michael Matz  <matz@suse.de>
8970
8971         [BZ #13592]
8972         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8973
8974 2012-04-05  Andreas Jaeger  <aj@suse.de>
8975
8976         [BZ #13908]
8977         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8978         comment.
8979
8980 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8981
8982         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8983         which ROUND is no valid rounding mode.
8984
8985 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8986
8987         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8988         read again.
8989         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8990
8991 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8992
8993         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8994         an exception using FPU order intentionally.
8995
8996 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8997
8998         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8999         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9000         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9001         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9002
9003 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9004
9005         [BZ #12340]
9006         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9007         EINVAL when BUFLEN is too smal.
9008
9009 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9010
9011         [BZ #13553]
9012         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9013         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9014
9015 2012-04-03  Andreas Jaeger  <aj@suse.de>
9016
9017         [BZ #13938]
9018         * manual/setjmp.texi (System V contexts): Fix sentence.
9019
9020         [BZ #13926]
9021         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9022         New macro for this case.
9023         [!__GNUC__] (__bswap_64): New inline function for this case.
9024         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9025         * bits/byteswap.h: Likewise.
9026         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9027         ull, guard with __GLIBC_HAVE_LONG_LONG.
9028
9029         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9030         __GLIBC_HAVE_LONG_LONG.
9031
9032         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9033         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9034
9035 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9036
9037         [BZ #13691]
9038         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9039         inptr and inend, rather than using last_ch.
9040
9041 2012-04-02  David S. Miller  <davem@davemloft.net>
9042
9043         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9044         * stdio-common/printf-parse.h (read_int): Change return type to
9045         'int', return -1 on INT_MAX overflow.
9046         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9047         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9048         overflows INT_MAX.  Check for overflow of in-format-string precision
9049         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9050         SIZE_MAX not INT_MAX for integer overflow test.
9051         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9052         skip the construct in the format string but do not record anything.
9053         * stdio-common/bug22.c: Adjust to test both width/prevision
9054         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9055         explicitly for proper errno values.
9056
9057 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9058
9059         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9060         CHAR_MAX.
9061         * string/test-strcmp.c [! WIDE]: Likewise.
9062         * time/tst-mktime2.c: Likewise for INT_MAX.
9063         * string/test-string.h: #include <sys/param.h> for MIN.
9064
9065         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9066         * sysdeps/i386/init-first.c (init): Likewise.
9067         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9068         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9069         * sysdeps/sh/init-first.c (init): Likewise.
9070
9071 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9072
9073         * po/ru.po: Update from translation team.
9074         * po/vi.po: Likewise.
9075
9076 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9077
9078         * resolv/nss_dns/dns-host.c: Merge copyright years.
9079
9080 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9081
9082         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9083         Optimize memcpy with prefetch if
9084         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9085         src, dst pointers have unequal 16 byte alignments.
9086
9087 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9088
9089         [BZ #13928]
9090         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9091         from a CNAME entry and return the minimum ttl for the query.
9092         (gaih_getanswer_slice): Likewise.
9093
9094 2012-03-30  Jeff Law  <law@redhat.com>
9095
9096         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9097         due to long keys.
9098         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9099         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9100
9101         * resolv/nss_dns/dns-host.c: Update copyright year.
9102
9103 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9104
9105         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9106         requests to save a system call.  Fix check that all bytes are sent.
9107
9108         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9109         comments for sendmmsg.
9110
9111 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9112
9113         [BZ #13691]
9114         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9115         with only 1 character between 0x0041 and 0x01b0.
9116         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9117         * wcsmbs/tst-mbsnrtowcs.c: New file.
9118
9119 2012-03-29  David S. Miller  <davem@davemloft.net>
9120
9121         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9122         small copies by hand.
9123
9124 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9125
9126         [BZ #13761]
9127         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9128         _nss_compat_initgroups_dyn): Fall back to malloc/free
9129         for large group memberships.
9130
9131 2012-03-28  David S. Miller  <davem@davemloft.net>
9132
9133         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9134         that branches into memcpy.
9135         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9136         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9137         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9138         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9139         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9140         bits.
9141         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9142         implementation too.
9143         * sysdeps/sparc/mempcpy.S: New file.
9144
9145         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9146         the IFUNC routine in the libc case.
9147         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9148
9149         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9150         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9151         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9152         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9153         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9154         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9155         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9156         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9157
9158         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9159         loop to 256 bytes instead of 64 bytes and fix test signedness.
9160
9161         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9162         * sysdeps/sparc/sparc32/Makefile: rather than here...
9163         * sysdeps/sparc/sparc64/Makefile: and here.
9164
9165 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9166
9167         * malloc/mallocbug.c: Avoid warnings about unused variables.
9168
9169 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9170
9171         [BZ #13760]
9172         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9173         in the right place. Discard and retry query if response is
9174         larger than input buffer size.
9175
9176 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9177
9178         [BZ #369]
9179         [BZ #2678]
9180         [BZ #3866]
9181         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9182         x for large integer exponent.
9183         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9184         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9185         sign of result as needed afterwards.
9186         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9187         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9188         result for underflowing pow the same as for overflow.
9189         (__kernel_standard_l): Handle powl overflow and underflow here
9190         rather than calling __kernel_standard.
9191         * math/libm-test.inc (pow_test): Add more tests.
9192
9193         [BZ #3868]
9194         [BZ #13879]
9195         [BZ #13910]
9196         [BZ #13911]
9197         [BZ #13912]
9198         [BZ #13913]
9199         [BZ #13915]
9200         [BZ #13916]
9201         [BZ #13917]
9202         [BZ #13918]
9203         [BZ #13919]
9204         [BZ #13920]
9205         [BZ #13921]
9206         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9207         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9208         (__kernel_standard_l): New function.
9209         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9210         __kernel_standard.
9211         * math/w_acosl.c (__acosl): Likewise.
9212         * math/w_asinl.c (__asinl): Likewise.
9213         * math/w_atan2l.c (__atan2l): Likewise.
9214         * math/w_atanhl.c (__atanhl): Likewise.
9215         * math/w_coshl.c (__coshl): Likewise.
9216         * math/w_exp10l.c (__exp10l): Likewise.
9217         * math/w_exp2l.c (__exp2l): Likewise.
9218         * math/w_fmodl.c (__fmodl): Likewise.
9219         * math/w_hypotl.c (__hypotl): Likewise.
9220         * math/w_j0l.c (__j0l, __y0l): Likewise.
9221         * math/w_j1l.c (__j1l, __y1l): Likewise.
9222         * math/w_jnl.c (__jnl, __ynl): Likewise.
9223         * math/w_lgammal.c (__lgammal): Likewise.
9224         * math/w_log10l.c (__log10l): Likewise.
9225         * math/w_log2l.c (__log2l): Likewise.
9226         * math/w_logl.c (__logl): Likewise.
9227         * math/w_powl.c (__powl): Likewise.
9228         * math/w_remainderl.c (__remainderl): Likewise.
9229         * math/w_scalbl.c (sysv_scalbl): Likewise.
9230         * math/w_sinhl.c (__sinhl): Likewise.
9231         * math/w_sqrtl.c (__sqrtl): Likewise.
9232         * math/w_tgammal.c (__tgammal): Likewise.
9233         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9234         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9235         * math/libm-test.inc (acos_test): Add more tests.
9236         (acosh_test): Likewise.
9237         (asin_test): Likewise.
9238         (atanh_test): Likewise.
9239         (exp_test): Likewise.
9240         (exp10_test): Likewise.
9241         (exp2_test): Likewise.
9242         (expm1_test): Likewise.
9243         (lgamma_test): Likewise.
9244         (log_test): Likewise.
9245         (log10_test): Likewise.
9246         (log1p_test): Likewise.
9247         (log2_test): Likewise.
9248         (pow_test): Do not allow some spurious overflow exceptions.
9249         (sqrt_test): Add more tests.
9250         (tgamma_test): Likewise.
9251         (y0_test): Likewise.
9252         (y1_test): Likewise.
9253         (yn_test): Likewise.
9254
9255 2012-03-27  Anton Blanchard  <anton@samba.org>
9256
9257         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9258         MAP_HUGETLB.
9259         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9260         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9261         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9262
9263 2012-03-27  David S. Miller  <davem@davemloft.net>
9264
9265         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9266
9267         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9268         have-as-vis3 check.
9269
9270 2012-03-27  Andreas Jaeger  <aj@suse.de>
9271
9272         * sysdeps/x86_64/elf/configure.in: Moved to ...
9273         * sysdeps/x86_64/configure.in: ... here.
9274         * sysdeps/x86_64/elf/start.S: Moved to ...
9275         * sysdeps/x86_64/start.S: ... here.
9276         * sysdeps/x86_64/elf/configure: Delete.
9277
9278         * sysdeps/x86_64/configure.in: Merge contents from
9279         sysdeps/i386/configure.in (without i686 check).
9280
9281         * sysdeps/i386/elf/Versions: Merge into ...
9282         * sysdeps/i386/Versions: ... this.
9283         * sysdeps/i386/elf/Versions: Delete file.
9284         * sysdeps/i386/elf/start.S: Moved to ...
9285         * sysdeps/i386/start.S: ...here.
9286         * sysdeps/i386/elf/configure.in: Merge into...
9287         * sysdeps/i386/configure.in: ...here.
9288         * sysdeps/i386/elf/configure.in: Delete file.
9289         * sysdeps/i386/elf/configure: Delete file.
9290
9291         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9292         * debug/backtracesyms.c: ... here.
9293         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9294         * debug/backtracesymsfd.c: ... here.
9295         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9296         * sysdeps/generic/ifunc-sel.h: ... here.
9297
9298         * sysdeps/unix/i386/start.c: Delete file.
9299         * sysdeps/unix/sparc/start.c: Delete file.
9300         * sysdeps/unix/start.c: Delete file.
9301
9302         * sysdeps/sh/elf/configure.in: Moved to ...
9303         * sysdeps/sh/configure.in: ... here.
9304         * sysdeps/sh/elf/start.S: Moved to ...
9305         * sysdeps/sh/start.S: ... here.
9306         * sysdeps/sh/elf/configure: Delete file.
9307
9308         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9309         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9310         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9311         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9312         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9313         * sysdeps/powerpc/powerpc64/start.S: here.
9314         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9315         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9316         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9317         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9318         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9319
9320         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9321         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9322         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9323         * sysdeps/powerpc/powerpc32/start.S: ... here.
9324         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9325         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9326         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9327
9328         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9329         * sysdeps/powerpc/ifunc-sel.h: ... here.
9330         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9331         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9332
9333         * sysdeps/sparc/elf/configure.in: Moved to ...
9334         * sysdeps/sparc/configure.in: ... here.
9335         * sysdeps/sparc/elf/configure: Delete file.
9336         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9337         * sysdeps/sparc/sparc32/start.S: ... here.
9338         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9339         * sysdeps/sparc/sparc64/start.S: ... here.
9340         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9341         * sysdeps/sparc/sparc32/Makefile: ... this.
9342         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9343         * sysdeps/sparc/sparc64/Makefile: ... this.
9344
9345         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9346         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9347         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9348         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9349         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9350         * sysdeps/s390/s390-32/setjmp.S: ... here.
9351         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9352         * sysdeps/s390/s390-32/configure.in: ... here.
9353         * sysdeps/s390/s390-32/elf/configure: Delete file.
9354         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9355         * sysdeps/s390/s390-32/start.S: ... here.
9356
9357         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9358         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9359         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9360         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9361         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9362         * sysdeps/s390/s390-64/setjmp.S: ... here.
9363         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9364         * sysdeps/s390/s390-64/configure.in: ... here
9365         * sysdeps/s390/s390-64/elf/configure: Delete file.
9366         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9367         * sysdeps/s390/s390-64/start.S: ... here.
9368         * sysdeps/s390/s390-64/elf/configure: Delete.
9369
9370         * configure.in: Remove support for elf directories in sysdeps.
9371
9372         * configure: Regenerated.
9373         * sysdeps/i386/configure: Regenerated.
9374         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9375         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9376         * sysdeps/s390/s390-32/configure: Regenerated.
9377         * sysdeps/s390/s390-64/configure: Regenerated.
9378         * sysdeps/sh/configure: Regenerated.
9379         * sysdeps/sparc/configure: Regenerated.
9380         * sysdeps/x86_64/configure: Regenerated.
9381
9382 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9383
9384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9385
9386         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9387         denormal result into account.
9388
9389 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9390
9391         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9392         Reported by Allan McRae <allan@archlinux.org>.
9393
9394 2012-03-23  Jeff Law  <law@redhat.com>
9395
9396         * nss/getnssent.c (__nss_getent): Fix typo.
9397
9398 2012-03-23  David S. Miller  <davem@davemloft.net>
9399
9400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9401
9402 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9403
9404         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9405         to pad to uint64_t for each field.
9406         (dl_tls_index): Replace unsigned long with uint64_t.
9407
9408 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9409         Paul Pluzhnikov  <ppluzhnikov@google.com>
9410
9411         [BZ #6528]
9412         * grp/Makefile (otherlibs): Don't set it.
9413         * inet/Makefile (otherlibs): Likewise.
9414         * login/Makefile (otherlibs): Likewise.
9415         * nscd/Makefile (otherlibs): Likewise.
9416         * posix/Makefile (otherlibs): Likewise.
9417         * pwd/Makefile (otherlibs): Likewise.
9418         * rt/Makefile (otherlibs): Likewise.
9419         * sunrpc/Makefile (otherlibs): Likewise.
9420         * nss/Makefile (otherlibs): Likewise.
9421         Add libnss_files to routines and static-only-routines.
9422         ($(objpfx)getent): Remove rule.
9423         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9424         static-only-routines.
9425
9426 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9427
9428         [BZ #13892]
9429         * math/s_cexp.c: Include <float.h>.
9430         (__cexp): Handle exp result overflowing not necessarily
9431         overflowing both real and imaginary parts of result.
9432         * math/s_cexpf.c: Likewise.
9433         * math/s_cexpl.c: Likewise.
9434         * math/libm-test.inc (cexp_test): Add more tests.
9435         * sysdeps/i386/fpu/libm-test-ulps: Update.
9436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9437
9438 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9439
9440         * include/link.h (ELFW): New macro.
9441         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9442         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9443
9444 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9445
9446         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9447         with uint64_t.
9448
9449 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9450
9451         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9452         declaration.
9453         (struct La_x32_retval): Likewise.
9454
9455 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9456
9457         * sysdeps/x86_64/preconfigure.in: New file.
9458         * sysdeps/x86_64/preconfigure: New generated file.
9459
9460 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9461
9462         [BZ #13824]
9463         * math/e_exp2l.c: Include <float.h>.
9464         (__ieee754_exp2l): Handle overflow and underflow cases
9465         separately.  Only pass fractional part of argument to
9466         __ieee754_expl.
9467         * math/libm-test.inc (exp2_test): Add more tests.
9468
9469         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9470         negating x to take absolute value.
9471         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9472         Likewise.
9473         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9474         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9475         Likewise.
9476         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9477         computing low part if x was negated.
9478         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9479
9480 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9481
9482         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9483         la_x32_gnu_pltexit.
9484         (pltexit): Cast int_retval to ptrdiff_t.
9485         * elf/tst-auditmod3b.c: Likewise.
9486         * elf/tst-auditmod4b.c: Likewise.
9487         * elf/tst-auditmod5b.c: Likewise.
9488         * elf/tst-auditmod6b.c: Likewise.
9489         * elf/tst-auditmod6c.c: Likewise.
9490         * elf/tst-auditmod7b.c: Likewise.
9491
9492         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9493         and x32_gnu_pltexit.
9494
9495         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9496         __ELF_NATIVE_CLASS.
9497         (La_x32_regs): New macro.
9498         (La_x32_retval): Likewise.
9499         (la_x32_gnu_pltenter): New function prototype.
9500         (la_x32_gnu_pltexit): Likewise.
9501
9502 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9503
9504         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9505         exponent.
9506
9507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9508
9509         * configure.in (libc_cv_cc_nofma): Check for option to disable
9510         generation of FMA instructions.
9511         * configure: Regenerate.
9512         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9513         * sysdeps/ieee754/dbl-64/Makefile: New file.
9514         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9515         Remove brandred-fma4.
9516         (CFLAGS-brandred-fma4.c): Remove.
9517         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9518         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9519         define.
9520         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9521         define.
9522
9523 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9524
9525         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9526         LLONG_MAX != LONG_MAX.
9527         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9528         (_fitoa_word): Likewise.
9529         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9530         LLONG_MAX != LONG_MAX.
9531         * stdio-common/_itowa.h: Include <_itoa.h>.
9532         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9533         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9534         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9535         only if not defined.
9536         (_ITOA_WORD_TYPE): Likewise.
9537         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9538         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9539
9540 2012-03-21  David S. Miller  <davem@davemloft.net>
9541
9542         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9543
9544 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9545
9546         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9547         of x86_64 when setting libc_cv_slibdir, libdir and
9548         libc_cv_localedir.
9549         * sysdeps/unix/sysv/linux/configure: Regenerated.
9550
9551 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9552
9553         * manual/lang.texi (Old Varargs): Remove section.
9554         (How Variadic): Update menu.
9555         (va_start): Do not mention varargs.h.
9556
9557 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9558             Joseph Myers  <joseph@codesourcery.com>
9559
9560         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9561         link test.
9562         * configure: Regenerated.
9563
9564 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9565
9566         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9567         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9568         conformtest.pl
9569
9570 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9571
9572         * NOTES: Remove.
9573         * Makefile (files-for-dist): Remove NOTES.
9574         (NOTES): Remove rule.
9575         * README: Don't refer to NOTES.
9576         * manual/creature.texi: Don't include macros.texi.
9577         * manual/intro.texi (creature.texi): Remove comment referring to
9578         NOTES.
9579
9580         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9581         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9582         * configure: Regenerated.
9583         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9584         LIBC_TRY_CC_OPTION.
9585         (libc_cv_as_i686): Likewise.
9586         (libc_cv_cc_avx): Likewise.
9587         (libc_cv_cc_sse2avx): Likewise.
9588         (libc_cv_cc_fma4): Likewise.
9589         (libc_cv_cc_novzeroupper): Likewise.
9590         * sysdeps/i386/configure: Regenerated.
9591
9592         [BZ #13883]
9593         * sysdeps/i386/fpu/s_cexp.S: Remove.
9594         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9595         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9596         * math/libm-test.inc (cexp_test): Add more tests.
9597         * sysdeps/i386/fpu/libm-test-ulps: Update.
9598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9599
9600 2012-03-21  Allan McRae  <allan@archlinux.org>
9601
9602         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9603
9604 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9605
9606         [BZ #13871]
9607         * math/w_exp2.c: Do not include <float.h>.
9608         (o_threshold, u_threshold): Remove.
9609         (__exp2): Calculate result before checking finiteness and calling
9610         __kernel_standard.
9611         * math/w_exp2f.c: Likewise.
9612         * math/w_exp2l.c: Likewise.
9613         * math/libm-test.inc (exp2_test): Require overflow exception for
9614         1e6 input.
9615
9616         [BZ #3866]
9617         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9618         range of signed 64-bit integers before using fistpll.  Remove
9619         checks for whether integers fit in mantissa bits.
9620         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9621         the range of signed 32-bit integers before using fistpl.  Remove
9622         checks for whether integers fit in mantissa bits.
9623         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9624         (__ieee754_powl): Test for y outside the range of signed 64-bit
9625         integers before using fistpll.  Reduce 64-bit values to 63-bit
9626         ones as needed.
9627         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9628         divide-by-zero is raised for zero to large negative powers.
9629         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9630         (__ieee754_powl): Test for y outside the range of signed 64-bit
9631         integers before using fistpll.  Reduce 64-bit values to 63-bit
9632         ones as needed.
9633         * math/libm-test.inc (pow_test): Add more tests.
9634
9635 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9636
9637         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9638         <stdio-common/_itoa.h>.
9639         * debug/segfault.c: Likewise.
9640         * elf/dl-cache.c: Likewise.
9641         * elf/dl-minimal.c: Likewise.
9642         * elf/dl-misc.c: Likewise.
9643         * elf/dl-sysdep.c: Likewise.
9644         * elf/dl-version.c: Likewise.
9645         * elf/rtld.c: Likewise.
9646         * hurd/hurdsock.c: Likewise.
9647         * hurd/lookup-retry.c: Likewise.
9648         * malloc/malloc.c: Likewise.
9649         * malloc/mtrace.c: Likewise.
9650         * nscd/nscd_getgr_r.c: Likewise.
9651         * nscd/nscd_getpw_r.c: Likewise.
9652         * nscd/nscd_getserv_r.c: Likewise.
9653         * posix/getopt_init.c: Likewise.
9654         * posix/wordexp.c: Likewise.
9655         * stdio-common/_itoa.c: Likewise.
9656         * stdio-common/printf_fphex.c: Likewise.
9657         * stdio-common/vfprintf.c: Likewise.
9658         * string/_strerror.c: Likewise.
9659         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9660         * sysdeps/i386/i686/hp-timing.h: Likewise.
9661         * sysdeps/mach/_strerror.c: Likewise.
9662         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9663         * sysdeps/mach/hurd/sethostid.c: Likewise.
9664         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9665         * sysdeps/mach/xpg-strerror.c: Likewise.
9666         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9667         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9668         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9669         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9670         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9671         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9672         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9673         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9674         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9675         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9676         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9677         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9678         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9679         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9680         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9681         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9682         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9683         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9684         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9685         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9686         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9687
9688         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9689
9690         * stdio-common/_itoa.h: Moved to ...
9691         * sysdeps/generic/_itoa.h: Here.
9692
9693         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9694
9695         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9696         instead of "_itoa.h" and "_itowa.h".
9697         * stdio-common/vfprintf.: Likewise.
9698
9699 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9700
9701         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9702         <bits/wordsize.h>.
9703         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9704         (__signbit): Likwise.
9705         (llrintf): Likwise.
9706         (llrint): Likwise.
9707
9708 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9709
9710         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9711         __WORDSIZE != 64.
9712
9713 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9714
9715         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9716         OVERFLOW_EXCEPTION_OK.
9717         * math/libm-test.inc ("Philosophy"): Update comment about
9718         exception testing.
9719         (OVERFLOW_EXCEPTION): Define.
9720         (OVERFLOW_EXCEPTION_OK): Likewise.
9721         (INVALID_EXCEPTION_OK): Renumber.
9722         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9723         (IGNORE_ZERO_INF_SIGN): Likewise.
9724         (test_exceptions): Handle FE_OVERFLOW.
9725         (exp10_test): Expect overflow exceptions.
9726         (exp2_test): Likewise.
9727         (expm1_test): Likewise.
9728         (nextafter_test): Likewise.
9729         (pow_test): Likewise.
9730         (scalbn_test): Likewise.
9731         (scalbln_test): Likewise.
9732
9733 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9734
9735         * sysdeps/x86_64/bits/atomic.h
9736         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9737         64bit integer.
9738         (atomic_exchange_acq): Likewise.
9739         (__arch_exchange_and_add_body): Likewise.
9740         (__arch_add_body): Likewise.
9741         (atomic_add_negative): Likewise.
9742         (atomic_add_zero): Likewise.
9743
9744 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9745
9746         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9747         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9748
9749 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9750
9751         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9752         Check __x86_64__ instead of __WORDSIZE.
9753
9754 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9755
9756         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9757
9758 2012-03-19  David S. Miller  <davem@davemloft.net>
9759
9760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9761
9762         * sysdeps/sparc/fpu/fenv_private.h: New file.
9763         * sysdeps/sparc/fpu/math_private.h: Use it.
9764         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9765         Remove.
9766         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9767         (libc_feholdexcept_setroundl): Remove.
9768         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9769         Remove.
9770         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9771         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9772
9773 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9774
9775         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9776         int64_t instead of long int.
9777         (INSERT_WORDS64): Likwise.
9778
9779 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9780
9781         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9782         _Unwind_GetCFA return to _Unwind_Ptr first.
9783
9784 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9785
9786         [BZ #13629]
9787         * math/s_clog.c: Include <float.h>.
9788         (__clog): Scale large or subnormal inputs.
9789         * math/s_clogf.c: Likewise.
9790         * math/s_clogl.c: Likewise.
9791         * math/s_clog10.c: Include <float.h>.
9792         (M_LOG10_2): Define.
9793         (__clog10): Scale large or subnormal inputs.
9794         * math/s_clog10f.c: Likewise.
9795         * math/s_clog10l.c: Likewise.
9796         * math/libm-test.inc (clog_test): Add more tests.
9797         (clog10_test): Likewise.
9798         * sysdeps/i386/fpu/libm-test-ulps: Update.
9799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9800
9801         [BZ #11451]
9802         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9803         x and y.
9804         * math/libm-test.inc (atan2_test): Add another test.
9805
9806         * Makerules (common-objdir-compile): Remove.
9807         * sysdeps/unix/Makefile (config-generated): Do not add
9808         $(unix-generated) to variable.
9809         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9810         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9811         Remove rule.
9812         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9813         Likewise.
9814         [generic bits/local_lim.h] (before-compile): Do not append to
9815         variable.
9816         [generic bits/local_lim.h] (common-generated): Likewise.
9817         [generic sys/param.h] (before-compile): Do not append to variable.
9818         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9819         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9820         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9821         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9822         include.
9823         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9824         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9825         [generic sys/param.h] ($(addprefix
9826         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9827         [generic sys/param.h] (common-generated): Do not append to
9828         variable.
9829         [generic sys/param.h] (sysdep_headers): Likewise.
9830         [generic bits/errno.h] (before-compile): Do not append to
9831         variable.
9832         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9833         rule.
9834         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9835         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9836         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9837         [generic bits/errno.h] (common-generated): Do not append to
9838         variable.
9839         [generic bits/ioctls.h] (before-compile): Do not append to
9840         variable.
9841         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9842         rule.
9843         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9844         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9845         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9846         rule.
9847         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9848         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9849         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9850         [generic bits/ioctls.h] (common-generated): Do not append to
9851         variable.
9852         [generic sys/syscall.h] (syscall.h): Remove variable.
9853         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9854         rule.
9855         [generic sys/syscall.h] (before-compile): Do not append to
9856         variable.
9857         [generic sys/syscall.h] (common-generated): Likewise.
9858         * sysdeps/unix/errnos-tmpl.c: Remove file.
9859         * sysdeps/unix/errnos.awk: Likewise.
9860         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9861         * sysdeps/unix/ioctls.awk: Likewise.
9862         * sysdeps/unix/mk-local_lim.c: Likewise.
9863         * sysdeps/unix/snarf-ioctls: Likewise.
9864
9865 2012-03-19  Richard Henderson  <rth@twiddle.net>
9866
9867         * sysdeps/i386/fpu/fenv_private.h: New file.
9868         * sysdeps/i386/fpu/math_private.h: Use it.
9869         (math_opt_barrier, math_force_eval): Remove.
9870         (libc_feholdexcept_setround_53bit): Remove.
9871         (libc_feupdateenv_53bit): Remove.
9872         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9873         (math_opt_barrier, math_force_eval): Remove.
9874         (libc_feholdexcept): Remove.
9875         (libc_feholdexcept_setround): Remove.
9876         (libc_fetestexcept, libc_fesetenv): Remove.
9877         (libc_feupdateenv_test): Remove.
9878         (libc_feupdateenv, libc_feholdsetround): Remove.
9879         (libc_feresetround): Remove.
9880
9881         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9882         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9883
9884         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9885         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9886         (libc_feupdateenv_testl): New.
9887         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9888         (libc_feupdateenv_testf): New.
9889         (libc_feupdateenv): Use libc_feupdateenv_test.
9890         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9891         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9892
9893         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9894         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9895         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9896         (libc_feresetround_noex): New.
9897         (libc_feresetround_noexf): New.
9898         (libc_feresetround_noexl): New.
9899         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9900         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9901         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9902         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9903         SET_RESTORE_ROUND.
9904         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9905         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9906         (__cos): Likewise.
9907         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9908         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9909         SET_RESTORE_ROUND_NOEX.
9910         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9911         SET_RESTORE_ROUND_NOEXF.
9912         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9913         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9914         (libc_feholdsetroundf): New.
9915         (libc_feresetround, libc_feresetroundf): New.
9916
9917         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9918         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9919         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9920
9921         * sysdeps/generic/math_private.h: Include <fenv.h>.
9922         (default_libc_feholdexcept): New.
9923         (default_libc_feholdexcept_setround): New.
9924         (default_libc_fesetenv, default_libc_feupdateenv): New.
9925         (libc_feholdexcept): Only define if undefined.
9926         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9927         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9928         (libc_feholdexcept_setroundl): Likewise.
9929         (libc_feholdexcept_setround_53bit): Likewise.
9930         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9931         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9932         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9933         (libc_feupdateenv_53bit): Likewise.
9934         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9935         (libc_feholdexcept): Convert from macro to inline function.
9936         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9937         (libc_fesetenv, libc_feupdateenv): Likewise.
9938
9939         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9940         not previously defined.
9941         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9942         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9943         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9944         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9945         * sysdeps/ieee754/flt-32/math_private.h: New file.
9946         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9947         math_private.h below SET_FLOAT_WORD.
9948         (__isnan, __isinf_ns, __finite): Remove.
9949         (__isnanf, __isinf_nsf, __finitef): Remove.
9950
9951 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9952
9953         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9954
9955 2012-03-17  David S. Miller  <davem@davemloft.net>
9956
9957         [BZ #6471]
9958         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9959         for 2.16.
9960
9961 2012-03-16  David S. Miller  <davem@davemloft.net>
9962
9963         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9964         warnings.
9965
9966         [BZ #6471]
9967         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9968         properly.
9969         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9970         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9971         sysdep_routines when subdir is sysvipc.
9972         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9973         __getshmlba helper.
9974
9975         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9976
9977 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9978
9979         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9980         [__LP64__].
9981
9982 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9983
9984         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9985         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9986         (__lround): Renamed to ...
9987         (__llround): This.  Replace long int with long long int.
9988         Define lround functions as aliases of llround functions.
9989         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9990
9991 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9992
9993         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9994         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9995         adresses to uintptr_t.  Replace "long int" and "unsigned long
9996         int" with "greg_t" on va_arg.
9997
9998 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9999
10000         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10001         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10002
10003         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10004         Move e_machine check before EI_CLASS check.  Handle x32
10005         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10006         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10007         SKIP_EM_IA_64 and include
10008         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10009
10010         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10011         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10012         (add_system_dir): New macro.
10013
10014         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10015         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10016
10017 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10018
10019         [BZ #2551]
10020         [BZ #2552]
10021         [BZ #2553]
10022         [BZ #2554]
10023         [BZ #2562]
10024         [BZ #2563]
10025         [BZ #2565]
10026         [BZ #2566]
10027         [BZ #2576]
10028         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10029         (y0): Likewise.
10030         * math/w_j0f.c (j0f): Likewise.
10031         (y0f): Likewise.
10032         * math/w_j0l.c (__j0l): Likewise.
10033         (__y0l): Likewise.
10034         * math/w_j1.c (j1): Likewise.
10035         (y1): Likewise.
10036         * math/w_j1f.c (j1f): Likewise.
10037         (y1f): Likewise.
10038         * math/w_j1l.c (__j1l): Likewise.
10039         (__y1l): Likewise.
10040         * math/w_jn.c (jn): Likewise.
10041         (yn): Likewise.
10042         * math/w_jnf.c (jnf): Likewise.
10043         (ynf): Likewise.
10044         * math/w_jnl.c (__jnl): Likewise.
10045         (__ynl): Likewise.
10046         * math/libm-test.inc (j0_test): Add more tests.
10047         (j1_test): Likewise.
10048         (jn_test): Likewise.  Add trailing semicolon to existing test.
10049         (y0_test): Likewise.
10050         (y1_test): Likewise.
10051         * sysdeps/i386/fpu/libm-test-ulps: Update.
10052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10053
10054         [BZ #13851]
10055         [BZ #13854]
10056         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10057         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10058         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10059         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10060         (__tanl): Set errno for infinite argument.
10061         * sysdeps/i386/fpu/mptan.c: Remove.
10062         * sysdeps/i386/fpu/s_tan.S: Likewise.
10063         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10064         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10065         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10066         * math/libm-test.inc (tan_test): Add more tests and enable more
10067         tests for double and long double.
10068         * sysdeps/i386/fpu/libm-test-ulps: Update.
10069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10070
10071 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10072
10073         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10074         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10075
10076 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10077
10078         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10079         * configure.in: Use it for both main tree and add-ons.
10080         * configure: Regenerated.
10081
10082 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10083
10084         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10085
10086 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10087
10088         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10089         in comment.
10090
10091         [BZ #13851]
10092         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10093         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10094         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10095         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10096         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10097         infinite argument.
10098         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10099         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10100         != 0 for prec == 2.
10101         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10102         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10103         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10104         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10105         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10106         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10107         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10108         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10109         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10110         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10111         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10112         * math/libm-test.inc (cos_test): Add more tests and enable more
10113         tests for long double.
10114         (sin_test): Likewise.
10115         (sincos_test): Likewise.
10116         * sysdeps/i386/fpu/libm-test-ulps: Update.
10117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10118
10119 2012-03-16  David S. Miller  <davem@davemloft.net>
10120
10121         * sysdeps/sparc/fpu/math_private.h: New file.
10122
10123 2012-03-15  David S. Miller  <davem@davemloft.net>
10124
10125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10126         file.
10127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10129         file.
10130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10131         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10132         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10133         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10134         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10135         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10136         sysdep routines.
10137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10138
10139         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10140         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10141
10142         * sysdeps/sparc/sparc-ifunc.h: New file.
10143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10144         sparc-ifunc.h
10145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10147         Likewise.
10148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10149         Likewise.
10150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10154         Likewise.
10155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10160         Likewise.
10161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10162         Likewise.
10163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10167         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10168         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10169         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10170         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10171         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10172         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10173         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10174         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10175         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10176         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10177         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10178         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10179         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10180         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10181         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10182         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10183         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10184         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10185         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10186         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10187
10188 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10189
10190         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10191         scaling.
10192         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10193
10194 2012-03-15  Andreas Jaeger  <aj@suse.de>
10195
10196         [BZ #13852]
10197         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10198         ieee754/flt-32 implementation for sin, cos and sincos.
10199         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10200         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10201         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10202         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10203         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10204         ieee754/flt-32 implementation for tan.
10205
10206         * math/libm-test.inc (cos_test): Enable some large input tests for
10207         float as well
10208         (sin_test): Likewise.
10209         (sincos_test): Likewise.
10210         (tan_test): Add tests for large input.
10211
10212         * sysdeps/i386/fpu/libm-test-ulps: Update.
10213
10214 2012-03-15  Andreas Jaeger  <aj@suse.de>
10215
10216         [BZ #13658]
10217         * math/libm-test.inc (cos_test): Add more test cases.
10218         (sin_test): Likewise.
10219         (sincos_test): Likewise.
10220
10221 2012-03-15  Andreas Jaeger  <aj@suse.de>
10222
10223         [BZ #13837]
10224         * math/libm-test.inc (cos_test): Add a test case for large input
10225         value.
10226         (sin_test): Likewise.
10227         (sincos_test): Likewise.
10228
10229 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10230         Joseph Myers  <joseph@codesourcery.com>
10231
10232         [BZ #13658]
10233         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10234         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10235         * sysdeps/i386/fpu/branred.c: Likewise.
10236         * sysdeps/i386/fpu/dosincos.c: Likewise.
10237         * sysdeps/i386/fpu/mpa.c: Likewise.
10238         * sysdeps/i386/fpu/s_cos.S: Likewise.
10239         * sysdeps/i386/fpu/s_sin.S: Likewise.
10240         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10241         * sysdeps/i386/fpu/sincos32.c: Likewise.
10242
10243         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10244         Define.
10245         (libc_feupdateenv_53bit): Define.
10246         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10247         Define.
10248         (libc_feupdateenv_53bit): Define.
10249
10250         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10251         53 bit (without extend i386 double precision).
10252
10253         * math/libm-test.inc (sincos_test): Add tests for large input.
10254         (sin): Likewise.
10255         (cos): Likewise.
10256
10257         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10258
10259 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10260
10261         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10262
10263 2012-03-15  David S. Miller  <davem@davemloft.net>
10264
10265         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10266         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10267         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10268         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10273         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10274         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10275         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10276         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10277         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10278         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10279         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10281         file.
10282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10284         file.
10285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10287         file.
10288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10290         file.
10291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10292         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10293         fmin/fmax sysdep routines.
10294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10295
10296 2012-03-14  David S. Miller  <davem@davemloft.net>
10297
10298         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10299         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10300         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10301         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10302         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10303         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10304         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10305         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10306         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10307         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10308         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10309         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10310         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10311         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10312         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10313         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10314         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10315         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10316         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10317         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10318         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10319         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10320         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10321         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10322         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10323         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10324         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10325         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10326         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10327         routines.
10328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10329         file.
10330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10332         file.
10333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10335         file.
10336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10338         file.
10339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10341         file.
10342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10344         file.
10345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10346         file.
10347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10348         file.
10349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10350         file.
10351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10352         New file.
10353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10354         file.
10355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10356         file.
10357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10359         file.
10360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10362         file.
10363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10365         file.
10366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10368         VIS3 routines.
10369
10370         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10371         New file.
10372
10373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10374
10375         * sysdeps/sparc/configure.in: New file.
10376         * sysdeps/sparc/configure: Generate.
10377         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10378         * configure: Regenerate.
10379         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10380         * config.make.in (have-as-vis3): New.
10381         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10382         available use -Av9d instead of -Av9a.
10383         * sysdeps/sparc/sparc64/Makefile: Likewise.
10384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10386         New file.
10387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10388         file.
10389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10390         New file.
10391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10392         file.
10393         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10394         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10395         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10396         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10397         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10398
10399         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10400         fzeros/fnegs to load 0x80000000 into a float register instead of
10401         using the stack.
10402         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10403
10404 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10405
10406         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10407         bits/syscall.h.
10408         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10409         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10410         ($(inst_includedir)/bits/syscall.h): Remove rule.
10411         ($(objpfx)bits/syscall.d): Include instead of
10412         $(objpfx)syscall-list.d.
10413         (generated): Change syscall-list.h and syscall-list.d to
10414         bits/syscall.h and bits/syscall.d.
10415
10416 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10417
10418         [BZ #13846]
10419         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10420
10421 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10422
10423         [BZ #13841]
10424         * math/s_csqrt.c: Include <float.h>.
10425         (__csqrt): Scale large or subnormal inputs.
10426         * math/s_csqrtf.c: Likewise.
10427         * math/s_csqrtl.c: Likewise.
10428         * math/libm-test.inc (csqrt_test): Add more tests.
10429         * sysdeps/i386/fpu/libm-test-ulps: Update.
10430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10431
10432         [BZ #13840]
10433         * math/libm-test.inc (hypot_test): Add more tests.
10434
10435 2012-03-13  David S. Miller  <davem@davemloft.net>
10436
10437         [BZ #13840]
10438         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10439         double-precision for the calculation instead of scaling.
10440
10441 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10442
10443         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10444         manipulate bits before adding and subtracting TWO52[sx].
10445         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10446         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10447         Likewise.
10448         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10449
10450 2012-03-13  David S. Miller  <davem@davemloft.net>
10451
10452         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10453         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10454         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10455         rtld-global-offsets.h
10456         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10457
10458         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10459         large parameters.
10460
10461         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10462
10463         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10464         'err' in the ifdef scope in which it is actually used.
10465
10466         * nss/nss_db/db-init.c: Include string.h
10467
10468 2012-03-12  David S. Miller  <davem@davemloft.net>
10469
10470         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10471         masking out of the most significant byte of random value used.
10472         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10473         Fix coding style in previous change.
10474
10475         * sysdeps/unix/sysv/linux/kernel-features.h
10476         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10477         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10478         expression.
10479         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10480         later.
10481
10482 2012-03-11  David S. Miller  <davem@davemloft.net>
10483
10484         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10485         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10486         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10487         for 'resultvar' otherwise things get truncated on 64-bit.
10488
10489         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10490         Fix masking out of the most significant byte of random value used.
10491
10492         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10493
10494 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10495
10496         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10497
10498 2012-03-09  David S. Miller  <davem@davemloft.net>
10499
10500         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10501         variables with appropriate CPP guards.
10502         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10503         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10504         on resulting framesize and the management of the outregs buffer for pltexit.
10505         Preserve floating point return values across _dl_call_pltexit call.
10506         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10507         framesize and the management of the outregs buffer for pltexit.
10508         Preserve floating point return values across _dl_call_pltexit
10509         call.
10510         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10511         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10512         (print_exit): Fix format string for return register value.
10513
10514 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10515
10516         * sunrpc/Makefile (others): Add rpcgen.
10517         ($(objpfx)rpcgen): Remove special build rule and dependency on
10518         libc.
10519         * sunrpc/rpcgen.c: New file.
10520
10521 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10522
10523         [BZ #13673]
10524         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10525         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10526         * sysdeps/i386/crti.S: Likewise.
10527         * sysdeps/i386/crtn.S: Likewise.
10528         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10529         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10530         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10531         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10532         * sysdeps/sh/crti.S: Likewise.
10533         * sysdeps/sh/crtn.S: Likewise.
10534         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10535
10536         [BZ #13673]
10537         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10538         with URL.
10539         * locale/programs/locfile-kw.gperf: Likewise.
10540         * locale/programs/charmap-kw.h: Regenerated.
10541         * locale/programs/locfile-kw.h: Likewise.
10542
10543         [BZ #13673]
10544         * intl/plural.y: Replace FSF snail mail address with URL.
10545         * intl/plural.c: Regenerated.
10546
10547 2012-03-09  Richard Henderson  <rth@twiddle.net>
10548
10549         * include/math_private.h: Remove file.
10550         * math/math_private.h: Move file ...
10551         * sysdeps/generic/math_private.h: ... here.
10552
10553         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10554         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10555         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10556
10557         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10558         and <math_private.h>.
10559         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10560         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10561         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10562         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10563         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10564         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10565         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10566         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10567         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10568         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10569         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10570         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10571         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10572         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10573         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10574         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10575         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10576         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10577         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10578         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10579         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10580         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10581         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10582         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10583         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10584         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10585         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10586         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10587         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10588         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10589         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10590         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10591         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10592         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10593         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10594         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10595         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10596         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10597         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10598         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10599         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10600         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10601         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10602         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10603         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10604         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10605         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10606         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10607         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10608         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10609         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10610         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10611         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10612         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10613         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10614         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10615         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10616         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10617         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10618         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10619         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10620         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10621         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10622         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10623         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10624         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10625         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10626         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10627         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10628         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10629         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10630         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10631         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10632         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10633         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10634         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10635         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10636         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10637         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10638         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10639         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10640         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10641         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10642         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10643         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10644         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10645         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10646         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10647         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10648         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10649         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10650         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10651         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10652         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10653         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10654         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10655         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10656         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10657         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10658         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10659         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10660         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10661         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10662         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10663         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10664         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10665         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10666         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10667         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10668         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10669         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10670         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10671         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10672         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10673         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10674         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10675         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10676         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10677         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10678         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10679         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10680         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10681         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10682         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10683         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10684         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10685         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10686         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10687         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10688         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10689         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10690         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10691         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10692         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10693         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10694         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10695         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10696         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10697         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10698         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10699         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10700         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10701         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10702         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10703         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10704         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10705         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10706         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10707         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10708         * sysdeps/ieee754/k_standard.c: Likewise.
10709         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10710         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10711         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10712         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10713         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10714         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10715         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10716         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10717         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10718         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10719         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10720         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10721         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10722         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10723         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10724         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10725         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10726         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10727         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10728         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10729         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10730         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10731         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10732         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10733         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10734         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10735         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10736         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10737         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10738         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10739         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10740         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10741         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10742         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10743         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10744         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10745         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10746         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10747         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10748         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10749         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10750         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10751         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10752         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10753         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10754         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10755         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10756         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10757         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10758         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10759         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10760         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10761         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10762         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10763         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10764         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10765         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10766         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10767         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10768         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10769         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10770         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10771         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10772         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10773         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10774         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10775         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10776         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10777         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10778         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10779         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10780         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10781         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10782         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10783         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10784         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10785         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10786         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10787         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10788         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10789         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10790         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10791         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10792         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10793         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10794         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10795         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10796         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10797         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10798         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10799         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10800         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10801         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10802         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10803         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10804         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10805         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10806         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10807         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10808         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10809         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10810         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10811         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10812         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10813         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10814         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10815         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10816         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10817         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10818         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10819         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10820         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10821         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10822         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10823         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10824         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10825         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10826         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10827         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10828         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10829         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10830         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10831         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10832         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10833         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10834         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10835         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10836         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10837         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10838         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10839         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10840         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10841         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10842         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10843         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10844         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10845         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10846         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10847         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10848         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10849         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10850         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10851         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10852         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10853         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10854         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10855         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10856         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10857         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10858         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10859         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10860         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10861         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10862         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10863         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10864         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10865         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10866         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10867         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10868         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10869         * sysdeps/ieee754/s_lib_version.c: Likewise.
10870         * sysdeps/ieee754/s_matherr.c: Likewise.
10871         * sysdeps/ieee754/s_signgam.c: Likewise.
10872         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10873         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10874         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10875         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10876         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10877         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10878         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10879         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10880         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10881         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10882         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10883         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10884         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10885         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10886         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10887         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10888         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10889         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10890         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10891         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10892         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10893
10894 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10895
10896         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10897         * sunrpc/rpc_main.c: Likewise.
10898         * sunrpc/rpc_svcout.c: Likewise.
10899
10900 2012-03-09  David S. Miller  <davem@davemloft.net>
10901
10902         * include/math_private.h: New file.
10903
10904 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10905
10906         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10907         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10908         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10909         from <bits/socket_type.h>.
10910         (enum __socket_type): Don't define here.
10911         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10912         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10913         bits/socket_type.h.
10914
10915         [BZ #13566]
10916         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10917         checking __USE_GNU.
10918
10919         * Makerules ($(inst_includedir)/%.h): New rule.
10920         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10921         (install-others): Remove variable setting.
10922         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10923
10924 2012-03-08  Richard Henderson  <rth@twiddle.net>
10925
10926         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10927         from macro to inline function; merge with the
10928         !__LIBC_INTERNAL_MATH_INLINES version.
10929         (__ieee754_sqrtf): Likewise.
10930
10931         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10932         to inline function.
10933         (__rintf, __floor, __floorf): Likewise.
10934
10935         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10936         macro to inline function.
10937         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10938
10939         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10940         not <math/math_private.h>.
10941
10942 2012-03-08  David S. Miller  <davem@davemloft.net>
10943
10944         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10945         copyright year.
10946         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10947
10948 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10949
10950         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10951         normalization.
10952         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10953         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10954
10955 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10956
10957         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10958         be defined individually, they must be defined as a block.  Define
10959         S for printing a string instead of hidint the different by using a
10960         macro for adding the 'l'.
10961         * stdio-common/tst-fphex-wide.c: Adjust.
10962
10963 2012-03-07  Marek Polacek  <polacek@redhat.com>
10964
10965         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10966
10967 2012-03-08  Marek Polacek  <polacek@redhat.com>
10968
10969         [BZ #13806]
10970         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10971         * stdio-common/tst-fphex.c: Define a few macros to make the
10972         test reusable.  Use them.
10973         * stdio-common/tst-fphex-wide.c: New file.
10974
10975 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10976
10977         [BZ #6911]
10978         * manual/macros.texi (gnusystems): New macro.
10979         (nongnusystems): Likewise.
10980         (gnulinuxhurdsystems): Likewise.
10981         (gnuhurdsystems): Likewise..
10982         (gnulinuxsystems): Likewise.
10983         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10984         variants of the GNU system, not "GNU system".
10985         * manual/conf.texi: Likewise.
10986         * manual/errno.texi: Likewise.  Update example of errno macro
10987         expansion.
10988         * manual/filesys.texi: Likewise.
10989         (getumask): Document as specific to GNU/Hurd.
10990         * manual/install.texi: Likewise.  Reword some references to
10991         GNU/Linux.
10992         * manual/intro.texi: Likewise.
10993         * manual/io.texi: Likewise.
10994         (File Name Portability): Detail which constraints are inapplicable
10995         to all GNU systems and which are only inapplicable to GNU/Hurd.
10996         * manual/job.texi: Likewise.
10997         * manual/llio.texi: Likewise.
10998         (O_NOCTTY): Document as present on GNU/Linux.
10999         * manual/maint.texi: Likewise.
11000         * manual/memory.texi: Likewise.
11001         * manual/pattern.texi: Likewise.
11002         * manual/pipe.texi: Likewise.
11003         * manual/process.texi: Likewise.
11004         * manual/resource.texi: Likewise.
11005         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11006         child on GNU/Hurd.
11007         * manual/setjmp.texi: Likewise.
11008         * manual/signal.texi: Likewise.
11009         * manual/startup.texi: Likewise.
11010         * manual/stdio.texi: Likewise.
11011         * manual/terminal.texi: Likewise.
11012         (ONLCR): Document as POSIX.
11013         (OXTABS): Document availability on GNU/Linux as XTABS.
11014         (ONOEOT): Document availability separately from other bits.
11015         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11016         * manual/time.texi: Likewise.
11017         * manual/users.texi: Likewise.
11018         * INSTALL: Regenerated.
11019         * sysdeps/gnu/errlist.c: Regenerated.
11020
11021         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11022         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11023         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11024         puts.
11025         * configure: Regenerated.
11026
11027 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11028
11029         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11030         default includes instead of AC_HEADER_CHECK.
11031         * sysdeps/i386/configure: Regenerated.
11032
11033         [BZ #10716]
11034         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11035         * math/s_cacoshf.c (__cacoshf): Likewise.
11036         * math/s_cacoshl.c (__cacoshl): Likewise.
11037         * math/s_casinh.c (__casinh): Set signs of result from argument.
11038         * math/s_casinhf.c (__casinhf): Likewise.
11039         * math/s_casinhl.c (__casinhl): Likewise.
11040         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11041         (casinh_test): Add more tests.
11042         * sysdeps/i386/fpu/libm-test-ulps: Update.
11043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11044
11045 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11046
11047         * po/zh_TW.po: Update from translation team.
11048
11049         * login/Makefile (distribute): Remove variable.
11050         * catgets/Makefile: Likewise.
11051         * mach/Makefile: Likewise.
11052         * malloc/Makefile: Likewise.
11053         * misc/Makefile: Likewise.
11054         * iconv/Makefile: Likewise.
11055         * nscd/Makefile: Likewise.
11056         * hurd/Makefile: Likewise.
11057         * manual/Makefile: Likewise.
11058         * locale/Makefile: Likewise.
11059         * intl/Makefile: Likewise.
11060         * conform/Makefile: Likewise.
11061         * nss/Makefile: Likewise.
11062         * time/Makefile: Likewise.
11063         * soft-fp/Makefile: Likewise.
11064         * dirent/Makefile: Likewise.
11065         * gmon/Makefile: Likewise.
11066         * po/Makefile: Likewise.
11067         * rt/Makefile: Likewise.
11068         * socket/Makefile: Likewise.
11069         * math/Makefile: Likewise.
11070         * signal/Makefile: Likewise.
11071         * debug/Makefile: Likewise.
11072         * elf/Makefile: Likewise.
11073         * timezone/Makefile: Likewise.
11074         * stdlib/Makefile: Likewise.
11075         * iconvdata/Makefile: Likewise.
11076         * sunrpc/Makefile: Likewise.
11077         * io/Makefile: Likewise.
11078         * argp/Makefile: Likewise.
11079         * inet/Makefile: Likewise.
11080         * hesiod/Makefile: Likewise.
11081         * grp/Makefile: Likewise.
11082         * csu/Makefile: Likewise.
11083         * wctype/Makefile: Likewise.
11084         * crypt/Makefile: Likewise.
11085         * libio/Makefile: Likewise.
11086         * string/Makefile: Likewise.
11087         * nis/Makefile: Likewise.
11088         * resolv/Makefile: Likewise.
11089         * stdio-common/Makefile: Likewise.
11090         * wcsmbs/Makefile: Likewise.
11091         * dlfcn/Makefile: Likewise.
11092         * posix/Makefile: Likewise.
11093
11094         [BZ #6959]
11095         * timezone/Makefile: Don't install timezone files, just the programs
11096         and scripts.
11097
11098 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11099
11100         * nss/databases.def: Add missing gshadow entry.
11101
11102         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11103
11104 2012-03-06  Marek Polacek  <polacek@redhat.com>
11105
11106         [BZ #13726]
11107         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11108         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11109         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11110         * stdio-common/tst-long-dbl-fphex.c: New file.
11111
11112 2012-03-06  David S. Miller  <davem@davemloft.net>
11113
11114         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11115         (set_obp_int): New function.
11116         (get_obp_int): New function.
11117         (__get_clockfreq_via_dev_openprom): Likewise.
11118         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11119         Avoid unused variable warnings on 'val' and use builtin_expect.
11120         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11121         __builtin_expect.
11122         (INLINE_CLONE_SYSCALL): Likewise.
11123
11124 2012-03-05  David S. Miller  <davem@davemloft.net>
11125
11126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11127
11128 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11129
11130         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11131
11132         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11133         only for |x| >= 40.
11134         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11135
11136 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11137
11138         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11139         Replace gettimeofday with __vdso_gettimeofday.
11140
11141         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11142         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11143         __vdso_clock_gettime and __vdso_getcpu.
11144
11145         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11146         time with __vdso_time.
11147
11148 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11149
11150         * manual/lang.texi (size_t): Note types to which size_t may be
11151         equivalent with the GNU C Library, but do not describe when
11152         differences between them are significant.
11153
11154 2012-03-05  Andreas Jaeger  <aj@suse.de>
11155
11156         * sysdeps/i386/fpu/libm-test-ulps: Update.
11157
11158 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11159
11160         [BZ #3976]
11161         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11162         (__ieee754_pow): Save and restore rounding mode and use
11163         round-to-nearest for main computations.
11164         * math/libm-test.inc (pow_test_tonearest): New function.
11165         (pow_test_towardzero): Likewise.
11166         (pow_test_downward): Likewise.
11167         (pow_test_upward): Likewise.
11168         (main): Call the new functions.
11169         * sysdeps/i386/fpu/libm-test-ulps: Update.
11170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11171
11172         [BZ #3976]
11173         * math/libm-test.inc (cosh_test_tonearest): New function.
11174         (cosh_test_towardzero): Likewise.
11175         (cosh_test_downward): Likewise.
11176         (cosh_test_upward): Likewise.
11177         (sinh_test_tonearest): Likewise.
11178         (sinh_test_towardzero): Likewise.
11179         (sinh_test_downward): Likewise.
11180         (sinh_test_upward): Likewise.
11181         (main): Call the new functions.
11182         * sysdeps/i386/fpu/libm-test-ulps: Update.
11183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11184
11185 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11186
11187         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11188         default stack guard is set in last bytes.
11189         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11190
11191 2012-03-05  Kees Cook  <keescook@chromium.org>
11192
11193         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11194
11195         [BZ #13656]
11196         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11197         possibly allocate from heap instead of stack.
11198         * stdio-common/bug-vfprintf-nargs.c: New file.
11199         * stdio-common/Makefile (tests): Add nargs overflow test.
11200
11201 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11202
11203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11204
11205 2012-03-03  Marek Polacek  <polacek@redhat.com>
11206
11207         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11208         * math/math_private.h: Likewise.
11209         * stdlib/tst-strtod.c: Likewise.
11210         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11211         * sysdeps/x86_64/bits/atomic.h: Likewise.
11212
11213 2012-03-02  David S. Miller  <davem@davemloft.net>
11214
11215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11216         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11217         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11218         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11219         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11220         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11221         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11222         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11223
11224 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11225
11226         [BZ #13792]
11227         * manual/examples/README: New file, says the example source files
11228         can be used under GPL>=2.
11229         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11230         line containing just "*/".
11231         * manual/examples/add.c: Add copyright header (GPL>=2).
11232         * manual/examples/argp-ex1.c: Likewise.
11233         * manual/examples/argp-ex2.c: Likewise.
11234         * manual/examples/argp-ex3.c: Likewise.
11235         * manual/examples/argp-ex4.c: Likewise.
11236         * manual/examples/atexit.c: Likewise.
11237         * manual/examples/db.c: Likewise.
11238         * manual/examples/dir.c: Likewise.
11239         * manual/examples/dir2.c: Likewise.
11240         * manual/examples/execinfo.c: Likewise.
11241         * manual/examples/filecli.c: Likewise.
11242         * manual/examples/filesrv.c: Likewise.
11243         * manual/examples/fmtmsgexpl.c: Likewise.
11244         * manual/examples/genpass.c: Likewise.
11245         * manual/examples/inetcli.c: Likewise.
11246         * manual/examples/inetsrv.c: Likewise.
11247         * manual/examples/isockad.c: Likewise.
11248         * manual/examples/longopt.c: Likewise.
11249         * manual/examples/memopen.c: Likewise.
11250         * manual/examples/memstrm.c: Likewise.
11251         * manual/examples/mkfsock.c: Likewise.
11252         * manual/examples/mkisock.c: Likewise.
11253         * manual/examples/mygetpass.c: Likewise.
11254         * manual/examples/pipe.c: Likewise.
11255         * manual/examples/popen.c: Likewise.
11256         * manual/examples/rprintf.c: Likewise.
11257         * manual/examples/search.c: Likewise.
11258         * manual/examples/select.c: Likewise.
11259         * manual/examples/setjmp.c: Likewise.
11260         * manual/examples/sigh1.c: Likewise.
11261         * manual/examples/sigusr.c: Likewise.
11262         * manual/examples/stpcpy.c: Likewise.
11263         * manual/examples/strdupa.c: Likewise.
11264         * manual/examples/strftim.c: Likewise.
11265         * manual/examples/strncat.c: Likewise.
11266         * manual/examples/subopt.c: Likewise.
11267         * manual/examples/swapcontext.c: Likewise.
11268         * manual/examples/termios.c: Likewise.
11269         * manual/examples/testopt.c: Likewise.
11270         * manual/examples/testpass.c: Likewise.
11271         * manual/examples/timeval_subtract.c: Likewise.
11272
11273         [BZ #13792]
11274         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11275         function to ...
11276         * manual/timeval_subtract.c.texi: ... here, new file.
11277
11278 2012-03-02  David S. Miller  <davem@davemloft.net>
11279
11280         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11281
11282 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11283
11284         [BZ #3976]
11285         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11286         (__sin): Save and restore rounding mode and use round-to-nearest
11287         for all computations.
11288         (__cos): Save and restore rounding mode and use round-to-nearest
11289         for all computations.
11290         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11291         <fenv.h>.
11292         (tan): Save and restore rounding mode and use round-to-nearest for
11293         all computations.
11294         * math/libm-test.inc (cos_test_tonearest): New function.
11295         (cos_test_towardzero): Likewise.
11296         (cos_test_downward): Likewise.
11297         (cos_test_upward): Likewise.
11298         (sin_test_tonearest): Likewise.
11299         (sin_test_towardzero): Likewise.
11300         (sin_test_downward): Likewise.
11301         (sin_test_upward): Likewise.
11302         (tan_test_tonearest): Likewise.
11303         (tan_test_towardzero): Likewise.
11304         (tan_test_downward): Likewise.
11305         (tan_test_upward): Likewise.
11306         (main): Call the new functions.
11307         * sysdeps/i386/fpu/libm-test-ulps: Update.
11308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11309
11310         [BZ #10135]
11311         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11312         small n, then large n, before computing and testing k+n.
11313         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11314         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11315         Likewise.
11316         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11317         Likewise.
11318         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11319         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11320         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11321         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11322         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11323         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11324         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11325         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11326         * math/libm-test.inc (scalbn_test): Add more tests.
11327         (scalbln_test): Likewise.
11328
11329         * manual/filesys.texi (mode_t): Describe constraints on size and
11330         signedness, not exact equivalence to a particular type.
11331         (ino_t): Likewise.
11332         (ino64_t): Likewise.
11333         (dev_t): Likewise.
11334         (nlink_t): Likewise.
11335         (blkcnt_t): Likewise.
11336         (blkcnt64_t): Likewise.
11337         * manual/llio.texi (off_t): Likewise.
11338
11339         [BZ #3976]
11340         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11341         (__ieee754_exp): Save and restore rounding mode and use
11342         round-to-nearest for all computations.
11343         * math/libm-test.inc (exp_test_tonearest): New function.
11344         (exp_test_towardzero): Likewise.
11345         (exp_test_downward): Likewise.
11346         (exp_test_upward): Likewise.
11347         (main): Call the new functions.
11348         * sysdeps/i386/fpu/libm-test-ulps: Update.
11349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11350
11351 2012-03-01  Chris Demetriou  <cgd@google.com>
11352
11353         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11354         have predictable order.
11355
11356 2012-03-01  David S. Miller  <davem@davemloft.net>
11357
11358         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11359
11360         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11361         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11362         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11363         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11364
11365         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11366         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11367         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11368         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11369         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11370         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11371         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11372         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11373         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11374
11375         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11376
11377         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11378         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11379         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11380
11381         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11382         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11383         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11384         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11385         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11386         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11387         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11388         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11389         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11390         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11391         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11392         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11393         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11394         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11395         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11396         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11397         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11398         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11399         * sysdeps/sparc/elf/configure: Regenerated.
11400
11401 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11402
11403         * configure.in (AS, LD): Require binutils 2.20 or later.
11404         * configure: Regenerated.
11405         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11406         as required minimum version.
11407         * INSTALL: Regenerated.
11408
11409         [BZ #2541]
11410         [BZ #4108]
11411         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11412         before squaring exponent.
11413         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11414         bottom long double and 27 bits of top long double before squaring
11415         exponent.
11416         * math/libm-test.inc (erfc_test): Add more tests.
11417         * sysdeps/i386/fpu/libm-test-ulps: Update.
11418         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11420
11421 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11422
11423         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11424         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11425         containing bit-fields.
11426         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11427         * soft-fp/single.h (_FP_UNION_S): Likewise.
11428         * soft-fp/double.h (_FP_UNION_D): Likewise.
11429
11430 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11431
11432         [BZ #13786]
11433         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11434         not include ../strcmp.S.
11435         [USE_AS_STRNCASECMP_L]: Likewise.
11436         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11437         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11438         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11439         (__strncasecmp_l_ia32): Define as alias to
11440         __strncasecmp_l_nonascii.
11441
11442         [BZ #5794]
11443         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11444         * sysdeps/i386/fpu/libm-test-ulps: Update.
11445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11446
11447         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11449
11450 2012-02-29  Jeff Law  <law@redhat.com>
11451
11452         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11453         out of bounds read.
11454
11455 2012-02-29  Marek Polacek  <polacek@redhat.com>
11456
11457         [BZ #13706]
11458         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11459         * elf/Makefile: Add rules to run tst-unused-dep.out.
11460
11461 2012-02-28  David S. Miller  <davem@davemloft.net>
11462
11463         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11464         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11465         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11466         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11467         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11468         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11469
11470 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11471
11472         * math/libm-test.inc (llround_test): Move one test from
11473         lround_test.  Use TEST_f_L in moved test.
11474         (lround_test): Move misplaced test to llround_test.  Add testcase
11475         from bug 2561.
11476
11477 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11478
11479         * sysdeps/x86_64/fpu/e_expf.S: New file.
11480         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11481
11482 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11483
11484         [BZ #13637]
11485         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11486         of remain_len that may cause incomplete multi-byte character and
11487         false match.
11488         * posix/bug-regex33.c: New file.
11489         * posix/Makefile (tests): Add bug-regex33.
11490
11491 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11492
11493         * manual/macros.texi: New file.
11494         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11495         * manual/libc.texinfo: Include macros.texi.
11496         * manual/creatute.texi: Likewise.
11497         * manual/install.texi: Likewise.
11498         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11499         @glibcadj{} in references to the GNU C Library.
11500         * manual/charset.texi: Likewise.
11501         * manual/conf.texi: Likewise.
11502         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11503         when not using those macros.
11504         * manual/creature.texi: Likewise.
11505         * manual/crypt.texi: Likewise.
11506         * manual/errno.texi: Likewise.
11507         * manual/filesys.texi: Likewise.
11508         * manual/header.texi: Likewise.
11509         * manual/install.texi: Likewise.
11510         * manual/intro.texi: Likewise.
11511         * manual/io.texi: Likewise.
11512         * manual/job.texi: Likewise.
11513         * manual/lang.texi: Likewise.
11514         * manual/libc.texiinfo: Likewise.
11515         * manual/llio.texi: Likewise.
11516         * manual/locale.texi: Likewise.
11517         * manual/maint.texi: Likewise.
11518         * manual/math.texi: Likewise.
11519         * manual/memory.texi: Likewise.
11520         * manual/message.texi: Likewise.
11521         * manual/nss.texi: Likewise.
11522         * manual/pattern.texi: Likewise.
11523         * manual/process.texi: Likewise.
11524         * manual/resource.texi: Likewise.
11525         * manual/search.texi: Likewise.
11526         * manual/setjmp.texi: Likewise.
11527         * manual/signal.texi: Likewise.
11528         * manual/socket.texi: Likewise.
11529         * manual/startup.texi: Likewise.
11530         * manual/stdio.texi: Likewise.
11531         * manual/string.texi: Likewise.
11532         * manual/sysinfo.texi: Likewise.
11533         * manual/syslog.texi: Likewise.
11534         * manual/terminal.texi: Likewise.
11535         * manual/time.texi: Likewise.
11536         * manual/users.texi: Likewise.
11537         * INSTALL: Regenerated.
11538         * NOTES: Regenerated.
11539         * sysdeps/gnu/errlist.c: Regenerated.
11540
11541 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11542
11543         * include/dirent.h: Include <dirstream.h> before
11544         <dirent/dirent.h>.
11545
11546 2012-02-28  David S. Miller  <davem@davemloft.net>
11547
11548         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11549         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11550         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11551         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11552
11553 2012-02-27  David S. Miller  <davem@davemloft.net>
11554
11555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11557         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11558         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11559
11560         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11561         frame pointer instead of stack pointer relative arg slot.
11562         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11563         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11564         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11565
11566 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11567
11568         [BZ #3992]
11569         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11570
11571 2012-02-27  David S. Miller  <davem@davemloft.net>
11572
11573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11575         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11577         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11578         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11579         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11580         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11581
11582 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11583
11584         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11585         later.  Allow versions 5-9.
11586         * configure: Regenerated.
11587         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11588         required minimum version and 4.6 as recommended version.  Do not
11589         mention bugs in GCC 2.7 and 2.8.
11590         * INSTALL: Regenerated.
11591
11592 2012-02-27  David S. Miller  <davem@davemloft.net>
11593
11594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11595         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11596         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11597         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11598         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11599         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11600         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11601         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11602
11603         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11604         manipulate bits before adding and subtracting TWO112[sx].
11605         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11606
11607 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11608
11609         [BZ #13775]
11610         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11611         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11612         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11613         being in POSIX, because they are in 1003.1-2008.
11614
11615         * rt/tst-aio.c: Include <fcntl.h>.
11616         * rt/tst-aio7.c: Likewise.
11617         * rt/tst-aio64.c: Likewise.
11618
11619         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11620
11621 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11622
11623         * manual/install.texi (--with-headers): Describe headers as
11624         interface headers, not private headers.
11625         (Specific advice for GNU/Linux systems): Describe use of headers
11626         from "make headers_install", not private headers from older
11627         kernels.
11628         * INSTALL: Regenerated.
11629         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11630         Change to 2.6.19.
11631         * sysdeps/unix/sysv/linux/configure: Regenerated.
11632
11633         * manual/llio.texi (fclean): Remove documentation.
11634
11635         * manual/Makefile (libc-texi-generated): New variable.  Include
11636         version.texi.
11637         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11638         $(libc-texi-generated), not duplicated list of files.
11639         (version.texi, stamp-version): New rules.
11640         (realclean): Remove $(libc-texi-generated), not individual files
11641         from that list.  Do not remove dir-add.texinfo.
11642         * manual/libc.texinfo: Comment out uses of edition numbers and
11643         references to printed manual.  Remove last-updated dates.
11644         (EDITION): Comment out.
11645         (ISBN): Likewise.
11646         (VERSION, UPDATED): Remove.
11647         (version.texi): Include.
11648
11649 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11650
11651         * sysdeps/posix/spawni.c: Include <signal.h>.
11652         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11653         * sysdeps/pthread/aio_fsync.c: Likewise.
11654
11655 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11656
11657         * conform/Makefile (tests): Run only when not cross-compiling and
11658         when fast-check is not defined.
11659
11660         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11661         * conform/data/limits.h-data: Fixes for POSIX2008.
11662         * conform/run-conformtest.sh: Run all tests.
11663         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11664         headers.
11665         * include/bits/dlfcn.h: Likewise.
11666         * include/langinfo.h: Likewise.
11667         * include/monetary.h: Likewise.
11668         * include/sys/poll.h: Likewise.
11669
11670         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11671         for __USE_GNU.
11672         * posix/spawn.h: Define __need_sigset_t.
11673         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11674         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11675         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11676         to get sigevent_t only.
11677         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11678         only for __USE_GNU.
11679         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11680         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11681         process_vm_writev only for __USE_GNU.
11682         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11683
11684         * conform/Makefile: For now ignore errors from run-conformtest.
11685         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11686         POSIX to avoid namespace pollution.  Don't prepend headers.
11687         * conform/data/aio.h-data: Fixes for POSIX testing.
11688         * conform/data/fcntl.h-data: Likewise.
11689         * conform/data/glob.h-data: Likewise.
11690         * conform/data/grp.h-data: Likewise.
11691         * conform/data/pthread.h-data: Likewise.
11692         * conform/data/pwd.h-data: Likewise.
11693         * conform/data/signal.h-data: Likewise.
11694         * conform/data/spawn.h-data: Likewise.
11695         * conform/data/stdio.h-data: Likewise.
11696         * conform/data/stdlib.h-data: Likewise.
11697         * conform/data/stropts.h-data: Likewise.
11698         * conform/data/sys/mman.h-data: Likewise.
11699         * conform/data/sys/stat.h-data: Likewise.
11700         * conform/data/sys/types.h-data: Likewise.
11701         * conform/data/sys/wait.h-data: Likewise.
11702         * conform/data/time.h-data: Likewise.
11703         * conform/data/unistd.h-data: Likewise.
11704         * conform/data/utime.h-data: Likewise.
11705
11706         * io/sys/stat.h: fchmod was always in POSIX.
11707         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11708         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11709         * rt/aio.h: Define __need_timespec before including <time.h>.
11710         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11711         struct.  Add forward declaration of pthread_attr_t and use it in
11712         sigevent.
11713         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11714         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11715         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11716         always remove CLK_TCK definition.
11717
11718 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11719
11720         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11721
11722 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11723
11724         * conform/run-conformtest.sh: New file.
11725         * conform/Makefile: Run run-conformtest for tests.
11726         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11727         support.
11728
11729         * conform/data/uchar.h-data: New file.
11730         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11731         * conform/data/arpa/inet.h-data: Likewise.
11732         * conform/data/assert.h-data: Likewise.
11733         * conform/data/complex.h-data: Likewise.
11734         * conform/data/cpio.h-data: Likewise.
11735         * conform/data/ctype.h-data: Likewise.
11736         * conform/data/dirent.h-data: Likewise.
11737         * conform/data/dlfcn.h-data: Likewise.
11738         * conform/data/errno.h-data: Likewise.
11739         * conform/data/fcntl.h-data: Likewise.
11740         * conform/data/float.h-data: Likewise.
11741         * conform/data/fmtmsg.h-data: Likewise.
11742         * conform/data/fnmatch.h-data: Likewise.
11743         * conform/data/ftw.h-data: Likewise.
11744         * conform/data/glob.h-data: Likewise.
11745         * conform/data/grp.h-data: Likewise.
11746         * conform/data/iconv.h-data: Likewise.
11747         * conform/data/inttypes.h-data: Likewise.
11748         * conform/data/langinfo.h-data: Likewise.
11749         * conform/data/libgen.h-data: Likewise.
11750         * conform/data/limits.h-data: Likewise.
11751         * conform/data/locale.h-data: Likewise.
11752         * conform/data/math.h-data: Likewise.
11753         * conform/data/monetary.h-data: Likewise.
11754         * conform/data/mqueue.h-data: Likewise.
11755         * conform/data/ndbm.h-data: Likewise.
11756         * conform/data/net/if.h-data: Likewise.
11757         * conform/data/netdb.h-data: Likewise.
11758         * conform/data/netinet/in.h-data: Likewise.
11759         * conform/data/nl_types.h-data: Likewise.
11760         * conform/data/poll.h-data: Likewise.
11761         * conform/data/pthread.h-data: Likewise.
11762         * conform/data/pwd.h-data: Likewise.
11763         * conform/data/regex.h-data: Likewise.
11764         * conform/data/sched.h-data: Likewise.
11765         * conform/data/search.h-data: Likewise.
11766         * conform/data/semaphore.h-data: Likewise.
11767         * conform/data/setjmp.h-data: Likewise.
11768         * conform/data/signal.h-data: Likewise.
11769         * conform/data/spawn.h-data: Likewise.
11770         * conform/data/stdarg.h-data: Likewise.
11771         * conform/data/stdio.h-data: Likewise.
11772         * conform/data/stdlib.h-data: Likewise.
11773         * conform/data/string.h-data: Likewise.
11774         * conform/data/strings.h-data: Likewise.
11775         * conform/data/stropts.h-data: Likewise.
11776         * conform/data/sys/ipc.h-data: Likewise.
11777         * conform/data/sys/mman.h-data: Likewise.
11778         * conform/data/sys/msg.h-data: Likewise.
11779         * conform/data/sys/resource.h-data: Likewise.
11780         * conform/data/sys/select.h-data: Likewise.
11781         * conform/data/sys/sem.h-data: Likewise.
11782         * conform/data/sys/shm.h-data: Likewise.
11783         * conform/data/sys/socket.h-data: Likewise.
11784         * conform/data/sys/stat.h-data: Likewise.
11785         * conform/data/sys/statvfs.h-data: Likewise.
11786         * conform/data/sys/time.h-data: Likewise.
11787         * conform/data/sys/timeb.h-data: Likewise.
11788         * conform/data/sys/times.h-data: Likewise.
11789         * conform/data/sys/types.h-data: Likewise.
11790         * conform/data/sys/uio.h-data: Likewise.
11791         * conform/data/sys/un.h-data: Likewise.
11792         * conform/data/sys/utsname.h-data: Likewise.
11793         * conform/data/sys/wait.h-data: Likewise.
11794         * conform/data/syslog.h-data: Likewise.
11795         * conform/data/tar.h-data: Likewise.
11796         * conform/data/termios.h-data: Likewise.
11797         * conform/data/utime.h-data: Likewise.
11798         * conform/data/utmpx.h-data: Likewise.
11799         * conform/data/varargs.h-data: Likewise.
11800         * conform/data/wchar.h-data: Likewise.
11801         * conform/data/wctype.h-data: Likewise.
11802         * conform/data/wordexp.h-data: Likewise.
11803
11804         * include/stropts.h: New file.
11805         * include/uchar.h: New file.
11806         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11807         * include/assert.h: Likewise.
11808         * include/ctype.h: Likewise.
11809         * include/dirent.h: Likewise.
11810         * include/dlfcn.h: Likewise.
11811         * include/fcntl.h: Likewise.
11812         * include/fnmatch.h: Likewise.
11813         * include/glob.h: Likewise.
11814         * include/grp.h: Likewise.
11815         * include/libio.h: Likewise.
11816         * include/locale.h: Likewise.
11817         * include/math.h: Likewise.
11818         * include/net/if.h: Likewise.
11819         * include/netdb.h: Likewise.
11820         * include/netinet/in.h: Likewise.
11821         * include/pthread.h: Likewise.
11822         * include/pwd.h: Likewise.
11823         * include/regex.h: Likewise.
11824         * include/sched.h: Likewise.
11825         * include/search.h: Likewise.
11826         * include/setjmp.h: Likewise.
11827         * include/signal.h: Likewise.
11828         * include/stdio.h: Likewise.
11829         * include/stdlib.h: Likewise.
11830         * include/string.h: Likewise.
11831         * include/sys/cdefs.h: Likewise.
11832         * include/sys/mman.h: Likewise.
11833         * include/sys/msg.h: Likewise.
11834         * include/sys/resource.h: Likewise.
11835         * include/sys/select.h: Likewise.
11836         * include/sys/socket.h: Likewise.
11837         * include/sys/stat.h: Likewise.
11838         * include/sys/statvfs.h: Likewise.
11839         * include/sys/time.h: Likewise.
11840         * include/sys/times.h: Likewise.
11841         * include/sys/uio.h: Likewise.
11842         * include/sys/utsname.h: Likewise.
11843         * include/sys/wait.h: Likewise.
11844         * include/termios.h: Likewise.
11845         * include/time.h: Likewise.
11846         * include/ulimit.h: Likewise.
11847         * include/unistd.h: Likewise.
11848         * include/utime.h: Likewise.
11849         * include/wchar.h: Likewise.
11850         * include/wctype.h: Likewise.
11851         * include/wordexp.h: Likewise.
11852
11853         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11854
11855         * time/time.h: TIME_UTC must be a macro.
11856         Make timespec_get available for ISO C11 only as well.
11857
11858 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11859
11860         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11861         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11862
11863 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11864
11865         * configure.in: Use -o not -a in test for unsupported multi-arch.
11866
11867 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11868
11869         * manual/texinfo.tex: Update to version 2012-01-19.16.
11870
11871 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11872
11873         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11874
11875 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11876
11877         [BZ #13738]
11878         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11879         * manual/fdl-1.3.texi: New file.
11880         * manual/fdl-1.1.texi: File removed.
11881
11882         [BZ #13738]
11883         * manual/libc.texinfo (FDL_VERSION): New @set.
11884         Use it for mention of FDL in cover text.
11885         (Documentation License): Use it in @include file name.
11886
11887 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11888             Roland McGrath  <roland@hack.frob.com>
11889
11890         [BZ #5461]
11891         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11892         not LONG_LONG_MAX and LONG_LONG_MIN.
11893         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11894         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11895         name.
11896         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11897
11898 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11899
11900         [BZ #2547]
11901         [BZ #11365]
11902         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11903         manipulate bits before adding and subtracting TWO23[sx].
11904         * math/libm-test.inc (nearbyint_test): Add more tests.
11905
11906 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11907
11908         [BZ #2548]
11909         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11910         bits before adding and subtracting TWO23[sx].
11911         * math/libm-test.inc (rint_test): Add more tests.
11912         (rint_test_tonearest): Likewise.
11913         (rint_test_towardzero): Likewise.
11914         (rint_test_downward): Likewise.
11915         (rint_test_upward: Likewise.
11916
11917 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11918
11919         [BZ #10110]
11920         * include/stdc-predef.h: New file.  Extracted from features.h.
11921         * include/features.h: Include stdc-predef.h.
11922         * Makefile (headers): Add stdc-predef.h.
11923         * CONFORMANCE (Compiler limitations): Update.
11924
11925 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11926
11927         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11928
11929 2012-02-21  David S. Miller  <davem@davemloft.net>
11930
11931         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11932         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11933
11934 2012-02-20  David S. Miller  <davem@davemloft.net>
11935
11936         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11937         using a normal save/restore sequence, rather than allocating a
11938         dummy stack frame just to store a frame pointer and restore.
11939         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11940
11941 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11942
11943         * manual/install.texi: Fix stray word in line-wrapped comment.
11944
11945 2012-02-20  David S. Miller  <davem@davemloft.net>
11946
11947         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11948         both binutils and gcc support GOTDATA.
11949
11950         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11951         "rd %pc" in the PIC register setup sequences.
11952
11953         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11954         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11955         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11956         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11957         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11958         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11959         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11960         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11961         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11962         (SYSCALL_ERROR_HANDLER): Likewise.
11963         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11964         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11965         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11966         (SYSCALL_ERROR_HANDLER): Likewise.
11967
11968         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11969         (HAVE_GCC_GOTDATA): New.
11970         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11971         relocation support in both binutils and gcc.
11972         * sysdeps/sparc/elf/configure: Regenerate.
11973
11974         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11975         * sysdeps/sparc/sparc32/elf/configure: Delete.
11976         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11977         * sysdeps/sparc/sparc64/elf/configure: Delete.
11978         * sysdeps/sparc/elf/configure.in: New file.
11979         * sysdeps/sparc/elf/configure: Generate.
11980
11981         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11982         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11983         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11984         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11985         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11986
11987 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11988
11989         * manual/install.texi: Do not mention specific glibc version
11990         numbers.
11991         * manual/libc.texinfo (VERSION, UPDATED): Update.
11992         (@copying): Use @copyright{} and range of years.
11993
11994 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11995
11996         [BZ #13695]
11997         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11998         [crti.S not in sysdirs] (generated): Do not append.
11999         [crti.S not in sysdirs] (omit-deps): Likewise.
12000         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12001         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12002         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12003         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12004         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12005         Likewise.
12006         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12007         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12008         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12009         * csu/defs.awk: Remove file.
12010         * sysdeps/generic/initfini.c: Likewise.
12011         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12012         variable.
12013         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12014         Likewise.
12015
12016 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12017
12018         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12019         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12020         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12021         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12022         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12023         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12024         <bits/epoll.h>.
12025         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12026         (__EPOLL_PACKED): Define to empty if not defined by
12027         <bits/epoll.h>.
12028         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12029         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12030         bits/epoll.h.
12031
12032 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12033
12034         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12035         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12036         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12037         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12038         <bits/timerfd.h>.
12039         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12040         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12041         bits/timerfd.h.
12042
12043 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12044
12045         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12046         in C locale.
12047         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12048         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12049         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12051
12052 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12053
12054         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12055         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12056
12057 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12058
12059         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12060         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12061         defined.
12062         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12063         Likewise.
12064         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12065         entry for 2.16.
12066
12067 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12068
12069         * math/w_acos.c: Use non-signaling floating-point comparisons.
12070         * math/w_acosf.c: Likewise.
12071         * math/w_acosh.c: Likewise.
12072         * math/w_acoshf.c: Likewise.
12073         * math/w_acoshl.c: Likewise.
12074         * math/w_acosl.c: Likewise.
12075         * math/w_asin.c: Likewise.
12076         * math/w_asinf.c: Likewise.
12077         * math/w_asinl.c: Likewise.
12078         * math/w_atanh.c: Likewise.
12079         * math/w_atanhf.c: Likewise.
12080         * math/w_atanhl.c: Likewise.
12081         * math/w_exp2.c: Likewise.
12082         * math/w_exp2f.c: Likewise.
12083         * math/w_exp2l.c: Likewise.
12084         * math/w_j0.c: Likewise.
12085         * math/w_j0f.c: Likewise.
12086         * math/w_j0l.c: Likewise.
12087         * math/w_j1.c: Likewise.
12088         * math/w_j1f.c: Likewise.
12089         * math/w_j1l.c: Likewise.
12090         * math/w_jn.c: Likewise.
12091         * math/w_jnf.c: Likewise.
12092         * math/w_log.c: Likewise.
12093         * math/w_log10.c: Likewise.
12094         * math/w_log10f.c: Likewise.
12095         * math/w_log10l.c: Likewise.
12096         * math/w_log2.c: Likewise.
12097         * math/w_log2f.c: Likewise.
12098         * math/w_log2l.c: Likewise.
12099         * math/w_logf.c: Likewise.
12100         * math/w_logl.c: Likewise.
12101         * math/w_sqrt.c: Likewise.
12102         * math/w_sqrtf.c: Likewise.
12103         * math/w_sqrtl.c: Likewise.
12104         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12105         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12106         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12107         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12108         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12109
12110 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12111
12112         [BZ #9739]
12113         * manual/string.texi (strnlen): Use correct parameter name in
12114         equivalent expression.
12115
12116 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12117
12118         [BZ #11174]
12119         * manual/users.texi (seteuid): Consistently use neweuid for
12120         argument name.
12121
12122 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12123
12124         [BZ #13704]
12125         * manual/nss.texi (Services in the NSS configuration): Correct
12126         list of services in example configuration file.
12127
12128 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12129
12130         [BZ #11322]
12131         * manual/arith.texi: Remove statements about negative zero
12132         behaving identically to zero.
12133
12134 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12135
12136         [BZ #5993]
12137         * manual/install.texi: Do not document upgrading from libc5.
12138
12139 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12140
12141         [BZ #4596]
12142         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12143
12144 2012-02-18  David S. Miller  <davem@davemloft.net>
12145
12146         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12147         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12148         %o7 across the call.
12149         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12150         instead.
12151         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12152         SETUP_PIC_REG_LEAF.
12153         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12154         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12155         * sysdeps/sparc/crtn.S: Likewise.
12156
12157 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12158
12159         * aout/Makefile: Remove.
12160
12161 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12162
12163         [BZ #13058]
12164         * manual/examples/argp-ex1.c (main): Format definition in GNU
12165         style.
12166         * manual/examples/argp-ex2.c (main): Likewise.
12167         * manual/examples/argp-ex3.c (main): Likewise.
12168         * manual/examples/argp-ex4.c (main): Likewise.
12169         * manual/examples/longopt.c (main): Use new-style prototype
12170         definition.
12171         * manual/examples/strncat.c (main): Specify return type and use
12172         (void) for arguments.
12173         * manual/examples/subopt.c (main): Use char **argv argument.
12174
12175 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12176
12177         [BZ #5077]
12178         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12179         rounding modes.
12180
12181 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12182
12183         [BZ #6907]
12184         * manual/string.texi (strchr): Change when strchrnul is
12185         recommended.
12186
12187 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12188
12189         [BZ #174]
12190         * manual/locale.texi (setlocale): Document LOCPATH.
12191
12192 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12193
12194         [BZ #10210]
12195         * manual/process.texi (execle): Move @dots{} before last argument.
12196
12197 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12198
12199         [BZ #12047]
12200         * manual/charset.texi (Generic Charset Conversion): Fix typo
12201         (LC_TYPE -> LC_CTYPE).
12202
12203 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12204
12205         [BZ #5805]
12206         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12207         (scalbnf): Likewise.
12208         (scalbnl): Likewise.
12209         (scalbln): Likewise.
12210         (scalblnf): Likewise.
12211         (scalblnl): Likewise.
12212         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12213         (vwarnx): Likewise.
12214         (verr): Likewise.
12215         (verrx): Likewise.
12216         * manual/filesys.texi (telldir): Use braces around return type.
12217         * manual/llio.texi (mmap): Add space after comma.
12218         (mmap64): Likewise.
12219         * manual/math.texi (jn): Use @var{} on parameter names.
12220         (jnf): Likewise.
12221         (jnl): Likewise.
12222         (yn): Likewise.
12223         (ynf): Likewise.
12224         (ynl): Likewise.
12225         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12226         line.
12227         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12228         "...".
12229         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12230         (sched_get_priority_max): Likewise.
12231         * manual/signal.texi (sigvec): Add space after comma.
12232         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12233         names.
12234         (if_indextoname): Likewise.
12235         (if_freenameindex): Likewise.
12236         (sendto): Use ',' instead of '.' in prototype.
12237         * manual/startup.texi (syscall): Use @dots{} instead of literal
12238         "...".
12239         * manual/stdio.texi (__fpending): Separate initial words of
12240         paragraph from @deftypefun line.
12241         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12242         "...".
12243         (vsyslog): Use @var{} on parameter names.
12244         * manual/terminal.texi (stty): Use @var{} on parameter names.
12245         * manual/users.texi (getutmp): Use @var{} on parameter names.
12246         (getutmpx): Likewise.
12247
12248 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12249
12250         [BZ #6884]
12251         * manual/stdio.texi (fopen): Fix typos in description of
12252         ",ccs=STRING".
12253
12254 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12255
12256         [BZ #4026]
12257         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12258         get clock_id definition.
12259
12260 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12261
12262         [BZ #4822]
12263         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12264         (madvise): Cast every argument to void on its own.
12265
12266 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12267
12268         [BZ #9902]
12269         * manual/startup.texi (Exit Status): Fix typo.
12270
12271 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12272
12273         [BZ #10140]
12274         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12275         * manual/examples/argp-ex2.c: Likewise.
12276         * manual/examples/argp-ex3.c: Likewise.
12277
12278 2012-02-16  Richard Henderson  <rth@redhat.com>
12279
12280         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12281         * sysdeps/s390/s390-32/initfini.c: Remove.
12282         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12283         * sysdeps/s390/s390-64/initfini.c: Remove.
12284
12285 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12286
12287         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12288         compiler output for sysdeps/generic/initfini.c.
12289         * sysdeps/sh/elf/initfini.c: Remove file.
12290
12291 2012-02-16  David S. Miller  <davem@davemloft.net>
12292
12293         [BZ #11494]
12294         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12295
12296         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12297         * sysdeps/sparc/crti.S: New file.
12298         * sysdeps/sparc/crtn.S: New file.
12299         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12300         * sysdeps/sparc/sparc64/Makefile: Likewise.
12301
12302 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12303
12304         [BZ #3335]
12305         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12306
12307 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12308
12309         [BZ #4822]
12310         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12311
12312         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12313         (write, read, close): Likewise.
12314         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12315
12316 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12317
12318         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12319         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12320         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12321         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12322         <bits/signalfd.h>.
12323         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12324         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12325         bits/signalfd.h.
12326
12327 2012-02-14  Marek Polacek  <polacek@redhat.com>
12328
12329         * sysdeps/x86_64/crti.S: New file.
12330         * sysdeps/x86_64/crtn.S: New file.
12331         * sysdeps/x86_64/elf/initfini.c: Remove file.
12332
12333 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12334
12335         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12336         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12337         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12338         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12339         <bits/inotify.h>.
12340         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12341         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12342         bits/inotify.h.
12343
12344 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12345
12346         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12347         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12348         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12349         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12350         <bits/eventfd.h>.
12351         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12352         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12353         bits/eventfd.h.
12354
12355 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12356
12357         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12358         __feraiseexcept instead of feraiseexcept.
12359
12360         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12361         nanosleep invocations.
12362         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12363         strings, and add error checking for a nanosleep invocations.
12364
12365 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12366
12367         Replace FSF snail mail address with URLs, as per GNU coding standards.
12368         Most of the snail mail addresses were wrong anyway, and omitting
12369         them makes the source code easier to maintain.  Almost all of the
12370         changes are to license notices and to locale LC_IDENTIFICATION
12371         addresses, except for this one:
12372         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12373         not its snail mail address.
12374
12375 2012-02-09  Richard Henderson  <rth@twiddle.net>
12376
12377         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12378         of kernel-features.h.
12379
12380         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12381
12382 2012-02-08  Marek Polacek  <polacek@redhat.com>
12383
12384         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12385         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12386         * sysdeps/gnu/_G_config.h: Likewise.
12387         * sysdeps/generic/_G_config.h: Likewise.
12388
12389 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12390
12391         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12392         tests.
12393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12394
12395         * sysdeps/powerpc/powerpc32/crti.S: New file.
12396         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12397         * sysdeps/powerpc/powerpc64/crti.S: New file.
12398         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12399
12400         * Makeconfig (have-initfini): Don't set.
12401         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12402         * configure.in (nopic_initfini): Don't substitute.
12403         * config.h.in (HAVE_INITFINI): Don't #undef.
12404         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12405         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12406
12407 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12408
12409         Support crti.S and crtn.S provided directly by architectures.
12410         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12411         [crti.S in sysdirs] (omit-deps): Likewise.
12412         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12413         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12414         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12415         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12416         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12417         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12418         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12419         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12420         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12421         compiler output for sysdeps/generic/initfini.c.
12422         * sysdeps/i386/elf/Makefile: Remove file.
12423         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12424
12425 2012-02-07  Marek Polacek  <polacek@redhat.com>
12426
12427         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12428         * sysdeps/gnu/_G_config.h: Likewise.
12429         * sysdeps/mach/hurd/_G_config.h: Likewise.
12430
12431 2012-02-07  Marek Polacek  <polacek@redhat.com>
12432
12433         * math/Makefile (tests): Add tst-CMPLX2.
12434         * math/tst-CMPLX2.c: New file.
12435
12436 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12437
12438         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12439
12440         * math/libm-test.inc (jn_test): Add missing L suffix.
12441
12442 2012-02-06  Marek Polacek  <polacek@redhat.com>
12443
12444         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12445         * sysdeps/i386/fpu/e_powf.S: Likewise.
12446         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12447         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12448         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12449         * sysdeps/i386/fpu/e_pow.S: Likewise.
12450         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12451         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12452         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12453         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12454         * sysdeps/i386/fpu/e_log2.S: Likewise.
12455         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12456         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12457         * sysdeps/i386/fpu/e_powl.S: Likewise.
12458         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12459         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12460         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12461         * sysdeps/i386/fpu/e_logl.S: Likewise.
12462         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12463         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12464         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12465         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12466         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12467         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12468         * sysdeps/i386/fpu/e_log.S: Likewise.
12469         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12470         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12471         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12472         * sysdeps/i386/fpu/e_logf.S: Likewise.
12473         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12474         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12475         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12476         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12477         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12478         * sysdeps/i386/fpu/e_log10.S: Likewise.
12479         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12480         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12481         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12482         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12483         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12484         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12485         * sysdeps/i386/asm-syntax.h: Likewise.
12486         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12487         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12488         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12489         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12490         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12491         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12492         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12493         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12494         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12495         * sysdeps/powerpc/sysdep.h: Likewise.
12496         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12497         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12498
12499 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12500
12501         [BZ #411]
12502         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12503
12504 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12505
12506         * sysdeps/i386/sysdep.h: Include <features.h>.
12507         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12508         version.
12509
12510 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12511
12512         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12513         Define.
12514         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12515         LOAD_PIC_REG_STR.
12516
12517 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12518
12519         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12520         (SETUP_PIC_REG): Use GET_PC_THUNK.
12521         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12522         macro.
12523
12524 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12525
12526         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12527         for non-PIC compilation.
12528         (SETUP_PIC_REG): Add .p2align directive.
12529         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12530         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12531         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12532         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12533         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12534         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12535         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12536         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12537         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12538         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12539         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12540         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12541         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12542         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12543         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12544         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12545         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12546         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12547         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12548         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12549         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12550         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12551         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12552         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12553         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12554         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12555         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12556         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12557         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12558         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12559         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12560         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12561         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12562         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12563         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12564         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12565         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12566         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12567         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12568         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12569         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12570
12571 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12572
12573         * math/tst-CMPLX.c: Include <stdio.h>.
12574
12575 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12576
12577         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12578         float.
12579         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12580         * sysdeps/sparc/bits/mathdef.h: Likewise.
12581
12582 2012-01-31  Marek Polacek  <polacek@redhat.com>
12583
12584         * libio/libio.h: Don't define _PARAMS.
12585         * locale/programs/config.h: Don't define PARAMS.
12586         * stdlib/strtol_l.c: Likewise.
12587         (__strtol_l): Remove PARAMS from the prototype.
12588
12589 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12590
12591         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12592         names.  Just use the correct names.  Remove unnecessary wrapper
12593         functions.
12594         * malloc/arena.c: Likewise.
12595         * malloc/hooks.c: Likewise.
12596
12597         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12598         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12599         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12600
12601 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12602
12603         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12604         into tail calls.
12605         (update_get_addr): New function.
12606         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12607         GET_ADDR_MODULE parameter.
12608
12609 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * crypt/cert.c: Remove __STDC__ conditionals.
12612         * crypt/crypt-entry.c: Likewise.
12613         * crypt/crypt_util.c: Likewise.
12614         * libio/filedoalloc.c: Likewise.
12615         * libio/fileops.c: Likewise.
12616         * libio/genops.c: Likewise.
12617         * libio/iofclose.c: Likewise.
12618         * libio/iofdopen.c: Likewise.
12619         * libio/iofopen.c: Likewise.
12620         * libio/iofopen64.c: Likewise.
12621         * libio/iogetdelim.c: Likewise.
12622         * libio/iopopen.c: Likewise.
12623         * libio/obprintf.c: Likewise.
12624         * libio/oldfileops.c: Likewise.
12625         * libio/oldiofclose.c: Likewise.
12626         * libio/oldiofdopen.c: Likewise.
12627         * libio/oldiofopen.c: Likewise.
12628         * libio/oldiopopen.c: Likewise.
12629         * libio/wfiledoalloc.c: Likewise.
12630         * libio/wgenops.c: Likewise.
12631         * locale/programs/xmalloc.c: Likewise.
12632         * misc/syslog.c: Likewise.
12633         * stdio-common/xbug.c: Likewise.
12634         * string/memchr.c: Likewise.
12635         * string/memcmp.c: Likewise.
12636         * string/memrchr.c: Likewise.
12637         * string/rawmemchr.c: Likewise.
12638         * sysdeps/posix/getcwd.c: Likewise.
12639         * time/strftime_l.c: Likewise.
12640
12641 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12642
12643         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12644         * config.make.in (config-cflags-sse2avx): Define.
12645         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12646         Fix typo.
12647
12648 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12649
12650         * scripts/config.guess: Update from upstream config git repository.
12651         * scripts/config.sub: Likewise.
12652
12653 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12654
12655         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12656         (EM_NUM): Update.
12657         (R_TILEPRO_*, R_TILEGX_*): New macros.
12658
12659         * scripts/firstversions.awk: Fix bug in version range handling.
12660
12661         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12662
12663         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12664
12665         * include/sys/epoll.h: New file.
12666         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12667         libc_hidden_def.
12668
12669 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12670
12671         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12672         Avoid unnecessary __WORDSIZE == 64 test.
12673         (fmaxf): Use VEX format if possible.
12674         (fmax): Likewise.
12675         (fminf): Likewise.
12676         (fmin): Likewise.
12677
12678         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12679         * math/math_private.h: Remove libc_fegetround* and
12680         libc_fesetround*.
12681         * sysdeps/i386/configure.in: Check for -msse2avx.
12682         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12683         also if SSE2AVX is defined.
12684         Remove libc_fegetround* and libc_fesetround*.
12685         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12686         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12687         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12688         of HAS_YMM_USABLE.
12689         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12690         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12691         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12692         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12693         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12694
12695         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12696
12697 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12698
12699         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12700         size is not set.
12701         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12702
12703 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12704
12705         [BZ #13618]
12706         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12707         relocation.
12708         * Makeconfig (libm): Define.
12709         * elf/Makefile: Add rules to build and run tst-relsort1.
12710         * elf/tst-relsort1.c: New file.
12711         * elf/tst-relsort1mod1.c: New file.
12712         * elf/tst-relsort1mod2.c: New file.
12713
12714 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12715
12716         * math/s_ldexp.c: Remove __STDC__ conditionals.
12717         * math/s_ldexpf.c: Likewise.
12718         * math/s_ldexpl.c: Likewise.
12719         * math/s_nextafter.c: Likewise.
12720         * math/s_nexttowardf.c: Likewise.
12721         * math/s_significand.c: Likewise.
12722         * math/s_significandf.c: Likewise.
12723         * math/s_significandl.c: Likewise.
12724         * math/w_jnl.c: Likewise.
12725         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12726         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12727         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12728         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12729         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12731         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12739         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12740         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12744         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12745         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12746         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12747         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12748         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12749         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12750         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12751         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12752         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12753         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12754         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12755         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12756         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12757         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12758         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12759         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12760         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12761         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12762         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12763         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12764         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12765         * sysdeps/ieee754/k_standard.c: Likewise.
12766         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12767         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12768         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12769         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12770         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12771         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12772         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12773         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12774         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12775         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12776         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12777         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12778         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12779         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12780         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12781         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12782         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12783         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12784         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12785         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12786         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12787         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12788         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12789         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12790         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12791         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12792         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12793         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12794         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12795         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12796         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12797         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12798         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12799         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12800         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12801         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12802         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12803         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12804         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12805         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12806         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12807         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12808         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12809         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12810         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12811         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12812         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12813         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12814         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12815         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12816         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12817         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12818         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12819         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12820         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12821         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12822         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12823         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12824         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12825         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12826         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12827         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12828         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12829         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12830         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12831         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12832         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12833         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12834         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12835         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12836         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12837         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12838         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12839         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12840         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12841         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12842         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12843         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12844         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12845         * sysdeps/ieee754/s_matherr.c: Likewise.
12846         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12847         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12848         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12849         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12850
12851 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12852
12853         * crypt/md5.h: Remove __STDC__ conditionals.
12854         * libio/libioP.h: Likewise.
12855         * locale/programs/config.h: Likewise.
12856         * sysdeps/generic/sysdep.h: Likewise.
12857         * sysdeps/i386/asm-syntax.h: Likewise.
12858         * sysdeps/s390/asm-syntax.h: Likewise.
12859         * sysdeps/unix/sysdep.h: Likewise.
12860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12862
12863 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12864
12865         * libio/libio.h: Remove __STDC__ conditionals.
12866         * malloc/obstack.h: Likewise.
12867         * math/complex.h: Likewise.
12868         * math/math.h: Likewise.
12869         * sysdeps/generic/_G_config.h: Likewise.
12870         * sysdeps/gnu/_G_config.h: Likewise.
12871         * sysdeps/mach/hurd/_G_config.h: Likewise.
12872         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12873         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12874         * sysdeps/sparc/bits/mathdef.h: Likewise.
12875
12876 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12877
12878         [BZ #13583]
12879         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12880         Clean up HAS_* macros.
12881         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12882         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12883         possible.
12884         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12885         HAS_AVX.
12886         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12887         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12888         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12889         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12890         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12891
12892 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12893
12894         * elf/tst-unique3.cc (gets): Remove declaration.
12895         * elf/tst-unique3lib.cc (gets): Likewise.
12896         * elf/tst-unique3lib2.cc (gets): Likewise.
12897         * elf/tst-unique4.cc (gets): Likewise.
12898
12899 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12900
12901         * include/stdio.h: Add C++ protection.  Add gets declarations and
12902         definitions.
12903         * debug/tst-chk1.c: Don't declare gets here.
12904         * stdio-common/tst-gets.c: Likewise.
12905
12906 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12907
12908         * posix/glob: Remove directory.
12909
12910 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12911
12912         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12913
12914 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12915
12916         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12917         of the non-standard EPFNOSUPPORT.
12918
12919 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12920
12921         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12922         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12923         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12924
12925 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12926
12927         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12928
12929 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12930
12931         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12932         transient errors.
12933         * nscd/grpcache.c (cache_addgr): Likewise.
12934         * nscd/hstcache.c (cache_addhst): Likewise.
12935         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12936         * nscd/pwdcache.c (cache_addpw): Likewise.
12937         * nscd/servicescache.c (cache_addserv): Likewise.
12938
12939 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12940
12941         * malloc/malloc.c: Various cleanups.
12942         * malloc/hooks.c: Likewise.
12943
12944         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12945         * stdlib/bug-fmtmsg1.c: New file.
12946
12947         * stdlib/fmtmsg.c (init): Add missing unlock.
12948         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12949
12950 2012-01-12  Marek Polacek  <polacek@redhat.com>
12951
12952         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12953         and _GNU_SOURCE.
12954
12955 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12956
12957         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12958         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12959         macro to ensure uniqueness of label name.
12960         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12961         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12962
12963 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12964
12965         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12966
12967         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12968         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12969         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12970         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12971
12972 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12973
12974         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12975
12976         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12977         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12978         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12979
12980         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12981
12982         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12983         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12984         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12985         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12986
12987         * math/bits/math-finite.h: Add ldexp support.
12988
12989 2012-01-10  Marek Polacek  <polacek@redhat.com>
12990
12991         * locale/programs/localedef.h (show_archive_content): Add noreturn
12992         attribute.
12993
12994 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12995
12996         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12997
12998 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12999
13000         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13001
13002         * io/Makefile (headers): Add bits/poll2.h.
13003
13004 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13005
13006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13007         typo #include statement.
13008
13009 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13010
13011         * include/sys/cdefs.h: Define __attribute_alloc_size.
13012         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13013         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13014         * elf/pldd.c: Likewise.
13015         * iconv/iconv_charmap.c: Likewise.
13016         * iconv/iconvconfig.c: Likewise.
13017         * iconv/strtab.c: Likewise.
13018         * locale/programs/locale.c: Likewise.
13019         * locale/programs/localedef.h: Likewise.
13020         * locale/programs/simple-hash.c: Likewise.
13021         * nscd/nscd.h: Likewise.
13022         * nss/makedb.c: Likewise.
13023         * sysdeps/generic/ldconfig.h: Likewise.
13024         * locale/programs/localedef.c: Remove xmalloc prototype.
13025         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13026
13027 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13028
13029         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13030         appropriate.
13031
13032 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13033
13034         * math/Makefile (tests): Add tst-CMPLX.
13035         * math/tst-CMPLX.c: New file.
13036
13037         * math/complex.h (CMPLXL): Fix typo.
13038
13039         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13040         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13041         GLIBC_2.16.
13042         * debug/tst-chk1.c: Add poll and ppoll tests.
13043         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13044         * include/sys/poll.h: Add hidden proto for ppoll.
13045         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13046         * sysdeps/mach/hurd/ppoll.c: Likewise.
13047         * io/ppoll.c: Likewise.
13048         * debug/poll_chk.c: New file.
13049         * debug/ppoll_chk.c: New file.
13050         * include/bits/poll2.h: New file.
13051         * io/bits/poll2.h: New file.
13052
13053         [BZ #1350]
13054         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13055
13056         * configure.in: static is always set to yes.  Remove.
13057         * config.make.in: Don't set build-static.
13058         * Makeconfig: Remove use of build-static.
13059         * dlfcn/Makefile: Likewise.
13060         * elf/Makefile: Likewise.
13061         * math/Makefile: Likewise.
13062         * misc/Makefile: Likewise.
13063         * nptl/Makefile: Likewise.
13064         * sysdeps/mach/hurd/Makefile: Likewise.
13065
13066         * configure.in: PWD_P is not used anymore.
13067         * config.make.in: Remove PWD_P entry.
13068
13069         * configure.in: Remove last remnants of RANLIB.
13070         No need to check for signed size_t anymore.
13071         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13072         and IA-64.
13073         Remove __builtin_expect test because we require at least gcc 3.4.
13074         * aclocal.m4: Likewise.
13075
13076         * wcsmbs/mbrtoc16.c: Implement using towc function.
13077         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13078         * wcsmbs/wcsmbsload.c: Likewise.
13079         * iconv/gconv_simple.c: Likewise.
13080         * iconv/gconv_int.h: Likewise.
13081         * iconv/gconv_builtin.h: Likewise.
13082         * iconv/iconv_prog.c: Remove CHAR16 handling.
13083
13084         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13085
13086         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13087
13088         * configure.in: Remove --with-elf and --enable-bounded options.
13089         Dont set base_machine for ia64.  More non-ELF conditions removed.
13090         Remove testing and setting of leading underscore information.
13091         * config.make.in (build-bounded): Set to no.
13092         * config.h.in: Remove NO_UNDERSCORES entry.
13093         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13094         them.
13095         * csu/start.c: Remove !NO_UNDERSCORE code.
13096         * locale/localeinfo.h: Likewise.
13097         * sysdeps/generic/machine-gmon.h: Likewise.
13098         * sysdeps/generic/sysdep.h: Likewise.
13099         * sysdeps/i386/sysdep.h: Likewise.
13100         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13101         * sysdeps/mach/sysdep.h: Likewise.
13102         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13103         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13104         * sysdeps/sh/sysdep.h: Likewise.
13105         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13106         * sysdeps/unix/i386/sysdep.S: Likewise.
13107         * sysdeps/unix/sparc/start.c: Likewise.
13108         * sysdeps/unix/sparc/sysdep.S: Likewise.
13109         * sysdeps/unix/sparc/sysdep.h: Likewise.
13110         * sysdeps/unix/start.c: Likewise.
13111         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13112         * sysdeps/x86_64/sysdep.h: Likewise.
13113
13114 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13115
13116         [BZ #13553]
13117         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13118         for non-gcc.
13119         * argp/argp-fmtstream.h: Use const instead __const.
13120         * argp/argp.h: Likewise.
13121         * assert/assert.h: Likewise.
13122         * bits/fenv.h: Likewise.
13123         * bits/sched.h: Likewise.
13124         * bits/sigset.h: Likewise.
13125         * bits/sigthread.h: Likewise.
13126         * catgets/nl_types.h: Likewise.
13127         * conform/data/pthread.h-data: Likewise.
13128         * crypt/crypt-private.h: Likewise.
13129         * crypt/crypt.h: Likewise.
13130         * crypt/crypt_util.c: Likewise.
13131         * ctype/ctype.h: Likewise.
13132         * debug/execinfo.h: Likewise.
13133         * debug/mbsnrtowcs_chk.c: Likewise.
13134         * debug/mbsrtowcs_chk.c: Likewise.
13135         * debug/wcsnrtombs_chk.c: Likewise.
13136         * debug/wcsrtombs_chk.c: Likewise.
13137         * debug/wcstombs_chk.c: Likewise.
13138         * dirent/dirent.h: Likewise.
13139         * dlfcn/dlfcn.h: Likewise.
13140         * elf/neededtest4.c: Likewise.
13141         * grp/grp.h: Likewise.
13142         * gshadow/gshadow.h: Likewise.
13143         * iconv/gconv.h: Likewise.
13144         * iconv/gconv_int.h: Likewise.
13145         * iconv/gconv_simple.c: Likewise.
13146         * iconv/iconv.h: Likewise.
13147         * iconv/loop.c: Likewise.
13148         * iconv/skeleton.c: Likewise.
13149         * include/aio.h: Likewise.
13150         * include/aliases.h: Likewise.
13151         * include/argz.h: Likewise.
13152         * include/arpa/inet.h: Likewise.
13153         * include/assert.h: Likewise.
13154         * include/dirent.h: Likewise.
13155         * include/dlfcn.h: Likewise.
13156         * include/execinfo.h: Likewise.
13157         * include/fcntl.h: Likewise.
13158         * include/fenv.h: Likewise.
13159         * include/glob.h: Likewise.
13160         * include/grp.h: Likewise.
13161         * include/libintl.h: Likewise.
13162         * include/mntent.h: Likewise.
13163         * include/netdb.h: Likewise.
13164         * include/pwd.h: Likewise.
13165         * include/rpc/netdb.h: Likewise.
13166         * include/sched.h: Likewise.
13167         * include/search.h: Likewise.
13168         * include/shadow.h: Likewise.
13169         * include/signal.h: Likewise.
13170         * include/stdio.h: Likewise.
13171         * include/stdlib.h: Likewise.
13172         * include/string.h: Likewise.
13173         * include/sys/socket.h: Likewise.
13174         * include/sys/stat.h: Likewise.
13175         * include/sys/statfs.h: Likewise.
13176         * include/sys/statvfs.h: Likewise.
13177         * include/sys/syslog.h: Likewise.
13178         * include/sys/time.h: Likewise.
13179         * include/sys/uio.h: Likewise.
13180         * include/time.h: Likewise.
13181         * include/unistd.h: Likewise.
13182         * include/utmp.h: Likewise.
13183         * include/wchar.h: Likewise.
13184         * include/wctype.h: Likewise.
13185         * inet/aliases.h: Likewise.
13186         * inet/arpa/inet.h: Likewise.
13187         * inet/netinet/ether.h: Likewise.
13188         * inet/netinet/in.h: Likewise.
13189         * intl/libintl.h: Likewise.
13190         * io/bits/fcntl2.h: Likewise.
13191         * io/fcntl.h: Likewise.
13192         * io/ftw.h: Likewise.
13193         * io/sys/poll.h: Likewise.
13194         * io/sys/stat.h: Likewise.
13195         * io/sys/statfs.h: Likewise.
13196         * io/sys/statvfs.h: Likewise.
13197         * io/utime.h: Likewise.
13198         * libio/bits/stdio.h: Likewise.
13199         * libio/bits/stdio2.h: Likewise.
13200         * libio/libio.h: Likewise.
13201         * libio/libioP.h: Likewise.
13202         * libio/stdio.h: Likewise.
13203         * locale/lc-ctype.c: Likewise.
13204         * locale/locale.h: Likewise.
13205         * login/utmp.h: Likewise.
13206         * malloc/arena.c: Likewise.
13207         * malloc/malloc.c: Likewise.
13208         * malloc/malloc.h: Likewise.
13209         * malloc/mcheck.c: Likewise.
13210         * malloc/mtrace.c: Likewise.
13211         * math/bits/mathcalls.h: Likewise.
13212         * math/fenv.h: Likewise.
13213         * math/math_private.h: Likewise.
13214         * misc/bits/error.h: Likewise.
13215         * misc/bits/syslog.h: Likewise.
13216         * misc/err.h: Likewise.
13217         * misc/error.h: Likewise.
13218         * misc/fstab.h: Likewise.
13219         * misc/mntent.h: Likewise.
13220         * misc/regexp.h: Likewise.
13221         * misc/search.h: Likewise.
13222         * misc/sgtty.h: Likewise.
13223         * misc/sys/mman.h: Likewise.
13224         * misc/sys/syslog.h: Likewise.
13225         * misc/sys/uio.h: Likewise.
13226         * misc/sys/xattr.h: Likewise.
13227         * misc/ttyent.h: Likewise.
13228         * nis/rpcsvc/ypclnt.h: Likewise.
13229         * nss/nss.h: Likewise.
13230         * posix/bits/unistd.h: Likewise.
13231         * posix/fnmatch.h: Likewise.
13232         * posix/glob.h: Likewise.
13233         * posix/sched.h: Likewise.
13234         * posix/spawn.h: Likewise.
13235         * posix/sys/wait.h: Likewise.
13236         * posix/unistd.h: Likewise.
13237         * posix/wordexp.h: Likewise.
13238         * pwd/pwd.h: Likewise.
13239         * resolv/netdb.h: Likewise.
13240         * resource/sys/resource.h: Likewise.
13241         * rt/aio.h: Likewise.
13242         * rt/bits/mqueue2.h: Likewise.
13243         * rt/mqueue.h: Likewise.
13244         * shadow/shadow.h: Likewise.
13245         * signal/signal.h: Likewise.
13246         * socket/send.c: Likewise.
13247         * socket/sendto.c: Likewise.
13248         * socket/sys/socket.h: Likewise.
13249         * stdio-common/printf.h: Likewise.
13250         * stdlib/bits/stdlib.h: Likewise.
13251         * stdlib/fmtmsg.h: Likewise.
13252         * stdlib/monetary.h: Likewise.
13253         * stdlib/stdlib.h: Likewise.
13254         * stdlib/ucontext.h: Likewise.
13255         * streams/stropts.h: Likewise.
13256         * string/argz.h: Likewise.
13257         * string/bits/string2.h: Likewise.
13258         * string/string.h: Likewise.
13259         * string/strings.h: Likewise.
13260         * sunrpc/rpc/auth.h: Likewise.
13261         * sunrpc/rpc/auth_des.h: Likewise.
13262         * sunrpc/rpc/clnt.h: Likewise.
13263         * sunrpc/rpc/netdb.h: Likewise.
13264         * sunrpc/rpc/pmap_clnt.h: Likewise.
13265         * sunrpc/rpc/xdr.h: Likewise.
13266         * sysdeps/generic/inttypes.h: Likewise.
13267         * sysdeps/generic/net/if.h: Likewise.
13268         * sysdeps/generic/sys/swap.h: Likewise.
13269         * sysdeps/gnu/net/if.h: Likewise.
13270         * sysdeps/gnu/utmpx.h: Likewise.
13271         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13272         * sysdeps/i386/i486/bits/string.h: Likewise.
13273         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13274         * sysdeps/s390/bits/string.h: Likewise.
13275         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13276         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13277         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13278         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13279         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13280         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13281         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13282         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13283         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13284         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13285         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13286         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13287         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13288         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13289         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13290         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13291         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13292         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13293         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13294         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13295         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13296         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13297         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13298         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13299         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13300         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13301         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13302         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13303         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13304         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13305         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13306         * sysvipc/sys/ipc.h: Likewise.
13307         * sysvipc/sys/msg.h: Likewise.
13308         * sysvipc/sys/sem.h: Likewise.
13309         * sysvipc/sys/shm.h: Likewise.
13310         * termios/termios.h: Likewise.
13311         * time/sys/time.h: Likewise.
13312         * time/time.h: Likewise.
13313         * wcsmbs/bits/wchar2.h: Likewise.
13314         * wcsmbs/uchar.h: Likewise.
13315         * wcsmbs/wchar.h: Likewise.
13316         * wctype/wctype.h: Likewise.
13317
13318         [BZ #13551]
13319         * Makeconfig: Remove all but ELF support including AIX support.
13320         * Makerules: Likewise.
13321         * config.h.in: Likewise.
13322         * config.make.in: Likewise.
13323         * configure: Likewise.
13324         * configure.in: Likewise.
13325         * csu/Makefile: Likewise.
13326         * csu/version.c: Likewise.
13327         * debug/Makefile: Likewise.
13328         * dlfcn/Makefile: Likewise.
13329         * elf/Makefile: Likewise.
13330         * extra-lib.mk: Likewise.
13331         * iconv/Makefile: Likewise.
13332         * include/libc-symbols.h: Likewise.
13333         * include/shlib-compat.h: Likewise.
13334         * resolv/Makefile: Likewise.
13335         * resolv/res_libc.c: Likewise.
13336         * rt/Makefile: Likewise.
13337         * sysdeps/i386/asm-syntax.h: Likewise.
13338         * sysdeps/i386/sysdep.h: Likewise.
13339         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13340         * sysdeps/mach/sysdep.h: Likewise.
13341         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13342         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13343         * sysdeps/s390/asm-syntax.h: Likewise.
13344         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13345         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13346         * sysdeps/sh/sysdep.h: Likewise.
13347         * sysdeps/unix/sparc/sysdep.h: Likewise.
13348         * sysdeps/wordsize-32/divdi3.c: Likewise.
13349         * sysdeps/x86_64/sysdep.h: Likewise.
13350
13351         * argp/Versions: Remove _argp_unlock_xxx.
13352
13353         [BZ #13559]
13354         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13355         * abilist/libBrokenLocale.abilist: Likewise.
13356         * abilist/libanl.abilist: Likewise.
13357         * abilist/libc.abilist: Likewise.
13358         * abilist/libcrypt.abilist: Likewise.
13359         * abilist/libdl.abilist: Likewise.
13360         * abilist/libm.abilist: Likewise.
13361         * abilist/libnsl.abilist: Likewise.
13362         * abilist/libpthread.abilist: Likewise.
13363         * abilist/libresolv.abilist: Likewise.
13364         * abilist/librt.abilist: Likewise.
13365         * abilist/libthread_db.abilist: Likewise.
13366         * abilist/libutil.abilist: Likewise.
13367         * abilist/libnss_db.abilist: New file.
13368
13369         * scripts/abilist.awk: Add support for indirect functions.
13370
13371         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13372
13373         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13374
13375         * shlib-versions: Remove entries for ports architectures.
13376
13377         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13378         files in ports.
13379         * elf/stackguard-macros.h: Remove support for IA-64.
13380         * elf/tst-auditmod1.c: Likewise.
13381         * sysdeps/generic/ldsodefs.h: Likewise.
13382
13383         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13384         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13385         configure files.
13386
13387         [BZ #13552]
13388         * configure.in: Remove --enable-omitfp support.
13389         * FAQ.in: Adjust.
13390         * config.make.in: Likewise.
13391         * Makeconfig: Likewise.
13392         * manual/install.texi: Likewise.
13393
13394         In case anyone cares, the IA-64 architecture could move to ports.
13395         * sysdeps/ia64/*: Removed.
13396         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13397         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13398
13399         [BZ #13555]
13400         * configure.in: Remove entries for unsupported architectures.
13401
13402         [BZ #13533]
13403         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13404         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13405         routines.
13406         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13407         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13408         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13409         fall back to using wcrtomb.
13410         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13411         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13412         renaming.
13413         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13414         * wcsmbs/tst-c16c32-1.c: New file.
13415
13416         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13417         local variable.
13418
13419         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13420
13421         * elf/tst-unique3.cc: Add explicit declaration of gets.
13422         * elf/tst-unique3lib.cc: Likewise.
13423         * elf/tst-unique3lib2.cc: Likewise.
13424         * elf/tst-unique4.cc: Likewise.
13425
13426         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13427
13428 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13429
13430         [BZ #13566]
13431         * assert/assert.h (static_assert): Don't define for C++.
13432         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13433         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13434
13435 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13436
13437         * iconv/loop.c (single loop): Fix assertion in storing of
13438         remaining bytes.
13439
13440         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13441
13442 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13443
13444         * posix/getconf.c: Update copyright year.
13445         * nss/getent.c: Likewise.
13446         * nss/makedb.c: Likewise.
13447         * iconv/iconvconfig.c: Likewise.
13448         * iconv/iconv_prog.c: Likewise.
13449         * elf/ldconfig.c: Likewise.
13450         * elf/pldd.c: Likewise.
13451         * elf/sotruss.ksh: Likewise.
13452         * catgets/gencat.c: Likewise.
13453         * csu/version.c: Likewise.
13454         * elf/ldd.bash.in: Likewise.
13455         * elf/sprof.c (print_version): Likewise.
13456         * locale/programs/locale.c: Likewise.
13457         * locale/programs/localedef.c: Likewise.
13458         * login/programs/pt_chown.c: Likewise.
13459         * nscd/nscd.c (print_version): Likewise.
13460         * debug/xtrace.sh: Likewise.
13461         * malloc/memusage.sh: Likewise.
13462         * malloc/mtrace.pl: Likewise.
13463         * debug/catchsegv.sh: Likewise.
13464
13465 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13466
13467         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13468         pure attribute.
13469
13470 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13471
13472         [BZ #13533]
13473         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13474         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13475         transformations.
13476         * iconv/gconv_int.h: Likewise.
13477         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13478         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13479         from libc for GLIBC_2.16.
13480         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13481         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13482         * wcsmbs/uchar.h: Really define mbstate_t.
13483         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13484         * wcsmbs/c16rtomb.c: New file.
13485         * wcsmbs/mbrtoc16.c: New file.
13486         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13487         for C/POSIX locale.
13488         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13489         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13490
13491         * wcsmbs/wchar.h: Add missing __restrict.
13492
13493 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13494
13495         [BZ #13532]
13496         * time/Makefile (routines): Add timespec_get.
13497         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13498         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13499         timespec for ISO C11.
13500         * time/timespec_get.c: New file.
13501         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13502         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13503
13504         [BZ #13531]
13505         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13506         * stdlib/stdlib.h: Declare aligned_alloc.
13507         * Versions.def: Add GLIBC_2.16 for libc.
13508         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13509
13510         [BZ 13527]
13511         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13512         ISO C11.
13513
13514         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13515         code.
13516
13517         [BZ #13528]
13518         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13519
13520         [BZ #13529]
13521         * assert/assert.h (static_assert): Define.
13522
13523         * version.h: Update for 2.16 development version.
13524
13525         [BZ #13526]
13526         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13527         _ISOC11_SOURCE.
13528
13529         * version.h (RELEASE): Bump for 2.15 release.
13530         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13531
13532         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13533         Patch by Marek Polacek <mpolacek@redhat.com>.
13534
13535         * bits/byteswap.h: Protect long long constants with __extension__.
13536         * sysdeps/i386/bits/byteswap.h: Likewise.
13537         * sysdeps/ia64/bits/byteswap.h: Likewise.
13538         * sysdeps/s390/bits/byteswap.h: Likewise.
13539         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13540
13541 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13542
13543         [BZ #13540]
13544         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13545         destination buffer.
13546         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13547
13548 2011-12-23  Marek Polacek  <polacek@redhat.com>
13549
13550         * elf/dl-addr.c (determine_info): Add inline keyword.
13551         * elf/tst-auditmod4b.c (check_avx): Likewise.
13552         * elf/tst-auditmod6b.c (check_avx): Likewise.
13553         * elf/tst-auditmod6c.c (check_avx): Likewise.
13554         * elf/tst-auditmod7b.c (check_avx): Likewise.
13555
13556 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13557
13558         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13559         !__SSE_MATH__.
13560
13561 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13562
13563         [BZ #13540]
13564         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13565         processing for last bytes.
13566
13567 2011-08-06  Bruno Haible  <bruno@clisp.org>
13568
13569         [BZ #13061]
13570         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13571         U+0385, not to U+1FEE.
13572
13573         [BZ #13062]
13574         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13575         entry for U+00A5 U+0301.
13576
13577 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13578
13579         [BZ #13166]
13580         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13581         buffer for the output is too small.
13582
13583         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13584         optimization.
13585
13586         [BZ #13185]
13587         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13588         SSE flags if possible.
13589
13590 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13591
13592         [BZ #13540]
13593         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13594         processing for last bytes.
13595
13596 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13597
13598         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13599         (syscall-list-default-options, syscall-list-default-condition)
13600         (syscall-list-includes): Define.
13601         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13602         list of ABIs and options and #if conditions for each ABI.  Do not
13603         handle common syscalls between ABIs specially.
13604         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13605         Remove.
13606         (syscall-list-variants, syscall-list-32bit-options)
13607         (syscall-list-32bit-condition, syscall-list-64bit-options)
13608         (syscall-list-64bit-condition): Define.
13609         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13610         (syscall-list-variants, syscall-list-32bit-options)
13611         (syscall-list-32bit-condition, syscall-list-64bit-options)
13612         (syscall-list-64bit-condition): Define.
13613         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13614         Remove.
13615         (syscall-list-variants, syscall-list-32bit-options)
13616         (syscall-list-32bit-condition, syscall-list-64bit-options)
13617         (syscall-list-64bit-condition): Define.
13618         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13619         Remove.
13620         (syscall-list-variants, syscall-list-32bit-options)
13621         (syscall-list-32bit-condition, syscall-list-64bit-options)
13622         (syscall-list-64bit-condition): Define.
13623
13624 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13625
13626         * locale/iso-639.def: Add brx entry.
13627
13628         [BZ #13328]
13629         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13630         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13631
13632         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13633         __feraiseexcept_renamed.
13634
13635 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13636
13637         [BZ #13538]
13638         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13639         EPOLLET with unsigned values.
13640         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13641         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13642
13643         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13644         to large cancellation.
13645         * math/s_cacoshf.c: Likewise.
13646         * math/s_cacoshl.c: Likewise.
13647
13648 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13649
13650         [BZ #13305]
13651         [BZ #12786]
13652         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13653         * math/s_cacoshf.c: Likewise.
13654         * math/s_cacoshl.c: Likewise.
13655
13656 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13657
13658         [BZ #13439]
13659         * iconv/gconv.h: Define __GCONV_SWAP.
13660         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13661         * iconvdata/utf-16.c: Likewise.
13662         * iconvdata/utf-32.c: Likewise.
13663
13664 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13665
13666         [BZ #13524]
13667         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13668         numerator after shifting it by one limb.
13669
13670 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13671
13672         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13673         under [__USE_EXTERN_INLINES].
13674
13675 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13676
13677         [BZ #13446]
13678         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13679
13680 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13681
13682         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13683         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13684         optimized code.
13685         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13686         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13687         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13688         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13689         for strncasecmp/strncasecmp_l compilation.
13690         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13691         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13692
13693 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13694
13695         [BZ #13484]
13696         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13697         of __asm__.
13698
13699 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13700
13701         [BZ #13506]
13702         * time/tzfile.c (__tzfile_read): Check values from file header.
13703
13704 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13705
13706         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13707         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13708         * powerpc/powerpc32/dl-start.S: Likewise.
13709         * powerpc/powerpc32/elf/start.S: Likewise.
13710         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13711         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13712         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13713         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13714         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13715         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13716         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13717         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13718         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13719         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13720         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13721         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13722         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13723         * powerpc/powerpc32/memset.S: Likewise.
13724         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13725         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13726         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13727         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13728         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13729         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13730         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13731         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13732         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13733         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13734         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13735         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13736         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13737
13738 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13739
13740         * math/libm-test.inc: Added more nearbyint tests.
13741         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13742         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13743         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13744         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13745
13746 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13747
13748         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13749         FD_CLOEXEC.
13750
13751 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13752
13753         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13754         Add wcscpy-ssse3 wcscpy-c.
13755         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13756         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13757         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13758         * sysdeps/x86_64/wcschr.S: New file.
13759         * sysdeps/x86_64/wcsrchr.S: New file.
13760         * string/test-strcmp.c: Remove checking of wcscmp function for
13761         wrong alignments.
13762         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13763         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13764         wcsrchr-sse2 wcsrchr-c.
13765         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13766         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13767         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13768         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13769         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13770         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13771         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13772         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13773         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13774         * wcsmbc/wcschr.c (WCSCHR): New macro.
13775
13776 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13777
13778         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13779         * wcsmbs/test-wcsrchr.c: New file.
13780         * string/test-strrchr.c: Add wcsrchr support.
13781         (WIDE): New macro.
13782         * wcsmbs/test-wcscpy.c: New file.
13783         * string/test-strcpy.c: Add wcscpy support.
13784         (WIDE): New macro.
13785
13786 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13787
13788         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13789         the inner loop.
13790
13791 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13792
13793         [BZ #13472]
13794         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13795
13796 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13797
13798         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13799         Minor optimizations.
13800
13801         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13802         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13803         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13804
13805 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13806
13807         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13808         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13809         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13810         for gcc to avoid warnings.
13811         * inet/Makefile (tests): Add tst-checks.
13812         * inet/tst-checks.c: New file.
13813
13814         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13815         warning.
13816
13817         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13818         __wmemcmp_sse2.
13819
13820         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13821         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13822
13823         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13824
13825 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13826
13827         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13828         problem.
13829
13830         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13831
13832 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13833
13834         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13835         conditional on GCC version.
13836         (__arch_compare_and_exchange_val_8_acq)
13837         (__arch_compare_and_exchange_val_16_acq)
13838         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13839         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13840         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13841
13842 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13843
13844         * sysdeps/sh/backtrace.c: New file.
13845
13846 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13847
13848         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13849         parenthesis.
13850
13851 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13852
13853         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13854         falling back to utime.
13855
13856 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13857
13858         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13859         expectations for float.
13860
13861 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13862
13863         * locale/weight.h (findidx): Add parameter len.
13864         * locale/weightwc.h (findidx): Likewise.
13865         * posix/fnmatch_loop.c (FCT): Adjust caller.
13866         * posix/regcomp.c (build_equiv_class): Likewise.
13867         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13868         * posix/regexec.c (check_node_accept_bytes): Likewise.
13869         * string/strcoll_l.c (STRCOLL): Likewise.
13870         * string/strxfrm_l.c (STRXFRM): Likewise.
13871
13872 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13873
13874         * Makefile.in: Remove CVSOPT handling.
13875         * configure.in: Remove use of AC_REVISION.
13876         * iconvdata/Makefile (distribute): No need to filter out CVS.
13877         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13878         handling.
13879
13880 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13881
13882         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13883         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13884         [USE_AS_STRNCASECMP_L]: Likewise.
13885         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13886         NO_TLS_DIRECT_SEG_REFS.
13887         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13888         Fix argument offsets for non-PIC.
13889         [USE_AS_STRNCASECMP_L]: Likewise.
13890         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13891         NO_TLS_DIRECT_SEG_REFS.
13892
13893 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13894
13895         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13896         O_CLOEXEC.
13897         * locale/loadlocale.c (_nl_load_locale): Likewise.
13898
13899 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13900
13901         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13902         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13903         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13904         (SYSCALL_GETTIME): Set errno on error.
13905
13906         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13907         count references to noai6ai_cached.
13908
13909 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13910
13911         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13912
13913         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13914         FD_CLOEXEC for /proc/self/maps.
13915
13916         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13917         FD_CLOEXEC for /proc/meminfo.
13918
13919         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13920         gai.conf.
13921
13922         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13923         FD_CLOEXEC for given file.
13924
13925         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13926
13927         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13928         FD_CLOEXEC for /etc/hosts.
13929         (_gethtent): Likewise.
13930
13931         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13932
13933         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13934         cancellation and set FD_CLOEXEC for /etc/netgroup.
13935
13936         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13937         reading /etc/publickey.
13938
13939         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13940         allow cancellation when reading /etc/group.
13941
13942         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13943         cancellation.
13944         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13945
13946         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13947         when using data file.
13948
13949         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13950
13951         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13952         (write_nis_obj): Use "c" and "e" in fopen.
13953
13954         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13955
13956         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13957
13958         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13959
13960         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13961
13962         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13963         locale.alias.
13964
13965         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13966
13967         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13968
13969         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13970
13971         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13972         file parsing and set FD_CLOEXEC.
13973
13974 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13975
13976         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13977
13978 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13979
13980         * malloc/arena.c (arena_get2): Don't call reused_arena when
13981         _int_new_arena failed.
13982
13983 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13984
13985         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13986         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13987         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13988         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13989         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13990         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13991         to compile strcasecmp and strncasecmp.
13992         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13993         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13994
13995         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13996
13997 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13998
13999         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14000         locale-defines.sym to gen-as-const-headers.
14001         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14002         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14003         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14004         to compile strcasecmp and strncasecmp.
14005         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14006         strcasecmp_l and strncasecmp_l.
14007         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14008         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14009         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14010         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14011         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14012         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14013         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14014         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14015         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14016         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14017         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14018
14019 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14020
14021         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14022         result of SYSDEP_GETTIME_CPU to retval.
14023         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14024         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14025
14026         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14027         variable.
14028
14029         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14030         mantissa words.
14031         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14032
14033         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14034         from unused variable.
14035
14036         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14037         DWARF definitions.
14038         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14039         for assembling.
14040
14041         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14042         over namespaces.
14043
14044         * sunrpc/rpc_prot.c (rejected): Fix case value.
14045
14046         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14047         unsigned long long int to avoid warnings in shift.
14048
14049         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14050         of use of trans.
14051         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14052         variable tmp.
14053
14054         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14055         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14056         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14057
14058         * nis/nis_table.c (nis_list): Use variable of correct type for
14059         result of __follow_path call.
14060
14061 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14062
14063         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14064         of math functions ceil, trunc, floor, round, and sqrt, when
14065         avaliable on the platform.
14066         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14067         name clash.
14068         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14069         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14070         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14071
14072 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14073
14074         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14075         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14076
14077 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14078
14079         * include/unistd.h: Fix __readlink return type.
14080         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14081
14082 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14083
14084         * stdlib/ucontext.h: Undo last change for makecontext.
14085
14086 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14087
14088         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14089
14090         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14091         * setjmp/setjmp.h: Mark functions as non-leaf.
14092         * setjmp/bits/setjmp2.h: Likewise.
14093         * stdlib/ucontext.h: Likewise.
14094
14095 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14096
14097         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14098         (reused_arena): Don't check arena limit.
14099         (arena_get2): Atomically check arena limit.
14100
14101 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14102
14103         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14104         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14105
14106         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14107         instructions.
14108
14109 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14110
14111         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14112         handler when locking.
14113
14114         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14115         Fix size of allocated buffer.
14116
14117 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14118
14119         [BZ #10103]
14120         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14121         declarations for long double functions.
14122         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14123
14124         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14125
14126 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14127
14128         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14129         installed.
14130
14131         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14132         is disabled.
14133
14134 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14135
14136         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14137
14138 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14139
14140         * include/alloca.h (stackinfo_alloca_round): Define.
14141         (extend_alloca): Use it.
14142         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14143         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14144         here.
14145
14146         * scripts/check-local-headers.sh: Ignore libaudit.h.
14147
14148         * nscd/Makefile (extra-objs): Make recursively expanded.
14149
14150 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14151
14152         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14153         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14154
14155         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14156         * posix/tst-rfc3484-2.c: Likewise.
14157         * posix/tst-rfc3484-3.c: Likewise.
14158
14159         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14160         process_vm_writev.
14161         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14162         process_vm_writev.
14163         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14164         process_vm_writev from libc using GLIBC_2.15 version.
14165
14166         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14167
14168 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14169
14170         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14171         stack usage.
14172
14173 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14174
14175         [BZ #13367]
14176         * nss/getent.c (initgroups_keys): Show error message in case no group
14177         names are given.
14178
14179         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14180         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14181         __bump_nl_timestamp.
14182         * nscd/connections (nscd_init): When host database is served open
14183         netlink socket and request notification about configuration changes.
14184         (main_loop_poll): Track netlink file descriptor and bump timestamp
14185         in case data becomes available.
14186         (main_loop_epoll): Likewise.
14187         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14188         (database_pers_head): Add extra_data fileds.
14189         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14190         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14191         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14192         Adjust caller.
14193         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14194         in6ai data, call __free_in6ai.
14195         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14196         Add -DHAVE_NETLINK.
14197         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14198         interface information.  Reuse previous data if netlink timestamp
14199         is not changed.
14200         (__bump_nl_timestamp): New function.
14201         (__free_in6ai): New function.
14202
14203 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14204
14205         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14206         close_not_cancel_no_status here.
14207         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14208
14209 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14210
14211         [BZ #13276]
14212         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14213         return value.
14214
14215         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14216         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14217         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14218
14219 2011-07-03  Andreas Jaeger  <aj@suse.de>
14220
14221         [BZ #10709]
14222         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14223         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14224         * math/libm-test.inc (sin_test): Add test case.
14225
14226 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14227
14228         [BZ #13337]
14229         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14230         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14231
14232         * elf/chroot_canon.c (chroot_canon): Cleanups.
14233
14234         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14235
14236         [BZ #13335]
14237         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14238         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14239
14240         * string/test-strchr.c: Make usable for strchrnul testing.
14241         * string/test-strchrnul.c: New file.
14242         * string/Makefile (strop-tests): Add strchrnul.
14243
14244         * po/it.po: Update from translation team.
14245         * po/es.po: Likewise.
14246
14247 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14248
14249         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14250         the three constants needed as parameters.  Drop the others.
14251         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14252         __m128i_strloadu_tolower.
14253         Create and initialize variable zero and use it in all the places
14254         where _mm_setzero_si128 was used.
14255
14256         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14257         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14258         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14259         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14260         anymore.
14261         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14262         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14263         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14264         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14265         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14266         __mpranred, __mptan.
14267         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14268         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14269         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14270         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14271         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14272         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14273         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14274         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14275         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14276
14277 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14278
14279         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14280         redefine if SHARED.
14281         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14282
14283         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14284         wide char related routines to wcsmbs subdir.
14285
14286 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14287
14288         [BZ #13344]
14289         * misc/sys/cdefs.h (__THROWNL): Define.
14290         * posix/unistd.h: Use __THREADNL instead of __THREAD
14291         for memory synchronization functions.
14292
14293 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14294
14295         [BZ #13349]
14296         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14297         doesn't exist.
14298         * manual/stdio.texi (Obstack Streams): Node removed.
14299
14300 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14301
14302         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14303         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14304         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14305
14306         * math/math_private.h (math_force_eval): Allow non-addressable
14307         arguments.
14308         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14309
14310 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14311
14312         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14313         file is not needed.
14314
14315         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14316         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14317         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14318         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14319         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14320         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14321         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14322         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14323         Add AVX variants.
14324         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14325         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14326         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14327         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14328         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14329         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14330         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14331         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14332         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14333         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14334         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14335         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14336         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14337         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14338         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14339         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14340         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14341         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14342         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14343
14344         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14345         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14346
14347         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14348         place.  Use VEX encoding when compiling for AVX.
14349
14350 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14351
14352         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14353         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14354
14355         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14356
14357 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14358
14359         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14360         useless if() expression.
14361         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14362         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14363         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14364         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14365         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14366         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14367         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14368         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14369         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14370         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14371         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14372         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14373         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14374         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14375         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14376         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14377         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14378         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14379         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14380
14381         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14382
14383 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14384
14385         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14386         condition.
14387         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14388
14389 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14390
14391         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14392         .text section.  Avoid duplicate constants.
14393         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14394         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14395         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14396         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14397         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14398         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14399         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14400         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14401         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14402         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14403         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14404         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14405         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14406         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14407         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14408         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14409         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14410         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14411         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14412         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14413         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14414         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14415         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14416         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14417         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14418         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14419         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14420         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14421         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14422         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14423         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14424         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14425         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14426         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14427         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14428         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14429         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14430         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14431         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14432         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14433         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14434         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14435         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14436         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14437         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14438
14439 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14440
14441         * sysdeps/x86_64/dla.h: Move to ...
14442         * sysdeps/x86_64/fpu/dla.h: ...here.
14443         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14444         situations.  Use __builtin_fma only for gcc 4.6 and up.
14445
14446         * config.make.in: Add have-mfma4 entry.
14447         * configure.in: Substitute libc_cv_cc_fma4.
14448         * math/Makefile (dbl-only-routines): Add sincostab.
14449         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14450         Use __sincostab not sincos.
14451         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14452         name is a macro.
14453         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14454         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14455         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14456         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14457         using __copysign.
14458         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14459         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14460         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14461         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14462         and __inv.
14463         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14464         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14465         __copysign.
14466         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14467         define aliases when function name is a macro.
14468         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14469         sysdeps/ieee754/dbl-64/sincos.tbl.
14470         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14471         fma4-enabled routines.
14472         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14473         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14474         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14475         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14476         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14477         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14478         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14479         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14480         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14481         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14482         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14483         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14484         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14485         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14486         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14487         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14488         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14489         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14490         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14491         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14492         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14493         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14494         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14495         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14496         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14497         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14498         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14499         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14500         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14501         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14502
14503         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14504         rename.
14505         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14506         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14507         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14508         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14509         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14510         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14511         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14512         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14513
14514 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14515
14516         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14517
14518 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14519
14520         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14521
14522         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14523         prediction.
14524         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14525
14526         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14527         Remove unused variable magic_bits.
14528         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14529
14530         * string/strnlen.c: Define and use STRNLEN macro.
14531         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14532         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14533         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14534         * wcsmbs/wcslen.c: Define and use WCSLEN.
14535         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14536         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14537         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14538         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14539         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14540         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14541         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14542
14543 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14544
14545         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14546         strnlen-sse2-no-bsf.
14547         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14548         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14549         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14550         Add strnlen support.
14551         (USE_AS_STRNLEN): New macro.
14552         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14553         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14554         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14555         * sysdeps/x86_64/wcslen.S: New file.
14556
14557 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14558
14559         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14560         XMM-moves are used for copying on small sizes.
14561
14562 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14563
14564         * wcsmbs/Makefile (strop-tests): Add wcschr.
14565         * wcsmbs/test-wcschr.c: New file.
14566         * string/test-strchr.c: Update.
14567         Add wcschr support.
14568         (WIDE): New macro.
14569
14570 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14571
14572         * wcsmbs/Makefile (strop-tests): Add wcslen.
14573         * wcsmbs/test-wcslen.c: New file.
14574         * string/test-strlen.c: Update.
14575         Add wcslen support.
14576         (WIDE): New macro.
14577
14578 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14579
14580         * po/it.po: Update from translation team.
14581
14582 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14583
14584         * sysdeps/x86_64/wcscmp.S: Update.
14585         Fix wrong comparison semantics.
14586         wcscmp shall use signed comparison not unsigned.
14587         Don't use substraction to avoid overflow bug.
14588         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14589         * wcsmbc/wcscmp.c: Likewise.
14590         * string/test-strcmp.c: Likewise.
14591         Add new tests to check cases with negative values.
14592
14593 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14594
14595         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14596         * sysdeps/x86_64/dla.h: ...here.  New file.
14597         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14598         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14599         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14600         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14601         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14602         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14603         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14604         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14605         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14606
14607 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14608
14609         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14610         __ynl_finite aliases.
14611
14612 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14613
14614         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14615
14616         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14617         define DLA_FMA.
14618         [DLA_FMA] (EMULV): Use DLA_FMA.
14619         [DLA_FMA] (MUL12): Use EMULV.
14620         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14621         that are not needed.
14622         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14623         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14624         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14625         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14626         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14627         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14628         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14629
14630 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14631
14632         * math/s_nan.c: Undef __nan.
14633         * math/s_nanf.c: Undef __nanf.
14634         * math/s_nanl.c: Undef __nanl.
14635         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14636         "math_private.h".
14637
14638 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14639
14640         * math/s_catan.c: Add branch predictions.
14641         * math/s_catanf.c: Likewise.
14642         * math/s_catanh.c: Likewise.
14643         * math/s_catanhf.c: Likewise.
14644         * math/s_catanhl.c: Likewise.
14645         * math/s_catanl.c: Likewise.
14646         * math/s_cexp.c: Likewise.
14647         * math/s_cexpf.c: Likewise.
14648         * math/s_cexpl.c: Likewise.
14649         * math/s_clog.c: Likewise.
14650         * math/s_clog10.c: Likewise.
14651         * math/s_clog10f.c: Likewise.
14652         * math/s_clog10l.c: Likewise.
14653         * math/s_clogf.c: Likewise.
14654         * math/s_clogl.c: Likewise.
14655         * math/s_csqrt.c: Likewise.
14656         * math/s_csqrtf.c: Likewise.
14657         * math/s_csqrtl.c: Likewise.
14658         * math/s_ctanf.c: Likewise.
14659         * math/s_ctanh.c: Likewise.
14660         * math/s_ctanhf.c: Likewise.
14661         * math/s_ctanhl.c: Likewise.
14662         * math/s_ctanl.c: Likewise.
14663
14664         * math/math_private.h: Define __nan, __nanf, __nanl.
14665         * math/s_cacosh.c: Include <math_private.h>.
14666         * math/s_cacoshl.c: Likewise.
14667         * math/s_casinh.c: Likewise.
14668         * math/s_casinhf.c: Likewise.
14669         * math/s_casinhl.c: Likewise.
14670         * math/s_ccos.c: Rely entire on ccosh.
14671         * math/s_ccosf.c: Rely entire on ccoshf.
14672         * math/s_ccosl.c: Rely entirely on ccoshl.
14673         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14674         Remove tests for FE_INVALID.
14675         * math/s_ccoshf.c: Likewise.
14676         * math/s_ccoshl.c: Likewise.
14677         * math/s_csin.c: Likewise.
14678         * math/s_csinf.c: Likewise.
14679         * math/s_csinh.c Likewise.
14680         * math/s_csinhf.c: Likewise.
14681         * math/s_csinhl.c: Likewise.
14682         * math/s_csinl.c: Likewise.
14683         * math/s_ctan.c: Likewise.
14684         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14685         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14686         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14687
14688 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14689
14690         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14691         compilation problems.
14692
14693         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14694         __builtin_expect.
14695
14696 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14697
14698         * sysdeps/i386/configure.in: Test for -mfma4 option.
14699         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14700         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14701         COMMON_CPUID_INDEX_80000001.
14702         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14703         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14704         use it if FMA3 is not supported.
14705         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14706
14707         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14708         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14709
14710 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14711
14712         [BZ #12892]
14713         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14714         it would create a cycle with a link time dependency.
14715
14716 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14717
14718         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14719         instruction.
14720         * string/Makefile (strop-tests): Add rawmemchr.
14721         * string/test-rawmemchr.c: New file.
14722
14723         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14724         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14725         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14726         when compiling str{,n}casecmp and when AVX is available.  Hook up
14727         new optimized code in initializers.
14728
14729 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14730
14731         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14732         __feraiseexcept instead of feraiseexcept.
14733
14734 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14735
14736         * math/math_private.h: Define defaults for libc_fetestexcept and
14737         libc_feupdateenv.
14738         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14739         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14740         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14741         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14742         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14743         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14744         libc_fetestexcept and libc_feupdateenv.
14745
14746         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14747         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14748         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14749         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14750         libc_feholdexcept_setround.
14751
14752         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14753         Add s_nearbyint-c and s_nearbyintf-c.
14754         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14755         nearbyintf inlines.
14756         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14757         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14758         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14759         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14760
14761         * math/math_private.h: Define defaults for libc_fegetround,
14762         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14763         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14764         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14765         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14766         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14767         standard functions.
14768         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14769         Remove comments and hacks for old compiler versions.
14770         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14771         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14772         libc_feholdexceptl.
14773
14774 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14775
14776         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14777         (__feraiseexcept_renamed): Add __NTH.
14778         (feraiseexcept): Add __NTH.  Rename local variables to fix
14779         namespace violations.
14780
14781 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14782
14783         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14784
14785         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14786
14787         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14788         recently added interfaces.
14789         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14790
14791         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14792         about macro parameter expansion.
14793
14794         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14795         __NO_MATH_INLINES is defined.  Cleanups.
14796
14797         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14798         and __floorf is target has SSE4.1.
14799         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14800         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14801         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14802         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14803
14804         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14805         name.
14806         (floorf): Likewise.
14807
14808         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14809
14810 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14811
14812         * misc/sys/cdefs.h: Fix last change.
14813
14814         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14815         database lookup.
14816
14817 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14818
14819         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14820
14821         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14822         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14823         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14824         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14825         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14826         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14827         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14828         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14829         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14830         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14831         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14832         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14833         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14834         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14835         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14836         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14837         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14838         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14839         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14840         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14841         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14842         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14843
14844         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14845         ceil, ceilf, floor, floorf.
14846
14847         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14848         Perform IRELATIVE relocations last.
14849
14850         * elf/do-rel.h: Add another parameter nrelative, replacing the
14851         local variable with the same name.  Change name of the function
14852         to end in Rel or Rela (uppercase).
14853         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14854         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14855         elf_dynamic_do_##reloc function.
14856
14857 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14858
14859         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14860         is sufficient, at least on modern CPUs.
14861
14862         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14863
14864         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14865         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14866
14867         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14868         __expl_finite.
14869         * math/bits/math-finite.h: Add entries for exp.
14870         * math/e_expl.c: Add __*_finite alias.
14871         * sysdeps/i386/fpu/e_exp.S: Likewise.
14872         * sysdeps/i386/fpu/e_expf.S: Likewise.
14873         * sysdeps/i386/fpu/e_expl.c: Likewise.
14874         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14875         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14876         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14877         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14878         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14879         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14880         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14881
14882         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14883         is sufficient, at least on modern CPUs.
14884
14885         * ctype/ctype-info.c (__ctype_init): Define.
14886         * include/ctype.h (__ctype_init): Declare.
14887         (__ctype_b_loc): The variable is always initialized.
14888         (__ctype_toupper_loc): Likewise.
14889         (__ctype_tolower_loc): Likewise.
14890         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14891         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14892
14893 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14894
14895         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14896
14897         * configure.in: Also look in $cxxmachine/include for C++ system
14898         headers.
14899
14900 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14901
14902         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14903         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14904         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14905         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14906         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14907         (USE_AS_WMEMCMP): New macro.
14908         Fixing indents.
14909         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14910         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14911         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14912         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14913         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14914         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14915         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14916         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14917         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14918         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14919         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14920         (USE_AS_WMEMCMP): New macro.
14921         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14922         * sysdeps/string/test-memcmp.c: Update.
14923         Fix simple_wmemcmp.
14924         Add new tests.
14925         * wcsmbs/wmemcmp.c: Update.
14926         (WMEMCMP): New macro.
14927         Fix overflow bug.
14928
14929 2011-10-12  Andreas Jaeger  <aj@suse.de>
14930
14931         [BZ #13268]
14932         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14933
14934 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14935
14936         * libio/iofwide.c (do_length): Avoid warning.
14937
14938         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14939
14940 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14941
14942         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14943
14944         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14945         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14946         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14947         * sysdeps/i386/i686/fpu/e_log.S: New file.
14948         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14949         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14950
14951         * ctype/ctype.h: Add support for inlined isXXX functions when
14952         compiling C++ code.
14953
14954 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14955
14956         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14957
14958         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14959
14960 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14961
14962         [BZ #13291]
14963         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14964
14965 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14966
14967         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14968         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14969         feraiseexcept.
14970
14971         * sysdeps/x86_64/memrchr.S: Check for zero size.
14972
14973         * string/stratcliff.c: Add memrchr tests.
14974
14975 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14976
14977         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14978         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14979         rawmemchr-sse2 rawmemchr-sse2-bsf.
14980         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14981         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14982         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14983         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14984         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14985         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14986         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14987         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14988         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14989         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14990         * string/memrchr.c (MEMRCHR): New macro.
14991
14992 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14993
14994         Add integration with gcc's -ffinite-math-only and optimize wrapper
14995         functions in libm.
14996         * Versions.def: Define GLIBC_2.15 version for libm.
14997         * math/Makefile (headers): Add bits/math-finite.h.
14998         * math/bits/math-finite.h: New file.
14999         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15000         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15001         * math/e_acoshl.c: Add __*_finite alias.
15002         * math/e_acosl.c: Likewise.
15003         * math/e_asinl.c: Likewise.
15004         * math/e_atan2l.c: Likewise.
15005         * math/e_atanhl.c: Likewise.
15006         * math/e_coshl.c: Likewise.
15007         * math/e_exp10.c: Likewise.
15008         * math/e_exp10f.c: Likewise.
15009         * math/e_exp10l.c: Likewise.
15010         * math/e_exp2l.c: Likewise.
15011         * math/e_fmodl.c: Likewise.
15012         * math/e_gammal_r.c: Likewise.
15013         * math/e_hypotl.c: Likewise.
15014         * math/e_j0l.c: Likewise.
15015         * math/e_j1l.c: Likewise.
15016         * math/e_jnl.c: Likewise.
15017         * math/e_lgammal_r.c: Likewise.
15018         * math/e_log10l.c: Likewise.
15019         * math/e_log2l.c: Likewise.
15020         * math/e_logl.c: Likewise.
15021         * math/e_powl.c: Likewise.
15022         * math/e_sinhl.c: Likewise.
15023         * math/e_sqrtl.c: Likewise.
15024         * math/e_scalb.c: Completely rewritten and optimized.
15025         * math/e_scalbf.c: Likewise.
15026         * math/e_scalbl.c: Likewise.
15027         * math/w_acos.c: Likewise.
15028         * math/w_acosf.c: Likewise.
15029         * math/w_acosl.c: Likewise.
15030         * math/w_acosh.c: Likewise.
15031         * math/w_acoshf.c: Likewise.
15032         * math/w_acoshl.c: Likewise.
15033         * math/w_asin.c: Likewise.
15034         * math/w_asinf.c: Likewise.
15035         * math/w_asinl.c: Likewise.
15036         * math/w_atan2.c: Likewise.
15037         * math/w_atan2f.c: Likewise.
15038         * math/w_atan2l.c: Likewise.
15039         * math/w_atanh.c: Likewise.
15040         * math/w_atanhf.c: Likewise.
15041         * math/w_atanhl.c: Likewise.
15042         * math/w_exp10.c: Likewise.
15043         * math/w_exp10f.c: Likewise.
15044         * math/w_exp10l.c: Likewise.
15045         * math/w_fmod.c: Likewise.
15046         * math/w_fmodf.c: Likewise.
15047         * math/w_fmodl.c: Likewise.
15048         * math/w_j0.c: Likewise.
15049         * math/w_j0f.c: Likewise.
15050         * math/w_j0l.c: Likewise.
15051         * math/w_j1.c: Likewise.
15052         * math/w_j1f.c: Likewise.
15053         * math/w_j1l.c: Likewise.
15054         * math/w_jn.c: Likewise.
15055         * math/w_jnf.c: Likewise.
15056         * math/w_log.c: Likewise.
15057         * math/w_logf.c: Likewise.
15058         * math/w_logl.c: Likewise.
15059         * math/w_log10.c: Likewise.
15060         * math/w_log10f.c: Likewise.
15061         * math/w_log10l.c: Likewise.
15062         * math/w_log2.c: Likewise.
15063         * math/w_log2f.c: Likewise.
15064         * math/w_log2l.c: Likewise.
15065         * math/w_pow.c: Likewise.
15066         * math/w_powf.c: Likewise.
15067         * math/w_powl.c: Likewise.
15068         * math/w_remainder.c: Likewise.
15069         * math/w_remainderf.c: Likewise.
15070         * math/w_remainderl.c: Likewise.
15071         * math/w_scalb.c: Likewise.
15072         * math/w_scalbf.c: Likewise.
15073         * math/w_scalbl.c: Likewise.
15074         * math/w_sqrt.c: Likewise.
15075         * math/w_sqrtf.c: Likewise.
15076         * math/w_sqrtl.c: Likewise.
15077         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15078         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15079         used.
15080         * math/math_private.h: Declare __kernel_standard_f.
15081         * math/w_cosh.c: Remove cruft and optimize a bit.
15082         * math/w_coshf.c: Likewise.
15083         * math/w_coshl.c: Likewise.
15084         * math/w_exp2.c: Likewise.
15085         * math/w_exp2f.c: Likewise.
15086         * math/w_exp2l.c: Likewise.
15087         * math/w_hypot.c: Likewise.
15088         * math/w_hypotf.c: Likewise.
15089         * math/w_hypotl.c: Likewise.
15090         * math/w_lgamma.c: Likewise.
15091         * math/w_lgamma_r.c: Likewise.
15092         * math/w_lgammaf.c: Likewise.
15093         * math/w_lgammaf_r.c: Likewise.
15094         * math/w_lgammal.c: Likewise.
15095         * math/w_lgammal_r.c: Likewise.
15096         * math/w_sinh.c: Likewise.
15097         * math/w_sinhf.c: Likewise.
15098         * math/w_sinhl.c: Likewise.
15099         * math/w_tgamma.c: Likewise.
15100         * math/w_tgammaf.c: Likewise.
15101         * math/w_tgammal.c: Likewise.
15102         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15103         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15104         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15105         Minor optimizations.  Pretty printing.  Remove cruft.
15106         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15107         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15108         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15109         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15110         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15111         * sysdeps/i386/fpu/e_asin.S: Likewise.
15112         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15113         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15114         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15115         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15116         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15117         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15118         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15119         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15120         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15121         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15122         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15123         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15124         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15125         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15126         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15127         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15128         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15129         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15130         * sysdeps/i386/fpu/e_log.S: Likewise.
15131         * sysdeps/i386/fpu/e_log10.S: Likewise.
15132         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15133         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15134         * sysdeps/i386/fpu/e_log2.S: Likewise.
15135         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15136         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15137         * sysdeps/i386/fpu/e_logf.S: Likewise.
15138         * sysdeps/i386/fpu/e_logl.S: Likewise.
15139         * sysdeps/i386/fpu/e_pow.S: Likewise.
15140         * sysdeps/i386/fpu/e_powf.S: Likewise.
15141         * sysdeps/i386/fpu/e_powl.S: Likewise.
15142         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15143         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15144         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15145         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15146         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15147         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15148         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15149         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15150         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15151         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15152         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15153         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15154         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15155         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15156         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15157         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15158         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15159         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15160         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15161         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15162         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15163         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15164         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15165         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15166         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15167         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15168         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15169         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15170         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15171         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15172         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15173         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15174         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15175         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15176         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15177         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15178         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15179         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15180         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15181         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15182         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15183         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15184         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15185         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15186         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15187         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15188         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15189         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15190         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15191         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15192         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15193         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15194         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15195         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15196         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15197         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15198         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15199         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15200         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15201         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15202         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15203         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15204         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15205         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15206         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15207         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15208         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15209         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15210         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15211         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15212         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15213         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15214         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15215         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15216         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15217         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15218         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15219         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15220         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15221         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15222         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15223         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15224         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15225         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15226         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15227         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15228         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15229         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15230         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15231         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15232         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15233         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15234         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15235         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15236         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15237         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15238         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15239         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15240         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15241         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15242         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15243         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15244         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15245         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15246         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15247         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15248         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15249         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15250         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15251         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15252         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15253         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15254         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15255         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15256         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15257         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15258         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15259         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15260         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15261         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15262         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15263         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15264         (__isnanf): Likewise.
15265         (__isinf_ns): Likewise.
15266         (__isinf_nsf): Likewise.
15267         (__finite): Likewise.
15268         (__finitef): Likewise.
15269         (__ieee754_sqrt): Define as macro.
15270         (__ieee754_sqrtf): Define as macro.
15271         (__ieee754_sqrtl): Define as macro.
15272         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15273         inlined copy.
15274         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15275         __FINITE_MATH_ONLY__ consistent.
15276         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15277
15278 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15279
15280         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15281         of rawmemchr.
15282
15283         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15284
15285 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15286
15287         * po/ja.po: Update from translation team.
15288
15289 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15290
15291         * locale/programs/locarchive.c (prepare_address_space): New function.
15292         (create_archive, enlarge_archive, open_archive): Use it.
15293
15294         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15295         inside [SHARED], where it is used.
15296
15297         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15298
15299         * nss/getent.c (netgroup_keys): Remove unused variable.
15300         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15301
15302 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15303
15304         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15305         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15306         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15307         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15308         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15309         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15310         * math/Makefile (libm-calls): Add s_isinf_ns.
15311         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15312         * math/multc3.c: Likewise.
15313         * math/s_casin.c: Likewise.
15314         * math/s_casinf.c: Likewise.
15315         * math/s_casinl.c: Likewise.
15316         * math/s_ccos.c: Likewise.
15317         * math/s_ccosf.c: Likewise.
15318         * math/s_ccosl.c: Likewise.
15319         * math/s_ctan.c: Likewise.
15320         * math/s_ctanf.c: Likewise.
15321         * math/s_ctanh.c: Likewise.
15322         * math/s_ctanhf.c: Likewise.
15323         * math/s_ctanhl.c: Likewise.
15324         * math/s_ctanl.c: Likewise.
15325         * math/w_fmod.c: Likewise.
15326         * math/w_fmodf.c: Likewise.
15327         * math/w_fmodl.c: Likewise.
15328         * math/w_remainder.c: Likewise.
15329         * math/w_remainderf.c: Likewise.
15330         * math/w_remainderl.c: Likewise.
15331         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15332         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15333         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15334         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15335         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15336         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15337         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15338         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15339
15340         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15341         of the number.
15342         * stdio-common/printf_fphex.c: Likewise.
15343         * stdio-common/printf_size.c: Likewise.
15344
15345         * math/e_exp10.c: Include math_private.h using <...> not "...".
15346         * math/e_exp10f.c: Likewise.
15347         * math/e_exp10l.c: Likewise.
15348         * math/e_exp2l.c: Likewise.
15349         * math/e_j0l.c: Likewise.
15350         * math/e_j1l.c: Likewise.
15351         * math/e_jnl.c: Likewise.
15352         * math/e_lgammal_r.c: Likewise.
15353         * math/e_rem_pio2l.c: Likewise.
15354         * math/e_scalb.c: Likewise.
15355         * math/e_scalbf.c: Likewise.
15356         * math/e_scalbl.c: Likewise.
15357         * math/k_cosl.c: Likewise.
15358         * math/k_sinl.c: Likewise.
15359         * math/k_tanl.c: Likewise.
15360         * math/s_cacoshf.c: Likewise.
15361         * math/s_catan.c: Likewise.
15362         * math/s_catanf.c: Likewise.
15363         * math/s_catanh.c: Likewise.
15364         * math/s_catanhf.c: Likewise.
15365         * math/s_catanhl.c: Likewise.
15366         * math/s_catanl.c: Likewise.
15367         * math/s_ccosh.c: Likewise.
15368         * math/s_ccoshf.c: Likewise.
15369         * math/s_ccoshl.c: Likewise.
15370         * math/s_cexp.c: Likewise.
15371         * math/s_cexpf.c: Likewise.
15372         * math/s_cexpl.c: Likewise.
15373         * math/s_clog.c: Likewise.
15374         * math/s_clog10.c: Likewise.
15375         * math/s_clog10f.c: Likewise.
15376         * math/s_clog10l.c: Likewise.
15377         * math/s_clogf.c: Likewise.
15378         * math/s_clogl.c: Likewise.
15379         * math/s_csin.c: Likewise.
15380         * math/s_csinf.c: Likewise.
15381         * math/s_csinh.c: Likewise.
15382         * math/s_csinhf.c: Likewise.
15383         * math/s_csinhl.c: Likewise.
15384         * math/s_csinl.c: Likewise.
15385         * math/s_csqrt.c: Likewise.
15386         * math/s_csqrtf.c: Likewise.
15387         * math/s_csqrtl.c: Likewise.
15388         * math/s_ctan.c: Likewise.
15389         * math/s_ctanf.c: Likewise.
15390         * math/s_ctanh.c: Likewise.
15391         * math/s_ctanhf.c: Likewise.
15392         * math/s_ctanhl.c: Likewise.
15393         * math/s_ctanl.c: Likewise.
15394         * math/s_ldexp.c: Likewise.
15395         * math/s_ldexpf.c: Likewise.
15396         * math/s_ldexpl.c: Likewise.
15397         * math/s_significand.c: Likewise.
15398         * math/s_significandf.c: Likewise.
15399         * math/s_significandl.c: Likewise.
15400         * math/w_acos.c: Likewise.
15401         * math/w_acosf.c: Likewise.
15402         * math/w_acosh.c: Likewise.
15403         * math/w_acoshf.c: Likewise.
15404         * math/w_acoshl.c: Likewise.
15405         * math/w_acosl.c: Likewise.
15406         * math/w_asin.c: Likewise.
15407         * math/w_asinf.c: Likewise.
15408         * math/w_asinl.c: Likewise.
15409         * math/w_atan2.c: Likewise.
15410         * math/w_atan2f.c: Likewise.
15411         * math/w_atan2l.c: Likewise.
15412         * math/w_atanh.c: Likewise.
15413         * math/w_atanhf.c: Likewise.
15414         * math/w_atanhl.c: Likewise.
15415         * math/w_cosh.c: Likewise.
15416         * math/w_coshf.c: Likewise.
15417         * math/w_coshl.c: Likewise.
15418         * math/w_dremf.c: Likewise.
15419         * math/w_exp10.c: Likewise.
15420         * math/w_exp10f.c: Likewise.
15421         * math/w_exp10l.c: Likewise.
15422         * math/w_exp2.c: Likewise.
15423         * math/w_exp2f.c: Likewise.
15424         * math/w_fmod.c: Likewise.
15425         * math/w_fmodf.c: Likewise.
15426         * math/w_fmodl.c: Likewise.
15427         * math/w_hypot.c: Likewise.
15428         * math/w_hypotf.c: Likewise.
15429         * math/w_hypotl.c: Likewise.
15430         * math/w_j0.c: Likewise.
15431         * math/w_j0f.c: Likewise.
15432         * math/w_j0l.c: Likewise.
15433         * math/w_j1.c: Likewise.
15434         * math/w_j1f.c: Likewise.
15435         * math/w_j1l.c: Likewise.
15436         * math/w_jn.c: Likewise.
15437         * math/w_jnf.c: Likewise.
15438         * math/w_jnl.c: Likewise.
15439         * math/w_lgamma.c: Likewise.
15440         * math/w_lgamma_r.c: Likewise.
15441         * math/w_lgammaf.c: Likewise.
15442         * math/w_lgammaf_r.c: Likewise.
15443         * math/w_lgammal.c: Likewise.
15444         * math/w_lgammal_r.c: Likewise.
15445         * math/w_log.c: Likewise.
15446         * math/w_log10.c: Likewise.
15447         * math/w_log10f.c: Likewise.
15448         * math/w_log10l.c: Likewise.
15449         * math/w_log2.c: Likewise.
15450         * math/w_log2f.c: Likewise.
15451         * math/w_log2l.c: Likewise.
15452         * math/w_logf.c: Likewise.
15453         * math/w_logl.c: Likewise.
15454         * math/w_pow.c: Likewise.
15455         * math/w_powf.c: Likewise.
15456         * math/w_powl.c: Likewise.
15457         * math/w_remainder.c: Likewise.
15458         * math/w_remainderf.c: Likewise.
15459         * math/w_remainderl.c: Likewise.
15460         * math/w_scalb.c: Likewise.
15461         * math/w_scalbf.c: Likewise.
15462         * math/w_scalbl.c: Likewise.
15463         * math/w_sinh.c: Likewise.
15464         * math/w_sinhf.c: Likewise.
15465         * math/w_sinhl.c: Likewise.
15466         * math/w_sqrt.c: Likewise.
15467         * math/w_sqrtf.c: Likewise.
15468         * math/w_sqrtl.c: Likewise.
15469         * math/w_tgamma.c: Likewise.
15470         * math/w_tgammaf.c: Likewise.
15471         * math/w_tgammal.c: Likewise.
15472
15473         * po/ja.po: Update from translation team.
15474
15475 2011-09-29  Andreas Jaeger  <aj@suse.de>
15476
15477         [BZ #13179]
15478         * sunrpc/netname.c (netname2host): Fix logic.
15479
15480         [BZ #6779]
15481         [BZ #6783]
15482         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15483         correctly.
15484         * math/w_remainder.c (__remainder): Likewise.
15485         * math/w_remainderf.c (__remainderf): Likewise.
15486         * math/libm-test.inc (remainder_test): Add test cases.
15487
15488 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15489
15490         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15491         sdiv_qrnnd.
15492
15493 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15494
15495         * string/test-memcmp.c: Avoid unncessary #defines.
15496         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15497
15498 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15499
15500         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15501         Use new sse2 version for core i3 - i7 as it's faster
15502         than sse42 version.
15503         (bit_Prefer_PMINUB_for_stringop): New.
15504         * sysdeps/x86_64/rawmemchr.S: Update.
15505         Replace with faster SSE2 version.
15506         * sysdeps/x86_64/memrchr.S: New file.
15507         * sysdeps/x86_64/memchr.S: Update.
15508         Replace with faster SSE2 version.
15509
15510 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15511
15512         * elf/dl-load.c (lose): Add cast to avoid warning.
15513
15514 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15515
15516         * po/ca.po: Update from translation team.
15517
15518         * inet/getnetgrent_r.c: Hook up nscd.
15519         * nscd/Makefile (routines): Add nscd_netgroup.
15520         (nscd-modules): Add netgroupcache.
15521         (CFLAGS-netgroupcache.c): Define.
15522         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15523         (cache_search): Add const to second parameter.
15524         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15525         INNETGR.
15526         (dbs): Add netgrdb entry.
15527         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15528         (verify_persistent_db): Handle netgrdb.
15529         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15530         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15531         GETFDNETGR.
15532         (netgroup_response_header): Define.
15533         (innetgroup_response_header): Define.
15534         (datahead): Add netgroup_response_header and innetgroup_response_header
15535         elements.
15536         * nscd/nscd.conf: Add entries for netgroup cache.
15537         * nscd/nscd.h (dbtype): Add netgrdb.
15538         (_PATH_NSCD_NETGROUP_DB): Define.
15539         (netgroup_iov_disabled): Declare.
15540         (xmalloc, xcalloc, xrealloc): Move declarations here.
15541         (cache_search): Adjust prototype.
15542         Add netgroup-related prototypes.
15543         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15544         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15545         (__nscd_innetgr): Declare.
15546         * nscd/selinux.c (perms): Use access_vector_t as element type and
15547         add netgroup-related initializers.
15548         * nscd/netgroupcache.c: New file.
15549         * nscd/nscd_netgroup.c: New file.
15550         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15551         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15552         For four parameters use innetgr.
15553         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15554         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15555         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15556         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15557
15558         * nscd/connections.c (register_traced_file): Don't register file
15559         for disabled databases.
15560
15561 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15562
15563         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15564
15565         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15566         from tree and freeing node.
15567
15568 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15569
15570         * nss/nsswitch.c (__nss_database_lookup): Handle
15571         nss_parse_service_list out of memory case.
15572
15573 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15574
15575         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15576         out of memory case.
15577
15578 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15579
15580         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15581         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15582         pass it down.
15583         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15584         elf_machine_rela, elf_machine_lazy_rel.
15585         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15586         (ELF_DYNAMIC_DO_REL): Likewise.
15587         (ELF_DYNAMIC_DO_RELA): Likewise.
15588         (ELF_DYNAMIC_RELOCATE): Likewise.
15589         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15590         to ELF_DYNAMIC_DO_REL.
15591         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15592         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15593         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15594         elf_machine_rela.
15595         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15596         skip_ifunc, don't call ifunc function if non-zero.
15597         (elf_machine_rela): Likewise.
15598         (elf_machine_lazy_rel): Likewise.
15599         (elf_machine_lazy_rela): Likewise.
15600         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15601         (elf_machine_lazy_rel): Likewise.
15602         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15603         Likewise.
15604         (elf_machine_lazy_rel): Likewise.
15605         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15606         Likewise.
15607         (elf_machine_lazy_rel): Likewise.
15608         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15609         (elf_machine_lazy_rel): Likewise.
15610         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15611         (elf_machine_lazy_rel): Likewise.
15612         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15613         (elf_machine_lazy_rel): Likewise.
15614         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15615         (elf_machine_lazy_rel): Likewise.
15616         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15617         (elf_machine_lazy_rel): Likewise.
15618         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15619         (elf_machine_lazy_rel): Likewise.
15620
15621 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15622
15623         * nss/nss_files/files-init.c (_nss_files_init): Use static
15624         initialization for all the *_traced_file variables.
15625
15626 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15627
15628         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15629
15630 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15631
15632         [BZ #13226]
15633         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15634
15635 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15636
15637         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15638         Reread the line before reparsing it.
15639
15640 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15641
15642         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15643
15644 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15645             Maxim Kuvyrkov  <maxim@codesourcery.com>
15646             Joseph Myers  <joseph@codesourcery.com>
15647
15648         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15649         if needed for __stack_chk_guard.
15650
15651 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15652
15653         * sysdeps/posix/spawni.c (script_execute): Always define it.
15654         It will be optimized away if unused.
15655         (maybe_script_execute): New function.
15656         (__spawni): Call it.
15657
15658         * Makerules: Don't include tls.make.
15659         (config-tls): Always set to thread.
15660         * tls.make.c: File removed.
15661
15662 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15663
15664         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15665         * config.make.in (CPPFLAGS-config): New substituted variable.
15666
15667 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15668
15669         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15670
15671         [BZ #13192]
15672         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15673         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15674
15675 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15676
15677         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15678         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15679         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15680         (CALL_FAIL): Likewise.
15681         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15682         (CALL_FAIL): Macro removed.
15683         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15684
15685 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15686
15687         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15688         for __FINITE_MATH_ONLY__ == 1.
15689
15690 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15691
15692         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15693         __ieee754_sqrt instead of sqrt.
15694         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15695         __ieee754_sqrtf instead of sqrtf.
15696         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15697         __floorf instead of floorf.
15698         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15699         __floorf, __truncf instead of floorf, truncf.
15700
15701 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15702
15703         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15704
15705         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15706         __extern_always_inline.
15707         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15708         32-bit.
15709
15710 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15711
15712         * elf/rtld.c (dl_main): Also relocate in dependency order when
15713         doing symbol dependency testing.
15714
15715 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15716
15717         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15718         Always define `refsym'.
15719
15720 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15721
15722         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15723         (__FD_ELT): Renamed from __FDELT.
15724         * misc/bits/select2.h (__FD_ELT): Likewise.
15725         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15726         __FD_MASK instead of __FDELT, __FDMASK.
15727         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15728         Likewise.
15729         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15730         Likewise.
15731
15732         * elf/Makefile (gen-ldd): Fix pattern.
15733
15734         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15735         (init_tls): Likewise.
15736
15737 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15738
15739         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15740
15741 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15742
15743         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15744         `struct cmsghdr *' instead of `void *'.
15745         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15746         Likewise.
15747
15748 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15749
15750         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15751         if non-absolute.
15752         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15753         ldd_rewrite_script.
15754
15755 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15756
15757         * configure.in: Remove --with-tls option.
15758         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15759         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15760         out in case it is missing.
15761         * sysdeps/ia64/elf/configure.in: Likewise.
15762         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15763         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15764         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15765         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15766         * sysdeps/sh/elf/configure.in: Likewise.
15767         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15768         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15769         * sysdeps/x86_64/elf/configure.in: Likewise.
15770         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15771         * sysdeps/mach/hurd/tls.h: Likewise.
15772
15773         [BZ #13067]
15774         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15775
15776         [BZ #13090]
15777         * configure.in: Fix use of AC_INIT.
15778
15779         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15780
15781 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15782
15783         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15784         __set_errno.
15785         * malloc/hooks.c: Likewise.
15786
15787         [BZ #11929]
15788         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15789         variables statically.
15790         (narenas): Initialize.
15791         (list_lock): Initialize.
15792         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15793         initializtion of main_arena and list_lock.  Small cleanups.
15794         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15795         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15796         Add initializers to main_arena and mp_.
15797         (malloc_state): Remove pagesize member.  Change all users to use
15798         GLRO(dl_pagesize).
15799
15800         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15801         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15802         is always initialized.
15803
15804         * malloc/malloc.c: Removed unused configurations and dead code.
15805         * malloc/arena.c: Likewise.
15806         * malloc/hooks.c: Likewise.
15807         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15808
15809         * include/tls.h: Removed.  USE___THREAD must always be defined.
15810         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15811         * elf/dl-libc.c: Likewise.
15812         * elf/dl-tsd.c: Likewise.
15813         * include/errno.h: Likewise.
15814         * include/netdb.h: Likewise.
15815         * include/resolv.h: Likewise.
15816         * inet/herrno-loc.c: Likewise.
15817         * inet/herrno.c: Likewise.
15818         * malloc/arena.c: Likewise.
15819         * malloc/hooks.c: Likewise.
15820         * malloc/malloc.c: Likewise.
15821         * resolv/res-state.c: Likewise.
15822         * resolv/res_libc.c: Likewise.
15823         * sysdeps/i386/dl-machine.h: Likewise.
15824         * sysdeps/ia64/dl-machine.h: Likewise.
15825         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15826         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15827         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15828         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15829         * sysdeps/sh/dl-machine.h: Likewise.
15830         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15831         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15832         * sysdeps/unix/i386/sysdep.S: Likewise.
15833         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15834         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15835         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15836         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15837         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15838         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15839         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15840         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15841         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15842         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15843         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15844         * sysdeps/x86_64/dl-machine.h: Likewise.
15845         * tls.make.c: Likewise.
15846
15847         * configure.in: Remove --with-__thread option.  Make tests for
15848         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15849         tls_model attribute fail if no support is available.  Remove
15850         USE_IN_LIBIO.
15851         * Makeconfig: Adjust for dropped configure option.  All features are
15852         now mandatory.
15853         * Makerules: Likewise.
15854         * Versions.def: Likewise.
15855         * argp/argp-fmtstream.c: Likewise.
15856         * argp/argp-fmtstream.h: Likewise.
15857         * argp/argp-help.c: Likewise.
15858         * assert/assert.c: Likewise.
15859         * config.h.in: Likewise.
15860         * config.make.in: Likewise.
15861         * configure: Likewise.
15862         * configure.in: Likewise.
15863         * csu/Versions: Likewise.
15864         * csu/init.c: Likewise.
15865         * elf/tst-audit2.c: Likewise.
15866         * elf/tst-tls10.c: Likewise.
15867         * elf/tst-tls10.h: Likewise.
15868         * elf/tst-tls11.c: Likewise.
15869         * elf/tst-tls12.c: Likewise.
15870         * elf/tst-tls14.c: Likewise.
15871         * elf/tst-tlsmod11.c: Likewise.
15872         * elf/tst-tlsmod12.c: Likewise.
15873         * elf/tst-tlsmod13.c: Likewise.
15874         * elf/tst-tlsmod13a.c: Likewise.
15875         * elf/tst-tlsmod14a.c: Likewise.
15876         * elf/tst-tlsmod15b.c: Likewise.
15877         * elf/tst-tlsmod16a.c: Likewise.
15878         * elf/tst-tlsmod16b.c: Likewise.
15879         * elf/tst-tlsmod7.c: Likewise.
15880         * elf/tst-tlsmod8.c: Likewise.
15881         * elf/tst-tlsmod9.c: Likewise.
15882         * gmon/gmon.c: Likewise.
15883         * grp/fgetgrent_r.c: Likewise.
15884         * grp/putgrent.c: Likewise.
15885         * hurd/fopenport.c: Likewise.
15886         * include/libc-symbols.h: Likewise.
15887         * include/tls.h: Likewise.
15888         * intl/gettextP.h: Likewise.
15889         * intl/loadinfo.h: Likewise.
15890         * locale/global-locale.c: Likewise.
15891         * locale/localeinfo.h: Likewise.
15892         * mach/devstream.c: Likewise.
15893         * malloc/arena.c: Likewise.
15894         * malloc/set-freeres.c: Likewise.
15895         * misc/err.c: Likewise.
15896         * misc/getttyent.c: Likewise.
15897         * misc/mntent_r.c: Likewise.
15898         * posix/getopt.c: Likewise.
15899         * posix/wordexp.c: Likewise.
15900         * pwd/fgetpwent_r.c: Likewise.
15901         * resolv/Versions: Likewise.
15902         * resolv/res_hconf.c: Likewise.
15903         * shadow/fgetspent_r.c: Likewise.
15904         * shadow/putspent.c: Likewise.
15905         * stdio-common/printf_fphex.c: Likewise.
15906         * stdio-common/tmpfile.c: Likewise.
15907         * stdlib/abort.c: Likewise.
15908         * stdlib/fmtmsg.c: Likewise.
15909         * sunrpc/auth_unix.c: Likewise.
15910         * sunrpc/clnt_perr.c: Likewise.
15911         * sunrpc/clnt_tcp.c: Likewise.
15912         * sunrpc/clnt_udp.c: Likewise.
15913         * sunrpc/clnt_unix.c: Likewise.
15914         * sunrpc/openchild.c: Likewise.
15915         * sunrpc/svc_simple.c: Likewise.
15916         * sunrpc/svc_tcp.c: Likewise.
15917         * sunrpc/svc_udp.c: Likewise.
15918         * sunrpc/svc_unix.c: Likewise.
15919         * sunrpc/xdr.c: Likewise.
15920         * sunrpc/xdr_array.c: Likewise.
15921         * sunrpc/xdr_rec.c: Likewise.
15922         * sunrpc/xdr_ref.c: Likewise.
15923         * sunrpc/xdr_stdio.c: Likewise.
15924
15925 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15926
15927         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15928
15929 2011-07-03  Andreas Jaeger  <aj@suse.de>
15930
15931         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15932         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15933         regenerate with gen-libm-tests.pl.
15934
15935 2010-05-12  Petr Baudis  <pasky@suse.cz>
15936
15937         [BZ #11589]
15938         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15939         around j0() zero points by switching to j1().
15940         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15941         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15942         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15943         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15944
15945 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15946
15947         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15948         instead of 0.
15949         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15950         instead of 0.                              .
15951         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15952         Patch in part by Pavel Roskin <proski@gnu.org>.
15953
15954         [BZ #13138]
15955         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15956         realloc.
15957         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15958         Free memory block if necessary.
15959
15960         [BZ #12847]
15961         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15962         be NULL.  Don't lock in this case.
15963
15964 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15965
15966         * elf/elf.h (ELFOSABI_GNU): New macro.
15967         (ELFOSABI_LINUX): Define to that.
15968
15969 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15970
15971         * string/strncat.c (strncat): Undef the symbol in case it has been
15972         defined in bits/string.h.
15973
15974 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15975
15976         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15977
15978         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15979         link map.
15980
15981 2011-08-17  Andreas Jaeger  <aj@suse.de>
15982
15983         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15984
15985 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15986             Ian Lance Taylor  <iant@google.com>
15987
15988         * math/libm-test.inc (lround_test): New testcase.
15989         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15990
15991 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15992
15993         * Makefile: Remove support for automatic cvs check-ins.
15994         * Makerules: Likewise.
15995         * config.make.in: Likewise.
15996         * configure.in: Likewise.
15997         * intl/Makefile: Likewise.
15998         * locale/Makefile: Likewise.
15999         * po/Makefile: Likewise.
16000         * posix/Makefile: Likewise.
16001         * sysdeps/gnu/Makefile: Likewise.
16002         * sysdeps/mach/hurd/Makefile: Likewise.
16003         * sysdeps/sparc/sparc32/Makefile: Likewise.
16004
16005         [BZ #13118]
16006         * posix/Makefile (bug-regex32-ENV): Define.
16007         Patch by John Stanley <jpsinthemix@verizon.net>.
16008
16009         * misc/Makefile (headers): Add bits/select2.h.
16010         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16011         * misc/bits/select2.h: New file.
16012         * include/bits/select2.h: New file.
16013         * debug/Makefile (routines): Add fdelt_chk.
16014         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16015         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16016         FD_ISSET.
16017         * debug/fdelt_chk.c: New file.
16018
16019         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16020         * wcsmbs/test-wmemcmp.c: Likewise.
16021         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16022         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16023
16024 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16025
16026         * string/Makefile (strop-tests): Add memcmp.
16027         * string/test-wmemcmp.c: New file.
16028         * string/test-memcmp.c: Add wmemcmp support.
16029
16030 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16031
16032         [BZ #13153]
16033         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16034         2011-07-19 change.
16035
16036         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16037         garbage value in a __mach_port_mod_refs call in the cases of the
16038         task-self and thread-self ports.
16039
16040 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16041
16042         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16043
16044 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16045
16046         * elf/dl-load.c (lose): Check for non-null L.
16047
16048 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16049
16050         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16051
16052         * elf/dl-libc.c (dlerror_run): Pass back error code from
16053         dl_catch_error.
16054
16055         [BZ #13123]
16056         * elf/dl-load.c (lose): Free l_origin if it is valid.
16057
16058         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16059         names.
16060         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16061         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16062         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16063         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16064         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16065         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16066
16067 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16068
16069         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16070         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16071         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16072         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16073         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16074         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16075         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16076         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16077         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16078         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16079
16080 2011-08-15  Alan Modra  <amodra@gmail.com>
16081
16082         [BZ #13092]
16083         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16084         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16085         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16086         ppc_mcount to static-only-routines.
16087         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16088         __mcount_internal.
16089         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16090         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16091
16092 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16093
16094         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16095         for finite and infinity parameters.
16096
16097 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16098
16099         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16100         and add nop instructions for throughput optimization.
16101         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16102
16103 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16104
16105         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16106         aligned copy for power7 with vector-scalar instructions.
16107         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16108
16109 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16110
16111         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16112         AVX check.
16113
16114 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16115
16116         [BZ #13144]
16117         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16118         last change.
16119
16120 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16121
16122         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16123         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16124         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16125         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16126         clock_gettime.
16127
16128 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16129
16130         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16131         Forgot to demangle the pointer.
16132
16133         * sysdeps/i386/sysdep.h: Define atom_text_section.
16134         * sysdeps/x86_64/sysdep.h: Likewise.
16135         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16136         section with atom_text_section.
16137         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16138         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16139         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16140         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16141         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16142
16143         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16144         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16145         already be defined.  Change to take two parameters and don't assign
16146         result to variable.  Adjust all users.
16147         Define INTERNAL_GETTIME if not already defined.
16148         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16149         call.
16150         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16151         HAVE_CLOCK_GETTIME_VSYSCALL.
16152         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16153
16154         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16155         gettimeofday vsyscall, just use time.
16156
16157 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16158
16159         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16160         <errno.h>.
16161
16162 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16163
16164         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16165         syscall on x86-64.
16166         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16167         syscall.
16168         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16169         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16170         syscall if possible.
16171
16172 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16173
16174         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16175         e_ident.  Don't pass to find_mapsXX.
16176         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16177
16178 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16179
16180         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16181         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16182         * sysdeps/x86_64/multiarch/strchr.S: Update.
16183         Check bit_slow_BSF bit.
16184         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16185         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16186         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16187
16188 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16189
16190         [BZ #13134]
16191         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16192         before glibc 2.15.
16193         (tryshell): Define.
16194         (__spawni): Change last parameter to be flag.  Test
16195         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16196         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16197         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16198         * posix/spawni.c: Likewise.
16199         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16200         * posix/spawnp.c: Likewise.  Change normal version to use
16201         SPAWN_XFLAGS_USE_PATH.
16202         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16203         SPAWN_XFLAGS_TRY_SHELL.
16204
16205         [BZ #13150]
16206         * posix/glob.h: Remove gcc 1.x support.
16207
16208         [BZ #13068]
16209         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16210
16211 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16212
16213         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16214         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16215         strrchr-sse2-bsf
16216         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16217         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16218         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16219         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16220         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16221         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16222
16223 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16224
16225         * sysdeps/x86_64/wcscmp.S: New file.
16226
16227         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16228         wcscmp-c wcscmp-sse2
16229         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16230         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16231         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16232         * wcsmbs/wcscmp.c: Allow renaming.
16233
16234 2011-09-05  David S. Miller  <davem@davemloft.net>
16235
16236         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16237         stack slot, rather than the struct return pointer slot.
16238         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16239         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16241         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16242
16243 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16244
16245         * po/ja.po: Update from translation team.
16246
16247         [BZ #13144]
16248         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16249         kernel in 64-bit binaries.
16250
16251 2011-09-01  David S. Miller  <davem@davemloft.net>
16252
16253         * elf/elf.h (HWCAP_SPARC_*): Move to..
16254         * sysdeps/sparc/sysdep.h: this new file and add new values.
16255         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16256         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16257         _DL_HWCAP_COUNT to 24.
16258         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16259         entries.
16260         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16261         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16262         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16263         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16264         instead of magic constants.
16265         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16266
16267 2011-08-31  David S. Miller  <davem@davemloft.net>
16268
16269         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16270         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16271         Reimplement to do errno handling inline.
16272         (SYSCALL_ERROR_HANDLER): New macro.
16273         (__SYSCALL_STRING): Do not do errno handling in asm.
16274         (__CLONE_SYSCALL_STRING): Delete.
16275         (__INTERNAL_SYSCALL_STRING): Delete.
16276         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16277         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16278         (PSEUDO): Reimplement to do errno handling inline.
16279         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16280         (SYSCALL_ERROR_HANDLER): New macro.
16281         (__SYSCALL_STRING): Do not do errno handling in asm.
16282         (__CLONE_SYSCALL_STRING): Delete.
16283         (__INTERNAL_SYSCALL_STRING): Delete.
16284         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16285         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16286         i386.
16287         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16288         (inline_syscall*): Add 'err' argument.
16289         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16290         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16291         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16292         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16293
16294         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16295         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16296
16297 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16298
16299         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16300
16301 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16302
16303         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16304         directive.
16305
16306 2011-08-24  David S. Miller  <davem@davemloft.net>
16307
16308         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16309
16310 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16311
16312         * elf/Makefile: Add rules to build and run unload8 test.
16313         * elf/unload8.c: New file.
16314         * elf/unload8mod1.c: New file.
16315         * elf/unload8mod1x.c: New file.
16316         * elf/unload8mod2.c: New file.
16317         * elf/unload8mod3.c: New file.
16318
16319         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16320         it wasn't used.
16321
16322 2011-08-23  David S. Miller  <davem@davemloft.net>
16323
16324         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16325         subtract stack bias.
16326         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16327         %sp not %fp in calculations.
16328         (_JMPBUF_UNWINDS_ADJ): Likewise.
16329
16330         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16331         (aio_suspend): Call it to force an exception region around the
16332         AIO_MISC_WAIT() invocation.
16333
16334 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16335
16336         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16337         backslash.
16338
16339 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16340
16341         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16342         protection macro.
16343         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16344         and <dl-machine.h>.
16345         (Elf64_FuncDesc): Remove.
16346
16347 2011-08-22  David S. Miller  <davem@davemloft.net>
16348
16349         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16350         sigaltstack check, add missing cfi directives.
16351         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16352         missing cfi directives, and sigaltstack handling.
16353
16354 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16355
16356         [BZ #11724]
16357         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16358         object is seen twice.
16359         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16360
16361         * elf/Makefile (distribute): Add tst-initorder2.c.
16362         (tests): Add tst-initorder2.
16363         (modules-names): Add tst-initorder2a tst-initorder2b
16364         tst-initorder2c tst-initorder2d.  Add rules to build them.
16365         ($(objpfx)tst-initorder2.out): New rule.
16366         * elf/tst-initorder2.c: New file.
16367         * elf/tst-initorder2.exp: New file.
16368
16369 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16370
16371         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16372
16373         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16374         dependencies back to end of function.
16375
16376         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16377         $(elfobjdir)/ld.so.
16378
16379 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16380
16381         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16382         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16383         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16384         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16385         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16386         of __vdso_gettimeofday.
16387         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16388         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16389         attribute_hidden.
16390         (_libc_vdso_platform_setup): Remove initialization of
16391         __vdso_gettimeofday and __vdso_time.
16392
16393 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16394
16395         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16396         and fgetc_unlocked.
16397         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16398         getc_unlocked.
16399
16400         * elf/dl-open.c (add_to_global): Report additions to the global scope
16401         for LD_DEBUG=scopes.
16402         (dl_open_worker): Also print scope of newly loaded dependencies.
16403         (_dl_show_scope): Indicate if there is no scope.
16404
16405         [BZ #13114]
16406         * stdio-common/Makefile (tests): Add bug24.
16407         * stdio-common/bug24.c: New file.
16408
16409 2011-08-19  Andreas Jaeger  <aj@suse.de>
16410
16411         [BZ #13114]
16412         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16413         non-existant file when using close-on-exec mode.
16414
16415 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16416
16417         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16418         the very first instruction.
16419
16420         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16421         the CFI state in the end.
16422         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16423         inclusion of dl-trampoline.h.
16424         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16425
16426 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16427
16428         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16429         expectations for long double.
16430
16431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16432         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16433
16434 2011-08-14  David S. Miller  <davem@davemloft.net>
16435
16436         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16437         artificual limit depends upon the system page size.
16438
16439 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16440
16441         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16442         * resolv/Makefile: Define CFLAGS-libresolv.
16443
16444 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16445
16446         * nss/makedb.c (compute_tables): Make variables used in nested
16447         function static.
16448
16449 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16450
16451         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16452         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16453         if buffer was too small.
16454
16455         * elf/pldd.c (main): Attach to all threads in the process.
16456         Rewrite /proc handling to use *at functions.
16457
16458 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16459
16460         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16461         specifies first scope to show.
16462         (dl_open_worker): Update callers.  Move printing scope of new
16463         object to before the relocation.
16464         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16465         * sysdeps/generic/ldsodefs.h: Update declaration.
16466
16467         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16468         string for the scope number.
16469
16470 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16471
16472         * nscd/servicescache.c (cache_addserv): Make sure written is always
16473         initialized.
16474
16475 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16476
16477         * sysdeps/i386/i486/bits/atomic.h
16478         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16479         statement expression, so as to suppress "set but not used" warning.
16480         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16481
16482         * string/strncat.c (STRNCAT): Use prototype definition.
16483
16484         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16485         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16486         -Iprograms here.
16487         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16488         (localedef-modules): Add localedef.
16489         (locale-modules): Add locale.
16490
16491         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16492         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16493         to avoid a warning.
16494
16495 2011-08-14  David S. Miller  <davem@davemloft.net>
16496
16497         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16498         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16499
16500 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16501
16502         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16503         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16504         * elf/rtld.c (dl_main): Set l_name of vDSO.
16505         Call _dl_show_scope when DL_DEBUG_SCOPES.
16506         (process_dl_debug): Recognize scopes flag and also set it for all.
16507         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16508         Declare _dl_show_scope.
16509
16510         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16511         (do_dlopen): Pass caller_dlopen to dl_open.
16512         (__libc_dlopen_mode): Initialize caller_dlopen.
16513
16514         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16515         of libc.  Make tolower call locale-independent.  Optimize a bit by
16516         using isdigit instead of isalnum.
16517         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16518
16519 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16520
16521         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16522         was a dependency or dynamically loaded.
16523
16524 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16525
16526         * intl/l10nflist.c: Allow architecture-specific pop function.
16527         * sysdeps/x86_64/l10nflist.c: New file.
16528
16529         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16530         classification.
16531
16532 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16533
16534         * include/dirent.h: Add libc_hidden_proto for scandirat and
16535         scandirat64.  Don't declare __scandirat64.
16536         * dirent/scandirat.c: Add libc_hidden_def.
16537         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16538         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16539
16540 2011-08-10  David S. Miller  <davem@davemloft.net>
16541
16542         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16543         enum.
16544         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16545         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16546         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16547
16548 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16549
16550         * Versions.def [libc]: Add GLIBC_2.15.
16551         * dirent/Makefile (routines): Add scandirat and scandirat64.
16552         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16553         GLIBC_2.15.
16554         * dirent/dirent.h: Declare scandirat and scandirat64.
16555         * dirent/scandirat.c: New file.
16556         * dirent/scandirat64.c: New file.
16557         * sysdeps/wordsize-64/scandirat.c: New file.
16558         * sysdeps/wordsize-64/scandirat64.c: New file.
16559         * dirent/opendir.c: Define opendirat.
16560         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16561         using scandirat.
16562         * dirent/scandir64.c: Adjust for scandir.c change.
16563         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16564         __scandirat64, and __scandir_cancel_handler.
16565         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16566         additional parameter and use openat instead of open (outside of ld.so).
16567         Add new __opendir as wrapper around __opendirat.
16568         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16569         here without requiring old scandirat implementation.
16570
16571 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16572
16573         * dirent/scandir.c (cancel_handler): Renamed to
16574         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16575         defined.  Adjust users.
16576         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16577         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16578
16579 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16580
16581         * string/test-string.h (IMPL): Use __STRING to expand name and then
16582         stringify it.
16583
16584         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16585         of cleanups.
16586
16587 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16588
16589         * string/Makefile: Update.
16590         (strop-tests): Append strncat.
16591         * string/test-wcscmp.c: New file.
16592         New comprehensive test for wcscmp.
16593         * string/test-strcmp.c: Update.
16594         (WIDE): New define.
16595
16596 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16597
16598         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16599         line.
16600
16601 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16602
16603         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16604         encoding to ACE if AI_IDN.
16605
16606 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16607
16608         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16609         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16610
16611 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16612
16613         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16614         Fix overflow bug in strncat.
16615         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16616
16617         * string/test-strncat.c: Update.
16618         Add new tests for checking overflow bugs.
16619
16620 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16621
16622         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16623         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16624         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16625         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16626         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16627         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16628         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16629         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16630         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16631
16632         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16633         (USE_AS_STRCAT): Define.
16634         Add strcat and strncat support.
16635         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16636
16637 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16638
16639         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16640         __n bigger than INT_MAX+1.
16641         (__strncmp_g): Likewise.
16642
16643 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16644
16645         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16646         * libio/stido.h: Likewise.
16647
16648         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16649         (AF_NFC): Define.
16650         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16651         (AF_NFC): Define.
16652
16653         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16654         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16655         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16656         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16657         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16658
16659         [BZ #13021]
16660         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16661         installed.
16662
16663         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16664         typo.
16665         (_dl_x86_64_save_sse): Likewise.
16666
16667 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16668
16669         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16670         OSXSAVE.
16671         (_dl_x86_64_save_sse): Likewise.
16672
16673         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16674
16675         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16676
16677 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16678
16679         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16680         change.
16681         (_dl_x86_64_save_sse): Use correct AVX check.
16682
16683 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16684
16685         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16686         bug in strncpy/strncat.
16687         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16688
16689 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16690
16691         * string/tester.c (test_strcat): Add tests for different alignments
16692         of source and destination.
16693         (test_strncat): Likewise.
16694
16695 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16696
16697         [BZ #12852]
16698         * posix/glob.c (glob): Check passed in values before using them in
16699         expressions to avoid some overflows.
16700         (glob_in_dir): Likewise.
16701
16702         [BZ #13007]
16703         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16704         check for AVX enablement so that we don't crash with old kernels and
16705         new hardware.
16706         * elf/tst-audit4.c: Add same checks here.
16707         * elf/tst-audit6.c: Likewise.
16708
16709         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16710
16711 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16712
16713         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16714
16715 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16716
16717         * po/cs.po: Update from translation team.
16718         * po/bg.po: Likewise.
16719
16720 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16721
16722         * misc/sys/cdefs.h: Add support for const attribute.
16723         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16724         to gnu_dev_{major,minor,makedev} functions.
16725
16726 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16727
16728         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16729
16730 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16731
16732         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16733         strlen results.
16734
16735 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16736
16737         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16738         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16739         register in order to avoid conflicts with the soft frame pointer
16740         being held in r11 when necessary.
16741         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16742         (INTERNAL_VSYSCALL_NCS): Likewise.
16743
16744 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16745
16746         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16747         * elf/dl-fini.c (_dl_fini): Adjust caller.
16748         * elf/dl-close.c (_dl_close_worker): Likewise.
16749         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16750
16751 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16752
16753         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16754         "aux_cache->nlibs < 0".
16755
16756         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16757         in the reload-count case.
16758
16759 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16760
16761         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16762         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16763         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16764         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16765         * sysdeps/x86_64/multiarch/strcat.S: New file.
16766         * sysdeps/x86_64/multiarch/strncat.S: New file.
16767         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16768         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16769         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16770         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16771         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16772         (USE_AS_STRCAT): Define.
16773         Add strcat and strncat support.
16774         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16775         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16776         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16777         * string/strncat.c: Update.
16778         (USE_AS_STRNCAT): Define.
16779         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16780         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16781         and i7.
16782         * sysdeps/x86_64/multiarch/init-arch.h
16783         (bit_Prefer_PMINUB_for_stringop): New.
16784         (index_Prefer_PMINUB_for_stringop): Likewise.
16785         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16786         bit_Prefer_PMINUB_for_stringop.
16787
16788 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16789
16790         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16791         buffer64.
16792         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16793         of casting of buffer.
16794         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16795         buffer32 and buffer64.
16796         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16797         writes instead of casting of buffer.
16798         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16799         buffer32.
16800         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16801         casting of buffer.
16802
16803 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16804
16805         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16806
16807 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16808
16809         * nscd/nscd.c (termination_handler): Don't do anything for a database
16810         if it has not yet been initialized.
16811
16812 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16813
16814         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16815
16816 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16817
16818         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16819
16820 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16821
16822         * po/nl.po: Update from translation team.
16823         * po/sv.po: Likewise.
16824
16825 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16826
16827         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16828         now disallowed by GCC.
16829
16830         * configure.in (use-default-link): Default to yes if a test -shared
16831         link meets our qualifications.
16832         * configure: Regenerated.
16833
16834         * config.make.in (output-format): New variable.
16835         * configure.in: Check for ld --print-output-format support.
16836         * configure: Regenerated.
16837         * Makerules ($(common-objpfx)format.lds)
16838         [$(output-format) != unknown]: Just use $(output-format),
16839         instead of the linker-script munging.
16840
16841 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16842
16843         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16844         of $(common-objpfx)shlib.lds.
16845         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16846
16847         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16848         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16849
16850         * configure.in (-z relro check): Adjust test code to add a large
16851         writable data section after it.
16852         * configure: Regenerated.
16853
16854 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16855
16856         * configure.in (-z relro check): Fix test code to make the variable
16857         truly const.
16858         * configure: Regenerated.
16859
16860 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16861
16862         * nscd/nscd.h (struct traced_file): Define.
16863         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16864         elements.  Add traced_files.
16865         (inotify_fd): Declare.
16866         (register_traced_file): Declare.
16867         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16868         (inotify_fd): Export.
16869         (resolv_conf_descr): Remove.
16870         (nscd_init): Move inotify descriptor creation to main.
16871         Don't register files for notification here.
16872         (register_traced_file): New function.
16873         (invalidate_cache): Don't use reset_res to determine whether to call
16874         res_init, go through the list of registered files.
16875         (main_loop_poll): The inotify descriptors are now stored in the
16876         structures for the traced files.
16877         (main_loop_epoll): Likewise
16878         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16879         to __nss_disable_nscd.
16880         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16881         for a database anymore.  Check the records for all the registered
16882         files instead.
16883         * nss/Makefile (libnss_files-routines): Add files-init.
16884         (libnss_db-routines): Add db-init.
16885         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16886         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16887         * nss/nss_db/db-init.c: New file.
16888         * nss/nss_files/files-init.c: New file.
16889         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16890         __nss_lookup_function.
16891         (__nss_lookup_function): Call nss_load_library.
16892         (nss_load_all_libraries): New function.
16893         (__nss_disable_nscd): Take parameter with callback function for files
16894         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16895         used for the cached services.
16896         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16897         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16898         options for features to all the files in nscd.
16899
16900         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16901
16902 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16903
16904         * csu/elf-init.c (__libc_csu_init): Comment typo.
16905
16906 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16907
16908         * po/pl.po: Update from translation team.
16909         * po/ja.po: Likewise.
16910         * po/ru.po: Likewise.
16911         * po/ko.po: Likewise.
16912         * po/fr.po: Likewise.
16913
16914 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16915
16916         * configure.in (.ctors/.dtors header and trailer check):
16917         Use an empirical test on a built program.
16918         * configure: Regenerated.
16919
16920         * configure.in (-z relro check): Use an empirical test on a built DSO.
16921         Detect, but do not require, on ia64.
16922         * configure: Regenerated.
16923
16924         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16925         Update tests that use readelf to use $READELF instead.
16926         * configure: Regenerated.
16927
16928 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16929
16930         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16931         if the result is not used.
16932
16933 2011-07-05  Andreas Jaeger  <aj@suse.de>
16934
16935         [BZ#9696]
16936         * stdlib/tst-strtod.c: Add testcase.
16937
16938 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16939
16940         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16941         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16942         The latter has a higher limit.  Take additional parameter to pass to
16943         the new function.
16944         (__pathconf): Pass file to __statfs_link_max.
16945         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16946         __statfs_link_max.
16947         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16948         __statfs_link_max.
16949
16950         [BZ #12868]
16951         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16952         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16953         Handle Lustre.
16954         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16955         (__statfs_filesize_max): Likewise.
16956         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16957
16958 2011-07-05  Andreas Jaeger  <aj@suse.de>
16959
16960         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16961
16962 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16963
16964         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16965         `status' variable.
16966         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16967         Likewise.
16968
16969 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16970
16971         * Makefile (strop-tests): Add strncat.
16972         * string/test-strncat.c: New file.
16973
16974 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16975
16976         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16977
16978 2011-06-21  Andreas Jaeger  <aj@suse.de>
16979
16980         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16981         Copy rule from iconvdata/Makefile.
16982
16983 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16984
16985         [BZ #12922]
16986         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16987         but no long options are defined, just return 'W'.
16988
16989 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16990
16991         [BZ #9696]
16992         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16993
16994 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16995
16996         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16997         netgroups to read.
16998         (innetgr): Likewise.
16999
17000 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17001
17002         * config.make.in (install_root): Default to $(DESTDIR).
17003
17004 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17005
17006         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17007
17008 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17009
17010         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17011
17012         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17013         containing directory rather than embedding absolute directory names.
17014
17015         * scripts/check-local-headers.sh: Rewritten using awk.
17016         Match by word, not by line.  Print error messages for matches.
17017         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17018
17019         * Makerules [shlib-lds-flags empty]:
17020         ($(common-objpfx)libc_pic.opts): New target.
17021         ($(common-objpfx)libc_pic.os.clean): New target.
17022         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17023
17024         * config.make.in (OBJCOPY): New variable.
17025         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17026         * configure: Regenerated.
17027
17028         * config.make.in (use-default-link): New variable.
17029         * configure.in (use_default_link): Grok --with-default-link to set it.
17030         * configure: Regenerated.
17031         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17032         (shlib-lds, shlib-lds-flags): Define to empty.
17033
17034         * Makerules (shlib-lds): New variable.
17035         (shlib-lds-flags): New variable.
17036         (build-shlib, build-moduile, build-module-asneeded): Use it.
17037         ($(common-objpfx)libc.so): Use $(shlib-lds).
17038         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17039         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17040
17041         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17042         DT_FLAGS/DT_FLAGS_1 with zero flags.
17043
17044         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17045         linker script munging.
17046
17047 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17048
17049         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17050         as 128-bit value.
17051         * crypt/sha512.c (sha512_process_block): Perform total addition using
17052         128-bit if possible.
17053         (__sha512_finish_ctx): Likewise.
17054         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17055         as 64-bit value.
17056         * crypt/sha256.c (SWAP64): Define.
17057         (sha256_process_block): Perform total addition using 64-bit if
17058         possible.
17059         (__sha256_finish_ctx): Likewise.
17060
17061 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17062
17063         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17064         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17065         * nscd/hstcache.c (cache_addhst): Likewise.
17066         * nscd/grpcache.c (cache_addgr): Likewise.
17067         * nscd/aicache.c (addhstaiX): Likewise
17068         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17069
17070 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17071
17072         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17073         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17074         * nscd/hstcache.c (cache_addhst): Likewise.
17075         * nscd/grpcache.c (cache_addgr): Likewise.
17076         * nscd/aicache.c (addhstaiX): Likewise
17077
17078 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17079
17080         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17081         domain only when needed.
17082
17083 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17084
17085         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17086         is always restored.
17087
17088 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17089
17090         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17091         are re-adding the entry.
17092         * nscd/servicescache.c (cache_addserv): Likewise.
17093
17094 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17095
17096         * sysdeps/generic/dl-irel.h: fix protection against multiple
17097         inclusions.
17098         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17099
17100 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17101
17102         [BZ #12935]
17103         * malloc/memusage.sh: Fix quoting in message.
17104         * debug/xtrace.sh: Likewise.
17105
17106         * configure.in: Remove support for --experimental-malloc option, make
17107         it the default.
17108         * config.make.in: Likewise.
17109         * malloc/Makefile: Likewise.
17110
17111 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17112
17113         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17114         two-byte characters.
17115
17116 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17117
17118         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17119         AC_CACHE_CHECK invocation.
17120         * configure: Regenerated.
17121
17122         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17123
17124 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17125
17126         [BZ #12350]
17127         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17128         bit from old_res_options.
17129
17130         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17131
17132         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17133         value type for setfct.
17134
17135 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17136
17137         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17138         __gettimeofday instead of gettimeofday.
17139
17140 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17141
17142         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17143
17144 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17145
17146         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17147
17148         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17149         info.
17150
17151 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17152
17153         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17154         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17155         strcpy-sse2-unaligned strncpy-sse2-unaligned
17156         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17157         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17158         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17159         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17160         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17161         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17162         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17163         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17164         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17165         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17166         (STRCPY): Support SSE2 and SSSE3 versions.
17167
17168 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17169
17170         [BZ #12874]
17171         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17172         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17173         kernels which artificially limit size of requests.
17174
17175 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17176
17177         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17178         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17179         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17180         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17181         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17182         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17183         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17184         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17185         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17186         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17187         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17188         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17189         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17190         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17191         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17192         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17193         Enable unaligned load optimization for Intel Core i3, i5 and i7
17194         processors.
17195         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17196         Define.
17197         (index_Fast_Unaligned_Load): Define.
17198         (HAS_FAST_UNALIGNED_LOAD): Define.
17199
17200 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17201
17202         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17203
17204 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17205
17206         [BZ #12907]
17207         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17208         until it is clear that the information is realy needed.
17209         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17210
17211 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17212
17213         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17214
17215 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17216
17217         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17218         /sys/devices/system/cpu/online if it is usable.
17219
17220         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17221         reading the information from the /proc filesystem to once a second.
17222
17223 2011-06-21  Andreas Jaeger  <aj@suse.de>
17224
17225         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17226         NULL after inclusion of kernel headers.
17227
17228 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17229
17230         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17231         calls to internal_setent.
17232
17233         [BZ #12885]
17234         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17235         addresses using gethostbyname4_r ignore IPv4 addresses.
17236
17237         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17238         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17239
17240         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17241
17242 2011-06-20  David S. Miller  <davem@davemloft.net>
17243
17244         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17245         inclusions.
17246         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17247
17248         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17249         (elf_irel): Use it.
17250         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17251         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17252         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17253         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17254         * sysdeps/x86_64/dl-irel.h: Likewise.
17255
17256         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17257         * elf/dl-sym.c: Likewise.
17258
17259 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17260
17261         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17262         need to dereference resplen2.
17263
17264 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17265
17266         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17267
17268 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17269
17270         * Makeconfig: Define vardbdir and inst_vardbdir.
17271         * nss/Makefile: Add rules to install db-Makefile.
17272
17273         * nss/nss_db/db-XXX.c: Cleanup.
17274
17275         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17276         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17277         GLIBC_PRIVATE.
17278         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17279         * nss/makedb.c: Implement -g option to specify that value strings
17280         are generated and should not be added to table iterated over for
17281         get*ent calls.
17282         * nss/nss_db/db-initgroups.c: New file.
17283
17284         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17285         interface.
17286
17287         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17288         (internal_getgrouplist): Adjust to name change.
17289         Update use_initgroups_entry if this is not the first call.
17290         * nss/databases.def: Add initgroups entry.
17291
17292         * nss/makedb.c (compute_tables): Check result of multiple hash table
17293         sizes to minimize maximum chain length.
17294
17295 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17296
17297         * Versions.def: Add entry for libnss_db.
17298         * shlib-versions: Likewise.
17299         * nss/Makefile: Add rules to build libnss_db.
17300         * nss/Versions: Add libnss_db information.  Organize libnss_files
17301         entries better.
17302         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17303         makedb progra.  Some minor improvements to generate smaller files.
17304         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17305         here from...
17306         * nss/makedb.c: ...here.
17307         Improve database format to be smaller and require less memory at
17308         runtime.
17309         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17310         db anymore.
17311         * nss/nss_db/db-netgrp.c: Likewise.
17312         * nss/nss_db/db-open.c: Likewise.
17313         * nss/nss_files/flies-XXX.x: Adjust comments.
17314         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17315         * nss/nss_files/files-grp.c: Likewise.
17316         * nss/nss_files/files-hosts.c: Likewise.
17317         * nss/nss_files/files-network.c: Likewise.
17318         * nss/nss_files/files-proto.c: Likewise.
17319         * nss/nss_files/files-pwd.c: Likewise.
17320         * nss/nss_files/files-rpc.c: Likewise.
17321         * nss/nss_files/files-service.c: Likewise.
17322         * nss/nss_files/files-sgrp.c: Likewise.
17323         * nss/nss_files/files-spwd.c: Likewise.
17324         * nss/nss_db/db-alias.c: Removed.
17325         * nss/nss_db/dummy-db.h: Removed.
17326
17327 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17328
17329         * nss/makedb.c: Rewritten to not use database library.
17330         * nss/Makefile: Update to build new makedb program.
17331
17332 2011-06-14  Andreas Jaeger  <aj@suse.de>
17333
17334         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17335         memset declaration.
17336
17337 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17338
17339         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17340         tmpbuf.
17341
17342 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17343
17344         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17345         * elf/Makefile ($(objpfx)ld.so): Likewise.
17346
17347         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17348         Don't list ld.so twice in dependencies.
17349
17350         * posix/bug-regex31.c: Include <stdlib.h>.
17351
17352         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17353
17354         * nis/nss_compat/compat-spwd.c
17355         (getspent_next_nss_netgr): Remove unused variable.
17356         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17357
17358         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17359         nonmembers" output to use the right array.
17360
17361         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17362
17363         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17364
17365         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17366         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17367         * catgets/gencat.c (read_input_file): Likewise.
17368         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17369
17370         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17371         variable definition inside #if's controlling its use.
17372
17373         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17374
17375         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17376
17377         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17378
17379         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17380         unreachable code.
17381
17382         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17383
17384         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17385         * configure: Regenerated.
17386
17387         * Makerules: Revert last change.
17388         * elf/Makefile: Likewise.
17389
17390 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17391
17392         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17393         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17394         (reloc-link): Likewise.
17395
17396 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17397
17398         * elf/Makefile: Add rules to build pldd.
17399         * elf/pldd.c: New file.
17400         * elf/pldd-xx.c: New file.
17401
17402 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17403
17404         * version.h: Update for 2.15 development version.
17405
17406 2011-06-07  David S. Miller  <davem@davemloft.net>
17407
17408         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17409         ifuncs.
17410         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17411         elf_machine_lazy_rel): Likewise.
17412         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17413         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17414         elf_machine_lazy_rel): Likewise.
17415         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17416         dl_hwcap via passed in argument.
17417         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17418         Likewise.
17419
17420 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17421
17422         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17423
17424 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17425
17426         [BZ #12849]
17427         * manual/fdl-1.1.texi: New file, verbatim from:
17428         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17429         * manual/lgpl-2.1.texi: New file, verbatim from:
17430         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17431         * manual/Makefile (licenses): New variable, list those new file names.
17432         (texis): Use it.
17433         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17434
17435         * manual/fdl.texi: File removed.
17436         * manual/lesser.texi: File removed.
17437         * manual/libc.texinfo (Copying, Documentation License):
17438         Use new @include file names, put @appendix directive before @include.
17439
17440 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17441
17442         [BZ #12841]
17443         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17444         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17445         (mq_open): Add __NTH.
17446
17447 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17448
17449         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17450         Assume Intel Core i3/i5/i7 processor if AVX is available.
17451
17452 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17453
17454         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17455         typo.
17456
17457 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17458
17459         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17460         memory.  Use alloca_account.  Fix memory leak when retrying.
17461
17462 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17463
17464         * version.h (RELEASE): Bump for 2.14 release.
17465         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17466
17467         * config.make.in (RANLIB): Remove entry.
17468
17469 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17470
17471         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17472         (libc.pot): Work around missing support for .ksh extension in xgettext.
17473
17474         [BZ #12684]
17475         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17476         if both request failed.
17477         (send_dg): In case of server errors clear resplen or *resplen2.
17478
17479         [BZ #12454]
17480         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17481         when there are multiple maps.
17482         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17483         (_dl_fini): Remove test here.
17484
17485         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17486
17487 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17488
17489         [BZ #12350]
17490         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17491         bit from old_res_options.
17492         (gaih_inet): Likewise.
17493
17494         [BZ #11099]
17495         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17496         as signed.
17497
17498         * resolv/res_init.c (res_setoptions): Make the code more compact.
17499
17500         [BZ #11558]
17501         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17502         set RES_USEVC.
17503
17504         [BZ #11634]
17505         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17506
17507         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17508
17509         [BZ #11781]
17510         * malloc/malloc.h: Declare malloc hook variables as volatile.
17511
17512         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17513         in last patch.
17514
17515         [BZ #11799]
17516         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17517         raise in the comment.
17518         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17519         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17520         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17521
17522 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17523
17524         [BZ #12811]
17525         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17526         grow the buffers more if it already has to be sufficient.
17527         (build_wcs_upper_buffer): Likewise.
17528         * posix/regexec.c (check_matching): Likewise.
17529         (clean_state_log_if_needed): Likewise.
17530         (extend_buffers): Don't enlarge buffers beyond size of the input
17531         buffer.
17532         Patches mostly by Emil Wojak <emil@wojak.eu>.
17533         * posix/bug-regex32.c: New file.
17534         * posix/Makefile (tests): Add bug-regex32.
17535
17536         * locale/findlocale.c (_nl_find_locale): Return right away if
17537         _nl_explode_name failed.
17538         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17539
17540         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17541
17542         * debug/xtrace.sh: Unify messages.
17543         * malloc/memusage.sh: Likewise.
17544
17545         [BZ #12813]
17546         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17547         time symbol from vDSO.  Substitute with vsyscall if not available.
17548         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17549         __vdso_time.
17550
17551         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17552         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17553         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17554         Add sendmmsg and internal_sendmmsg.
17555         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17556         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17557         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17558
17559         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17560         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17561         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17562
17563 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17564
17565         [BZ #12813]
17566         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17567         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17568         available.
17569         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17570         __vdso_getcpu.
17571
17572         [BZ #12814]
17573         * iconvdata/Makefile (tests): Add bug-iconv9.
17574         * iconvdata/bug-iconv9.c: New file.
17575
17576 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17577
17578         [BZ #12814]
17579         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17580
17581 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17582
17583         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17584         (struct user_regs_struct): Change intcs field back to cs.
17585
17586 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17587
17588         * po/ja.po: Update from translation team.
17589
17590 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17591
17592         [BZ #12795]
17593         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17594         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17595
17596 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17597
17598         * stdlib/longlong.h: Update from GCC.
17599
17600 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17601
17602         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17603         parameter name.
17604         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17605         Add parameter name.
17606         (__sysconf): Pass it down.
17607
17608 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17609
17610         [BZ #12671]
17611         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17612         some situations.
17613         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17614         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17615         add in in __libc_use_alloca calls.  Adjust callers.
17616         (glob): Use malloc in some situations.
17617
17618         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17619         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17620         pltexit.
17621
17622 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17623
17624         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17625         and CLOCK_BOOTTIME_ALARM.
17626
17627         [BZ #12782]
17628         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17629         is returned.
17630
17631         * string/_strerror.c (__strerror_r): Print negative errors as signed
17632         numbers.
17633
17634         [BZ #12777]
17635         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17636         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17637         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17638
17639         * configure.in: Fix typo in redirection and correct removal of test
17640         files in two cases.
17641
17642         [BZ #12788]
17643         * locale/setlocale.c (new_composite_name): Fix test to check for
17644         identical name of all categories.
17645
17646         [BZ #12792]
17647         * libio/filedoalloc.c (local_isatty): New function.
17648         (_IO_file_doallocate): Use local_isatty.
17649         * stdio-common/perror.c (perror): In case a new stream is used
17650         forward the stream error.
17651         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17652         error flag.
17653
17654 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17655
17656         [BZ #11869]
17657         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17658         alloca.
17659         * include/alloca.h (extend_alloca_account): Define.
17660
17661         [BZ #11857]
17662         * posix/regex.h: Fix comments with documentation of user-accessible
17663         fields after compilation and describe correct free'ing of pattern
17664         after re_compile_pattern.
17665         Patch by Reuben Thomas <rrt@sc3d.org>.
17666
17667 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17668
17669         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17670         and -mno-altivec to prevent the compiler from using Altivec and/or
17671         VSX instructions when the corresponding registers are not available.
17672
17673 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17674
17675         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17676
17677 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17678
17679         * libio/freopen.c (freopen): Use __dup2, not dup2.
17680         * libio/freopen64.c (freopen64): Likewise.
17681
17682 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17683
17684         [BZ #12775]
17685         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17686         * math/Makefile (tests): Add test-powl.
17687         (CFLAGS-test-powl.c): Define.
17688         * math/test-powl.c: New file.
17689
17690 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17691
17692         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17693
17694 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17695
17696         [BZ #11837]
17697         * iconvdata/gb18030.c: Update to GB18020-2005.
17698
17699 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17700
17701         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17702         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17703         Patch by Aharon Robbins <arnold@skeeve.com>.
17704
17705         [BZ #11892]
17706         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17707         on the stack.
17708
17709         [BZ #11895]
17710         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17711         through underflows.
17712
17713         [BZ #12766]
17714         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17715         point to strings before performing equality test for error_one_per_line
17716         mode.
17717
17718         [BZ #11697]
17719         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17720
17721         [BZ #11820]
17722         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17723         (struct user_fpregs_struct): Avoid __uint*_t types.
17724
17725         [BZ #6420]
17726         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17727         symbol info.  Use it instead of calling _dl_addr locally.
17728         (lock_and_info): New function.
17729         (tr_freehook): Call lock_and_info and pass symbol info as additional
17730         parameter to tr_where.
17731         (tr_mallochook): Likewise.
17732         (tr_reallochook): Likewise.
17733         (tr_memalignhook): Likewise.
17734
17735         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17736         used and couldn't be at all thread-safe.
17737
17738 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17739
17740         * libio/freopen.c (freopen): Don't close old file descriptor
17741         before the new one is opened.  Instead dup the new file descriptor
17742         to the old one after the new stream is created.
17743         * libio/freopen64.c (freopen64): Likewise.
17744         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17745         * libio/fileops.c (_IO_new_file_close_it): Handle new
17746         _IO_FLAGS2_NOCLOSE flag.
17747         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17748         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17749         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17750         _IO_FLAGS2_NOCLOSE flag.
17751         * include/unistd.h: Add hidden_proto for dup3.
17752         Define __have_dup3.
17753         * io/dup3.c: Define hidden symbol.
17754         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17755
17756         [BZ #7101]
17757         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17758         when an incomplete long option is used.
17759         * posix/tst-getopt_long1.c: New file.
17760         * posix/Makefile (tests): Add tst-getopt_long1.
17761
17762         [BZ #10138]
17763         * scripts/config.guess: Update from autoconf-2.68.
17764         * scripts/config.sub: Likewise.
17765
17766         [BZ #10157]
17767         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17768         tests into ...
17769         (has_cpuclock): ...this.  New function.
17770         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17771         macro here based on has_cpuclock code.
17772
17773         [BZ #10149]
17774         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17775         First byte (not low byte) is now always NUL.
17776         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17777
17778         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17779         Use non-cancelable interfaces.
17780
17781         [BZ #9809]
17782         * locale/iso-639.def: Add entry for Sorani.
17783
17784         [BZ #11901]
17785         * include/stdlib.h: Move include protection to the right place.
17786         Define abort_msg_s.  Declare __abort_msg with it.
17787         * stdlib/abort.c (__abort_msg): Adjust type.
17788         * assert/assert.c (__assert_fail_base): New function.  Majority
17789         of code from __assert_fail.  Allocate memory for __abort_msg with
17790         mmap.
17791         (__assert_fail): Now call __assert_fail_base.
17792         * assert/assert-perr.c: Remove bulk of implementation.  Use
17793         __assert_fail_base.
17794         * include/assert.hL Declare __assert_fail_base.
17795         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17796         mmap.
17797         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17798
17799 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17800
17801         [BZ #11952]
17802         [BZ #12453]
17803         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17804         until all modules are registered in the DTV.
17805         * elf/Makefile: Add rules to build and run tst-tls19.
17806         * elf/tst-tls19.c: New file.
17807         * elf/tst-tls19mod1.c: New file.
17808         * elf/tst-tls19mod2.c: New file.
17809         * elf/tst-tls19mod3.c: New file.
17810         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17811
17812         [BZ #12083]
17813         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17814         correctly.
17815
17816         [BZ #12601]
17817         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17818         two-byte sequence errors.
17819         * iconvdata/Makefile (tests): Add bug-iconv8.
17820         * iconvdata/bug-iconv8.c: New file.
17821
17822         [BZ #12626]
17823         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17824         buf2 definition.
17825
17826         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17827
17828         [BZ #12432]
17829         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17830         (dummy_getcfa): New function.
17831         (init): Get _Unwind_GetCFA address, use dummy if not found.
17832         (backtrace_helper): In recursion check, also check whether CFA changes.
17833         (__backtrace): Completely initialize arg.
17834
17835         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17836         storing incomplete byte sequence in state object.  Avoid testing for
17837         guaranteed too small input if we know there is enough data available.
17838
17839 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17840
17841         * Makeconfig (+link-pie): Indent.
17842         * Rules (binaries-pie): Define if $(have-fpie) and
17843         $(build-shared).
17844         (binaries-shared): Also filter out $(binaries-pie).
17845         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17846         * nscd/Makefile (others-pie): Add nscd.
17847         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17848         ($(objpfx)nscd): Remove command override.
17849         * login/Makefile (others-pie): Add pt_chown.
17850         ($(objpfx)pt_chown): Remove command override.
17851         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17852         remove command overrides.
17853
17854 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17855
17856         * libio/tst_putwc.c: Fix error messages.
17857
17858         [BZ #12724]
17859         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17860         currently writing and seek to current position when not.
17861         * libio/Makefile (tests): Add bug-fclose1.
17862         * libio/bug-fclose1.c: New file.
17863
17864 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17865
17866         [BZ #12511]
17867         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17868         don't set DF_1_NODELETE here.
17869         (do_lookup_x): When entering new entry test for copy relocation
17870         and if necessary set DF_1_NODELETE flag.
17871         * elf/tst-unique4.cc: New file.
17872         * elf/tst-unique4.h: New file.
17873         * elf/tst-unique4lib.cc: New file.
17874         * elf/Makefile: Add rules to build and run tst-unique4.
17875         Patch by Piotr Bury <pbury@goahead.com>.
17876
17877 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17878
17879         [BZ #12052]
17880         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17881
17882         [BZ #12625]
17883         * misc/mntent_r.c (addmntent): Flush the stream after the output
17884
17885         [BZ #12393]
17886         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17887         (is_trusted_path_normalize): Skip initial colon.  Append slash
17888         to empty buffer.  Duplicate is_trusted_path code but allow
17889         constructed patch to be prefix.
17890         (is_dst): Allow $ORIGIN followed by /.
17891         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17892         Correct testing of result of is_trusted_path_normalize
17893         (decompose_rpath): Fix warning.
17894
17895 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17896
17897         [BZ #11257]
17898         * grp/initgroups.c (internal_getgrouplist): When we found the service
17899         list through the initgroups entry in nsswitch.conf do not always
17900         continue on a successful lookup.  Don't always use the
17901         __nss_group_database value if it is set.
17902         * nss/nsswitch.conf (initgroups): Change action for successful db
17903         lookup to continue for compatibility.
17904
17905 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17906
17907         [BZ #11532]
17908         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17909         and CP774 modules.
17910         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17911         and CP774 modules.
17912         * iconvdata/tst-tables.sh: Likewise.
17913         * iconvdata/cp770.c: New file.
17914         * iconvdata/cp771.c: New file.
17915         * iconvdata/cp772.c: New file.
17916         * iconvdata/cp773.c: New file.
17917         * iconvdata/cp774.c: New file.
17918         * iconvdata/testdata/CP770: New file.
17919         * iconvdata/testdata/CP770..UTF8: New file.
17920         * iconvdata/testdata/CP771: New file.
17921         * iconvdata/testdata/CP771..UTF8: New file.
17922         * iconvdata/testdata/CP772: New file.
17923         * iconvdata/testdata/CP772..UTF8: New file.
17924         * iconvdata/testdata/CP773: New file.
17925         * iconvdata/testdata/CP773..UTF8: New file.
17926         * iconvdata/testdata/CP774: New file.
17927         * iconvdata/testdata/CP774..UTF8: New file.
17928
17929         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17930         END CHARMAP line.
17931         * iconvdata/gen-8bit-gap.sh: Likewise.
17932         * iconvdata/gen-8bit.sh: Likewise.
17933
17934         * locale/iso-639.def: Add ary entry.
17935
17936         [BZ #11258]
17937         * locale/C-translit.h.in: Add U20A1 transliteration.
17938
17939         [BZ #12178]
17940         * locale/iso-639.def: Add wae entry.
17941         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17942
17943         [BZ #12545]
17944         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17945         for n.
17946
17947         [BZ #12711]
17948         * locale/C-translit.h.in: Add entry for U20B9.
17949         Patch by pravin.d.s@gmail.com.
17950
17951 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17952
17953         [BZ #12713]
17954         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17955         ENAMETOOLONG use generic getcwd.
17956         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17957         in rtld.  Use *stat64.
17958         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17959         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17960         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17961         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17962         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17963         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17964         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17965         __fstatat64 macros.
17966         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17967         * dirent/rewinddir.c: Add libc_hidden_def.
17968         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17969         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17970
17971         * include/dirent.h (__alloc_dir): Add flags parameter.
17972         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17973         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17974         __alloc_dir.
17975         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17976         from fdopendir if O_CLOEXEC is already set.
17977
17978 2011-03-15  Alan Modra  <amodra@gmail.com>
17979
17980         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17981         l_tls_firstbyte_offset non-zero.  Save padding offset in
17982         l_tls_firstbyte_offset for later use.
17983         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17984         freeing static tls block.
17985
17986 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17987
17988         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17989         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17990         being defined by the kernel headers.
17991
17992 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17993
17994         [BZ #12734]
17995         * resolv/resolv.h: Define RES_NOTLDQUERY.
17996         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17997         no-tld-query and set RES_NOTLDQUERY.
17998         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17999         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18000         modern BIND to search name as TLD unless forbidden.
18001
18002 2011-05-07  Petr Baudis  <pasky@suse.cz>
18003             Ulrich Drepper  <drepper@gmail.com>
18004
18005         [BZ #12393]
18006         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18007         (is_trusted_path): ...to here.
18008         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18009         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18010         using is_trusted_path_normalize() in setuid scripts.
18011
18012 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18013
18014         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18015         __BEGIN/__END_DECLS.
18016
18017 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18018
18019         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18020         NSS_STATUS_NOTFOUND if no record was found.
18021
18022 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18023
18024         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18025         (headers-not-in-tirpc): Remove rpc/netdb.h
18026         * resolv/netdb.h: Revert last change.
18027
18028 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18029
18030         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18031         circular dependency between libgcc.a and libc.a.
18032
18033 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18034
18035         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18036         * nis/Makefile: Don't install rpcsvc/*.
18037         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18038         instead of <rpc/types.h>.
18039         (MAXHOSTNAMELEN): Define.
18040
18041 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18042
18043         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18044
18045 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18046
18047         [BZ #12714]
18048         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18049         gethostbyname4_r when IPv6 results are possible.
18050
18051 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18052
18053         [BZ #12723]
18054         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18055         _PC_PIPE_BUF handling.
18056
18057 2011-04-30  Bruno Haible  <bruno@clisp.org>
18058
18059         [BZ #12717]
18060         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18061         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18062         to 'int'.
18063         * inet/getnameinfo.c (getnameinfo): Likewise.
18064
18065 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18066
18067         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18068         to groups setting in database lookup.
18069         * nss/nsswitch.conf: Add initgroups entry.
18070
18071 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18072
18073         [BZ #12685]
18074         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18075         mode string.
18076         Patch by Eric Blake <eblake@redhat.com>.
18077
18078 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18079
18080         * sunrpc/Makefile (need-export-routines): Add svc_run.
18081         (routines): Remove svc_run.
18082         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18083         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18084         * sunrpc/svc_run.c (svc_run): Likewise.
18085         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18086
18087 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18088
18089         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18090         problem in reallocation in last patch.
18091
18092 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18093
18094         * sunrpc/Makefile: Move inclusion of Rules.
18095
18096 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18097
18098         * nss/nss_files/files-initgroups.c: New file.
18099         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18100         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18101         _nss_files_initgroups_dyn.
18102
18103 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18104
18105         * elf/elf.h (R_ARM_IRELATIVE): Define.
18106
18107 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18108
18109         * po/ru.po: Update from translation team.
18110
18111 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18112
18113         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18114         dependencies.
18115
18116 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18117
18118         [BZ #12653]
18119         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18120         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18121         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18122         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18123         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18124
18125 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18126
18127         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18128         differing bytes.
18129         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18130         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18131         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18132
18133 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18134
18135         [BZ #12420]
18136         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18137         storing it.
18138         * stdlib/bug-getcontext.c: New file.
18139         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18140
18141 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18142
18143         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18144         instructions into .machine "z9-109".
18145         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18146         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18147
18148 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18149
18150         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18151         between environment variables and auxiliary vector.
18152
18153 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18154
18155         * Makefile: Add rules to build linkobj/libc.so.
18156         * include/libc-symbols.h: Define libc_hidden_nolink.
18157         * include/rpc/auth.h: Mark functions which are to be hidden.
18158         * include/rpc/auth_des.h: Likewise.
18159         * include/rpc/auth_unix.h: Likewise.
18160         * include/rpc/clnt.h: Likewise.
18161         * include/rpc/des_crypt.h: Likewise.
18162         * include/rpc/key_prot.h: Likewise.
18163         * include/rpc/pmap_clnt.h: Likewise.
18164         * include/rpc/pmap_prot.h: Likewise.
18165         * include/rpc/pmap_rmt.h: Likewise.
18166         * include/rpc/rpc_msg.h: Likewise.
18167         * include/rpc/svc.h: Likewise.
18168         * include/rpc/svc_auth.h: Likewise.
18169         * include/rpc/xdr.h: Likewise.
18170         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18171         * nss/Makefile: Likewise.
18172         * sunrpc/Makefile: Don't install headers.  Build library with normal
18173         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18174         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18175         for the compat linking library.  Remove use of INTDEF/INTUSE.
18176         * sunrpc/auth_none.c: Likewise.
18177         * sunrpc/auth_unix.c: Likewise.
18178         * sunrpc/authdes_prot.c: Likewise.
18179         * sunrpc/authuxprot.c: Likewise.
18180         * sunrpc/clnt_gen.c: Likewise.
18181         * sunrpc/clnt_perr.c: Likewise.
18182         * sunrpc/clnt_raw.c: Likewise.
18183         * sunrpc/clnt_simp.c: Likewise.
18184         * sunrpc/clnt_tcp.c: Likewise.
18185         * sunrpc/clnt_udp.c: Likewise.
18186         * sunrpc/clnt_unix.c: Likewise.
18187         * sunrpc/des_crypt.c: Likewise.
18188         * sunrpc/des_soft.c: Likewise.
18189         * sunrpc/get_myaddr.c: Likewise.
18190         * sunrpc/key_call.c: Likewise.
18191         * sunrpc/key_prot.c: Likewise.
18192         * sunrpc/netname.c: Likewise.
18193         * sunrpc/pm_getmaps.c: Likewise.
18194         * sunrpc/pm_getport.c: Likewise.
18195         * sunrpc/pmap_clnt.c: Likewise.
18196         * sunrpc/pmap_prot.c: Likewise.
18197         * sunrpc/pmap_prot2.c: Likewise.
18198         * sunrpc/pmap_rmt.c: Likewise.
18199         * sunrpc/publickey.c: Likewise.
18200         * sunrpc/rpc_cmsg.c: Likewise.
18201         * sunrpc/rpc_common.c: Likewise.
18202         * sunrpc/rpc_dtable.c: Likewise.
18203         * sunrpc/rpc_prot.c: Likewise.
18204         * sunrpc/rpc_thread.c: Likewise.
18205         * sunrpc/rtime.c: Likewise.
18206         * sunrpc/svc.c: Likewise.
18207         * sunrpc/svc_auth.c: Likewise.
18208         * sunrpc/svc_authux.c: Likewise.
18209         * sunrpc/svc_raw.c: Likewise.
18210         * sunrpc/svc_run.c: Likewise.
18211         * sunrpc/svc_simple.c: Likewise.
18212         * sunrpc/svc_tcp.c: Likewise.
18213         * sunrpc/svc_udp.c: Likewise.
18214         * sunrpc/svc_unix.c: Likewise.
18215         * sunrpc/svcauth_des.c: Likewise.
18216         * sunrpc/xcrypt.c: Likewise.
18217         * sunrpc/xdr.c: Likewise.
18218         * sunrpc/xdr_array.c: Likewise.
18219         * sunrpc/xdr_float.c: Likewise.
18220         * sunrpc/xdr_intXX_t.c: Likewise.
18221         * sunrpc/xdr_mem.c: Likewise.
18222         * sunrpc/xdr_rec.c: Likewise.
18223         * sunrpc/xdr_ref.c: Likewise.
18224         * sunrpc/xdr_sizeof.c: Likewise.
18225         * sunrpc/xdr_stdio.c: Likewise.
18226
18227 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18228
18229         [BZ #12650]
18230         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18231         * sysdeps/ia64/dl-tls.h: Likewise.
18232         * sysdeps/powerpc/dl-tls.h: Likewise.
18233         * sysdeps/s390/dl-tls.h: Likewise.
18234         * sysdeps/sh/dl-tls.h: Likewise.
18235         * sysdeps/sparc/dl-tls.h: Likewise.
18236         * sysdeps/x86_64/dl-tls.h: Likewise.
18237         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18238
18239 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18240
18241         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18242         rpath element also skip the following colon.
18243         (expand_dynamic_string_token): Add is_path parameter and pass
18244         down to DL_DST_REQUIRED and _dl_dst_substitute.
18245         (decompose_rpath): Call expand_dynamic_string_token with
18246         non-zero is_path.  Ignore empty rpaths.
18247         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18248         with zero is_path.
18249
18250 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18251
18252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18253         Make cancelable.
18254
18255 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18256
18257         [BZ #12655]
18258         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18259         Patch by Filipe David Manana <fdmanana@apache.org>.
18260
18261 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18262
18263         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18264         Maintain aligned stack.
18265         (CHECK_RSP): Remove unused macro.
18266
18267 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18268
18269         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18270         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18271
18272 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18273
18274         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18275
18276         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18277
18278 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18279
18280         [BZ #12518]
18281         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18282         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18283         * sysdeps/x86_64/memmove.c: New file.
18284         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18285         (memcpy): Renamed to ...
18286         (__new_memcpy): This.
18287         (memcpy): Provide GLIBC_2_14 memcpy.
18288         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18289         (memcpy): Provide GLIBC_2_2_5 memcpy.
18290
18291 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18292
18293         [BZ #12631]
18294         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18295
18296 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18297
18298         * misc/syncfs.c: New file.
18299         * misc/Makefile (routines): Add syncfs.
18300         * posix/unistd.h: Declare syncfs.
18301         * sysdeps/unix/syscalls.list: Add syncfs.
18302
18303 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18304
18305         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18306         open_by_handle_at.
18307         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18308         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18309         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18310         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18311         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18312         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18313         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18314
18315 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18316
18317         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18318         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18319         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18320         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18321         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18322         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18323         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18324
18325         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18326         sync_file_range.c with -fexceptions.
18327         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18328         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18329         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18330         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18331         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18332         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18333         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18334         sync_file_range as cancellation point
18335         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18336         now a wrapper around __call_sync_file_range with cancellation handling.
18337         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18338         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18339         function name to __call_sync_file_range.
18340         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18341         Add call_sync_file_range.
18342
18343 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18344
18345         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18346         bits/timex.h.
18347
18348 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18349
18350         * iconv/iconv.h: Fix typo in comment.
18351         * io/fcntl.h: Likewise.
18352         * libio/stdio.h: Likewise.
18353         * posix/spawn.h: Likewise.
18354         * posix/unistd.h: Likewise.
18355         * stdlib/stdlib.h: Likewise.
18356         * time/time.h: Likewise.
18357         * wcsmbs/wchar.h: Likewise.
18358
18359         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18360         open_by_handle): Add.
18361         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18362         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18363         Augment a few comments.
18364         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18365         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18366         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18367         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18368         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18369         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18370         open_by_handle.
18371
18372         * io/fcntl.h (AT_EMPTY_PATH): Define.
18373
18374 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18375
18376         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18377         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18378         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18379         to...
18380         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18381         * Versions.def: Add GLIBC_2.14.
18382         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18383         Export.
18384
18385 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18386
18387         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18388         round counter.
18389         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18390
18391 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18392
18393         [BZ #12597]
18394         * string/test-strncmp.c (do_page_test): New function.
18395         (check2): Likewise.
18396         (test_main): Call check2.
18397         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18398
18399 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18400
18401         [BZ #12587]
18402         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18403         Handle cache information in CPU leaf 4.
18404         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18405
18406 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18407
18408         [BZ #12583]
18409         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18410         character representation.
18411         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18412
18413 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18414
18415         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18416         END(__isnan) to END(__isnanf) to match function entry point/label
18417         EALIGN(__isnanf,...).
18418
18419 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18420
18421         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18422
18423 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18424
18425         [BZ #12510]
18426         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18427         copy from the symbol referenced in the relocation to initialize the
18428         used variable.
18429         Patch by Piotr Bury <pbury@goahead.com>.
18430         * elf/Makefile: Add rules to build and tst-unique3.
18431         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18432         * elf/tst-unique3.cc: New file.
18433         * elf/tst-unique3.h: New file.
18434         * elf/tst-unique3lib.cc: New file.
18435         * elf/tst-unique3lib2.cc: New file.
18436
18437         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18438
18439 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18440
18441         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18442         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18443         to _start.
18444
18445 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18446
18447         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18448         to-be-loaded object along a path to loader is ld.so.
18449
18450 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18451             Ulrich Drepper  <drepper@gmail.com>
18452
18453         * sysdeps/x86_64/memset.S: After aligning destination, code
18454         branches to different locations depending on the value of
18455         misalignment, when multiarch is enabled. Fix this.
18456
18457 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18458
18459         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18460         Set _x86_64_preferred_memory_instruction for AMD processsors.
18461         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18462         Set bit_Prefer_SSE_for_memop for AMD processors.
18463
18464 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18465
18466         * libio/fmemopen.c (fmemopen): Optimize a bit.
18467
18468 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18469
18470         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18471
18472 2011-03-03  Roland McGrath  <roland@redhat.com>
18473
18474         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18475
18476 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18477
18478         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18479         __bzero_ultra1 instead of __memset_ultra1.
18480
18481 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18482             Ulrich Drepper  <drepper@gmail.com>
18483
18484         [BZ #12509]
18485         * include/link.h (struct link_map): Add l_orig_initfini.
18486         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18487         returning unsuccessfully.
18488         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18489         close of a file loaded at startup, restore the original l_initfini
18490         list.
18491         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18492         list, store the pointer.
18493         * elf/Makefile ($(objpfx)noload-mem): New rule.
18494         (noload-ENV): Define.
18495         (tests): Add $(objpfx)noload-mem.
18496         * elf/noload.c: Include <memcheck.h>.
18497         (main): Call mtrace.  Close all opened handles.
18498
18499 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18500
18501         [BZ #12454]
18502         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18503         dependencies are missing.
18504
18505 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18506
18507         Fix __if_freereq crash: Unlike the generic version which uses free,
18508         Hurd needs munmap.
18509         * sysdeps/mach/hurd/ifreq.h: New file.
18510
18511 2011-01-27  Petr Baudis  <pasky@suse.cz>
18512             Ulrich Drepper  <drepper@gmail.com>
18513
18514         [BZ 12445]#
18515         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18516         to extend_alloca().
18517         * stdio-common/bug23.c: New file.
18518         * stdio-common/Makefile (tests): Add bug23.
18519
18520 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18521             Ulrich Drepper  <drepper@gmail.com>
18522
18523         [BZ #12489]
18524         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18525         before performing relro protection.  At old place add assertion
18526         to make sure nothing changed.
18527
18528 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18529             Glauber de Oliveira Costa  <glommer@gmail.com>
18530
18531         * elf/elf.h: Add new ARM TLS relocs.
18532
18533 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18534
18535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18536         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18537         cast from r3.
18538         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18539         'tests' variable.
18540         * sysdeps/wordsize-64/tst-writev.c: New file.
18541
18542 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18543
18544         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18545         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18546         insns in _dl_start to prevent a TOC reference before relocs are
18547         resolved.
18548
18549 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18550
18551         [BZ #12469]
18552         * Makeconfig: Remove RANLIB definition.
18553         * Makerules: Don't use RANLIB.
18554         * aclocal.m4: Remove ranlib test.
18555         * configure.in: No need to check for ranlib.
18556         * elf/rtld-Rules: Don't use RANLIB.
18557
18558 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18559
18560         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18561         protection macro.
18562         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18563         inclusion protection macro.
18564
18565         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18566         SIGRTMIN and SIGRTMAX and print information in that case only when
18567         SIGRTMIN is defined.
18568
18569 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18570
18571         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18572         arginfo fn returning -1.
18573
18574         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18575         and thousands string is zero terminated.
18576
18577 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18578
18579         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18580         sysdeps/unix/sysv/linux/bits/socket.h.
18581
18582 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18583
18584         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18585         (__CPU_COUNT): Remove old macros.
18586         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18587         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18588         (__CPU_ALLOC, __CPU_FREE): Add macros.
18589         (__sched_cpualloc, __sched_cpufree): Add declarations.
18590
18591 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18592
18593         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18594         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18595         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18596         (readdhstai): Return value of addhstaiX call.
18597         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18598         (addgrbyX): Return value returned by cache_addgr.
18599         (readdgrbyname): Return value returned by addgrbyX.
18600         (readdgrbygid): Likewise.
18601         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18602         (addpwbyX): Return value returned by cache_addpw.
18603         (readdpwbyname): Return value returned by addhstbyX.
18604         (readdpwbyuid): Likewise.
18605         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18606         (addservbyX): Return value returned by cache_addserv.
18607         (readdservbyname): Return value returned by addservbyX:
18608         (readdservbyport): Likewise.
18609         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18610         (addhstbyX): Return value returned by cache_addhst.
18611         (readdhstbyname): Return value returned by addhstbyX.
18612         (readdhstbyaddr): Likewise.
18613         (readdhstbynamev6): Likewise.
18614         (readdhstbyaddrv6): Likewise.
18615         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18616         (readdinitgroups): Return value returned by addinitgroupsX.
18617         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18618         (prune_cache): Keep track of timeout value of re-added entries.
18619         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18620         * nscd/nscd.h: Adjust prototypes of readd* functions.
18621
18622 2011-02-04  Roland McGrath  <roland@redhat.com>
18623
18624         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18625         (nis_stats): Likewise.
18626         * nis/nis_modify.c (nis_modify): Likewise.
18627         * nis/nis_remove.c (nis_remove): Likewise.
18628         * nis/nis_add.c (nis_add): Likewise.
18629
18630         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18631
18632         * posix/fnmatch_loop.c: Add some consts.
18633
18634         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18635
18636 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18637
18638         [BZ #12460]
18639         * config.make.in (config-cflags-novzeroupper): Define.
18640         * configure.in: Substitute libc_cv_cc_novzeroupper.
18641         * elf/Makefile (AVX-CFLAGS): Define.
18642         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18643         (CFLAGS-tst-auditmod4a.c): Likewise.
18644         (CFLAGS-tst-auditmod4b.c): Likewise.
18645         (CFLAGS-tst-auditmod6b.c): Likewise.
18646         (CFLAGS-tst-auditmod6c.c): Likewise.
18647         (CFLAGS-tst-auditmod7b.c): Likewise.
18648         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18649
18650 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18651
18652         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18653         function to the callback.
18654         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18655
18656 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18657
18658         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18659         of errno.
18660
18661 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18662
18663         [BZ #11724]
18664         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18665         of constructors.
18666         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18667         of destructors.
18668         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18669
18670         [BZ #11724]
18671         * elf/Makefile: Add rules to build and run new test.
18672         * elf/tst-initorder.c: New file.
18673         * elf/tst-initorder.exp: New file.
18674         * elf/tst-initordera1.c: New file.
18675         * elf/tst-initordera2.c: New file.
18676         * elf/tst-initordera3.c: New file.
18677         * elf/tst-initordera4.c: New file.
18678         * elf/tst-initorderb1.c: New file.
18679         * elf/tst-initorderb2.c: New file.
18680         * elf/tst-order-a1.c: New file.
18681         * elf/tst-order-a2.c: New file.
18682         * elf/tst-order-a3.c: New file.
18683         * elf/tst-order-a4.c: New file.
18684         * elf/tst-order-b1.c: New file.
18685         * elf/tst-order-b2.c: New file.
18686         * elf/tst-order-main.c: New file.
18687         New test case by George Gensure <werkt0@gmail.com>.
18688
18689 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18690
18691         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18692         decoding ACE if AI_CANONIDN.
18693
18694 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18695
18696         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18697
18698 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18699
18700         * version.h (RELEASE): Bump for 2.13 release.
18701         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18702
18703         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18704
18705         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18706         MADV_NOHUGEPAGE.
18707         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18708         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18709         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18710         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18711         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18712         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18713
18714         * posix/getconf.c: Update copyright year.
18715         * catgets/gencat.c: Likewise.
18716         * csu/version.c: Likewise.
18717         * debug/catchsegv.sh: Likewise.
18718         * debug/xtrace.sh: Likewise.
18719         * elf/ldconfig.c: Likewise.
18720         * elf/ldd.bash.in: Likewise.
18721         * elf/sprof.c (print_version): Likewise.
18722         * iconv/iconv_prog.c: Likewise.
18723         * iconv/iconvconfig.c: Likewise.
18724         * locale/programs/locale.c: Likewise.
18725         * locale/programs/localedef.c: Likewise.
18726         * malloc/memusage.sh: Likewise.
18727         * malloc/mtrace.pl: Likewise.
18728         * nscd/nscd.c (print_version): Likewise.
18729         * nss/getent.c: Likewise.
18730
18731         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18732         PF_CAIF, and PF_ALG.
18733         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18734
18735 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18736
18737         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18738         (modules-names): Use them.
18739         (ifunc-test-modules, ifunc-pie-tests): Define.
18740         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18741         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18742         (test-extras): Likewise.
18743         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18744         $(compile-command.c).
18745         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18746         (all-built-dso): Define.
18747         (check-textrel.out, check-execstack.out): Depend on it.
18748
18749         * configure.in: Don't override --enable-multi-arch.
18750
18751 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18752
18753         [BZ #6812]
18754         * nscd/hstcache.c (tryagain): Define.
18755         (cache_addhst): Return tryagain not notfound for temporary errors.
18756         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18757         failed.
18758
18759 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18760
18761         [BZ #10563]
18762         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18763         to make the syscall.
18764         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18765
18766         [BZ #12378]
18767         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18768         and fall back to matching as normal character if the string ends before
18769         the matching ']' is found.  This is what POSIX requires.
18770         * posix/testfnm.c: Adjust test result.
18771         * posix/globtest.sh: Adjust test result.  Add new test.
18772         * posix/tst-fnmatch.input: Likewise.
18773         * posix/tst-fnmatch2.c: Add new test.
18774
18775 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18776
18777         * elf/Makefile (check-execstack): Revert last change.  Depend on
18778         check-execstack.h.
18779         (check-execstack.h): New target.
18780         (generated): Add check-execstack.h.
18781         * elf/check-execstack.c: Include "check-execstack.h".
18782         (main): Revert last change.
18783         (handle_file): Return zero if GNU_STACK is absent and
18784         DEFAULT_STACK_PERMS doesn't include PF_X.
18785
18786 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18787
18788         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18789         in child fails because the descriptor is already closed.
18790         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18791         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18792         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18793
18794         [BZ #12397]
18795         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18796         syscall.
18797
18798         [BZ #10484]
18799         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18800         temporary buffer used to handle multi lookups locally.
18801         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18802
18803 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18804
18805         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18806         loader is ld.so.
18807
18808 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18809
18810         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18811         alignment for SSE2.
18812
18813 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18814
18815         [BZ #12394]
18816         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18817         characters.  When rounding increased number of integer digits recompute
18818         number of groups.
18819         * stdio-common/tst-grouping.c: New file.
18820         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18821
18822 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18823
18824         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18825         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18826
18827         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18828         void.
18829         * bits/select.h: Likewise.
18830
18831 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18832
18833         * po/ja.po: Update from translation team.
18834
18835 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18836
18837         [BZ #11155]
18838         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18839         implementation just like for lxstat, fxstatat, et al.
18840
18841 2010-12-27  Jim Meyering  <meyering@redhat.com>
18842
18843         [BZ #12348]
18844         * posix/regexec.c (build_trtable): Return failure indication upon
18845         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18846
18847 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18848
18849         [BZ #12201]
18850         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18851         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18852         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18853         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18854
18855         [BZ #12207]
18856         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18857
18858         [BZ #12204]
18859         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18860         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18861
18862 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18863
18864         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18865         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18866         script has SORT_BY_INIT_PRIORITY.
18867         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18868         NO_CTORS_DTORS_SECTIONS is defined.
18869         * elf/soinit.c: Likewise.
18870         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18871         NO_CTORS_DTORS_SECTIONS is defined.
18872         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18873         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18874         * sysdeps/sh/init-first.c: Likewise.
18875         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18876
18877 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18878
18879         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18880         always use the slow path.
18881
18882 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18883
18884         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18885         similar rule which adds the sysdep directories to the header search in
18886         order to pick up the correct platform stackinfo.h.
18887         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18888         perform test if it is, otherwise return successfully without testing.
18889         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18890         DEFAULT_STACK_PERMS define in stackinfo.h.
18891         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18892         defined in stackinfo.h.
18893         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18894         DEFAULT_STACK_PERMS defined in stackinfo.h.
18895         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18896         * sysdeps/ia64/stackinfo.h: Likewise.
18897         * sysdeps/s390/stackinfo.h: Likewise.
18898         * sysdeps/sh/stackinfo.h: Likewise.
18899         * sysdeps/sparc/stackinfo.h: Likewise.
18900         * sysdeps/x86_64/stackinfo.h: Likewise.
18901         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18902         PF_X for powerpc64.  Retain PF_X for powerpc32.
18903
18904 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18905
18906         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18907         accurately.
18908         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18909         GETDENTS_64BIT_ALIGNED.
18910
18911 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18912
18913         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18914
18915 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18916
18917         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18918         _GNU_SOURCE.
18919
18920         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18921         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18922         Remove __restrict.
18923         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18924         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18925
18926 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18927
18928         [BZ #11655]
18929         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18930         are initialized.
18931
18932 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18933
18934         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18935
18936 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18937
18938         * po/it.po: Update from translation team.
18939
18940 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18941
18942         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18943         unused codes.
18944
18945 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18946
18947         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18948
18949 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18950
18951         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18952         specially.
18953         (gaih_getanswer_slice): Likewise.
18954
18955 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18956
18957         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18958
18959 2010-05-31  Petr Baudis  <pasky@suse.cz>
18960
18961         [BZ #11149]
18962         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18963         silently even in the chroot mode.
18964
18965 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18966
18967         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18968         last patch a bit.  Pretty printing
18969
18970 2010-05-31  Petr Baudis <pasky@suse.cz>
18971
18972         [BZ #10085]
18973         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18974         initialization of skip_initgroups_dyn.
18975
18976 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18977
18978         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18979         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18980
18981 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18982
18983         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18984
18985 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18986
18987         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18988         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18989         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18990         ($(objpfx)tst-fnmatch-mem): New rule.
18991         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18992         * posix/tst-fnmatch.c (main): Call mtrace.
18993
18994 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18995
18996         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18997         Support Intel processor model 6 and model 0x2c.
18998
18999 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19000
19001         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19002           signed comparison.
19003
19004 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19005
19006         [BZ #12205]
19007         * string/test-strncasecmp.c (check_result): New function.
19008         (do_one_test): Use it.
19009         (check1): New function.
19010         (test_main): Use it.
19011         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19012         Support strcasecmp and strncasecmp.
19013
19014 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19015
19016         [BZ #12194]
19017         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19018         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19019
19020 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19021
19022         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19023         IFUNC support.
19024         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19025         memset-x86-64.
19026         * sysdeps/x86_64/multiarch/bzero.S: New file.
19027         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19028         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19029         * sysdeps/x86_64/multiarch/memset.S: New file.
19030         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19031         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19032         Set bit_Prefer_SSE_for_memop for Intel processors.
19033         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19034         Define.
19035         (index_Prefer_SSE_for_memop): Define.
19036         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19037
19038 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19039
19040         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19041         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19042
19043 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19044
19045         [BZ #12191]
19046         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19047         (__x86_64_raw_data_cache_size_half): Likewise.
19048         (__x86_64_raw_shared_cache_size): Likewise.
19049         (__x86_64_raw_shared_cache_size_half): Likewise.
19050
19051         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19052         (__x86_64_raw_data_cache_size_half): Likewise.
19053         (__x86_64_raw_shared_cache_size): Likewise.
19054         (__x86_64_raw_shared_cache_size_half): Likewise.
19055         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19056         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19057         and __x86_64_raw_shared_cache_size_half.  Round
19058         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19059         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19060         to multiple of 256 bytes.
19061
19062 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19063
19064         [BZ #12167]
19065         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19066         of inacessible symlinks.  Verify result of symlink before returning it.
19067         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19068         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19069
19070 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19071
19072         * math/math.h (isinf): Fix typo in comment.
19073
19074 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19075
19076         * po/da.po: Update from translation team.
19077
19078 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19079
19080         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19081         is added to the list.
19082
19083 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19084             Ulrich Drepper  <drepper@gmail.com>
19085
19086         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19087         the global list here.  Move code to...
19088         (_dl_add_to_namespace_list): ...here.  New function.
19089         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19090         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19091         * elf/dl-load.c (lose): Don't remove the element from the list.
19092         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19093         (_dl_map_object): Likewise.
19094
19095 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19096
19097         [BZ #12159]
19098         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19099         into all bytes of SSE register.
19100         Patch by Richard Li <richardpku@gmail.com>.
19101
19102 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19103
19104         [BZ #12140]
19105         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19106         perturbing.
19107
19108 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19109
19110         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19111         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19112         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19113         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19115         submachine.
19116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19117
19118 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19119
19120         * include/dlfcn.h (__RTLD_SECURE): Define.
19121         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19122         mode & __RTLD_SECURE instead.
19123         (open_path): Rename preloaded parameter to secure.
19124         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19125         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19126         * elf/dl-deps.c (openaux): Likewise.
19127         * elf/rtld.c (struct map_args): Remove is_preloaded.
19128         (map_doit): Don't use it.
19129         (dl_main): Likewise.
19130         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19131         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19132
19133 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19134
19135         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19136         (sysd-rules-targets): Remove duplicates.
19137         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19138         rtld-%.$o dependency.
19139
19140 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19141
19142         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19143         _dl_map_object do it.
19144
19145 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19146
19147         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19148         fast fma builtins, define the macros in the C99 standard.
19149         (FP_FAST_FMAF): Likewise.
19150         (FP_FAST_FMAL): Likewise.
19151         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19152
19153         * bits/mathdef.h: Update copyright year.
19154         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19155
19156 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19157
19158         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19159         builtins, define the macros in the C99 standard.
19160         (FP_FAST_FMAF): Likewise.
19161         (FP_FAST_FMAL): Likewise.
19162         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19163         multiply/add.
19164         (FP_FAST_FMAF): Likewise.
19165
19166 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19167
19168         [BZ #3268]
19169         * math/libm-test.inc (fma_test): Some new testcases.
19170         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19171         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19172         y and infinite z.  Do multiplication by C already in long double.
19173         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19174         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19175         y and infinite z.  Do bitwise or of inexact bit into u.d.
19176         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19177         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19178         * sysdeps/i386/fpu/s_fma.S: Removed.
19179         * sysdeps/i386/fpu/s_fmal.S: Removed.
19180
19181 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19182
19183         [BZ #3268]
19184         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19185         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19186         computation is not scheduled after fetestexcept.  Fix value
19187         of minimum denormal long double.
19188
19189 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19190
19191         [BZ #3268]
19192         * math/libm-test.inc (fma_test): Add some more tests.
19193         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19194         correctly.
19195
19196 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19197
19198         * scripts/data/localplt-s390-linux-gnu.data: New file.
19199         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19200
19201 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19202
19203         [BZ #3268]
19204         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19205         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19206         instead of dbl-64.
19207         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19208         inlines.
19209         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19210         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19211         if one of x and y is very large and the other is subnormal.
19212         * sysdeps/s390/fpu/s_fmaf.c: New file.
19213         * sysdeps/s390/fpu/s_fma.c: New file.
19214         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19215         * sysdeps/powerpc/fpu/s_fma.S: New file.
19216         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19217         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19218         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19219
19220 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19221
19222         [BZ #3268]
19223         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19224         fma tests.
19225         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19226         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19227         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19228         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19229         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19230         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19231         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19232
19233 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19234
19235         [BZ #12078]
19236         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19237         * posix/bug-regex31.input: Add test case.
19238
19239 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19240
19241         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19242         * posix/bug-regex31.input: New file.
19243
19244         [BZ #12078]
19245         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19246         (parse_sub_exp): Fix last change, use postorder.
19247
19248         * posix/bug-regex31.c: New file.
19249         * posix/Makefile: Add rules to build and run bug-regex31.
19250
19251         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19252
19253         [BZ #12078]
19254         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19255
19256         [BZ #12108]
19257         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19258         to have entries in sys_siglist.
19259
19260         [BZ #12093]
19261         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19262         be NULL.
19263
19264 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19265
19266         [BZ #3268]
19267         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19268         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19269         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19270         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19271         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19272         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19273         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19274         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19275         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19276         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19277         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19278         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19279         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19280         * math/ftestexcept.c (fetestexcept): Likewise.
19281         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19282         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19283         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19284         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19285         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19286         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19287         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19288
19289 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19290
19291         [BZ #12107]
19292         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19293         newline.
19294
19295 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19296
19297         * string/bug-strstr1.c: New file.
19298         * string/Makefile: Add rules to build and run bug-strstr1.
19299
19300 2010-10-05  Eric Blake  <eblake@redhat.com>
19301
19302         [BZ #12092]
19303         * string/str-two-way.h (two_way_long_needle): Always clear memory
19304         when skipping input due to the shift table.
19305
19306 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19307
19308         [BZ #12005]
19309         * malloc/mcheck.c: Handle large requests.
19310
19311         [BZ #12077]
19312         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19313         for strncmp and strncasecmp.
19314         * string/stratcliff.c: Add tests for strcmp and strncmp.
19315         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19316
19317 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19318
19319         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19320         __set_fpscr.
19321
19322 2010-09-30  Andreas Jaeger  <aj@suse.de>
19323
19324         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19325         (CGROUP_SUPER_MAGIC): Define.
19326         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19327         Handle btrfs and cgroup file systems.
19328         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19329         Likewise.
19330
19331 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19332
19333         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19334         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19335
19336 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19337
19338         [BZ #12067]
19339         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19340         trying to locate the ELF header.
19341
19342 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19343
19344         [BZ #11611]
19345         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19346         Mask out sign-bit copies when constructing f_fsid.
19347
19348 2010-09-24  Petr Baudis <pasky@suse.cz>
19349
19350         * debug/stack_chk_fail_local.c: Add missing licence exception.
19351         * debug/warning-nop.c: Likewise.
19352
19353 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19354
19355         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19356         implementing getdents64 using getdents syscall, set d_type if
19357         __ASSUME_GETDENTS32_D_TYPE.
19358
19359 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19360
19361         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19362         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19363
19364 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19365
19366         [BZ #12037]
19367         * posix/unistd.h: Undo change of feature selection for ftruncate from
19368         2010-01-11.
19369
19370 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19371
19372         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19373         detection.
19374
19375 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19376
19377         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19378         fanotify_mark.
19379         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19380
19381 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19382
19383         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19384         variables after CHECK_SP call.
19385         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19386
19387 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19388             Ulrich Drepper  <drepper@redhat.com>
19389
19390         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19391         re-relocationg ld.so.
19392         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19393         _dl_init_paths call.
19394         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19395         here anymore.
19396
19397 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19398
19399         * resolv/res_init.c (__res_vinit): Count the default server we added.
19400
19401 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19402             Ulrich Drepper  <drepper@redhat.com>
19403
19404         [BZ #11968]
19405         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19406         (____longjmp_chk): Use %ebx for saving value across system call.
19407         Add unwind info.
19408
19409 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19410
19411         * manual/Makefile: Don't mix pattern rules with normal rules.
19412
19413 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19414
19415         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19416         operation.
19417         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19418         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19419         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19420         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19421         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19422         Likewise.
19423
19424 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19425
19426         [BZ #11979]
19427         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19428         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19429
19430 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19431
19432         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19433         * sysdeps/x86_64/addmul_1.S: Likewise.
19434         * sysdeps/x86_64/lshift.S: Likewise.
19435         * sysdeps/x86_64/mul_1.S: Likewise.
19436         * sysdeps/x86_64/rshift.S: Likewise.
19437         * sysdeps/x86_64/sub_n.S: Likewise.
19438         * sysdeps/x86_64/submul_1.S: Likewise.
19439
19440 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19441
19442         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19443         Define __sched_param instead of SCHED_* and sched_param when
19444         <bits/sched.h> is included with __need_schedparam defined.
19445         * bits/sched.h [__need_schedparam]
19446         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19447         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19448         (__defined_schedparam): Define to 1.
19449         (__sched_param): New structure, identical to sched_param.
19450         (__need_schedparam): Undefine.
19451
19452 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19453
19454         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19455         (epoll_create1): Declare.
19456
19457         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19458
19459 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19460
19461         [BZ #7066]
19462         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19463         shifting retval into place.
19464
19465 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19466
19467         * nis/rpcsvc/nis.h: Update copyright notice.
19468         * nis/rpcsvc/nis.x: Likewise.
19469         * nis/rpcsvc/nis_callback.h: Likewise.
19470         * nis/rpcsvc/nis_callback.x: Likewise.
19471         * nis/rpcsvc/nis_object.x: Likewise.
19472         * nis/rpcsvc/nis_tags.h: Likewise.
19473         * nis/rpcsvc/yp.h: Likewise.
19474         * nis/rpcsvc/yp.x: Likewise.
19475         * nis/rpcsvc/ypupd.h: Likewise.
19476         * nis/yp_xdr.c: Likewise.
19477         * nis/ypupdate_xdr.c: Likewise.
19478
19479         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19480         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19481         (pmap_getport): Use __libc_rpc_getport.
19482         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19483         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19484         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19485
19486 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19487
19488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19489         fanotify_mark.
19490
19491 2010-08-27  Roland McGrath  <roland@redhat.com>
19492
19493         * sysdeps/i386/i686/multiarch/Makefile
19494         (CFLAGS-varshift.c): New variable.
19495
19496 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19497
19498         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19499         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19500
19501         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19502
19503         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19504
19505 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19506
19507         * sysdeps/x86_64/strlen.S: Unroll the loop.
19508         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19509         strlen-sse2 strlen-sse2-bsf.
19510         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19511         __strlen_no_bsf if bit_Slow_BSF is set.
19512         (__strlen_sse42): Removed.
19513         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19514         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19515
19516 2010-08-25  Roland McGrath  <roland@redhat.com>
19517
19518         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19519         * sysdeps/x86_64/multiarch/varshift.c: New file.
19520         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19521         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19522         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19523         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19524
19525 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19526
19527         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19528         strlen-sse2 strlen-sse2-bsf.
19529         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19530         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19531         (__strlen_sse2): Removed.
19532         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19533         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19534         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19535         bit_Slow_BSF for Atom.
19536         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19537         (index_Slow_BSF): Define.
19538         (HAS_SLOW_BSF): Define.
19539
19540 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19541
19542         [BZ #10851]
19543         * resolv/res_init.c (__res_vinit): When no server address at all
19544         is given default to loopback.
19545
19546 2010-08-24  Roland McGrath  <roland@redhat.com>
19547
19548         * configure.in: Remove config-name.h generation.
19549         * configure: Regenerated.
19550         * config-name.in: File removed.
19551         * scripts/config-uname.sh: New file.
19552         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19553         ($(objdir)config-name.h): New target.
19554
19555         * sunrpc/rpc_parse.h: Avoid nested comment.
19556
19557 2010-08-24  Richard Henderson  <rth@redhat.com>
19558             Ulrich Drepper  <drepper@redhat.com>
19559             H.J. Lu  <hongjiu.lu@intel.com>
19560
19561         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19562         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19563         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19564         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19565         _mm_alignr_epi8 with _mm_loadu_si128.
19566         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19567         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19568         (__m128i_shift_right): Removed.
19569         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19570         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19571         * sysdeps/x86_64/multiarch/varshift.h: New file.
19572         * sysdeps/x86_64/multiarch/varshift.S: New file.
19573
19574 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19575
19576         * configure.in: Move assembler checks to before sysdep dir checking.
19577
19578 2010-08-20  Petr Baudis  <pasky@suse.cz>
19579
19580         * LICENSES: Sync the sunrpc license.
19581
19582 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19583
19584         * sunrpc/auth_des.c: Update copyright notice once again.
19585         * sunrpc/auth_none.c: Likewise.
19586         * sunrpc/auth_unix.c: Likewise.
19587         * sunrpc/authdes_prot.c: Likewise.
19588         * sunrpc/authuxprot.c: Likewise.
19589         * sunrpc/bindrsvprt.c: Likewise.
19590         * sunrpc/clnt_gen.c: Likewise.
19591         * sunrpc/clnt_perr.c: Likewise.
19592         * sunrpc/clnt_raw.c: Likewise.
19593         * sunrpc/clnt_simp.c: Likewise.
19594         * sunrpc/clnt_tcp.c: Likewise.
19595         * sunrpc/clnt_udp.c: Likewise.
19596         * sunrpc/clnt_unix.c: Likewise.
19597         * sunrpc/des_crypt.c: Likewise.
19598         * sunrpc/des_soft.c: Likewise.
19599         * sunrpc/get_myaddr.c: Likewise.
19600         * sunrpc/getrpcport.c: Likewise.
19601         * sunrpc/key_call.c: Likewise.
19602         * sunrpc/key_prot.c: Likewise.
19603         * sunrpc/openchild.c: Likewise.
19604         * sunrpc/pm_getmaps.c: Likewise.
19605         * sunrpc/pm_getport.c: Likewise.
19606         * sunrpc/pmap_clnt.c: Likewise.
19607         * sunrpc/pmap_prot.c: Likewise.
19608         * sunrpc/pmap_prot2.c: Likewise.
19609         * sunrpc/pmap_rmt.c: Likewise.
19610         * sunrpc/rpc/auth.h: Likewise.
19611         * sunrpc/rpc/auth_unix.h: Likewise.
19612         * sunrpc/rpc/clnt.h: Likewise.
19613         * sunrpc/rpc/des_crypt.h: Likewise.
19614         * sunrpc/rpc/key_prot.h: Likewise.
19615         * sunrpc/rpc/netdb.h: Likewise.
19616         * sunrpc/rpc/pmap_clnt.h: Likewise.
19617         * sunrpc/rpc/pmap_prot.h: Likewise.
19618         * sunrpc/rpc/pmap_rmt.h: Likewise.
19619         * sunrpc/rpc/rpc.h: Likewise.
19620         * sunrpc/rpc/rpc_des.h: Likewise.
19621         * sunrpc/rpc/rpc_msg.h: Likewise.
19622         * sunrpc/rpc/svc.h: Likewise.
19623         * sunrpc/rpc/svc_auth.h: Likewise.
19624         * sunrpc/rpc/types.h: Likewise.
19625         * sunrpc/rpc/xdr.h: Likewise.
19626         * sunrpc/rpc_clntout.c: Likewise.
19627         * sunrpc/rpc_cmsg.c: Likewise.
19628         * sunrpc/rpc_common.c: Likewise.
19629         * sunrpc/rpc_cout.c: Likewise.
19630         * sunrpc/rpc_dtable.c: Likewise.
19631         * sunrpc/rpc_hout.c: Likewise.
19632         * sunrpc/rpc_main.c: Likewise.
19633         * sunrpc/rpc_parse.c: Likewise.
19634         * sunrpc/rpc_parse.h: Likewise.
19635         * sunrpc/rpc_prot.c: Likewise.
19636         * sunrpc/rpc_sample.c: Likewise.
19637         * sunrpc/rpc_scan.c: Likewise.
19638         * sunrpc/rpc_scan.h: Likewise.
19639         * sunrpc/rpc_svcout.c: Likewise.
19640         * sunrpc/rpc_tblout.c: Likewise.
19641         * sunrpc/rpc_util.c: Likewise.
19642         * sunrpc/rpc_util.h: Likewise.
19643         * sunrpc/rpcinfo.c: Likewise.
19644         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19645         * sunrpc/rpcsvc/key_prot.x: Likewise.
19646         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19647         * sunrpc/rpcsvc/mount.x: Likewise.
19648         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19649         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19650         * sunrpc/rpcsvc/rex.x: Likewise.
19651         * sunrpc/rpcsvc/rstat.x: Likewise.
19652         * sunrpc/rpcsvc/rusers.x: Likewise.
19653         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19654         * sunrpc/rpcsvc/spray.x: Likewise.
19655         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19656         * sunrpc/rtime.c: Likewise.
19657         * sunrpc/svc.c: Likewise.
19658         * sunrpc/svc_auth.c: Likewise.
19659         * sunrpc/svc_authux.c: Likewise.
19660         * sunrpc/svc_raw.c: Likewise.
19661         * sunrpc/svc_run.c: Likewise.
19662         * sunrpc/svc_simple.c: Likewise.
19663         * sunrpc/svc_tcp.c: Likewise.
19664         * sunrpc/svc_udp.c: Likewise.
19665         * sunrpc/svc_unix.c: Likewise.
19666         * sunrpc/svcauth_des.c: Likewise.
19667         * sunrpc/xcrypt.c: Likewise.
19668         * sunrpc/xdr.c: Likewise.
19669         * sunrpc/xdr_array.c: Likewise.
19670         * sunrpc/xdr_float.c: Likewise.
19671         * sunrpc/xdr_mem.c: Likewise.
19672         * sunrpc/xdr_rec.c: Likewise.
19673         * sunrpc/xdr_ref.c: Likewise.
19674         * sunrpc/xdr_sizeof.c: Likewise.
19675         * sunrpc/xdr_stdio.c: Likewise.
19676
19677         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19678         handling.
19679
19680 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19681
19682         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19683
19684 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19685
19686         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19687         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19688         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19689         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19690         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19691         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19692         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19693         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19694         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19695         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19696         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19697         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19698         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19699         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19700
19701 2010-07-26  Anton Blanchard  <anton@samba.org>
19702
19703         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19704         * malloc/arena.c (heap_trim): Likewise.
19705
19706 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19707
19708         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19709         here.  Not...
19710         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19711         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19712
19713 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19714
19715         * sysdeps/i386/elf/Makefile: New file.
19716
19717 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19718
19719         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19720         from fanotify_init.
19721         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19722         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19723
19724 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19725
19726         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19727         of strncasecmp_l.
19728         * sysdeps/multiarch/strcmp.S: Likewise.
19729
19730 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19731
19732         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19733         strncase_l-nonascii.
19734         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19735         Add strncase_l-ssse3.
19736         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19737         * sysdeps/x86_64/strcmp.S: Likewise.
19738         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19739         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19740         * sysdeps/x86_64/strncase.S: New file.
19741         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19742         * sysdeps/x86_64/strncase_l.S: New file.
19743         * string/Makefile (strop-tests): Add strncasecmp.
19744         * string/test-strncasecmp.c: New file.
19745
19746         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19747         warning.
19748
19749         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19750         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19751
19752 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19753
19754         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19755
19756 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19757
19758         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19759         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19760         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19761
19762 2010-05-01  Alan Modra  <amodra@gmail.com>
19763
19764         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19765         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19766         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19767         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19768         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19769         tidying.  Don't tail-call __sigjmp_save for static lib.
19770         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19771         save location.
19772         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19773         (CALL_MCOUNT): Add eh info, and nop after bl.
19774         (TAIL_CALL_SYSCALL_ERROR): New macro.
19775         (PSEUDO_RET): Use it.
19776         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19777         Correct save location of integer regs and cr.
19778         (_dl_profile_resolve): Correct cr save location.  Delete nops
19779         after bl when SHARED.  Reduce cfi size a little by better
19780         placement of cfi directives.
19781         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19782         make a stack frame.  Instead use parm save area as a temp.
19783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19784         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19786         Don't make a stack frame for parent, use parm save area.
19787         Increase child stack frame to 112 bytes.  Don't save unused reg,
19788         and adjust reg usage.  Set up cfi on error recovery and
19789         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19791         (__makecontext): Add dummy nop after jump to exit.
19792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19793         Use correct parm save area and cr save, reduce stack frame.
19794         Correct cfi for possible PSEUDO_RET frame setup.
19795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19796         Branch to local label emitted by PSEUDO_RET rather than
19797         __syscall_error.
19798
19799 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19800
19801         [BZ #11904]
19802         * locale/programs/locale.c (print_assignment): New function.
19803         (show_locale_vars): Use it.
19804
19805 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19806
19807         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19808         field.
19809         (struct statfs64): Likewise.
19810         (_STATFS_F_FLAGS): Define.
19811         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19812         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19813         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19814         (ST_VALID): Define locally.
19815         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19816         __statvfs_getflags, use the provided value.
19817         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19818         __ASSUME_STATFS_F_FLAGS.
19819
19820         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19821
19822         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19823         Add sys/fanotify.h.
19824         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19825         fanotify_mask for GLIBC_2.13.
19826         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19827         fanotify_init and fanotify_mark.
19828         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19829         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19830
19831         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19832         Add prlimit.
19833         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19834         prlimit64 for GLIBC_2.13.
19835         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19836         prlimit64.
19837         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19838         syscall.
19839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19840         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19841         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19842         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19843         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19844         add prlimit alias.
19845         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19846
19847         [BZ #11903]
19848         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19849         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19850
19851         * nss/Makefile: Add rules to build and run tst-nss-test1.
19852         * shlib-versions: Add entry for libnss_test1.
19853         * nss/nss_test1.c: New file.
19854         * nss/tst-nss-test1.c: New file.
19855
19856         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19857         (__nss_configure_lookup): Set appropriate entry in
19858         __nss_configure_lookup to true.
19859         * nss/nsswitch.h: Define enum with indeces of databases in
19860         databases and __nss_database_custom arrays.  Declare
19861         __nss_database_custom.
19862         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19863         to avoid using nscd when custom rules are installed.
19864         * nss/getXXbyYY_r.c: Likewise.
19865         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19866
19867         * nss/nss_files/files-parse.c: Whitespace fixes.
19868
19869 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19870
19871         [BZ #11883]
19872         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19873         * posix/fnmatch_loop.c: Likewise.
19874
19875 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19876
19877         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19878         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19879         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19880         * Versions.def [GLIBC_2.13]: Add.
19881
19882 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19883
19884         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19885         Also fail if tpwd after pwuid call is NULL.
19886
19887 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19888
19889         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19890         when converting to ms.
19891
19892 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19893
19894         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19895         EOPNOTSUPP errors with ENOTTY.
19896         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19897         EOPNOTSUPP errors with ENOTTY.
19898
19899 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19900
19901         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19902         Add strcasecmp_l-ssse3.
19903         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19904         strcasecmp.
19905         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19906         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19907         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19908
19909 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19910
19911         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19912
19913         * string/Makefile (strop-tests): Add strcasecmp.
19914         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19915         strcasecmp_l-nonascii.
19916         (gen-as-const-headers): Add locale-defines.sym.
19917         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19918         * sysdeps/x86_64/strcasecmp.S: New file.
19919         * sysdeps/x86_64/strcasecmp_l.S: New file.
19920         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19921         * sysdeps/x86_64/locale-defines.sym: New file.
19922         * string/test-strcasecmp.c: New file.
19923
19924         * string/test-strcasestr.c: Test both ends of the range of characters.
19925         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19926
19927 2010-07-29  Roland McGrath  <roland@redhat.com>
19928
19929         [BZ #11856]
19930         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19931
19932 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19933
19934         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19935         for ld.so.
19936
19937 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19938
19939         * manual/memory.texi (Malloc Tunable Parameters): Document
19940         M_PERTURB.
19941
19942 2010-07-26  Roland McGrath  <roland@redhat.com>
19943
19944         [BZ #11840]
19945         * configure.in (-fgnu89-inline check): Set and substitute
19946         gnu89_inline, not libc_cv_gnu89_inline.
19947         * configure: Regenerated.
19948         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19949
19950 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19951
19952         * string/test-strnlen.c: New file.
19953         * string/Makefile (strop-tests): Add strnlen.
19954         * string/tester.c (test_strnlen): Add a few more test cases.
19955         * string/tst-strlen.c: Better error reporting.
19956
19957         * sysdeps/x86_64/strnlen.S: New file.
19958
19959 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19960
19961         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19962         lower-latency instructions.
19963
19964 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19965
19966         * string/test-strcasestr.c: New file.
19967         * string/test-strstr.c: New file.
19968         * string/Makefile (strop-tests): Add strstr and strcasestr.
19969         * string/str-two-way.h: Don't undefine MAX.
19970         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19971
19972 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19973
19974         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19975         strcasestr-nonascii.
19976         (CFLAGS-strcasestr-nonascii.c): Define.
19977         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19978         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19979         Remove unused attribute.
19980
19981 2010-07-20  Roland McGrath  <roland@redhat.com>
19982
19983         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19984         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19985         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19986         like LD_HWCAP_MASK can disable hwcaps.
19987
19988 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19989
19990         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19991
19992 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19993
19994         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19995         call in strcasestr.
19996         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19997         __strcasestr_sse42_nonascii.
19998         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19999         strcasestr-nonascii.c.
20000         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20001
20002 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20003
20004         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20005         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20006         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20007         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20008
20009 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20010
20011         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20012         fcntl.
20013
20014 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20015
20016         [BZ #11577]
20017         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20018         dl_signal_cerror.
20019
20020 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20021
20022         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20023         _PC_PIPE_BUF using F_GETPIPE_SZ.
20024
20025 2010-07-05  Roland McGrath  <roland@redhat.com>
20026
20027         * manual/arith.texi (Rounding Functions): Fix rint description
20028         implicit in round description.
20029
20030 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20031
20032         * elf/Makefile: Fix linking for a few tests to make recent linker
20033         happy.
20034
20035 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20036
20037         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20038         $(common-objpfx)libc_nonshared.a.
20039
20040 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20041
20042         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20043         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20044         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20045         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20046         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20047         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20048         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20049         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20064         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20065         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20066         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20067         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20068         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20069         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20070         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20071         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20072         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20073         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20074         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20075         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20090
20091 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20092
20093         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20094         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20095         * string/memmove.c (memmove): Renamed to ...
20096         (MEMMOVE): ...this.  Default to memmove.
20097         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20098         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20099         (END_CHK): Define.
20100         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20101         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20102         mempcpy-ssse3-back memmove-ssse3-back.
20103         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20104         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20105         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20106         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20107         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20108         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20109         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20110         * sysdeps/x86_64/multiarch/memmove.c: New file.
20111         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20112         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20113         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20114         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20115         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20116         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20117         Define.
20118         (index_Fast_Copy_Backward): Define.
20119         (HAS_ARCH_FEATURE): Define.
20120         (HAS_FAST_REP_STRING): Define.
20121         (HAS_FAST_COPY_BACKWARD): Define.
20122
20123 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20124
20125         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20126         Restore proper fallback handling.
20127
20128 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20129
20130         [BZ #11701]
20131         * posix/group_member.c (__group_member): Correct checking loop.
20132
20133         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20134         OOM in getpwuid_r correctly.  Return error number when the caller
20135         should return, otherwise -1.
20136         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20137         call returning > 0 value.
20138         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20139
20140 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20141
20142         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20143         libc_nonshared.a from targets in modules-names.
20144
20145 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20146
20147         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20148         requires it.
20149
20150 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20151
20152         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20153         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20154         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20155         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20156
20157 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20158
20159         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20160
20161 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20162
20163         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20164         and F_GETPIPE_SZ.
20165         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20166         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20167         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20168         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20169         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20170         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20171
20172 2010-06-14  Roland McGrath  <roland@redhat.com>
20173
20174         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20175
20176 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20177
20178         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20179         __REDIRECT followed by __THROW.
20180         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20181         * posix/getopt.h (getopt): Likewise.
20182
20183 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20184
20185         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20186         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20187         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20188         in AT_FLAGS.
20189         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20190         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20191
20192 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20193
20194         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20195
20196 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20197
20198         [BZ #11640]
20199         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20200         Properly check family and model.
20201
20202 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20203
20204         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20205
20206 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20207
20208         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20209
20210 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20211
20212         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20213         symbol reference.
20214
20215 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20216
20217         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20218         symbol reference.
20219
20220 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20221
20222         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20223         and internal_recvmmsg.
20224         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20225         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20226         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20227         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20228
20229         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20230         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20231         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20232
20233 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20234
20235         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20236
20237 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20238
20239         POWER7 optimizations.
20240         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20241         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20242
20243 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20244
20245         * version.h: Update for 2.13 development version.
20246
20247 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20248
20249         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20250         exceptions.  Return 0.
20251
20252 2010-05-07  Roland McGrath  <roland@redhat.com>
20253
20254         * elf/ldconfig.c (main): Add a const.
20255
20256 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20257
20258         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20259         (args_options): Add no-idn option.
20260         (ahosts_keys_int): Add idn_flags to ai_flags.
20261         (parse_option): Handle 'i' option to clear idn_flags.
20262
20263         * malloc/malloc.c (_int_free): Possible race in the most recently
20264         added check.  Only act on the data if no current modification
20265         happened.
20266
20267 See ChangeLog.17 for earlier changes.