Avoid PLT references from __get_clockfreq on powerpc
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2
3         * include/string.h (memmem): Declare libc hidden alias.
4         * string/memmem.c (memmem): Define libc hidden alias.
5         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
6         __read, __close instead of open, read, close.
7
8 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
9
10         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
11         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
12         global and hidden.
13         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
14         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
15         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
16         Likewise.
17         (__rawmemchr_sse2): Likewise.
18         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
19         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
20         (__strchr_sse2): Likewise.
21         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
22         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
23         (__strcasecmp_sse2): Likewise.
24         (__strncasecmp_sse2): Likewise.
25         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
27         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
28         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
29         (__strrchr_sse2): Likewise.
30         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
31         ifunc-impl-list.c.
32         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
33         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
34         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
35         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
36         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
37         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
38         * sysdeps/x86_64/multiarch/memset.S: Likewise.
39         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
40         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
41         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
42         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
43         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
44         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
45         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
46         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
47         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
48         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
49         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
50         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
51         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
52         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
53         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
54         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
55         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
58         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
59         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
60         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
61         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
62
63         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
64         global and hidden.
65         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
66         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
67         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
68         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
69         Likewise.
70         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
71         Likewise.
72         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
73         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
74         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
75         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
76         ifunc-impl-list.c.
77         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
78         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
79         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
80         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
81         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
82         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
83         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
84         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
85         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
86         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
87         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
88         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
89         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
90         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
91         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
92         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
93         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
94         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
95         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
96         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
97         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
98         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
99         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
100         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
101         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
102         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
103         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
104         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
105         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
106         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
107         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
108         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
109         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
110         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
111         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
112         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
113         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
114         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
115         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
116         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
117         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
118
119         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
120         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
121         * include/ifunc-impl-list.h: New file.
122         * misc/ifunc-impl-list.c: Likewise.
123         * misc/Makefile (routines): Add ifunc-impl-list.
124         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
125         * string/test-string.h: Include <ifunc-impl-list.h>.
126         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
127         impl_array): New variables.
128         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
129         are defined.
130         (test_init): Call __libc_ifunc_impl_list to initialize
131         func_list if TEST_IFUNC and TEST_NAME are defined.
132
133         * string/Makefile (strop-tests): Add bcopy and bzero.
134         * string/test-bcopy.c: New file.
135         * string/test-bzero.c: Likewise.
136         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
137         defined.
138         * string/test-memset.c: Support bzero test if TEST_BZERO is
139         defined.
140         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
141         __libc_memmove.
142         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
143         __libc_memset.
144         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
145         of memset.
146
147 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
148
149         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
150         * configure: Regenerated.
151
152         * Makeconfig (+link-static-before-libc): Don't include
153         $(link-static-libc).
154
155         * libio/libio.h (_IO_pos_t): Remove.
156
157 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
158
159         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
160         McGrath.
161
162 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
163
164         * crypt/crypt-entry.c: Include fips-private.h.
165         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
166         * crypt/md5c-test.c (main): Tolerate disabled MD5.
167         * sysdeps/unix/sysv/linux/fips-private.h: New file.
168         * sysdeps/generic/fips-private.h: New file, dummy fallback.
169
170 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
171
172         * crypt/crypt-private.h: Include stdbool.h.
173         (_ufc_setup_salt_r): Return bool.
174         * crypt/crypt-entry.c: Include errno.h.
175         (__crypt_r): Return NULL with EINVAL for bad salt.
176         * crypt/crypt_util.c (bad_for_salt): New.
177         (_ufc_setup_salt_r): Check that salt is long enough and within
178         the specified alphabet.
179         * crypt/badsalttest.c: New file.
180         * crypt/Makefile (tests): Add it.
181         ($(objpfx)badsalttest): New.
182
183 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
184
185         * NEWS: Add entry for BZ #14602.
186
187 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
188
189         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
190         type-generic.
191         * math/libm-test.inc: Update comment listing what functions and
192         macros are tested.
193         (isgreater_test): New function.
194         (isgreaterequal_test): Likewise.
195         (isless_test): Likewise.
196         (islessequal_test): Likewise.
197         (islessgreater_test): Likewise.
198         (isunordered_test): Likewise.
199         (main): Call the new functions.
200
201 2012-10-09  Roland McGrath  <roland@hack.frob.com>
202
203         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
204         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
205         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
206         * sysdeps/i386/configure: Regenerated.
207         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
208         * sysdeps/mach/configure: Regenerated.
209         * sysdeps/mach/hurd/configure: Regenerated.
210         * sysdeps/powerpc/configure: Regenerated.
211         * sysdeps/powerpc/powerpc32/configure: Regenerated.
212         * sysdeps/powerpc/powerpc64/configure: Regenerated.
213         * sysdeps/s390/s390-32/configure: Regenerated.
214         * sysdeps/s390/s390-64/configure: Regenerated.
215         * sysdeps/sh/configure: Regenerated.
216         * sysdeps/sparc/configure: Regenerated.
217         * sysdeps/unix/sysv/linux/configure: Regenerated.
218         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
219         * sysdeps/x86_64/configure: Regenerated.
220
221         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
222         defined.  Don't check if MAP is NULL.
223
224 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
225
226         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
227         (_G_stat64): Likewise.
228         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
229         (_G_stat64): Likewise.
230         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
231         instead of struct _G_stat64.
232         * libio/fileops.c (mmap_remap_check): Likewise.
233         (decide_maybe_mmap): Likewise.
234         (_IO_new_file_seekoff): Likewise.
235         (_IO_file_stat): Likewise.
236         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
237         _G_off64_t.
238         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
239         instead of struct _G_stat64.
240         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
241
242 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
243
244         [BZ #14602]
245         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
246         Replace with ...
247         (CHECK_EOL): New macro.
248         (two_way_short_needle): Check beginning of haystack for EOL.  Use
249         CHECK_EOL.
250         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
251         Replace with CHECK_EOL.
252         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
253         Replace with CHECK_EOL.
254
255 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
256
257         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
258         type-generic.
259         * math/libm-test.inc: Update comment listing what functions and
260         macros are tested.
261         (finite_test): New function.
262         (isinf_test): Likewise.
263         (isnan_test): Likewise.
264         (fpclassify_test): Test subnormal input.
265         (isfinite_test): Likewise.
266         (isnormal_test): Likewise.
267         (main): Call the new functions.
268
269 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
270
271         [BZ #14660]
272         * Makerules (%.dynsym): Force C locale when running
273         $(OBJDUMP) --dynamic-syms.
274
275 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
276
277         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
278         <stdint.h>.
279
280 2012-10-06  David S. Miller  <davem@davemloft.net>
281
282         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
283         upper 32-bits of the length value in %o2 since we use branch-on-register
284         tests which consider the entire 64-bit register.
285
286 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
287
288         * string/test-strstr.c (check2): Add a test for page boundary.
289
290 2012-10-05  David S. Miller  <davem@davemloft.net>
291
292         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
293         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
294         file.
295         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
296         sysdep_routines.
297         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
298         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
299         and bzero when HWCAP_SPARC_CRYPTO is present.
300
301 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
302
303         [BZ #14602]
304         * string/test-strstr.c (check2): New function.
305         (test_main): Call check2.
306
307         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
308         and bug-strchr1.
309         * string/bug-strcasestr1.c (do_test): Moved to ...
310         * string/test-strcasestr.c (check1): Here.  New function.
311         (do_one_test): Break out result checking code into ...
312         (check_result): This.  New function.
313         (do_one_test): Call check_result.
314         (test_main): Call check1.
315         * string/bug-strchr1.c (do_test): Moved to ...
316         * string/test-strchr.c (check1): Here.  New function.
317         (do_one_test): Break out result checking code into ...
318         (check_result): This.  New function.
319         (do_one_test): Call check_result.
320         (test_main): Call check1.
321         * string/bug-strstr1.c (main): Moved to ...
322         * string/test-strchr.c (check1): Here.  New function.
323         (do_one_test): Break out result checking code into ...
324         (check_result): This.  New function.
325         (do_one_test): Call check_result.
326         (test_main): Call check1.
327         * string/bug-strcasestr1.c: Removed.
328         * string/bug-strchr1.c: Likewise.
329         * string/bug-strstr1.c: Likewise.
330
331         * elf/Makefile (dl-routines): Add hwcaps.
332         * elf/dl-support.c (_dl_important_hwcaps): Removed.
333         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
334         (_dl_important_hwcaps): Moved to ...
335         * elf/dl-hwcaps.c: Here.  New file.
336         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
337
338         [BZ #14557]
339         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
340         if IS_IN_rtld isn't defined.
341
342         * elf/dl-support.c (_dl_sysinfo_map): New.
343         Include "get-dynamic-info.h" and "setup-vdso.h".
344         (_dl_non_dynamic_init): Call setup_vdso.
345         * elf/dynamic-link.h: Don't include <assert.h>.
346         (elf_get_dynamic_info): Moved to ...
347         * elf/get-dynamic-info.h: Here.  New file.
348         * elf/dynamic-link.h: Include "get-dynamic-info.h".
349         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
350         * elf/setup-vdso.h: Here.  New file.
351         * elf/rtld.c: Include "setup-vdso.h".
352         (dl_main): Call setup_vdso.
353
354 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
355
356         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
357         creal in comment listing functions tested.  List finite, isinf,
358         isnan, isless, islessequal, isgreater, isgreaterequal,
359         islessgreater, isunordered, lgamma_r and pow10 as functions and
360         macros not tested.  Mention which functions not tested are aliases
361         for other functions.  Fix typo.  Note that signs of NaNs are not
362         tested.
363
364         * scripts/config.guess: Update from config.git.
365         * scripts/config.sub: Likewise.
366
367 2012-10-04  Roland McGrath  <roland@hack.frob.com>
368
369         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
370         * misc/madvise.c (madvise): Renamed to __madvise.
371         Make madvise a weak alias.
372         * include/sys/mman.h: Declare __madvise.
373         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
374         * sysdeps/unix/syscalls.list
375         (madvise): Make __madvise the strong name, and madvise a weak alias.
376         * sysdeps/unix/sysv/linux/syscalls.list
377         (madvise, mmap): Remove redundant entries.
378         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
379         * malloc/malloc.c (mtrim): Likewise.
380         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
381
382 2012-10-03  Roland McGrath  <roland@hack.frob.com>
383
384         * sysdeps/mach/hurd/dl-cache.c: File removed.
385         * config.h.in (USE_LDCONFIG): New #undef.
386         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
387         * configure: Regenerated.
388         * elf/Makefile (dl-routines): Add dl-cache only under
389         [$(use-ldconfig) = yes].
390         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
391         cache on [USE_LDCONFIG].
392         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
393         [USE_LDCONFIG].
394         * elf/rtld.c (dl_main): Likewise.
395
396 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
397
398         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
399         _SC_LEVEL4_CACHE_LINESIZE.
400
401 2012-10-03  Roland McGrath  <roland@hack.frob.com>
402
403         * sysdeps/unix/bsd/confstr.h: File removed.
404
405 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
406
407         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
408         sys/sdt-config.h.
409
410 2012-10-02  Roland McGrath  <roland@hack.frob.com>
411
412         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
413         Make 'mapoff' field ElfW(Off) rather than off_t.
414
415 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
416
417         * nscd/Makefile: Remove nscd-cflags and all its users.
418         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
419         (CFLAGS-nonlib): Add compiler flags for nscd modules.
420
421         [BZ #10631]
422         * malloc.c (malloc_printerr): Clarify error message.
423
424 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
425
426         [BZ #14648]
427         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
428         Set bit_FMA_Usable if FMA is supported.
429         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
430         macro.
431         (bit_FMA4_Usable): Updated.
432         (index_FMA_Usable): New macro.
433         (CPUID_FMA): Likewise
434         (HAS_FMA): Defined with bit_FMA_Usable.
435
436 2012-10-01  Roland McGrath  <roland@hack.frob.com>
437
438         * bits/types.h (__swblk_t): Type removed.
439         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
440         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
441         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
442         (__SWBLK_T_TYPE): Likewise.
443         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
444         (__SWBLK_T_TYPE): Likewise.
445         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
446         (__SWBLK_T_TYPE): Likewise.
447         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
448         (__SWBLK_T_TYPE): Likewise.
449
450 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
451             Honza Horak <hhorak@redhat.com>
452
453         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
454         (xdr_mapname): Use YPMAXMAP as maxsize.
455         (xdr_peername): Use YPMAXPEER as maxsize.
456         (xdr_keydat): Use YPAXRECORD as maxsize.
457         (xdr_valdat): Use YPMAXRECORD as maxsize.
458
459 2012-10-01  Roland McGrath  <roland@hack.frob.com>
460
461         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
462
463         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
464         * csu/init-first.c: ... here.
465         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
466         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
467         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
468         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
469         * sysdeps/i386/init-first.c: File removed.
470         * sysdeps/sh/init-first.c: File removed.
471
472 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
473
474         [BZ #14645]
475         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
476         if x * y might underflow to zero and z is zero.
477         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
478         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
479         * math/libm-test.inc (min_subnorm_value): New variable.
480         (fma_test): Add more tests.
481         (fma_test_towardzero): Likewise.
482         (fma_test_downward): Likewise
483         (fma_test_upward): Likewise.
484         (initialize): Set min_subnorm_value.
485
486 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
487
488         [BZ #14638]
489         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
490         0 + 0.
491         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
492         mode for addition resulting in exact zero.
493         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
494         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
495         exact 0 + 0.
496         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
497         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
498         * math/libm-test.inc (fma_test): Add more tests.
499         (fma_test_towardzero): New function.
500         (fma_test_downward): Likewise.
501         (fma_test_upward): Likewise.
502         (main): Call the new functions.
503
504 2012-09-28  David S. Miller  <davem@davemloft.net>
505
506         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
507
508 2012-09-28  Roland McGrath  <roland@hack.frob.com>
509
510         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
511         instead of SIGALRM.
512
513         * sysdeps/gnu/_G_config.h: Moved to ...
514         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
515         * sysdeps/mach/hurd/_G_config.h: Moved to ...
516         * sysdeps/generic/_G_config.h: ... here.
517
518         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
519
520         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
521
522         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
523         Conditionalize target on [libnss_test1.so-version].
524
525         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
526
527         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
528         (elfobjdir): Move out of conditionals.
529
530         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
531         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
532         (__nss_lookup_function): Conditionalize label remove_from_tree on
533         [!DO_STATIC_NSS || SHARED], matching its only use.
534
535 2012-09-28  David S. Miller  <davem@davemloft.net>
536
537         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
538         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
539         file.
540         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
541         sysdep_routines.
542         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
543         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
544         when HWCAP_SPARC_CRYPTO is present.
545
546 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
547
548         * io/tst-mknodat.c: Create a FIFO instead of a socket.
549
550 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
551
552         [BZ #6530]
553         * stdio-common/vfprintf.c (process_string_arg): Revert
554         2000-07-22 change.
555
556 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
557
558         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
559         for testcase.
560         * stdio-common/tst-sprintf.c: Include <locale.h>
561         (main): Test sprintf's handling of incomplete multibyte
562         characters.
563
564 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
565
566         * elf/dl-runtime.c (VERSYMIDX): Removed.
567         * elf/dl-version.c (VERSYMIDX): Likewise.
568         * elf/do-rel.h (VERSYMIDX): Likewise.
569         (VALIDX): Likewise.
570         * elf/dynamic-link.h (VERSYMIDX): Likewise.
571         * elf/rtld.c (VALIDX): Likewise.
572         (ADDRIDX): Likewise.
573         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
574         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
575         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
576         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
577         (VALIDX): Likewise.
578         (ADDRIDX): Likewise.
579
580 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
581
582         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
583
584 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
585
586         [BZ #11438]
587         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
588         to global scope.
589         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
590         addresses are in the same scope as 192.0.2/24.
591         * posix/gai.conf: Document new scope table defaults.
592
593 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
594
595         [BZ #5298]
596         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
597         for ftell.  Compute offsets from write pointers instead.
598         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
599
600 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
601
602         [BZ #14543]
603         * libio/Makefile (tests): New test case tst-fseek.
604         * libio/tst-fseek.c: New test case to verify that fseek/ftell
605         combination works in wide mode.
606         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
607         state when the external buffer state changes.
608
609 2012-09-27  David S. Miller  <davem@davemloft.net>
610
611         [BZ #14376]
612         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
613         pass reloc->r_addend in as the 'high' argument to
614         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
615
616         * sysdeps/sparc/fpu/libm-test-ulps: Update.
617
618 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
619
620         * rt/tst-aio2.c: Include <pthread.h>.
621         * rt/tst-aio3.c: Likewise.
622
623 2012-09-27  Steve Ellcey  <sellcey@mips.com>
624
625         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
626
627 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
628
629         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
630         contents on [SHARED].
631
632 2012-09-26  Marek Polacek  <polacek@redhat.com>
633
634         [BZ #14530]
635         [BZ #13741]
636         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
637         for C++ and GCC <4.3 as well as for non GCC compilers.
638
639 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
640
641         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
642
643 2012-09-25  Roland McGrath  <roland@hack.frob.com>
644
645         * Makefile.in (all, install): Declare with .PHONY.
646         Reported by Michael Hope <michael.hope@linaro.org>.
647
648 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
649
650         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
651         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
652         system header.
653         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
654         Likewise.
655         (sydep_routines): Add the new and the internal functions.
656         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
657         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
659         (GLIBC_2.17): Add the new function.
660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
661         (GLIBC_2.17): Likewise.
662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
663         (GLIBC_2.17): Likewise.
664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
665         (GLIBC_2.17): Likewise.
666         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
667
668 2012-09-25  Alan Modra  <amodra@gmail.com>
669
670         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
671         Add release barrier before setting once_control to say
672         initialisation is done.  Add hints on lwarx.  Use macro in
673         place of isync.
674         (clear_once_control): Add release barrier.
675
676 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
677
678         [BZ #13629]
679         * math/s_clog.c (__clog): Handle more values close to |z| = 1
680         specially.
681         * math/s_clog10.c (__clog10): Likewise.
682         * math/s_clog10f.c (__clog10f): Likewise.
683         * math/s_clog10l.c (__clog10l): Likewise.
684         * math/s_clogf.c (__clogf): Likewise.
685         * math/s_clogl.c (__clogl): Likewise.
686         * math/Makefile (libm-calls): Add x2y2m1.
687         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
688         (__x2y2m1): Likewise.
689         (__x2y2m1l): Likewise.
690         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
691         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
692         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
693         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
694         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
695         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
696         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
697         * sysdeps/i386/fpu/libm-test-ulps: Update.
698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
699
700         [BZ #14621]
701         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
702         int as type of variable DEPTH.
703         (glob): Use size_t instead of int as type of variables NEWCOUNT
704         and OLD_PATHC.
705
706 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
707
708         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
709         Add s_sincosf-sse2.
710         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
711         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
712         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
713         macros for using routine as __sincosf_ia32.
714         Use macro for function declaration and weak_alias.
715         * sysdeps/i386/fpu/libm-test-ulps: Update.
716
717         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
718         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
719
720         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
721         subnormal argument.
722         * math/s_cexpf.c (__cexpf): Likewise.
723         * math/s_csinf.c (__csinf): Likewise.
724         * math/s_csinhf.c (__csinhf): Likewise.
725         * math/s_ctanf.c (__ctanf): Likewise.
726         * math/s_ctanhf.c (__ctanhf): Likewise.
727         * math/s_ccosh.c (__ccoshf): Likewise.
728         * math/s_cexp.c (__cexpl): Likewise.
729         * math/s_csin.c (__csin): Likewise.
730         * math/s_csinh.c (__csinh): Likewise.
731         * math/s_ctan.c (__ctan): Likewise.
732         * math/s_ctanh.c (ctanh): Likewise.
733         * math/s_ccoshl.c (__ccoshl): Likewise.
734         * math/s_cexpl.c (__cexpl): Likewise.
735         * math/s_csinl.c (__csinl): Likewise.
736         * math/s_csinhl.c (__csinhl): Likewise.
737         * math/s_ctanl.c (__ctanl): Likewise.
738         * math/s_ctanhl.c (__ctanhl): Likewise.
739
740 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
741
742         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
743         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
744         (_IO_off_t): Define to __off_t, not _G_off_t.
745         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
746         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
747         (_IO_wint_t): Define to wint_t, not _G_wint_t.
748         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
749         type of __dummy and __dummy2 fields.
750         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
751         (_G_ssize_t): Likewise.
752         (_G_off_t): Likewise.
753         (_G_pid_t): Likewise.
754         (_G_uid_t): Likewise.
755         (_G_wchar_t): Likewise.
756         (_G_wint_t): Likewise.
757         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
758         (_G_ssize_t): Likewise.
759         (_G_off_t): Likewise.
760         (_G_pid_t): Likewise.
761         (_G_uid_t): Likewise.
762         (_G_wchar_t): Likewise.
763         (_G_wint_t): Likewise.
764         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
765         (_G_ssize_t): Likewise.
766         (_G_off_t): Likewise.
767         (_G_pid_t): Likewise.
768         (_G_uid_t): Likewise.
769         (_G_wchar_t): Likewise.
770         (_G_wint_t): Likewise.
771
772 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
773
774         * malloc/arena.c: Include malloc-sysdep.h.
775         (shrink_heap): Use check_may_shrink_heap to decide if madvise
776         is sufficient to shrink the heap or an unmap is needed.
777         * sysdeps/generic/malloc-sysdep.h: New file.  Define
778         new function check_may_shrink_heap.
779         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
780         new function check_may_shrink_heap.
781
782 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
783
784         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
785         comments.
786
787 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
788
789         * catgets/test-gencat.sh: Add "set -e".
790         * elf/tst-pathopt.sh: Likewise.
791         * grp/tst_fgetgrent.sh: Likewise.
792         * iconvdata/run-iconv-test.sh: Likewise.
793         * intl/tst-gettext.sh: Likewise.
794         * intl/tst-gettext2.sh: Likewise.
795         * intl/tst-gettext4.sh: Likewise.
796         * intl/tst-gettext6.sh: Likewise.
797         * intl/tst-translit.sh: Likewise.
798         * io/ftwtest-sh: Likewise.
799         * libio/test-freopen.sh: Likewise.
800         * malloc/tst-mtrace.sh: Likewise.
801         * posix/globtest.sh: Likewise.
802         * posix/tst-getconf.sh: Likewise.
803         * posix/wordexp-tst.sh: Likewise.
804         * stdio-common/tst-printf.sh: Likewise.
805         * stdio-common/tst-unbputc.sh: Likewise.
806         * stdlib/tst-fmtmsg.sh: Likewise.
807         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
808         * catgets/Makefile: Do not specify -e option when running
809         testsuite shell scripts.
810         * elf/Makefile: Likewise.
811         * grp/Makefile: Likewise.
812         * iconvdata/Makefile: Likewise.
813         * intl/Makefile: Likewise.
814         * io/Makefile: Likewise.
815         * libio/Makefile: Likewise.
816         * malloc/Makefile: Likewise.
817         * posix/Makefile: Likewise.
818         * stdio-common/Makefile: Likewise.
819         * stdlib/Makefile: Likewise.
820         * sysdeps/x86_64/Makefile: Likewise.
821
822         * io/ftwtest-sh: Add copyright header.
823         * posix/globtest.sh: Likewise.
824         * posix/tst-getconf.sh: Likewise.
825         * posix/wordexp-tst.sh: Likewise.
826         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
827
828 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
829
830         [BZ #13679]
831         * Makeconfig (+link): Defined as $(+link-static) if
832         $(build-shared) isn't yes.
833         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
834         isn't yes.
835         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
836
837         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
838
839         [BZ #14562]
840         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
841         new chunk size with MALLOC_ALIGN_MASK.
842
843 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
844
845         [BZ #5044]
846         * stdio-common/printf_fphex.c: Include <stdbool.h> and
847         <rounding-mode.h>.
848         (__printf_fphex): Determine rounding using get_rounding_mode and
849         round_away.
850         * stdio-common/tst-printf-round.c (struct hex_test): New
851         structure.
852         (hex_tests): New variable.
853         (test_hex_in_one_mode): New function.
854         (do_test): Also run tests for hex float output.
855
856 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
857
858         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
859         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
860         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
861         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
862         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
863         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
864         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
865         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
866
867 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
868
869         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
870         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
871         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
872         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
873
874 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
875
876         [BZ #14579]
877         * elf/rtld.c (dl_main): Limit the check for self loading to normal
878         mode only.
879         * elf/tst-rtld-load-self.sh: New test.
880         * elf/Makefile: Run it.
881
882 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
883
884         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
885         (tst-writev-ENV): Remove.
886         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
887
888 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
889
890         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
891
892 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
893
894         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
895         unconditional.
896         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
897         Likewise.
898         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
899         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
900         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
901         Likewise.
902
903 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
904
905         [BZ #14587]
906         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
907         * config.make.in (have-cpp-asm-debuginfo): Removed.
908         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
909         * configure: Regenerated.
910
911 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
912
913         [BZ #5044]
914         * stdio-common/printf_fp.c: Include <stdbool.h> and
915         <rounding-mode.h>.
916         (___printf_fp): Determine rounding using get_rounding_mode and
917         round_away.
918         * stdio-common/tst-printf-round.c: New file.
919         * stdio-common/Makefile (tests): Add tst-printf-round.
920         (link-libm): New variable.
921         ($(objpfx)tst-printf-round): Depend in $(link-libm).
922
923 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
924
925         [BZ #14576]
926         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
927         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
928         Likewise.
929         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
930         Likewise.
931
932 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
933
934         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
935         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
936         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
937         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
938
939 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
940
941         [BZ #14518]
942         * include/rounding-mode.h: New file.
943         * sysdeps/generic/get-rounding-mode.h: Likewise.
944         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
945         * stdlib/strtod_l.c: Include <rounding-mode.h>.
946         (MAX_VALUE): New macro.
947         (MIN_VALUE): Likewise.
948         (overflow_value): New function.
949         (underflow_value): Likewise.
950         (round_and_return): Use overflow_value and underflow_value to
951         determine return values in overflow and underflow cases.  Use
952         round_away to determine rounding depending on rounding mode.
953         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
954         determine return values in overflow and underflow cases.
955         * stdlib/tst-strtod-round.c: Include <fenv.h>.
956         (struct test_results): New structure.
957         (struct test): Use struct test_results to store expected results
958         for all rounding modes.
959         (TEST): Include expected results for all rounding modes.
960         (test_in_one_mode): New function.
961         (do_test): Use test_in_one_mode to compute and check results.
962         Check results for all rounding modes.
963         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
964         $(link-libm).
965
966 2012-12-09  Allan McRae  <allan@archlinux.org>
967
968         * sysdeps/i386/fpu/libm-test-ulps: Update
969
970 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
971
972         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
973         (_G_int32_t): Likewise.
974         (_G_uint16_t): Likewise.
975         (_G_uint32_t): Likewise.
976         (_G_HAVE_BOOL): Likewise.
977         (_G_HAVE_ATEXIT): Likewise.
978         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
979         (_G_HAVE_IO_FILE_OPEN): Likewise.
980         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
981         (_G_int32_t): Likewise.
982         (_G_uint16_t): Likewise.
983         (_G_uint32_t): Likewise.
984         (_G_HAVE_BOOL): Likewise.
985         (_G_HAVE_ATEXIT): Likewise.
986         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
987         (_G_HAVE_IO_FILE_OPEN): Likewise.
988         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
989         (_G_int32_t): Likewise.
990         (_G_uint16_t): Likewise.
991         (_G_uint32_t): Likewise.
992         (_G_HAVE_BOOL): Likewise.
993         (_G_HAVE_ATEXIT): Likewise.
994         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
995         (_G_HAVE_IO_FILE_OPEN): Likewise.
996
997 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
998
999         * csu/libc-tls.c: Update copyright years.
1000
1001 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1002
1003         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1004         [!_G_USING_THUNKS]: Remove conditional code.
1005         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1006         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1007
1008         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1009         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1010         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1011         (_G_VTABLE_LABEL_PREFIX): Likewise.
1012         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1013         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1014         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1015         (_G_VTABLE_LABEL_PREFIX): Likewise.
1016         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1017         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1018         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1019         (_G_VTABLE_LABEL_PREFIX): Likewise.
1020         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1021
1022 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1023
1024         * libio/Makefile: Include ../Makeconfig before tests.
1025         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1026         only if $(build-shared) is yes.
1027
1028         * iconv/gconv_db.c: Update copyright years.
1029
1030 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1031
1032         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1033         unwind info if defined PIC. Fix special cases description.
1034         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1035
1036         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1037         DP_HI_MASK entry.
1038         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1039
1040 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1043
1044         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1045         is NULL.
1046
1047         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1048         (LDLIBS-tst-chk4): This.
1049         (LDFLAGS-tst-chk5): Renamed to ...
1050         (LDLIBS-tst-chk5): This.
1051         (LDFLAGS-tst-chk6): Renamed to ...
1052         (LDLIBS-tst-chk6): This.
1053         (LDFLAGS-tst-lfschk4): Renamed to ...
1054         (LDLIBS-tst-lfschk4): This.
1055         (LDFLAGS-tst-lfschk5): Renamed to ...
1056         (LDLIBS-tst-lfschk5): This.
1057         (LDFLAGS-tst-lfschk6): Renamed to ...
1058         (LDLIBS-tst-lfschk6): This.
1059
1060         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1061         on $(common-objpfx)soversions.mk.
1062
1063 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1064
1065         [BZ #10014]
1066         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1067         example host name.
1068
1069 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1070
1071         * malloc/arena.c (arena_get_retry): New function that gets
1072         another arena for the caller to try its request on.
1073         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1074         current arena cannot fulfill the request.
1075         (__libc_memalign): Likewise.
1076         (__libc_memalign): Likewise.
1077         (__libc_pvalloc): Likewise.
1078         (__libc_calloc): Likewise.
1079
1080 2012-09-05  John Tobey  <john.tobey@gmail.com>
1081
1082         [BZ #13542]
1083         * manual/arith.texi (Operations on Complex): Fix description
1084         of carg branch cut.
1085
1086 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1087
1088         [BZ #10014]
1089         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1090         host name.
1091
1092         [BZ #10038]
1093         * manual/memory.texi (Memory): Make order of menu items match
1094         order of sections.
1095
1096 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1097
1098         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1099         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1100         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1101
1102 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1103
1104         * csu/libc-tls.c (static_dtv): Renamed to ...
1105         (_dl_static_dtv): This.  Make it global.
1106         (_dl_initial_dtv): Removed.
1107         (__libc_setup_tls): Updated.
1108         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1109         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1110         DL_INITIAL_DTV.
1111
1112 2012-09-06  Petr Machata  <pmachata@redhat.com>
1113
1114         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1115         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1116         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1117         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1118
1119 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1120
1121         [BZ #14545]
1122         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1123         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1124         freeing dtv[-1].
1125
1126 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1127
1128         [BZ #14544]
1129         * Makeconfig (link-static-before-libc): Replace $(+prector)
1130         with $(+prectorT).
1131         (link-static-after-libc): Replace $(+postctor) with
1132         $(+postctorT).
1133         (link-bounded): Replace $(+prector)/$(+postctor) with
1134         $(+prectorT)/$(+postctorT).
1135         (+prectorT): New macro.
1136         (+postctorT): Likewise.
1137
1138 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1139
1140         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1141         (round_str): Handle values above the maximum for IBM long double
1142         as inexact.
1143         * stdlib/tst-strtod-round.c (tests): Regenerated.
1144
1145 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1146
1147         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1148         assembler flag.
1149         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1150         zarch_nohighgprs around the zarch optimized routines.
1151         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1152         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1153         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1154         for zarch.
1155
1156 2012-09-05  David S. Miller  <davem@davemloft.net>
1157
1158         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1159
1160         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1161         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1162         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1163         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1164         entries.
1165
1166 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1167
1168         * malloc/arena.c: Fold copyright years.
1169         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1170
1171 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1172
1173         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1174
1175 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1176
1177         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1178
1179 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1180
1181         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1182         change internal state upon failure.
1183
1184 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1185
1186         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1187         * malloc/memusage.c (mmap): Likewise.
1188         (mmap64, mremap): Likewise.  Adjust name in comment.
1189
1190 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1191
1192         * libio/fileops.c: Fix typos in comments.
1193         * libio/oldfileops.c: Likewise.
1194         * libio/wfileops.c: Likewise.
1195
1196 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1197
1198         [BZ #1349]
1199         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1200         (tst-malloc-usable-ENV): Set environment for test case.
1201         * malloc/hooks.c (malloc_check_get_size): New function to get
1202         requested size.
1203         * malloc/malloc.c (musable): Use malloc_check_get_size.
1204         * malloc/tst-malloc-usable.c: New test case.
1205
1206 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1207
1208         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1209
1210 2012-09-05  Allan McRae  <allan@archlinux.org>
1211
1212         [BZ #13966]
1213         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1214         determine header location.
1215         * configure: Regenerated.
1216
1217 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1218
1219         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1220         float format.
1221         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1222         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1223         format.
1224         (test): Regenerate.
1225
1226 2012-09-04  David S. Miller  <davem@davemloft.net>
1227
1228         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1229         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1230         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1231
1232 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1233
1234         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1235         failures.
1236
1237         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1238
1239 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1240
1241         [BZ #9914]
1242         * libio/iogetdelim.c: Include <limits.h>.
1243         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1244         + len + 1 would overflow.
1245
1246 2012-09-03  Andreas Jaeger  <aj@suse.de>
1247
1248         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1249         * sysdeps/i386/fpu/libm-test-ulps: Update.
1250
1251 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1252
1253         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1254         Add s_sinf-sse2, s_conf-sse2.
1255
1256         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1257         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1258         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1259         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1260
1261         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1262         for using routine as __sinf_ia32.
1263         Use macro for function declaration and weak_alias.
1264         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1265         for using routine as __cosf_ia32.
1266         Use macro for function declaration and weak_alias.
1267
1268         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1269         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1270
1271         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1272         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1273         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1274
1275         * math/libm-test.inc (cos_test): Add more test cases.
1276         (sin_test): Likewise.
1277         (sincos_test): Likewise.
1278
1279 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1280
1281         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1282         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1283         hidden.
1284         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1285
1286 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1287
1288         [BZ #14538]
1289         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1290         first element of the GOT.
1291         (elf_machine_load_address): Return the difference between
1292         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1293
1294 2012-09-01  Allan McRae  <allan@archlinux.org>
1295
1296         [BZ #13412]
1297         * configure.in (AWK): Require gawk version 3.0 or later.
1298         * configure: Regenerated.
1299
1300 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1301
1302         * sysdeps/unix/sysv/linux/kernel-features.h
1303         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1304         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1305         [__NR_clock_getres]: Make code unconditional.
1306         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1307         (clock_getcpuclockid): Remove code left unreachable by removal of
1308         conditionals.
1309         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1310         code unconditional.
1311         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1312         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1313         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1314         Make code unconditional.
1315         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1316         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1317         * sysdeps/unix/sysv/linux/clock_settime.c
1318         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1319         conditional code.
1320         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1321         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1322
1323 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1324
1325         [BZ #14476]
1326         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1327         scripts/test-installation.pl.
1328
1329         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1330         and $ld_so_version if it is set.
1331
1332 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1333
1334         [BZ #14516]
1335         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1336         failure if reading from procfs failed.
1337         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1338
1339 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1340
1341         * sysdeps/unix/sysv/linux/kernel-features.h
1342         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1343         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1344         Remove conditional code.
1345         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1346         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1347         Remove conditional code.
1348         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1349         * sysdeps/unix/sysv/linux/i386/fxstat.c
1350         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1351         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1352         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1353         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1354         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1355         * sysdeps/unix/sysv/linux/i386/lxstat.c
1356         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1357         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1358         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1359         Remove conditional code.
1360         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1361         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1362         Remove conditional code.
1363         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1364         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1365         <kernel-features.h>.
1366         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1367         Remove.
1368         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1369         Remove conditional code.
1370         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1371         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1372         Remove conditional.
1373
1374 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1375
1376         [BZ #5400]
1377         * NEWS: Add fixed bug number.
1378
1379 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1380
1381         [BZ #14519]
1382         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1383         underflowing exponent in case of negative sign.
1384         * stdlib/tst-strtod-round-data: Add more tests.
1385         * stdlib/tst-strtod-round.c (tests): Regenerated.
1386
1387         [BZ #3479]
1388         * stdlib/strtod_l.c (NDIG): Remove.
1389         (HEXNDIG): Likewise.
1390         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1391         smallest representable value.
1392         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1393         lie within an exact representation of 1/2 ulp of the result.
1394         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1395         unconditionally.
1396         (TENS_P9_IDX): Define unconditionally.
1397         (TENS_P9_SIZE): Likewise.
1398         (TENS_P10_IDX): Likewise.
1399         (TENS_P10_SIZE): Likewise.
1400         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1401         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1402         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1403         entries for 10^2^13 and 10^2^14.
1404         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1405         (TENS_P13_IDX): Define.
1406         (TENS_P13_SIZE): Likewise.
1407         (TENS_P14_IDX): Likewise.
1408         (TENS_P14_SIZE): Likewise.
1409         (_fpioconst_pow10): Change array size to
1410         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1411         unconditional.
1412         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1413         1024]: Add entries for 10^2^13 and 10^2^14.
1414         [LAST_POW10 > _LAST_POW10]: Remove #error.
1415         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1416         (_fpioconst_pow10): Change array size to
1417         FPIOCONST_POW10_ARRAY_SIZE.
1418         * stdlib/gen-fpioconst.c: New file.
1419         * stdlib/gen-tst-strtod-round.c: Likewise.
1420         * stdlib/tst-strtod-round-data: Likewise.
1421         * stdlib/tst-strtod-round.c: Likewise.
1422         * stdlib/Makefile (tests): Add tst-strtod-round.
1423
1424         [BZ #14459]
1425         * stdlib/strtod_l.c: Include <stdint.h>.
1426         (NDEBUG): Do not define.
1427         (round_and_return): Change EXPONENT parameter to type intmax_t.
1428         Rearrange calculations to avoid internal overflow possibilities.
1429         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1430         Rearrange calculations to avoid internal overflow possibilities.
1431         Assert that number fits inside MPNSIZE limbs.
1432         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1433         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1434         calculations and add assertions to avoid internal overflow
1435         possibilities.  Add casts to avoid signed/unsigned operations.
1436         * stdlib/tst-strtod-overflow.c: New file.
1437         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1438
1439 2012-08-25  Marek Polacek  <polacek@redhat.com>
1440
1441         * time/time.h: Fix some typos in comments.
1442
1443 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1444
1445         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1446         * posix/tst-rfc3484-2.c: Likewise.
1447         * posix/tst-rfc3484-3.c: Likewise.
1448
1449 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1450
1451         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1452         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1453
1454 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1455
1456         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1457         #include of fxstatat64.c.
1458
1459 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1460
1461         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1462         * shadow/getspent_r.c: Likewise.
1463         * shadow/getspnam.c: Likewise.
1464         * shadow/getspnam_r.c: Likewise.
1465         * gshadow/getsgent.c: Likewise.
1466         * gshadow/getsgent_r.c: Likewise.
1467         * gshadow/getsgnam.c: Likewise.
1468         * gshadow/getsgnam_r.c: Likewise.
1469         * inet/getnetbyad.c: Likewise.
1470         * inet/getnetbyad_r.c: Likewise.
1471         * inet/getnetbynm.c: Likewise.
1472         * inet/getnetbynm_r.c: Likewise.
1473         * inet/getnetent.c: Likewise.
1474         * inet/getnetent_r.c: Likewise.
1475         * inet/getproto.c: Likewise.
1476         * inet/getproto_r.c: Likewise.
1477         * inet/getprtent.c: Likewise.
1478         * inet/getprtent_r.c: Likewise.
1479         * inet/getprtname.c: Likewise.
1480         * inet/getprtname_r.c: Likewise.
1481         * inet/getrpcbyname.c: Likewise.
1482         * inet/getrpcbyname_r.c: Likewise.
1483         * inet/getrpcbynumber.c: Likewise.
1484         * inet/getrpcbynumber_r.c: Likewise.
1485         * inet/getrpcent.c: Likewise.
1486         * inet/getrpcent_r.c: Likewise.
1487         * inet/getaliasent.c: Likewise.
1488         * inet/getaliasent_r.c: Likewise.
1489         * inet/getaliasname.c: Likewise.
1490         * inet/getaliasname_r.c: Likewise.
1491         * nscd/getgrgid_r.c: Likewise.
1492         * nscd/getgrnam_r.c: Likewise.
1493         * nscd/gethstbyad_r.c: Likewise.
1494         * nscd/gethstbynm3_r.c: Likewise.
1495         * nscd/getpwnam_r.c: Likewise.
1496         * nscd/getpwuid_r.c: Likewise.
1497         * nscd/getsrvbynm_r.c: Likewise.
1498         * nscd/getsrvbypt_r.c: Likewise.
1499         * nscd/gai.c: Likewise.
1500
1501         * configure.in (build_nscd): New substituted variable, set
1502         by --disable-build-nscd and defaults to $use_nscd.
1503         * configure: Regenerated.
1504         * config.make.in (build-nscd): New substituted variable.
1505         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1506         Change conditional to require [$(build-nscd) = yes] as well.
1507         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1508
1509         [BZ# 13696]
1510         * configure.in (use_nscd): New substituted variable, set by
1511         --disable-nscd.  If enabled, define USE_NSCD.
1512         * configure: Regenerated.
1513         * config.h.in: Add USE_NSCD.
1514         * config.make.in (use-nscd): New substituted variable.
1515         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1516         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1517         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1518         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1519         (CFLAGS-getgrnam_r.c): Likewise.
1520         (CFLAGS-initgroups.c): Likewise.
1521         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1522         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1523         Variables removed.
1524         * inet/getnetgrent_r.c
1525         (nscd_setnetgrent): New function, broken out of ...
1526         (setnetgrent): ... here.  Call it.
1527         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1528         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1529         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1530         * nscd/Makefile (routines, aux): Move definitions after include of
1531         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1532         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1533         Conditionalize on [USE_NSCD].
1534         (is_nscd, nscd_init_cb): Likewise.
1535         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1536         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1537         * nss/nss_db/db-init.c: Likewise.
1538         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1539         [USE_NSCD].
1540         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1541         (make_request): Use it.
1542         (cache_valid_p): New function.
1543         (__check_pf): Use it.
1544         * NEWS: Add item for --disable-nscd.
1545
1546 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1547
1548         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1549         to support sed >= 4.2.1-20-ga9bf076.
1550         * configure: Regenerated.
1551
1552 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1553
1554         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1555         Conditionalize whole body on [IREL].
1556
1557 2012-08-22  Jeff Law <law@redhat.com>
1558
1559         [BZ #14505]
1560         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1561         if the family is PF_UNSPEC.
1562
1563 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1564
1565         * Makerules (lib-version): Rename from V.
1566         (install-lib-nosubdir): Change V to lib-version.
1567
1568 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1569
1570         [BZ #14252]
1571         * powerpc32/power6/wcschr.c: New file.
1572         * powerpc32/power6/wcscpy.c: New file.
1573         * powerpc32/power6/wcsrchr.c: New file.
1574         * powerpc64/power6/wcschr.c: New file.
1575         * powerpc64/power6/wcscpy.c: New file.
1576         * powerpc64/power6/wcsrchr.c: New file.
1577
1578 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1579
1580         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1581         (two_way_short_needle): Use it.
1582         * string/strstr.c (AVAILABLE1_USES_J): Define.
1583         * string/strcasestr.c: Likewise.
1584
1585         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1586         array references.
1587         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1588
1589         [BZ #11607]
1590         * NEWS: Add an entry.
1591         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1592         define their defaults.
1593         (two_way_short_needle): Detect end-of-string on-the-fly.
1594         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1595         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1596         * string/bug-strcasestr1.c: New test.
1597         * string/Makefile: Run it.
1598
1599 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1600
1601         [BZ #11607]
1602         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1603         the first character.
1604
1605 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1606
1607         * csu/elf-init.c (__libc_csu_irel): Function removed.
1608         * csu/libc-start.c (apply_irel): New function.
1609         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1610
1611 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1612
1613         * sysdeps/unix/sysv/linux/kernel-features.h
1614         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1615         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1616         <kernel-features.h>.
1617         [__NR_fadvise64_64]: Make code unconditional.
1618         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1619         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1620         !__NR_fadvise64_64)]: Likewise.
1621         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1622         !__NR_fadvise64_64))]: Likewise.
1623         [__NR_fadvise64]: Make code unconditional.
1624         [!__NR_fadvise64]: Remove conditional code.
1625         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1626         <kernel-features.h>.
1627         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1628         unconditional.
1629         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1630         conditional code.
1631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1632         not include <kernel-features.h>.
1633         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1634         unconditional.
1635         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1636         conditional code.
1637         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1638         include <kernel-features.h>.
1639         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1640         unconditional.
1641         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1642         conditional code.
1643
1644 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1645
1646         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1647         slight instruction rearrangements per scrollpipe analysis.
1648         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1649
1650 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1651
1652         * manual/syslog.texi (syslog; vsyslog, closelog):
1653         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1654         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1655
1656         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1657         DSOCAPS to match condition on defining it.
1658
1659 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1660
1661         * sysdeps/unix/sysv/linux/kernel-features.h
1662         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1664         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1665         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1667         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1668         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1670         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1671         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1672
1673         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1674         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1675
1676         * sysdeps/unix/sysv/linux/kernel-features.h
1677         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1678         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1679         unconditional.
1680         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1681         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1682         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1683         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1684         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1685         Make code unconditional.
1686         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1687         (__mmap64) [!__NR_mmap2]: Likewise.
1688         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1689         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1690         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1691         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1692         [__NR_mmap2]: Make code unconditional.
1693         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1694         (__mmap64) [!__NR_mmap2]: Likewise.
1695
1696 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1697
1698         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1699
1700 2012-08-18  Andreas Jaeger  <aj@suse.de>
1701
1702         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1703
1704 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1705
1706         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1707         * include/unistd.h (__have_sock_cloexec): Likewise.
1708         (__have_pipe2): Likewise.
1709         (__have_dup3): Likewise.
1710
1711 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1712
1713         [BZ #9685]
1714         * include/unistd.h (__have_pipe2): Change define into an extern int.
1715         (__have_dup3): Likewise.
1716         * socket/have_sock_cloexec.c: Include fcntl.h.
1717         (__have_pipe2): New variable.
1718         (__have_dup3): Likewise.
1719
1720 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1721
1722         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1723
1724 2012-08-17  Marek Polacek  <polacek@redhat.com>
1725
1726         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1727         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1728
1729 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1730
1731         * configure.in: Add AC_SUBST for sysheaders.
1732         * configure: Regenerated.
1733         * config.make.in (sysheaders): New substituted variable.
1734
1735         * sysdeps/unix/mkfifo.c: Moved ...
1736         * sysdeps/posix/mkfifo.c: ... here.
1737         * sysdeps/unix/mkfifoat.c: Moved ...
1738         * sysdeps/posix/mkfifoat.c: ... here.
1739
1740         * sysdeps/unix/utime.c: Moved ...
1741         * sysdeps/posix/utime.c: ... here.
1742
1743         * sysdeps/unix/time.c: Moved ...
1744         * sysdeps/posix/time.c: ... here.
1745         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1746         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1747
1748         * sysdeps/unix/nice.c: Moved ...
1749         * sysdeps/posix/nice.c: ... here.
1750
1751         * sysdeps/unix/alarm.c: Moved ...
1752         * sysdeps/posix/alarm.c: ... here.
1753
1754         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1755
1756 2012-08-17  Jeff Law <law@redhat.com>
1757
1758         * intl/Makefile (codeset_mo): New variable.
1759         ($(codeset_mo)): New target.
1760         (tst-codeset.out): Depend on that.  Remove explicit rule.
1761         (tst-gettext3.out, tst-gettext5.out): Likewise.
1762         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1763         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1764         * intl/tst-codeset.sh: Remove.
1765         * intl/tst-gettext3.sh: Likewise.
1766         * intl/tst-gettext5.sh: Likewise.
1767
1768 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1769
1770         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1771         * sysdeps/unix/syscalls.list: ... here.
1772
1773         * sysdeps/posix/getaddrinfo.c
1774         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1775         (gaiconf_init, gaiconf_reload): Use them.
1776         [!_STATBUF_ST_NSEC]
1777         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1778         Define using time_t rather than struct timespec.
1779
1780         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1781         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1782         Macros removed.
1783         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1784         [!NO_THREADS].
1785         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1786         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1787         Likewise.
1788
1789         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1790         __libc_cleanup_push argument.
1791
1792         * bits/param.h: New file.
1793         * misc/sys/param.h: New file.
1794         * include/sys/param.h: New file.
1795         * misc/Makefile (headers): Add bits/param.h.
1796         * sysdeps/generic/sys/param.h: File removed.
1797         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1798         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1799         * sysdeps/mach/hurd/bits/param.h: New file.
1800         * sysdeps/mach/hurd/sys/param.h: New file.
1801
1802         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1803         last change.
1804
1805         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1806         [_IO_MTSAFE_IO].
1807         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1808         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1809         New macros.
1810
1811         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1812         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1813         rather than -D_IO_MTSAFE_IO conditionally.
1814         * stdio-common/Makefile (CPPFLAGS): Likewise.
1815         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1816         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1817         Use $(libio-mtsafe).
1818         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1819         of -D_IO_MTSAFE_IO.
1820         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1821         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1822         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1823         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1824         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1825         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1826         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1827         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1828         (CFLAGS-fread_u_chk.c): Likewise.
1829         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1830         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1831         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1832         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1833         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1834         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1835         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1836         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1837         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1838
1839         * libio/Makefile: Test [$(libc-reentrant) = yes]
1840         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1841
1842         * Makeconfig
1843         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1844         * sysdeps/pthread/configure: File removed.
1845         * sysdeps/pthread/Makeconfig: New file.
1846         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1847         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1848
1849 2012-08-16  Gary Benson  <gbenson@redhat.com>
1850
1851         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1852         unmapping the first object in a namespace.
1853
1854 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1855
1856         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1857         (__internal_setnetgrent): ... this.  Add internal_function to
1858         definition.  Add libc_hidden_def.
1859         (setnetgrent): Update caller.
1860         (internal_endnetgrent): Renamed to ...
1861         (__internal_endnetgrent): ... this.  Add internal_function to
1862         definition.  Add libc_hidden_def.
1863         (endnetgrent): Update caller.
1864         (internal_getnetgrent_r): Renamed to ...
1865         (__internal_getnetgrent_r): ... this.  Add internal_function to
1866         definition.  Add libc_hidden_def.
1867         (__getnetgrent_r): Update caller.
1868         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1869
1870 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1871
1872         * stdlib/longlong.h: Update from GCC.
1873
1874 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1875
1876         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1877         on _QL, which is set by umul_ppmm but never used.
1878         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1879         variables, which are set by GMP macros but never used.
1880         * stdio-common/_itowa.c (_itowa): Likewise.
1881         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1882         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1883
1884 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1885
1886         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1887         struct La_sh_regs is not constant.
1888         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1889         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1890         and struct La_sparc64_regs are not constant.
1891
1892 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1893
1894         * sysdeps/unix/sysv/linux/kernel-features.h
1895         (__ASSUME_POSIX_TIMERS): Remove.
1896         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1897         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1898         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1899         Make code unconditional.
1900         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1901         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1902         Make code unconditional.
1903         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1904         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1905         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1906         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1907         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1908         Make code unconditional.
1909         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1910         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1911         (__libc_missing_posix_timers): Remove.
1912
1913 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1914
1915         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1916         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1917
1918         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1919
1920         * elf/dl-sym.c: Include <stdlib.h>.
1921
1922         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1923         constants, which avoids warnings in 32-bit builds.
1924
1925         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1926         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1927
1928         * misc/lseek.c: File moved to ...
1929         * io/lseek.c: ... here.
1930
1931         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1932
1933         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1934         shifting LEN more than 31 bits at once.
1935
1936 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1937
1938         [BZ #14195]
1939         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1940         segmentation fault for a case of two empty input strings.
1941         * string/test-strncasecmp.c (check1): Renamed to...
1942         (bz12205): ...this.
1943         (bz14195): Add new testcase for two empty input strings and N > 0.
1944         (test_main): Call new testcase, adapt for renamed function.
1945
1946 2012-08-15  Andreas Jaeger  <aj@suse.de>
1947
1948         [BZ #14090]
1949         * crypt/md5test2.c: New test, based on test supplied by Serge
1950         Belyshev <belyshev@depni.sinp.msu.ru>.
1951         * crypt/Makefile (xtests): Add md5test-giant..
1952         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1953
1954 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1955
1956         [BZ #14090]
1957         * crypt/md5.c (md5_process_block): Don't assume the buffer
1958         length is less than 2**32.
1959         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1960         length is less than 2**64.
1961
1962 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1963
1964         * string/str-two-way.h: Include <sys/param.h>.
1965         (MAX): Macro removed.
1966
1967         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1968         Move #define and #undef of memmove to just before and after
1969         including <string.h>.
1970
1971         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1972         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1973         and after including <string.h>.  Move declarations of
1974         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1975         to before #include "string/memmove.c".
1976
1977         * include/dirent.h: Declare __getdirentries.
1978
1979         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
1980         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
1981
1982 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1983
1984         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
1985         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
1986         * sysdeps/i386/configure: Regenerated.
1987         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
1988         STABS_CURRENT_FILE, and STABS_FUN.
1989         (END): Remove call to STABS_FUN_END.
1990         (STABS_CURRENT_FILE1): Delete.
1991         (STABS_CURRENT_FILE): Likewise.
1992         (STABS_FUN): Likewise.
1993         (STABS_FUN_END): Likewise.
1994         (STABS_FUN2): Likewise.
1995         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
1996         * sysdeps/x86_64/configure: Regenerated.
1997
1998 2012-08-14  Roland McGrath  <roland@hack.frob.com>
1999
2000         * elf/dl-open.c: Include <atomic.h>.
2001         * elf/dl-lookup.c: Likewise.
2002
2003 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2004
2005         * sysdeps/unix/sysv/linux/kernel-features.h
2006         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2007         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2008         unconditionally.
2009         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2010         unconditionally.
2011         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2012         condition on __ASSUME_CLONE_THREAD_FLAGS.
2013
2014 2012-08-14  Andreas Jaeger  <aj@suse.de>
2015
2016         * sysdeps/i386/fpu/libm-test-ulps: Update.
2017
2018 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2019
2020         * include/atomic.h (atomic_exchange_and_add): Split into ...
2021         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2022         New atomic macros.
2023
2024 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2025
2026         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2027
2028 2012-08-13  Jeff Law <law@redhat.com>
2029
2030         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2031         null byte in the output string.
2032
2033 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2034
2035         * sysdeps/unix/sysv/linux/kernel-features.h
2036         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2037         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2038         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2039         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2040         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2041         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2042         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2043
2044 2012-08-09  Jeff Law <law@redhat.com>
2045
2046         [BZ #13939]
2047         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2048         When avoid_arena is set, don't retry in the that arena.  Pick the
2049         next one, whatever it might be.
2050         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2051         (arena_lock): Pass in new parameter to arena_get2.
2052         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2053         arena_get2.
2054         (__libc_malloc): Unify retrying after main arena failure with
2055         __libc_memalign version.
2056         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2057
2058 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2059
2060         [BZ #14166]
2061         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2062         to __redirect_strstr.
2063         (__strstr_sse42): Use typeof __redirect_strstr.
2064         (__strstr_ia32): Likewise.
2065         (__libc_strstr): New prototype.
2066         (strstr): Renamed to ...
2067         (__libc_strstr): This.
2068         (strstr): New strong alias of __libc_strstr.
2069         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2070         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2071         __redirect_time.
2072         Include <time.h>.
2073         (__libc_time): New prototype.
2074         (time_ifunc): Replace time with __libc_time.
2075         (time): New strong alias and hidden definition of __libc_time.
2076         (__GI_time): Remove strong alias.
2077         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2078         Include <stddef.h>.
2079         (memmove): Redefined to __redirect_memmove.
2080         (__memmove_sse2): Use typeof __redirect_memmove.
2081         (__memmove_ssse3): Likewise.
2082         (__memmove_ssse3_back): Likewise.
2083         (__libc_memmove): New prototype.
2084         (memmove): Renamed to ...
2085         (__libc_memmove): This.
2086         (memmove): New strong alias of __libc_memmove.
2087
2088 2012-08-08  Mark Salter  <msalter@redhat.com>
2089
2090         * elf/elf.h
2091         (R_MN10300_TLS_GD): Define.
2092         (R_MN10300_TLS_LD): Likewise.
2093         (R_MN10300_TLS_LDO): Likewise.
2094         (R_MN10300_TLS_GOTIE): Likewise.
2095         (R_MN10300_TLS_IE): Likewise.
2096         (R_MN10300_TLS_LE): Likewise.
2097         (R_MN10300_TLS_DTPMOD): Likewise.
2098         (R_MN10300_TLS_DTPOFF): Likewise.
2099         (R_MN10300_TLS_TPOFF): Likewise.
2100         (R_MN10300_SYM_DIFF): Likewise.
2101         (R_MN10300_ALIGN): Likewise.
2102         (R_MN10300_NUM): Update.
2103
2104 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2105
2106         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2107         Remove.
2108
2109 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2110
2111         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2112
2113         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2114         sysdeps/unix -> sysdeps/posix move.
2115         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2116
2117 2012-08-07      Allan McRae     <allan@archlinux.org>
2118
2119         [BZ #14303]
2120         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2121         (SUNOS_CPP): Likewise.
2122         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2123         not found.
2124         (open_input): Call CPP using execvp.
2125
2126 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2127
2128         * sysdeps/unix/sysv/linux/kernel-features.h
2129         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2130         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2131         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2132         (__ASSUME_WAITID_SYSCALL): Likewise.
2133         * sysdeps/unix/sysv/linux/dl-execstack.c
2134         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2135         code unconditional.
2136         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2137         conditional code.
2138         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2139         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2140         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2141         code.
2142         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2143         unconditional.
2144         [__ASSUME_WAITID_SYSCALL]: Likewise.
2145         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2146
2147 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2148
2149         * sysdeps/unix/closedir.c: Renamed to ...
2150         * sysdeps/posix/closedir.c: ... here.
2151         * sysdeps/unix/dirfd.c: Renamed to ...
2152         * sysdeps/posix/dirfd.c: ... here.
2153         * sysdeps/unix/dirstream.h: Renamed to ...
2154         * sysdeps/posix/dirstream.h: ... here.
2155         * sysdeps/unix/fdopendir.c: Renamed to ...
2156         * sysdeps/posix/fdopendir.c: ... here.
2157         * sysdeps/unix/opendir.c: Renamed to ...
2158         * sysdeps/posix/opendir.c: ... here.
2159         * sysdeps/unix/readdir.c: Renamed to ...
2160         * sysdeps/posix/readdir.c: ... here.
2161         * sysdeps/unix/readdir_r.c: Renamed to ...
2162         * sysdeps/posix/readdir_r.c: ... here.
2163         * sysdeps/unix/rewinddir.c: Renamed to ...
2164         * sysdeps/posix/rewinddir.c: ... here.
2165         * sysdeps/unix/seekdir.c: Renamed to ...
2166         * sysdeps/posix/seekdir.c: ... here.
2167         * sysdeps/unix/telldir.c: Renamed to ...
2168         * sysdeps/posix/telldir.c: ... here.
2169         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2170         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2171         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2172         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2173
2174         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2175         * bits/fcntl.h: ... here.
2176
2177         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2178         not 0.
2179         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2180         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2181         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2182         (struct flock): Move l_start, l_len to the beginning.
2183         Use __pid_t for l_pid.
2184         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2185         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2186         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2187         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2188         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2189         [__USE_LARGEFILE64] (struct flock64): New type.
2190         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2191
2192         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2193         * bits/dirent.h: ... here.
2194
2195         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2196         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2197
2198 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2199
2200         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2201         Change from 2.6.0 to 2.6.16.
2202         * sysdeps/unix/sysv/linux/configure: Regenerated.
2203         * sysdeps/unix/sysv/linux/kernel-features.h
2204         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2205         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2206         version.
2207         (__ASSUME_UTIMES): Likewise.
2208         (__ASSUME_CLONE_STOPPED): Remove.
2209         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2210         architectures, not kernel version.
2211         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2212         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2213         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2214         (__ASSUME_WAITID_SYSCALL): Likewise.
2215         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2216         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2217         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2218         refer to older versions.
2219
2220 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2221
2222         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2223         Define alphasort64 as an alias.
2224         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2225         Define versionsort64 as an alias.
2226         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2227         Define scandir64 as an alias.
2228         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2229         Define scandirat64 as an alias.
2230         * dirent/alphasort64.c (alphasort64):
2231         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2232         * dirent/versionsort64.c: Likewise.
2233         * dirent/scandir64.c: Likewise.
2234         * dirent/scandirat64.c: Likewise.
2235         * sysdeps/wordsize-64/alphasort.c: File removed.
2236         * sysdeps/wordsize-64/alphasort64.c: File removed.
2237         * sysdeps/wordsize-64/scandir.c: File removed.
2238         * sysdeps/wordsize-64/scandir64.c: File removed.
2239         * sysdeps/wordsize-64/scandirat.c: File removed.
2240         * sysdeps/wordsize-64/scandirat64.c: File removed.
2241         * sysdeps/wordsize-64/versionsort.c: File removed.
2242         * sysdeps/wordsize-64/versionsort64.c: File removed.
2243         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2244         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2245         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2246         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2247         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2248         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2249         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2250         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2251
2252         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2253         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2254         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2255         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2256         [defined __arch64__ || defined __sparcv9]
2257         (__INO_T_MATCHES_INO64_T): New macro.
2258         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2259         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2260         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2261         * sysdeps/unix/sysv/linux/bits/dirent.h
2262         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2263         (_DIRENT_MATCHES_DIRENT64): New macro.
2264
2265         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2266         Define lockf64 as an alias.
2267         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2268         Define fseeko64 as an alias.
2269         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2270         Define ftello64 as an alias.
2271         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2272         Define _IO_fgetpos64 and fgetpos64 as aliases.
2273         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2274         Define _IO_fsetpos64 and fsetpos64 as aliases.
2275         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2276         Conditionalize body on this.
2277         * libio/fseeko64.c: Likewise.
2278         * libio/ftello64.c: Likewise.
2279         * libio/iofgetpos64.c: Likewise.
2280         * libio/iofsetpos64.c: Likewise.
2281         * sysdeps/wordsize-64/lockf.c: File removed.
2282         * sysdeps/wordsize-64/lockf64.c: File removed.
2283         * sysdeps/wordsize-64/fseeko.c: File removed.
2284         * sysdeps/wordsize-64/fseeko64.c: File removed.
2285         * sysdeps/wordsize-64/ftello.c: File removed.
2286         * sysdeps/wordsize-64/ftello64.c: File removed.
2287         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2288         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2289         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2290         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2291         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2292         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2293         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2294         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2295         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2296         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2297         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2298         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2299         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2300         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2301
2302         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2303         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2304         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2305         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2306         [defined __arch64__ || defined __sparcv9]
2307         (__OFF_T_MATCHES_OFF64_T): New macro.
2308         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2309         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2310         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2311         (__OFF_T_MATCHES_OFF64_T): New macro.
2312
2313 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2314
2315         * stdlib/secure-getenv.c (__secure_getenv): Replace
2316         GLIBC_2_16 with GLIBC_2_17.
2317
2318 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2319
2320         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2321         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2322
2323 2012-08-03  David S. Miller  <davem@davemloft.net>
2324
2325         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2326
2327 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2328
2329         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2330         Remove.
2331         (__ASSUME_CORRECT_SI_PID): Likewise.
2332         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2333         (__ASSUME_TMPFS_NAME): Likewise.
2334         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2335         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2336         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2337         (HAVE_AUX_SECURE): Make definition unconditional.
2338         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2339         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2340
2341 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2342
2343         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2344         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2345         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2346         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2347         __eloop_threshold instead of SYMLOOP_MAX.
2348
2349         * sysdeps/generic/eloop-threshold.h: New file.
2350         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2351         of MAXSYMLINKS.
2352         * elf/chroot_canon.c (chroot_canon): Likewise.
2353
2354 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2355
2356         [BZ #13717]
2357         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2358         Change to 2.6.0 everywhere.
2359         * sysdeps/unix/sysv/linux/configure: Regenerated.
2360         * sysdeps/unix/sysv/linux/kernel-features.h
2361         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2362         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2363         kernel versions.
2364         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2365         (__ASSUME_FUTEX_REQUEUE): Remove.
2366         (__ASSUME_STATFS64): Define unconditionally.
2367         (__ASSUME_AT_SECURE): Likewise.
2368         (__ASSUME_CORRECT_SI_PID): Likewise.
2369         (__ASSUME_TGKILL): Define without depending on kernel version for
2370         i386.
2371         (__ASSUME_UTIMES): Likewise.
2372         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2373         kernel version.
2374         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2375         (__ASSUME_TMPFS_NAME): Likewise.
2376         * README: Update reference to Linux kernel versions.
2377
2378 2012-08-02  Marek Polacek  <polacek@redhat.com>
2379
2380         [BZ# 14150]
2381         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2382         libc_cv_asm_type_prefix with %.
2383         * configure: Regenerated.
2384         * include/libc-symbols.h: Remove comment about
2385         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2386         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2387         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2388         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2389         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2390         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2391         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2392         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2393         * elf/tst-unique2mod1.c: Likewise.
2394         * elf/tst-unique1mod2.c: Likewise.
2395         * elf/tst-unique1mod1.c: Likewise.
2396         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2397         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2398         Replace ASM_TYPE_DIRECTIVE with .type.
2399         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2400         * sysdeps/i386/sysdep.h: Likewise.
2401         * sysdeps/x86_64/sysdep.h: Likewise.
2402         * sysdeps/sh/sysdep.h: Likewise.
2403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2404         Do not define ASM_TYPE_DIRECTIVE.
2405         * sysdeps/powerpc/sysdep.h: Likewise.
2406         * sysdeps/powerpc/powerpc32/sysdep.h:
2407         Replace ASM_TYPE_DIRECTIVE with .type.
2408         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2409         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2410         * sysdeps/i386/fpu/e_powf.S: Likewise.
2411         * sysdeps/i386/fpu/e_expl.S: Likewise.
2412         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2413         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2414         * sysdeps/i386/fpu/e_pow.S: Likewise.
2415         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2416         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2417         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2418         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2419         * sysdeps/i386/fpu/e_log2.S: Likewise.
2420         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2421         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2422         * sysdeps/i386/fpu/e_powl.S: Likewise.
2423         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2424         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2425         * sysdeps/i386/fpu/e_logl.S: Likewise.
2426         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2427         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2428         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2429         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2430         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2431         * sysdeps/i386/fpu/e_log.S: Likewise.
2432         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2433         * sysdeps/i386/fpu/e_logf.S: Likewise.
2434         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2435         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2436         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2437         * sysdeps/i386/fpu/e_log10.S: Likewise.
2438         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2439         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2440         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2441         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2442         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2443         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2444         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2445         * sysdeps/i386/i686/strtok.S: Likewise.
2446         * sysdeps/i386/i386-mcount.S: Likewise.
2447         * sysdeps/i386/strtok.S: Likewise.
2448         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2449         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2450         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2451         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2452         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2453         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2454         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2455         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2456         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2457         * sysdeps/x86_64/_mcount.S: Likewise.
2458         * sysdeps/x86_64/strtok.S: Likewise.
2459         * sysdeps/sh/_mcount.S: Likewise.
2460
2461 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2462
2463         * libio/iofopen.c: Include <fcntl.h>.
2464         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2465         (_IO_fopen64, fopen64): Define as aliases.
2466         * libio/iofopen64.c: Include <fcntl.h>.
2467         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2468         Conditionalize body on this.
2469         * sysdeps/wordsize-64/iofopen.c: File removed.
2470         * sysdeps/wordsize-64/iofopen64.c: File removed.
2471
2472 2012-08-01  Marek Polacek  <polacek@redhat.com>
2473
2474         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2475         Use dlfcn directly instead of a variable.
2476         (binfmt-subdir): Do not define.
2477         (dlfcn): Likewise.
2478
2479 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2480
2481         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2482         Remove all definitions.
2483         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2484         <kernel-features.h>.
2485         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2486         (miss_F_GETOWN_EX): Remove all definitions.
2487         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2488         macro definition.
2489         [!__ASSUME_FCNTL64]: Remove conditional code.
2490         [__ASSUME_FCNTL64]: Make code unconditional.
2491         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2492         <kernel-features.h>.
2493         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2494         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2495         (lockf64) [__NR_fcntl64]: Make code unconditional.
2496         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2497
2498         * sysdeps/unix/sysv/linux/kernel-features.h
2499         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2500         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2501         Make code unconditional.
2502         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2503         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2505         [__NR_vfork]: Make code unconditional.
2506         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2507         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2509         [__NR_vfork]: Make code unconditional.
2510         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2511         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2512
2513 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2514
2515         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2516         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2517
2518         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2519         Define mkstemp64 as an alias.
2520         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2521         Define mkstemps64 as an alias.
2522         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2523         Define mkostemp64 as an alias.
2524         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2525         Define mkostemps64 as an alias.
2526         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2527         Conditionalize body on this.
2528         * misc/mkostemp64.c: Likewise.
2529         * misc/mkostemps64.c: Likewise.
2530         * misc/mkstemps64.c: Likewise.
2531         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2532         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2533         * sysdeps/wordsize-64/mkostemp.c: File removed.
2534         * sysdeps/wordsize-64/mkstemp.c: File removed.
2535         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2536         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2537         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2538         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2539
2540         [BZ #14138]
2541         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2542         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2543         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2544         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2545
2546         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2547         compat_symbol macros from <shlib-compat.h> rather than the underlying
2548         default_symbol_version and symbol_version macros, so that DEFAULT
2549         lines in shlib-versions are respected.
2550         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2551
2552 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2553
2554         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2555         Declare with warn_unused_result.
2556         (setgid, setregid, setegid, setresgid): Likewise.
2557         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2558         Likewise.
2559         * WUR-REPORT: Remove set*id functions.
2560
2561 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2562
2563         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2564
2565 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2566
2567         * include/sys/socket.h (__libc_accept, __libc_accept4):
2568         Add attribute_hidden.
2569         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2570
2571         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2572         use of PTR_MANGLE.
2573         * inet/getnetgrent_r.c (setup): Likewise.
2574
2575         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2576
2577 2012-07-31  David S. Miller  <davem@davemloft.net>
2578
2579         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2580
2581 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2582
2583         [BZ #13629]
2584         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2585         value between 1.0 and 2.0 and smaller part has absolute value less
2586         than 1.0.
2587         * math/s_clog10.c (__clog10): Likewise.
2588         * math/s_clog10f.c (__clog10f): Likewise.
2589         * math/s_clog10l.c (__clog10l): Likewise.
2590         * math/s_clogf.c (__clogf): Likewise.
2591         * math/s_clogl.c (__clogl): Likewise.
2592         * math/libm-test.inc (clog_test): Add more tests.
2593         (clog10_test): Likewise.
2594         * sysdeps/i386/fpu/libm-test-ulps: Update.
2595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2596
2597 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2598
2599         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2600         Exit with zero in case no suitable GID is found, and write a
2601         message to standard error.
2602
2603 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2604
2605         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2606         rather than to 1.
2607         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2608         (MAXPATHLEN): Removed.
2609         (NOGROUP, NODEV): New macros.
2610         (setbit, clrbit, isset, isclr): New macros.
2611         (howmany, roundup, powerof2): New macros.
2612         (DEV_BSIZE): New macro.
2613
2614         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2615         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2616
2617         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2618         definition on [!__NO_LONG_DOUBLE_MATH].
2619
2620         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2621         PTR_MANGLE and PTR_DEMANGLE.
2622
2623         * socket/accept4.c (accept4): Rename to __libc_accept4.
2624         Define accept4 as a weak alias.
2625
2626         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2627         on [_DIRENT_HAVE_D_TYPE].
2628         * io/ftw.c (ftw_dir): Likewise.
2629
2630         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2631
2632         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2633
2634         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2635         Use the BSD numbers rather than the arbitrary ones we had.
2636         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2637         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2638         (SIGXCPU, SIGXFSZ): New macros.
2639         (_NSIG): Now 32.
2640
2641         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2642         initializer on [_LIBC_REENTRANT].
2643
2644         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2645         definitions inside [_POSIX_MAPPED_FILES].
2646
2647         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2648
2649         * dirent/opendir.c: Include <fcntl.h>.
2650
2651         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2652         (__libc_getspecific): Likewise.
2653         (__libc_key_create): Likewise.
2654
2655         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2656         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2657         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2658         (tmpfile64): Define as alias.
2659         * sysdeps/wordsize-64/tmpfile.c: File removed.
2660         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2661         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2662         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2663
2664         * stdio-common/vfscanf.c: Include <stdbool.h>.
2665         * nss/makedb.c: Likewise.
2666         * stdio-common/_i18n_number.h: Likewise.
2667         * argp/argp-help.c: Likewise.
2668         * posix/wordexp.c: Likewise.
2669         * sysdeps/posix/spawni.c: Likewise.
2670         * nss/nss_files/files-initgroups.c: Likewise.
2671         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2672         * nss/nss_files/files-initgroups.c: Likewise.
2673         * nss/nss_db/db-netgrp.c: Likewise.
2674         * nss/nss_db/db-initgroups.c: Likewise.
2675         * io/fchmodat.c: Include <sys/stat.h>.
2676
2677         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2678         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2679
2680         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2681         [HAVE_MMAP].
2682
2683         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2684         Add multiple inclusion protection.
2685
2686 2012-07-27  David S. Miller  <davem@davemloft.net>
2687
2688         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2689
2690 2012-07-27  Gary Benson  <gbenson@redhat.com>
2691
2692         [BZ #14298]
2693         * elf/rtld.c: Include <stap-probe.h>.
2694         (dl_main): Added static probes "init_start" and "init_complete".
2695         * elf/dl-load.c: Include <stap-probe.h>.
2696         (lose): Take new parameter "nsid".
2697         Added static probe "map_failed".
2698         (_dl_map_object_from_fd): Pass namespace id to lose.
2699         Added static probe "map_start".
2700         (open_verify): Pass namespace id to lose.
2701         * elf/dl-open.c: Include <stap-probe.h>.
2702         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2703         and "reloc_complete".
2704         * elf/dl-close.c: Include <stap-probe.h>.
2705         (_dl_close_worker): Added static probes "unmap_start" and
2706         "unmap_complete".
2707         * elf/rtld-debugger-interface.txt: New file documenting the above.
2708
2709 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2710
2711         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2712         rather than a string variable.
2713         * sunrpc/rpc_main.c (h_output): Likewise.
2714         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2715
2716 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2717
2718         * inet/check_native.c: New file.
2719
2720 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2721
2722         [BZ #13629]
2723         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2724         if larger part has absolute value 1.0.
2725         * math/s_clog10.c (__clog10): Likewise.
2726         * math/s_clog10f.c (__clog10f): Likewise.
2727         * math/s_clog10l.c (__clog10l): Likewise.
2728         * math/s_clogf.c (__clogf): Likewise.
2729         * math/s_clogl.c (__clogl): Likewise.
2730         * math/libm-test.inc (clog_test): Add more tests.
2731         (clog10_test): Likewise.
2732         * sysdeps/i386/fpu/libm-test-ulps: Update.
2733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2734
2735         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2736         (pltexit): Likewise.
2737         (La_regs): Likewise.
2738         (La_retval): Likewise.
2739         (int_retval): Likewise.
2740         Update #error for removed macros to refer only to definitions in
2741         tst-audit.h.
2742         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2743         macro.
2744         (pltexit): Likewise.
2745         (La_regs): Likewise.
2746         (La_retval): Likewise.
2747         (int_retval): Likewise.
2748         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2749         macro.
2750         (pltexit): Likewise.
2751         (La_regs): Likewise.
2752         (La_retval): Likewise.
2753         (int_retval): Likewise.
2754         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2755         macro.
2756         (pltexit): Likewise.
2757         (La_regs): Likewise.
2758         (La_retval): Likewise.
2759         (int_retval): Likewise.
2760         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2761         macro.
2762         (pltexit): Likewise.
2763         (La_regs): Likewise.
2764         (La_retval): Likewise.
2765         (int_retval): Likewise.
2766         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2767         macro.
2768         (pltexit): Likewise.
2769         (La_regs): Likewise.
2770         (La_retval): Likewise.
2771         (int_retval): Likewise.
2772         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2773         macro.
2774         (pltexit): Likewise.
2775         (La_regs): Likewise.
2776         (La_retval): Likewise.
2777         (int_retval): Likewise.
2778         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2779         macro definitions in tst-audit.h.
2780         * sysdeps/i386/tst-audit.h: New file.
2781         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2782         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2783         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2784         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2785         * sysdeps/sh/tst-audit.h: Likewise.
2786         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2787         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2788         * sysdeps/x86_64/tst-audit.h: Likewise.
2789
2790 2012-07-26  Andreas Jaeger  <aj@suse.de>
2791
2792         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2793         ptrace.
2794
2795         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2796         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2797         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2798         PTRACE_O_MASK.
2799         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2800         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2801         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2802
2803         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2804         value.
2805
2806         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2807         _sigsys.
2808         (si_call_addr, si_syscall, si_arch): Define new macro.
2809         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2810         _sigsys.
2811         (si_call_addr, si_syscall, si_arch): Define new marcro.
2812         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2813         _sigsys.
2814         (si_call_addr, si_syscall, si_arch): Define new macro.
2815         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2816         _sigsys.
2817         (si_call_addr, si_syscall, si_arch): Define new macro.
2818
2819 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2820
2821         [BZ #13717]
2822         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2823         Change to 2.4.21 where previously 2.4.1.
2824         * sysdeps/unix/sysv/linux/configure: Regenerated.
2825         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2826         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2827         Linux kernel version.
2828         (__ASSUME_STD_AUXV): Remove.
2829         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2830         kernel version.
2831         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2832         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2833         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2834         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2835         (__ASSUME_NETLINK_SUPPORT): Likewise.
2836         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2837         (__no_netlink_support): Remove conditional definition.
2838         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2839         Remove.
2840         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2841         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2842         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2843         (if_nameindex_ioctl): Remove.
2844         (if_nameindex_netlink): Do not handle __no_netlink_support.
2845         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2846         code.
2847         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2848         Remove conditional code.
2849         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2850         code.
2851         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2852         unconditional.
2853         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2854         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2855         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2856         Remove.
2857         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2858         [!__ASSUME_STD_AUXV]: Remove conditional code.
2859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2860         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2861         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2863         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2864         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2865         code.
2866         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2868         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2869         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2870         conditional code.
2871         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2873         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2874         code.
2875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2876         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2877         conditional code.
2878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2879         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2880         code unconditional.
2881         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2882         conditional code.
2883         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2884         unconditional.
2885         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2886         conditional code.
2887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2888         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2889         unconditional.
2890         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2891         conditional code.
2892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2893         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2894         code unconditional.
2895         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2896         conditional code.
2897         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2898         unconditional.
2899         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2900         conditional code.
2901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2902         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2903         code unconditional.
2904         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2905         conditional code.
2906         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2907         unconditional.
2908         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2909         conditional code.
2910
2911 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2912
2913         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2914         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2915         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2916         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2917         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2918         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2919         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2920         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2921         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2922         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2923         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2924         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2925         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2926         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2927         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2928         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2929         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2930         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2931         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2932         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2933         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2934         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2935         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2936
2937 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2938
2939         * Versions.def: Add GLIBC_2.17.
2940         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2941         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2942         Introduce __libc_secure_getenv.
2943         * stdlib/Versions (2.17): Add secure_getenv
2944         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2945         * stdlib/secure-getenv.c: Rename __secure_getenv to
2946         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2947         symbol __secure_getenv for GLIBC_2.0.
2948         * stdlib/tst-secure-getenv.c: New.
2949         * stdlib/Makefile (tests): Add testcase.
2950         * manual/startup.texi (Environment Access): Document
2951         secure_getenv.
2952         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2953         __libc_secure_getenv.
2954         * inet/ruserpass.c (ruserpass): Likewise.
2955         * malloc/mtrace.c (mtrace): Likewise.
2956         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2957         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2958         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2959         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2960         HAVE_SECURE_GETENV.
2961         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2962         __secure_getenv to __libc_secure_getenv.
2963         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2965         Likewise.
2966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2967         Likewise.
2968         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2969         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2970         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2971         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2974         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2975
2976 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2977
2978         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
2979         (struct La_i86_retval): Likewise.
2980         (struct La_x86_64_regs): Likewise.
2981         (struct La_x86_64_retval): Likewise.
2982         (struct La_x32_regs): Likewise.
2983         (struct La_x32_retval): Likewise.
2984         (struct La_ppc32_regs): Likewise.
2985         (struct La_ppc32_retval): Likewise.
2986         (struct La_ppc64_regs): Likewise.
2987         (struct La_ppc64_retval): Likewise.
2988         (struct La_sh_regs): Likewise.
2989         (struct La_sh_retval): Likewise.
2990         (struct La_s390_32_regs): Likewise.
2991         (struct La_s390_32_retval): Likewise.
2992         (struct La_s390_64_regs): Likewise.
2993         (struct La_s390_64_retval): Likewise.
2994         (struct La_sparc32_regs): Likewise.
2995         (struct La_sparc32_retval): Likewise.
2996         (struct La_sparc64_regs): Likewise.
2997         (struct La_sparc64_retval): Likewise.
2998         (struct audit_ifaces): Remove architecture-specific pltenter and
2999         pltexit members.
3000         * sysdeps/i386/ldsodefs.h: New file.
3001         * sysdeps/powerpc/ldsodefs.h: Likewise.
3002         * sysdeps/s390/ldsodefs.h: Likewise.
3003         * sysdeps/sh/ldsodefs.h: Likewise.
3004         * sysdeps/sparc/ldsodefs.h: Likewise.
3005         * sysdeps/x86_64/ldsodefs.h: Likewise.
3006
3007 2012-07-25  Marek Polacek  <polacek@redhat.com>
3008
3009         [BZ #6808]
3010         * math/libm-test.inc (yn_test): Add another test.
3011         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3012         to ERANGE when the result is +-Inf.
3013         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3014         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3015         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3016         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3017
3018 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3019
3020         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3021         equal to 0.
3022         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3023         clock_t.
3024         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3025
3026 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3027
3028         * configure.in <sysdeps resolving>: Correct printing
3029         Implies_before.
3030         * configure: Regenerate.
3031
3032 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3033
3034         * math/w_ilogb.c: Include <limits.h>.
3035         * math/w_ilogbl.c: Likewise.
3036
3037 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3038
3039         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3040         va_copy.  Document allowing for unavailable va_copy only as
3041         pre-C99 compatibility.
3042         * manual/string.texi (Copying and Concatenation): Use va_copy
3043         instead of __va_copy in concat example.
3044
3045 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3046
3047         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3048         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3049         it if not null.
3050
3051         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3052         with O_NOLINK passed to __file_name_lookup.
3053
3054         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3055         with O_NOLINK passed to __file_name_lookup.
3056
3057         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3058         negative N or less than NGIDS.
3059
3060         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3061         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3062         enough.  Use memcpy instead of strncpy.
3063
3064 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3065
3066         * elf/Makefile (check-data): Remove.
3067         (localplt.data): New vpath directive.
3068         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3069         instead of $(check-data).
3070         * scripts/data/localplt-generic.data: Move to ...
3071         * sysdeps/generic/localplt.data: ... here.
3072         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3073         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3074         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3076         ... here.
3077         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3079         ... here.
3080         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3082         ... here.
3083         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3084         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3085         ... here.
3086         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3087         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3088         ... here.
3089         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3090         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3091         ... here.
3092
3093 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3094
3095         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3096         PPC32 and PPC64 files.
3097         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3098         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3099
3100 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3101
3102         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3103         __makecontext_ret to ...
3104         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3105         ... here and call exit if uc_link is NULL.  New file.
3106         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3107         __makecontext_ret.S.
3108         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3109         __makecontext_ret to ...
3110         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3111         ... here and call exit if uc_link is NULL.  New file.
3112         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3113         __makecontext_ret.S.
3114
3115 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3116
3117         * elf/elf.h (R_390_IRELATIVE): New definition.
3118         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3119         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3120         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3121         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3122         (elf_machine_lazy_rel): Likewise.
3123         * sysdeps/s390/dl-irel.h: New file.
3124         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3125         * sysdeps/s390/s390-64/memset.S: New asm code.
3126         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3127         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3128         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3129         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3130         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3131         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3132         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3133         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3134         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3135         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3136         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3137         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3138         * sysdeps/s390/s390-32/memset.S: New asm code.
3139         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3140
3141 2012-07-17  Marek Polacek  <polacek@redhat.com>
3142
3143         [BZ #14349]
3144         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3145         * sysdeps/s390/s390-64/configure.in: Likewise.
3146         * sysdeps/sparc/configure.in: Likewise.
3147         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3148         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3149         * sysdeps/i386/configure.in: Likewise.
3150         * sysdeps/x86_64/configure.in: Likewise.
3151         * sysdeps/sh/configure.in: Likewise.
3152         * sysdeps/s390/s390-32/configure: Regenerated.
3153         * sysdeps/s390/s390-64/configure: Likewise.
3154         * sysdeps/x86_64/configure: Likewise.
3155         * sysdeps/sh/configure: Likewise.
3156         * sysdeps/powerpc/powerpc64/configure: Likewise.
3157         * sysdeps/powerpc/powerpc32/configure: Likewise.
3158         * sysdeps/sparc/configure: Likwise.
3159         * sysdeps/i386/configure: Likewise.
3160
3161         * elf/dl-open.c: Comment fixes.
3162
3163 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3164
3165         * Makefile [CXX] (check-data): Remove.
3166         [CXX] (c++-types.data): New vpath directive.
3167         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3168         vpath.  Do not allow for C++ type data being missing.
3169         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3170         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3171         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3172         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3173         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3174         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3175         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3177         ... here.
3178         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3180         ... here.
3181         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3182         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3183         ... here.
3184         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3185         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3186         ... here.
3187         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3188         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3189         ... here.
3190         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3191         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3192         ... here.
3193         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3194         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3195         ... here.
3196         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3197         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3198
3199         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3200         definitions to architecture-specific files.
3201         (TLS_IE): Likewise.
3202         (TLS_LD): Likewise.
3203         (TLS_GD): Likewise.
3204         * sysdeps/i386/tls-macros.h: New file.
3205         * sysdeps/powerpc/tls-macros.h: Likewise.
3206         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3207         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3208         * sysdeps/sh/tls-macros.h: Likewise.
3209         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3210         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3211         * sysdeps/x86_64/tls-macros.h: Likewise.
3212
3213 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3214
3215         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3216         zero value for regular exit case.
3217
3218         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3219         (__start_context): Preserve zero value for regular exit case.
3220
3221 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3222             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3223
3224         * manual/setjmp.texi (setcontext): Clarify normal process
3225         termination when uc_link is the null pointer.
3226         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3227         exit call.
3228
3229 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3230
3231         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3232         preprocessor.  Test for each exception mask separately.
3233
3234 2012-07-16  Andreas Jaeger  <aj@suse.de>
3235
3236         * po/ru.po: Update from translation team.
3237
3238 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3239
3240         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3241         equal to 0.
3242         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3243         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3244         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3245         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3246         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3247
3248 2012-07-13  Andreas Jaeger  <aj@suse.de>
3249
3250         * po/fr.po: Update from translation team.
3251
3252 2012-07-12  Marek Polacek  <polacek@redhat.com>
3253
3254         [BZ #14173]
3255         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3256         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3257         loop condition.
3258
3259 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3260
3261         [BZ #13717]
3262         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3263         Change to 2.4.1 where previously 2.4.0.
3264         * sysdeps/unix/sysv/linux/configure: Regenerated.
3265         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3266         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3267         version.
3268         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3269         (__ASSUME_AT_CLKTCK): Remove.
3270         (__ASSUME_AT_PAGESIZE): Likewise.
3271         (__ASSUME_AT_XID): Likewise.
3272         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3273         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3274         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3275         unconditionally.
3276         (HAVE_AUX_PAGESIZE): Likewise.
3277         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3278         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3279         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3280
3281 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3282
3283         [BZ #14307]
3284         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3285         the temporary buffer used to invoke __gethostbyname2_r,
3286         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3287         host_data / struct gaih_addrtuple.
3288         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3289         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3290         header file nss/nsswitch.h.
3291         * nss/nsswitch.h (global scope): Add definition of implementation
3292         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3293         resolv/nss_dns/dns-host.c).
3294
3295 2012-07-11  Andreas Jaeger  <aj@suse.de>
3296
3297         * po/fr.po: Update from translation team.
3298
3299         * po/sv.po: Update from translation team
3300         * po/fr.po: Another update from translation team.
3301
3302 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3303
3304         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3305         for subnormals or multiply small sinh result by itself.
3306         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3307         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3308
3309 2012-07-11  David S. Miller  <davem@davemloft.net>
3310
3311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3312
3313 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3314
3315         [BZ #14347]
3316         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3317         (INTERNAL_MARK): Shift it here.
3318
3319 2012-07-10  Marek Polacek  <polacek@redhat.com>
3320
3321         [BZ #14151]
3322         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3323         libc_cv_asm_global_directive with .globl.
3324         * configure: Regenerated.
3325         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3326         with .globl.
3327         * sysdeps/i386/configure: Regenerated.
3328         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3329         with .globl.
3330         * sysdeps/x86_64/configure: Regenerated.
3331         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3332         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3333         * elf/tst-unique2mod2.c: Likewise.
3334         * elf/tst-unique2mod1.c: Likewise.
3335         * elf/tst-unique1mod2.c: Likewise.
3336         * elf/tst-unique1mod1.c: Likewise.
3337         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3338         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3339         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3340         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3341         * sysdeps/mach/sysdep.h: Likewise.
3342         * sysdeps/i386/sysdep.h: Likewise.
3343         * sysdeps/i386/i386-mcount.S: Likewise.
3344         * sysdeps/x86_64/_mcount.S: Likewise.
3345         * sysdeps/x86_64/sysdep.h: Likewise.
3346         * sysdeps/sh/_mcount.S: Likewise.
3347         * sysdeps/sh/sysdep.h: Likewise.
3348         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3349         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3350         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3351         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3352         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3353         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3354         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3355         * locale/localeinfo.h: Likewise.
3356         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3357         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3358
3359 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3360
3361         [BZ #14336]
3362         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3363         system".
3364         * manual/message.texi (The Uniforum approach): Likewise.
3365         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3366         (glibc iconv Implementation): Likewise.
3367
3368 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3369
3370         [BZ #14337]
3371         * math/s_clog.c (__clog): Avoid scaling a value down where that
3372         could result in underflow.
3373         * math/s_clog10.c (__clog10): Likewise.
3374         * math/s_clog10f.c (__clog10f): Likewise.
3375         * math/s_clog10l.c (__clog10l): Likewise.
3376         * math/s_clogf.c (__clogf): Likewise.
3377         * math/s_clogl.c (__clogl): Likewise.
3378         * math/libm-test.inc (clog_test): Add more tests.
3379         (clog10_test): Likewise.
3380         * sysdeps/i386/fpu/libm-test-ulps: Update.
3381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3382
3383 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3384
3385         [BZ #14283]
3386         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3387         by 7 not 8 to examine high bit of fractional part.
3388
3389         [BZ #14042]
3390         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3391         for call to __mcount_internal.
3392         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3393         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3394         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3395
3396 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3397
3398         [BZ #14154]
3399         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3400         approximation for values within 0x1p-13f of an odd multiple of
3401         pi/4.
3402         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3403         exception.  Add more tests.
3404         * sysdeps/i386/fpu/libm-test-ulps: Update.
3405
3406         [BZ #6778]
3407         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3408         inputs and return -1 for them.  Do not check for +Inf in case not
3409         reachable for +Inf.
3410         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3411         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3412         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3413         and return -1 for them.  Do not check for +Inf in case not
3414         reachable for +Inf.
3415         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3416         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         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3421         spurious underflow.
3422         * sysdeps/i386/fpu/libm-test-ulps: Update.
3423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3424
3425 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3426
3427         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3428
3429 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3430
3431         [BZ #14157]
3432         [BZ #14331]
3433         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3434         could result in spurious underflow.  Scale down values above
3435         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3436         * math/s_csqrtf.c (__csqrtf): Likewise.
3437         * math/s_csqrtl.c (__csqrtl): Likewise.
3438         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3439         spurious underflow.
3440         * sysdeps/i386/fpu/libm-test-ulps: Update.
3441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3442
3443 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3444
3445         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3446         xopen-msg.sed.
3447         * catgets/xopen-msg.awk: New file.
3448         * catgets/xopen-msg.sed: Removed.
3449
3450         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3451         po2text.sed.
3452         * intl/po2test.awk: New file.
3453         * intl/po2test.sed: Removed.
3454
3455 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3456
3457         [BZ #14328]
3458         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3459         or multiply small sinh result by itself.
3460         * math/s_ctanf.c (__ctanf): Likewise.
3461         * math/s_ctanh.c (__ctanh): Likewise.
3462         * math/s_ctanhf.c (__ctanhf): Likewise.
3463         * math/s_ctanhl.c (__ctanhl): Likewise.
3464         * math/s_ctanl.c (__ctanl): Likewise.
3465         * math/libm-test.inc (ctan_test_tonearest): New function.
3466         (ctan_test_towardzero): Likewise.
3467         (ctan_test_downward): Likewise.
3468         (ctan_test_upward): Likewise.
3469         (ctanh_test_tonearest): Likewise.
3470         (ctanh_test_towardzero): Likewise.
3471         (ctanh_test_downward): Likewise.
3472         (ctanh_test_upward): Likewise.
3473         (main): Call these new functions.
3474         * sysdeps/i386/fpu/libm-test-ulps: Update.
3475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3476
3477 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3478
3479         * .gitignore: Delete /ports entry.
3480
3481 2012-07-03  Andreas Jaeger  <aj@suse.de>
3482
3483         * po/bg.po: Update from translation team.
3484         * po/cs.po: Likewise.
3485         * po/de.po: Likewise.
3486         * po/hr.po: Likewise.
3487         * po/nl.pl: Likewise.
3488         * po/pl.po: Likewise.
3489         * po/vi.po: Likewise.
3490
3491 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3492
3493         * Makeconfig [!+link] (+link-before-libc): New variable.
3494         [!+link] (+link-after-libc): Likewise.
3495         [!+link] (+link-tests): Likewise.
3496         [!+link] (+link): Define in terms of $(+link-before-libc) and
3497         $(+link-after-libc).
3498         [!+link-static] (+link-static-before-libc): New variable.
3499         [!+link-static] (+link-static-after-libc): Likewise.
3500         [!+link-static] (+link-static-tests): Likewise.
3501         [!+link-static] (+link-static): Define in terms of
3502         $(+link-static-before-libc) and $(+link-static-after-libc).
3503         [build-shared] (link-libc-before-gnulib): New variable.
3504         [build-shared] (link-libc-tests): Likewise.
3505         [build-shared] (link-libc): Define in terms of
3506         $(link-libc-before-gnulib).
3507         [!build-shared] (link-libc-tests): New variable.
3508         (link-libc-static-tests): New variable.
3509         [!gnulib] (gnulib-arch): New variable.
3510         [!gnulib] (gnulib-tests): Likewise.
3511         [!gnulib] (static-gnulib-arch): Likewise.
3512         [!gnulib] (static-gnulib-tests): Likewise.
3513         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3514         Define with "=" instead of ":=".
3515         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3516         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3517         * Rules (binaries-all-notests): New variable.
3518         (binaries-all-tests): Likewise.
3519         (binaries-static-notests): Likewise.
3520         (binaries-static-tests): Likewise.
3521         (binaries-all): Define using $(binaries-all-notests) and
3522         $(binaries-all-tests).
3523         (binaries-static): Define using $(binaries-static-notests) and
3524         $(binaries-static-tests).
3525         (binaries-shared-tests): New variable.
3526         (binaries-shared-notests): Likewise.
3527         (binaries-shared): Remove variable.
3528         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3529         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3530         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3531         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3532         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3533         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3534         * elf/Makefile (sln-modules): New variable.
3535         (extra-objs): Add $(sln-modules:=.o).
3536         (ldconfig-modules): Add static-stubs.
3537         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3538         * elf/static-stubs.c: New file.
3539
3540         [BZ #14283]
3541         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3542         by 7 not 8 to examine high bit of fractional part.  Use volatile
3543         variables when splitting into final array of floats if
3544         __FLT_EVAL_METHOD__ != 0.
3545         * math/libm-test.inc (cos_test): Add another test.
3546         (sin_test): Likewise.
3547         * sysdeps/i386/fpu/libm-test-ulps: Update.
3548
3549         [BZ #14273]
3550         * math/libm-test.inc (cosh_test): Add more tests.
3551
3552         * version.h (RELEASE): Set to "development".
3553         (VERSION): Set to "2.16.90".
3554
3555 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3556
3557         * NEWS: Update copyright. Remove last-updated date.
3558         Mention math library bug fixes and timezone data changes.
3559         * README: Mention GNU/Hurd, x32, and HPPA support status.
3560
3561 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3562
3563         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3564
3565 2012-06-27  Andreas Jaeger  <aj@suse.de>
3566
3567         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3568
3569 2012-06-25  Andreas Jaeger  <aj@suse.de>
3570
3571         * sysdeps/s390/fpu/libm-test-ulps: Update.
3572
3573 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3574             Thomas Schwinge  <thomas@codesourcery.com>
3575
3576         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3577         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3578         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3579         fanotify_mark.
3580
3581 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3582
3583         * sysdeps/mach/start.c: Remove file.
3584         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3585         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3586         * sysdeps/sh/init-first.c: Likewise.
3587
3588         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3589         registers for frame unwinding purposes, add CFI directives.
3590         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3591         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3592         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3593         Likewise.
3594
3595         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3596         __fortify_fail returning.
3597         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3598
3599         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3600         sysdeps/sh/____longjmp_chk.S.
3601         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3602         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3603         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3604         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3605
3606         * sysdeps/sh/abort-instr.h: New file.
3607         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3608         process in case exit returns.
3609
3610         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3611         initialize the GOT register before use.
3612
3613         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3614         calculation of ARGC > 4.
3615
3616         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3617         meaningful names to some local labels.
3618
3619 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3620             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3621
3622         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3623         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3624         (__arch_compare_and_exchange_val_16_acq): Likewise.
3625         (__arch_compare_and_exchange_val_32_acq): Likewise.
3626         (atomic_exchange_and_add): Fix gUSA sequence.
3627         (atomic_add): Likewise.
3628         (atomic_add_negative): Likewise.
3629         (atomic_add_zero): Likewise.
3630         (atomic_bit_test_set): Likewise.
3631
3632 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3633
3634         [BZ #13579]
3635         * include/link.h (struct link_map): Add l_free_initfini.
3636         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3637         l_initfini.
3638         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3639         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3640         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3641         set.
3642
3643 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3644
3645         * configure.in: Use AC_LANG_SOURCE.
3646         * configure: Regenerate.
3647
3648 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3649
3650         * configure.in (libc_cv_localstatedir): New substituted variable.
3651         * configure: Regenerated.
3652         * config.make.in (localstatedir): New variable, substituted from
3653         libc_cv_localstatedir.
3654         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3655         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3656         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3657         * sysdeps/gnu/configure: Regenerated.
3658
3659 2012-06-21  Jeff Law  <law@redhat.com>
3660
3661         [BZ #14277]
3662         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3663         free.  Simplify list management for _LIBC case.
3664
3665 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3666
3667         [BZ #14273]
3668         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3669         Clear sign bit of 64-bit integer value before comparing against
3670         overflow value.
3671
3672         * sysdeps/mach/configure: Regenerated.
3673
3674 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3675
3676         [BZ #14278]
3677         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3678
3679 2012-06-21  Jeff Law  <law@redhat.com>
3680
3681         [BZ #13882]
3682         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3683         uint16_t for elements in the "seen" array to avoid char overflows.
3684         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3685         * elf/dl-open.c (dl_open_worker): Likewise.
3686
3687 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3688
3689         * scripts/list-sources.sh: Scan PORTS for translations.
3690         * po/libc.pot: Regenerated.
3691
3692 2012-06-21  Andreas Jaeger  <aj@suse.de>
3693
3694         [BZ #12194]
3695         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3696         warning.
3697         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3698         * bits/byteswap-16.h (__bswap_16): Likewise.
3699         * bits/byteswap.h (__bswap_constant_16): Likewise.
3700
3701 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3702
3703         [BZ #14117]
3704         * sysdeps/i386/fpu_control.h: Removed.
3705         * sysdeps/x86_64/fpu_control.h: Moved to ...
3706         * sysdeps/x86/fpu_control.h: Here.
3707
3708         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3709         (_FPU_SETCW): Likewise.
3710
3711 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         [BZ #14117]
3714         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3715         * sysdeps/x86/fpu/bits/mathinline.h: This.
3716         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3717
3718         [BZ #14050]
3719         [BZ #14117]
3720         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3721         functions if __x86_64__ is defined.
3722
3723 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3724
3725         * string/endian.h: Add !__ASSEMBLER__ condition for including
3726         conversion interfaces.
3727
3728 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3729
3730         [BZ #14241]
3731         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3732         of ABS(x) in calculating zero to negative powers other than odd
3733         integers.
3734         * math/libm-test.inc (pow_test): Add more tests.
3735
3736 2012-06-15  Andreas Jaeger  <aj@suse.de>
3737
3738         * manual/contrib.texi (Contributors): Update entry of Liubov
3739         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3740         Machado Filho.
3741
3742 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3743
3744         * string/string.h: Add __wur to GNU version of strerror_r.
3745
3746 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3747
3748         [BZ #14229]
3749         * string/Makefile (tests): Add tst-strtok_r.
3750         * string/tst-strtok_r.c: New file.
3751         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3752         RAX_LP/RDX_LP on SAVE_PTR.
3753
3754 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3755
3756         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3757
3758 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3759
3760         * libm_test.inc (csqrt_test): Allow more spurious underflow
3761         exceptions.
3762         (j0_test): Likewise.
3763         (j1_test): Likewise.
3764         (y0_test): Likewise.
3765         (y1_test): Likewise.
3766
3767 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3768
3769         * po/Makefile (libc.pot): Use UTF-8 charset.
3770
3771 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3772
3773         [BZ #14210]
3774         Suppress sign-conversion warning from FD_SET.
3775         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3776         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3777         not unsigned long int.
3778         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3779
3780 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3781
3782         [BZ #14050]
3783         [BZ #14117]
3784         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3785         __extern_always_inline instead of __extern_inline.
3786         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3787         (__signbit): Likewise.
3788         (__signbitl): Support C++ namespace.
3789         (lrintf): New inline function.
3790         (lrint): Likewise.
3791         (llrintf): Likewise.
3792         (llrint): Likewise.
3793         (fmaxf): Likewise.
3794         (fmax): Likewise.
3795         (fminf): Likewise.
3796         (fmin): Likewise.
3797         (rint): Likewise.
3798         (rintf): Likewise.
3799         (ceil): Likewise.
3800         (ceilf): Likewise.
3801         (floor): Likewise.
3802         (floorf): Likewise.
3803         (nearbyint): Likewise.
3804         (nearbyintf): Likewise.
3805
3806 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3807
3808         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3809         non-default versions.
3810
3811 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3812
3813         [BZ #14218]
3814         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3815
3816 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3817
3818         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3819         (FE_UPWARD, FE_DOWNWARD): Don't define.
3820         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3821         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3822
3823         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3824         reading it.
3825         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3826         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3827
3828 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3829
3830         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3831         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3832         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3833         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3834
3835 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3836
3837         [BZ #14117]
3838         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3839         * sysdeps/i386/fpu/Implies: New file.
3840         * sysdeps/x86_64/fpu/Implies: Likewise.
3841         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3842         * sysdeps/x86/fpu/bits/fenv.h: This.
3843
3844         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3845         __SSE_MATH__.
3846
3847 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3848
3849         [BZ #14134]
3850         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3851         character 0xffff that matches the last element of the
3852         conversion table.
3853
3854 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3855
3856         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3857         fmodl commit.
3858
3859 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3860
3861         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3862         values higher than 25.6283.
3863
3864 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3865
3866         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3867         subnormal exponent extraction and add some __builtin_expect.
3868         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3869         Fix for subnormal mantissa calculation.
3870
3871 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3872
3873         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3874         cpu2 is -1 and errno is not ENOSYS.
3875
3876 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3877
3878         [BZ #14117]
3879         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3880         * sysdeps/x86/bits/string.h: This.
3881         * sysdeps/x86_64/bits/string.h: Removed.
3882
3883         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3884         if not compiling for x86-64, but compiling for >= i486.
3885
3886         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3887         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3888
3889         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3890         New macro from Linux kernel 3.4.0.
3891         (FP_XSTATE_MAGIC2): Likewise.
3892         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3893         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3894         (struct _fpx_sw_bytes): New struct.
3895         (struct _xsave_hdr): Likewise.
3896         (struct _ymmh_state): Likewise.
3897         (struct _xstate): Likewise.
3898
3899         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3900         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3901         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3902         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3903         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3904         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3905
3906         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3907         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3908         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3909         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3910         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3911         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3912
3913 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3914
3915         [BZ #13743]
3916         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3917         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3918         (sysdep_headers): Include sys/platform/ppc.h.
3919         * sysdeps/powerpc/test-gettimebase.c: Test for
3920         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3921         * manual/Makefile (appendices): Include platform.texi.
3922         * manual/contrib.texi (Contributors): Update @node pointers.
3923         * manual/maint.texi (Maintenance): Likewise.
3924         (Platform): New node.
3925         * manual/platform.texi: New file.  Document the new features.
3926
3927 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3928             Jakub Jelinek  <jakub@redhat.com>
3929
3930         [BZ #14188]
3931         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3932         where __builtin_expect is unavailable.
3933
3934 2012-06-03  David S. Miller  <davem@davemloft.net>
3935
3936         * stdlib/longlong.h: Updated from GCC.
3937
3938 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3939
3940         [BZ #14042]
3941         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3942         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3943         __mcount_internal.
3944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3945         (GLIBC_2.16): Likewise.
3946
3947 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3948
3949         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3950
3951 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3952
3953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3954         (default-abi): New variable.
3955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3956         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3957         variable.
3958         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3959         Likewise.
3960         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3961         Likewise.
3962         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3963         Likewise.
3964
3965         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3966         definition.  Document in comment.
3967
3968 2012-06-01  David S. Miller  <davem@davemloft.net>
3969
3970         * stdlib/longlong.h: Updated from GCC.
3971
3972 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3973
3974         [BZ #14117]
3975         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3976         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
3977         sys/debugreg.h sys/io.h here.
3978         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
3979         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
3980         sys/io.h.
3981         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
3982         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
3983         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
3984         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
3985         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
3986         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
3987
3988         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
3989         Define only if __x86_64__ is defined.
3990
3991 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3992
3993         [BZ #14048]
3994         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
3995         Use int64_t for variable i.
3996         * math/libm-test.inc (fmod_test): Add more tests.
3997
3998         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
3999         z computation is not scheduled after fetestexcept.
4000         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4001         Use math_force_eval instead of asm to ensure calculation scheduled
4002         before exception test.
4003         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4004         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4005
4006 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4007
4008         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4009         computation is not scheduled after fetestexcept.
4010
4011 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4012
4013         [BZ #14117]
4014         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4015         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4016
4017 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4018
4019         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4020         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4021
4022 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4023
4024         [BZ #14117]
4025         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4026         <bits/wordsize.h>.
4027         (__WCHAR_MIN): Support __WORDSIZE == 64.
4028         (__WCHAR_MAX): Likewise.
4029
4030         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4031         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4032
4033         [BZ #14183]
4034         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4035         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4036
4037         [BZ #14117]
4038         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4039         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4040
4041         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4042         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4043
4044         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4045         Defined to 1 if __x86_64__ isn't defined.
4046         (_STAT_VER_LINUX_OLD): New.
4047         (st_atime): Remove duplicate.
4048         (st_mtime): Likewise.
4049         (st_ctime): Likewise.
4050
4051 2012-05-31  David S. Miller  <davem@davemloft.net>
4052
4053         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4054         entries.
4055
4056 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4057
4058         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4059         gen-libm-test.pl.
4060
4061         [BZ #14132]
4062         * elf/dl-reloc.c: Include <_itoa.h>.
4063         (_dl_reloc_bad_type): Remove use of INTUSE.
4064         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4065         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4066         * stdio-common/psiginfo.c (psiginfo): Likewise.
4067         * stdio-common/psignal.c (psignal): Likewise.
4068         * string/strsignal.c (strsignal): Likewise.
4069         * include/signal.h (_sys_siglist): Declare hidden proto.
4070         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4071         INTVARDEF with libc_hidden_data_def.
4072         * stdio-common/itoa-udigits.c: Likewise.
4073         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4074         (_itoa_lower_digits_internal): Remove declaration.
4075         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4076         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4077         (_sys_sigabbrev_internal): Remove aliases.
4078         (_sys_siglist): Define hidden alias.
4079
4080 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4081
4082         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4083         bits/sysctl.h.
4084
4085 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4086
4087         [BZ #14117]
4088         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4089         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4090
4091         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4092         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4093         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4094         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4095         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4096         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4097
4098         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4099         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4100         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4101
4102         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4103         with __addr.
4104         (insw): Likewise.
4105         (insl): Likewise.
4106         (outsb): Likewise.
4107         (outsw): Likewise.
4108         (outsl): Likewise.
4109
4110         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4111         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4112         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4113
4114         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4115         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4116         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4117         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4118         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4119         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4120
4121         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4122         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4123
4124         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4125         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4126
4127         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4128         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4129         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4130
4131         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4132         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4133         to ...
4134         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4135
4136         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4137         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4138         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4139
4140         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4141         for x86-64.
4142         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4143
4144 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4145
4146         * math/math.h (M_El): Use two more decimal places.
4147         (M_LOG2El): Likewise.
4148         (M_LOG10El): Likewise.
4149         (M_LN2l): Likewise.
4150         (M_LN10l): Likewise.
4151         (M_PIl): Likewise.
4152         (M_PI_2l): Likewise.
4153         (M_PI_4l): Likewise.
4154         (M_1_PIl): Likewise.
4155         (M_2_PIl): Likewise.
4156         (M_2_SQRTPIl): Likewise.
4157         (M_SQRT2l): Likewise.
4158         (M_SQRT1_2l): Likewise.
4159
4160 2012-05-31  David S. Miller  <davem@davemloft.net>
4161
4162         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4163         values between float registers.
4164         * sysdeps/sparc/sparc64/memset.S: Likewise.
4165         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4166
4167 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4168
4169         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4170         -D_FORTIFY_SOURCE=1.
4171         (CPPFLAGS-tst-longjmp_chk.c): Define.
4172         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4173         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4174         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4175         CFLAGS-tst-wchar-h.c.
4176
4177 2012-05-31  Marek Polacek  <polacek@redhat.com>
4178
4179         [BZ #14132]
4180         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4181         __endmntent_internal): Remove declaration.
4182         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4183         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4184         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4185
4186 2012-05-30  David S. Miller  <davem@davemloft.net>
4187
4188         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4189         (___Q_simulate_exceptions): Use real FP ops rather than writing
4190         into the %fsr.
4191         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4192         Likewise.
4193
4194 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4195
4196         [BZ #14117]
4197         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4198         * sysdeps/x86/bits/xtitypes.h: This.
4199
4200         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4201         * sysdeps/x86/bits/wordsize.h: This.
4202
4203         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4204         * sysdeps/x86/bits/huge_vall.h: This.
4205
4206         * sysdeps/i386/bits/select.h: Removed.
4207         * sysdeps/x86_64/bits/select.h: Renamed to ...
4208         * sysdeps/x86/bits/select.h: This.
4209
4210         * sysdeps/i386/bits/setjmp.h: Removed.
4211         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4212         * sysdeps/x86/bits/setjmp.h: This.
4213
4214         * sysdeps/i386/bits/mathdef.h: Removed.
4215         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4216         * sysdeps/x86/bits/mathdef.h: This.
4217
4218 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4219
4220         [BZ #14132]
4221         * include/sys/socket.h (__connect_internal)
4222         (__libc_sa_len_internal): Remove declaration.
4223         (__connect, __libc_sa_len): Declare hidden_proto.
4224         (SA_LEN): Remove use of INTUSE.
4225         * socket/connect.c: Add libc_hidden_def.
4226         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4227         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4228         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4229         alias.
4230         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4231         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4232         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4233         of adding _internal alias.
4234
4235 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4236
4237         [BZ #14117]
4238         * sysdeps/i386/bits/link.h: Removed.
4239         * sysdeps/i386/bits/linkmap.h: Likewise.
4240         * sysdeps/x86_64/bits/link.h: Renamed to ...
4241         * sysdeps/x86/bits/link.h: This.
4242         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4243         * sysdeps/x86/bits/linkmap.h: This.
4244
4245         * sysdeps/i386/bits/endian.h: Removed.
4246         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4247         * sysdeps/x86/bits/endian.h: This.
4248
4249         * sysdeps/i386/bits/byteswap.h: Removed.
4250         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4251         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4252         * sysdeps/x86/bits/byteswap.h: This.
4253         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4254         * sysdeps/x86/bits/byteswap-16.h: This.
4255         * sysdeps/i386/Implies: Add x86.
4256         * sysdeps/x86_64/Implies: Likewise.
4257
4258 2012-05-30  David S. Miller  <davem@davemloft.net>
4259
4260         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4261         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4262         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4263         (FP_TRAPPING_EXCEPTIONS): Define.
4264         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4265         (FP_TRAPPING_EXCEPTIONS): Define.
4266         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4267         subnormals only when inexact has been signalled or underflow
4268         exceptions are enabled.
4269         (_FP_PACK_CANONICAL): Likewise.
4270
4271 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4272
4273         [BZ #14183]
4274         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4275         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4276
4277 2012-05-30  Richard Henderson  <rth@twiddle.net>
4278
4279         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4280         with #ifndef NOT_IN_libc.
4281
4282         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4283         marked to avoid plt entry.
4284
4285 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4286
4287         [BZ #14112]
4288         * Makeconfig (default-abi): New macro.
4289         (abi-includes): Likewise.
4290         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4291         $(abi-$(default-abi)-lib-soname) for soname if defined.
4292         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4293         abi-variants.
4294         * Makefile (installed-stubs): Likewise.
4295         * include/stubs-biarch.h: Removed.
4296         * scripts/lib-names.awk: Only handle one library at a time.
4297         * scripts/soversions.awk: Remove WORDSIZE support.
4298         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4299         entries.
4300         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4301         Removed.
4302         (syscall-list-default-condition): Likewise.
4303         (syscall-list-default-condition): Likewise.
4304         (syscall-list-includes): Likewise.
4305         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4306         syscall-list-* with abi-*.  Handle undefined abi-variants.
4307         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4308         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4309         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4310         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4311         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4312         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4313         Removed.
4314         (syscall-list-32-options): Likewise.
4315         (syscall-list-32-condition): Likewise.
4316         (syscall-list-64-options): Likewise.
4317         (syscall-list-64-condition): Likewise.
4318         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4319         macro.
4320         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4321         Renamed to ...
4322         (abi-*): This.
4323         (abi-64-ld-soname): New macro.
4324         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4325         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4326         Renamed to ...
4327         (abi-*): This.
4328         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4329         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4330
4331 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4332
4333         * sysdeps/unix/sysv/linux/kernel-features.h
4334         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4335         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4336         include <kernel-features.h>.
4337         [!__NR_ftruncate64]: Remove conditional code.
4338         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4339         [__NR_ftruncate64]: Make code unconditional.
4340         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4341         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4342         include <kernel-features.h>.
4343         [!__NR_ftruncate64]: Remove conditional code.
4344         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4345         [__NR_ftruncate64]: Make code unconditional.
4346         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4348         include <kernel-features.h>.
4349         [!__NR_ftruncate64]: Remove conditional code.
4350         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4351         [__NR_ftruncate64]: Make code unconditional.
4352         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4354         include <kernel-features.h>.
4355         [!__NR_ftruncate64]: Remove conditional code.
4356         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4357         [__NR_ftruncate64]: Make code unconditional.
4358         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4359
4360         * configure.in (libc_cv_fpie): Weaken to a compile test using
4361         LIBC_TRY_CC_OPTION.
4362         * configure: Regenerated.
4363
4364 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4365
4366         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4367         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4369         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4370         Refreshed.
4371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4374         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4376         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4377         Refreshed.
4378
4379 2012-05-27  David S. Miller  <davem@davemloft.net>
4380
4381         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4382         (___Q_zero): New.
4383         (__Q_simulate_exceptions): Return void.  Change to simulate
4384         exceptions by writing into the %fsr.
4385         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4386         (__Qp_handle_exceptions): Likewise.
4387         (numbers): Delete.
4388         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4389         __Qp_handle_exceptions.
4390         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4391         __Qp_handle_exceptions.
4392         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4393         as unused and give dummy FP_RND_NEAREST initializer.
4394         (FP_INHIBIT_RESULTS): Define.
4395         (___Q_simulate_exceptions): Update declaration.
4396         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4397         formatting.
4398         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4399         as unused and give dummy FP_RND_NEAREST initializer.
4400         (__Qp_handle_exceptions): Update declaration.
4401         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4402         formatting.
4403
4404 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4405
4406         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4407         the temporary FPU control word.
4408         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4409         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4410         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4411         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4412         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4413         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4414         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4415         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4416         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4417         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4418         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4419
4420 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4421
4422         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4423         fields.
4424
4425 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4426
4427         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4428         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4429         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4430         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4431         Likewise.
4432         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4433         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4434         Likewise.
4435
4436 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4437
4438         * po/h.po: Update from translation team.
4439
4440 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4441
4442         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4443
4444         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4445         handling of denormals.
4446         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4447         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4448         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4449         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4450         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4451         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4452         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4453         Likewise.
4454
4455 2012-05-26  Marek Polacek  <polacek@redhat.com>
4456
4457         [BZ #14152]
4458         * math/libm-test.inc (fma_test): Don't always expect underflow
4459         exception.
4460
4461 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4462
4463         [BZ #12416]
4464         * elf/tst-execstack.c: Include stackinfo.h.
4465         (do_test): Adjust test case to ensure that pthread_getattr_np
4466         behaviour remains the same after marking stack executable.
4467
4468 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4469
4470         * sysdeps/unix/sysv/linux/kernel-features.h
4471         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4472         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4473         kernel-features.h.
4474         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4475         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4476         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4477         kernel-features.h.
4478         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4479         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4480
4481 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4482
4483         * configure.in: Define the default includes to being none.
4484         * configure: Regenerated.
4485
4486 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4487
4488         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4489         * sysdeps/x86_64/setjmp.S: Likewise.
4490         * sysdeps/i386/bsd-setjmp.S: Likewise.
4491         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4492         * sysdeps/i386/setjmp.S: Likewise.
4493         * sysdeps/i386/__longjmp.S: Likewise.
4494         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4495         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4496
4497         * include/stap-probe.h: New file.
4498         * configure.in: Handle --enable-systemtap.
4499         * configure: Regenerated.
4500         * config.h.in (USE_STAP_PROBE): New #undef.
4501         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4502         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4503         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4504
4505 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4506
4507         [BZ #13717]
4508         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4509         to 2.4.0 where earlier.
4510         * sysdeps/unix/sysv/linux/configure: Regenerated.
4511         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4512         <kernel-features.h>.
4513         [__ASSUME_32BITUIDS]: Make code unconditional.
4514         [!__ASSUME_32BITUIDS]: Remove conditional code.
4515         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4516         <kernel-features.h>.
4517         [__ASSUME_32BITUIDS]: Make code unconditional.
4518         [!__ASSUME_32BITUIDS]: Remove conditional code.
4519         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4520         [__ASSUME_32BITUIDS]: Make code unconditional.
4521         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4522         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4523         <kernel-features.h>.
4524         [__ASSUME_32BITUIDS]: Make code unconditional.
4525         [!__ASSUME_32BITUIDS]: Remove conditional code.
4526         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4527         <kernel-features.h>.
4528         [__ASSUME_32BITUIDS]: Make code unconditional.
4529         [!__ASSUME_32BITUIDS]: Remove conditional code.
4530         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4531         <kernel-features.h>.
4532         [__ASSUME_32BITUIDS]: Make code unconditional.
4533         [!__ASSUME_32BITUIDS]: Remove conditional code.
4534         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4535         <kernel-features.h>.
4536         [__ASSUME_32BITUIDS]: Make code unconditional.
4537         [!__ASSUME_32BITUIDS]: Remove conditional code.
4538         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4539         <kernel-features.h>.
4540         [__ASSUME_32BITUIDS]: Make code unconditional.
4541         [!__ASSUME_32BITUIDS]: Remove conditional code.
4542         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4543         <kernel-features.h>.
4544         [__ASSUME_32BITUIDS]: Make code unconditional.
4545         [!__ASSUME_32BITUIDS]: Remove conditional code.
4546         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4547         <kernel-features.h>.
4548         [__ASSUME_32BITUIDS]: Make code unconditional.
4549         [!__ASSUME_32BITUIDS]: Remove conditional code.
4550         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4551         <kernel-features.h>.
4552         [__ASSUME_32BITUIDS]: Make code unconditional.
4553         [!__ASSUME_32BITUIDS]: Remove conditional code.
4554         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4555         <kernel-features.h>.
4556         [__ASSUME_32BITUIDS]: Make code unconditional.
4557         [!__ASSUME_32BITUIDS]: Remove conditional code.
4558         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4559         <kernel-features.h>.
4560         [__ASSUME_32BITUIDS]: Make code unconditional.
4561         [!__ASSUME_32BITUIDS]: Remove conditional code.
4562         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4563         <kernel-features.h>.
4564         [__NR_setresgid] (__setresgid): Do not declare.
4565         [__ASSUME_32BITUIDS]: Make code unconditional.
4566         [!__ASSUME_32BITUIDS]: Remove conditional code.
4567         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4568         <kernel-features.h>.
4569         [__NR_setresuid] (__setresuid): Do not declare.
4570         [__ASSUME_32BITUIDS]: Make code unconditional.
4571         [!__ASSUME_32BITUIDS]: Remove conditional code.
4572         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4573         <kernel-features.h>.
4574         [__ASSUME_32BITUIDS]: Make code unconditional.
4575         [!__ASSUME_32BITUIDS]: Remove conditional code.
4576         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4577         <kernel-features.h>.
4578         [__ASSUME_32BITUIDS]: Make code unconditional.
4579         [!__ASSUME_32BITUIDS]: Remove conditional code.
4580         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4581         <kernel-features.h>.
4582         [__ASSUME_32BITUIDS]: Make code unconditional.
4583         [!__ASSUME_32BITUIDS]: Remove conditional code.
4584         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4585         <kernel-features.h>.
4586         [__ASSUME_32BITUIDS]: Make code unconditional.
4587         [!__ASSUME_32BITUIDS]: Remove conditional code.
4588         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4589         <kernel-features.h>.
4590         [__ASSUME_32BITUIDS]: Make code unconditional.
4591         [!__ASSUME_32BITUIDS]: Remove conditional code.
4592         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4593         <kernel-features.h>.
4594         [__ASSUME_32BITUIDS]: Make code unconditional.
4595         [!__ASSUME_32BITUIDS]: Remove conditional code.
4596         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4597         <kernel-features.h>.
4598         [__ASSUME_32BITUIDS]: Make code unconditional.
4599         [!__ASSUME_32BITUIDS]: Remove conditional code.
4600         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4601         <kernel-features.h>.
4602         [__ASSUME_32BITUIDS]: Make code unconditional.
4603         [!__ASSUME_32BITUIDS]: Remove conditional code.
4604         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4605         <kernel-features.h>.
4606         [__ASSUME_32BITUIDS]: Make code unconditional.
4607         [!__ASSUME_32BITUIDS]: Remove conditional code.
4608         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4609         <kernel-features.h>.
4610         [__ASSUME_32BITUIDS]: Make code unconditional.
4611         [!__ASSUME_32BITUIDS]: Remove conditional code.
4612         * sysdeps/unix/sysv/linux/kernel-features.h
4613         (__ASSUME_SETRESUID_SYSCALL): Remove.
4614         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4615         (__ASSUME_32BITUIDS): Likewise.
4616         (__ASSUME_LDT_WORKS): Likewise.
4617         (__ASSUME_O_DIRECTORY): Likewise.
4618         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4619         architecture but not kernel version.
4620         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4621         (__ASSUME_MMAP2_SYSCALL): Likewise.
4622         (__ASSUME_STAT64_SYSCALL): Likewise.
4623         (__ASSUME_IPC64): Likewise.
4624         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4625         <kernel-features.h>.
4626         [__ASSUME_32BITUIDS]: Make code unconditional.
4627         [!__ASSUME_32BITUIDS]: Remove conditional code.
4628         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4629         <kernel-features.h>.
4630         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4631         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4632         132096]: Remove conditional code.
4633         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4634         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4635         <kernel-features.h>.
4636         [__ASSUME_32BITUIDS]: Make code unconditional.
4637         [!__ASSUME_32BITUIDS]: Remove conditional code.
4638         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4639         <kernel-features.h>.
4640         [__ASSUME_32BITUIDS]: Make code unconditional.
4641         [!__ASSUME_32BITUIDS]: Remove conditional code.
4642         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4643         <kernel-features.h>.
4644         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4645         unconditional.
4646         (__setresgid): Do not declare.
4647         [__ASSUME_32BITUIDS]: Make code unconditional.
4648         [!__ASSUME_32BITUIDS]: Remove conditional code.
4649         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4650         <kernel-features.h>.
4651         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4652         unconditional.
4653         (__setresuid): Do not declare.
4654         [__ASSUME_32BITUIDS]: Make code unconditional.
4655         [!__ASSUME_32BITUIDS]: Remove conditional code.
4656         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4657         <kernel-features.h>.
4658         [__ASSUME_32BITUIDS]: Make code unconditional.
4659         [!__ASSUME_32BITUIDS]: Remove conditional code.
4660         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4661         <kernel-features.h>.
4662         [__ASSUME_32BITUIDS]: Make code unconditional.
4663         [!__ASSUME_32BITUIDS]: Remove conditional code.
4664
4665 2012-05-25  Richard Henderson  <rth@twiddle.net>
4666
4667         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4668         dl_hwcap to ifunc resolver.
4669         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4670         elf_ifunc_invoke.
4671         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4672         dl_hwcap to ifunc resolver.
4673         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4674
4675 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4676
4677         [BZ #14153]
4678         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4679         for |x| <= 2**-26, not 2**-57.
4680         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4681         exception.
4682
4683 2012-05-24  Jeff Law  <law@redhat.com>
4684
4685         * stdio-common/Makefile (tests): Add bug25.
4686         * stdio-common/bug25.c: New test.
4687
4688 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4689
4690         [BZ #13576]
4691         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4692         multiple of MALLOC_ALIGNMENT in size.
4693         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4694
4695 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4696
4697         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4698         Require >= 256.
4699         (FILENAME_MAX): Use macro-int-constant.
4700         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4701         (_IOFBF): Use macro-int-constant.
4702         (_IOLBF): Likewise.
4703         (_IONBF): Likewise.
4704         (SEEK_CUR): Likewise.
4705         (SEEK_END): Likewise.
4706         (SEEK_SET): Likewise.
4707         (TMP_MAX): Likewise.
4708         (EOF): Use macro-int-constant.  Require < 0.
4709         (NULL): Use macro-constant.  Require == 0.
4710         (stdin): Require type to be FILE *.
4711         (stdout): Likewise.
4712         (stderr): Likewise.
4713         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4714         macro-int-constant.
4715         (EXIT_SUCCESS): Likewise.
4716         (NULL): Use macro-constant.  Require == 0.
4717         (RAND_MAX): Use macro-int-constant.
4718         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4719         [C99-based standards] (strtof): Require function.
4720         [C99-based standards] (strtold): Likewise.
4721         [C99-based standards] (strtoll): Likewise.
4722         [C99-based standards] (strtoull): Likewise.
4723         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4724         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4725         [ISO || ISO99 || ISO11] (math.h): Likewise.
4726         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4727         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4728         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4729
4730 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4731
4732         [BZ #14132]
4733         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4734         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4735         * intl/dgettext.c (DCGETTEXT): Likewise.
4736         * intl/gettext.c (DCGETTEXT): Likewise.
4737         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4738         * posix/regex_internal.h (gettext): Likewise.
4739         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4740         Remove declaration.
4741         * include/argz.h (__argz_count_internal)
4742         (__argz_stringify_internal): Remove declaration.
4743         (__argz_count, __argz_stringify): Declare hidden proto.
4744         * intl/dcgettext.c: Remove use of INTDEF.
4745         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4746         * string/argz-stringify.c: Likewise.
4747         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4748         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4749         Declare hidden proto.
4750         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4751         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4752         Declare hidden proto.
4753         * include/stdio.h (__asprintf_internal): Don't declare.
4754         (__asprintf): Don't define as macro.  Declare hidden proto.
4755         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4756         (__fsetlocking): Declare hidden proto.
4757         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4758         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4759         hidden proto.
4760         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4761         (_IO_setlinebuf): Remove use of INTUSE.
4762         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4763         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4764         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4765         Remove declaration.
4766         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4767         (_IO_do_flush): Remove use of INTUSE.
4768         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4769         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4770         (_IO_adjust_column, _IO_least_wmarker)
4771         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4772         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4773         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4774         (_IO_default_doallocate, _IO_wdefault_doallocate)
4775         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4776         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4777         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4778         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4779         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4780         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4781         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4782         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4783         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4784         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4785         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4786         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4787         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4788         proto.
4789         (_IO_flush_all_internal, _IO_adjust_column_internal)
4790         (_IO_default_uflow_internal, _IO_default_finish_internal)
4791         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4792         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4793         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4794         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4795         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4796         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4797         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4798         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4799         (_IO_file_close_internal, _IO_file_close_it_internal)
4800         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4801         (_IO_file_init_internal, _IO_file_attach_internal)
4802         (_IO_file_fopen_internal, _IO_file_read_internal)
4803         (_IO_file_sync_internal, _IO_file_seek_internal)
4804         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4805         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4806         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4807         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4808         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4809         (_IO_list_all_internal, _IO_link_in_internal)
4810         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4811         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4812         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4813         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4814         (_IO_do_write_internal, _IO_padn_internal)
4815         (_IO_getline_info_internal, _IO_getline_internal)
4816         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4817         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4818         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4819         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4820         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4821         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4822         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4823         with libc_hidden_ver, remove use of INTUSE.
4824         * libio/genops.c: Likewise.
4825         * libio/freopen.c: Likewise.
4826         * libio/freopen64.c: Likewise.
4827         * libio/iofclose.c: Likewise.
4828         * libio/iofdopen.c: Likewise.
4829         * libio/iofflush.c: Likewise.
4830         * libio/iofflush_u.c: Likewise.
4831         * libio/iofgets.c: Likewise.
4832         * libio/iofgets_u.c: Likewise.
4833         * libio/iofopen.c: Likewise.
4834         * libio/iofopncook.c: Likewise.
4835         * libio/iofread.c: Likewise.
4836         * libio/iofread_u.c: Likewise.
4837         * libio/ioftell.c: Likewise.
4838         * libio/iofwrite.c: Likewise.
4839         * libio/iogetline.c: Likewise.
4840         * libio/iogets.c: Likewise.
4841         * libio/iogetwline.c: Likewise.
4842         * libio/iopadn.c: Likewise.
4843         * libio/iopopen.c: Likewise.
4844         * libio/ioseekoff.c: Likewise.
4845         * libio/ioseekpos.c: Likewise.
4846         * libio/iosetbuffer.c: Likewise.
4847         * libio/iosetvbuf.c: Likewise.
4848         * libio/ioungetc.c: Likewise.
4849         * libio/ioungetwc.c: Likewise.
4850         * libio/iovdprintf.c: Likewise.
4851         * libio/iovsprintf.c: Likewise.
4852         * libio/iovsscanf.c: Likewise.
4853         * libio/memstream.c: Likewise.
4854         * libio/obprintf.c: Likewise.
4855         * libio/oldfileops.c: Likewise.
4856         * libio/oldiofclose.c: Likewise.
4857         * libio/oldiofdopen.c: Likewise.
4858         * libio/oldiofopen.c: Likewise.
4859         * libio/oldiopopen.c: Likewise.
4860         * libio/oldstdfiles.c: Likewise.
4861         * libio/putc.c: Likewise.
4862         * libio/setbuf.c: Likewise.
4863         * libio/setlinebuf.c: Likewise.
4864         * libio/stdfiles.c: Likewise.
4865         * libio/strops.c: Likewise.
4866         * libio/vasprintf.c: Likewise.
4867         * libio/vscanf.c: Likewise.
4868         * libio/vsnprintf.c: Likewise.
4869         * libio/vswprintf.c: Likewise.
4870         * libio/wfiledoalloc.c: Likewise.
4871         * libio/wfileops.c: Likewise.
4872         * libio/wgenops.c: Likewise.
4873         * libio/wmemstream.c: Likewise.
4874         * libio/wstrops.c: Likewise.
4875         * libio/__fpurge.c: Likewise.
4876         * libio/__fsetlocking.c: Likewise.
4877         * assert/assert.c: Likewise.
4878         * debug/fgets_chk.c: Likewise.
4879         * debug/fgets_u_chk.c: Likewise.
4880         * debug/fread_chk.c: Likewise.
4881         * debug/fread_u_chk.c: Likewise.
4882         * debug/gets_chk.c: Likewise.
4883         * debug/obprintf_chk.c: Likewise.
4884         * debug/vasprintf_chk.c: Likewise.
4885         * debug/vdprintf_chk.c: Likewise.
4886         * debug/vsnprintf_chk.c: Likewise.
4887         * debug/vsprintf_chk.c: Likewise.
4888         * malloc/mtrace.c: Likewise.
4889         * misc/error.c: Likewise.
4890         * misc/syslog.c: Likewise.
4891         * stdio-common/asprintf.c: Likewise.
4892         * stdio-common/fxprintf.c: Likewise.
4893         * stdio-common/getw.c: Likewise.
4894         * stdio-common/isoc99_fscanf.c: Likewise.
4895         * stdio-common/isoc99_scanf.c: Likewise.
4896         * stdio-common/isoc99_vfscanf.c: Likewise.
4897         * stdio-common/isoc99_vscanf.c: Likewise.
4898         * stdio-common/isoc99_vsscanf.c: Likewise.
4899         * stdio-common/printf-prs.c: Likewise.
4900         * stdio-common/printf_fp.c: Likewise.
4901         * stdio-common/printf_fphex.c: Likewise.
4902         * stdio-common/printf_size.c: Likewise.
4903         * stdio-common/putw.c: Likewise.
4904         * stdio-common/scanf.c: Likewise.
4905         * stdio-common/sprintf.c: Likewise.
4906         * stdio-common/tmpfile.c: Likewise.
4907         * stdio-common/vfprintf.c: Likewise.
4908         * stdio-common/vfscanf.c: Likewise.
4909         * stdlib/strfmon_l.c: Likewise.
4910         * sunrpc/openchild.c: Likewise.
4911         * sunrpc/xdr_stdio.c: Likewise.
4912         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4913         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4914
4915 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4916
4917         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4918
4919         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4920         in the third column, to generate for the shared library an IFUNC
4921         that uses _dl_vdso_vsym.
4922         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4923         * Makeconfig (object-suffixes-noshared): New variable.
4924
4925         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4926         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4927         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4928         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4929
4930         [BZ #14132]
4931         * include/sys/time.h (__gettimeofday): Remove macro.
4932         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4933         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4934         Remove INTDEF.
4935         (__gettimeofday): Add libc_hidden_def.
4936         (gettimeofday): Add libc_hidden_weak.
4937         * sysdeps/mach/gettimeofday.c: Likewise.
4938         * sysdeps/posix/gettimeofday.c: Likewise.
4939         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4940         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4941         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4942         (__gettimeofday_internal): Remove strong_alias.
4943         (__gettimeofday): Add libc_hidden_def.
4944         (gettimeofday): Add libc_hidden_weak.
4945         * sysdeps/unix/syscalls.list (gettimeofday):
4946         Remove __gettimeofday_internal alias.
4947
4948 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4949             H.J. Lu  <hongjiu.lu@intel.com>
4950
4951         [BZ #12495]
4952         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4953         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4954         (largebin_index_32_big): New.
4955         (largebin_index): Use it for 16-byte alignment.
4956         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4957         correction with front_misalign.
4958
4959 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4960
4961         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4962         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4963         Likewise.
4964         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4965         Likewise.
4966         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4967         Likewise.
4968         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4969         Likewise.
4970         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4971         Likewise.
4972         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4973         Likewise.
4974         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4975         Likewise.
4976         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
4977         Likewise.
4978         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
4979         Likewise.
4980         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
4981         Likewise.
4982         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4983         Likewise.
4984         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
4985         Likewise.
4986
4987         * scripts/data/c++-types-x32-linux-gnu.data: New file.
4988         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
4989
4990 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4991
4992         [BZ #10846]
4993         [BZ #14036]
4994         * math/libm-test.inc (exp_test): Add test from bug 14036.
4995         (pow_test): Add test from bug 10846.
4996
4997         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
4998         and other flags.
4999         (special_function): Do not include flags in test name.
5000         (parse_args): Likewise.
5001         * sysdeps/i386/fpu/libm-test-ulps: Update.
5002         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5003         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5004         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5006
5007         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5008         exceptions.
5009         * math/libm-test.inc ("Philosophy"): Update comment about
5010         exception testing.
5011         (UNDERFLOW_EXCEPTION): New macro.
5012         (UNDERFLOW_EXCEPTION_OK): Likewise.
5013         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5014         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5015         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5016         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5017         (INVALID_EXCEPTION_OK): Update value.
5018         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5019         (OVERFLOW_EXCEPTION_OK): Likewise.
5020         (IGNORE_ZERO_INF_SIGN): Likewise.
5021         (test_exceptions): Handle underflow exceptions.
5022         (acos_test): Update for underflow exception expectations.
5023         (cexp_test): Likewise.
5024         (clog_test): Likewise.
5025         (clog10_test): Likewise.
5026         (csqrt_test): Likewise.
5027         (ctan_test): Likewise.
5028         (ctanh_test): Likewise.
5029         (exp_test): Likewise.
5030         (exp10_test): Likewise.
5031         (exp2_test): Likewise.
5032         (expm1_test): Likewise.
5033         (fma_test): Likewise.
5034         (j0_test): Likewise.
5035         (jn_test): Likewise.
5036         (nexttoward_test): Likewise.
5037         (pow_test): Likewise.
5038         (scalbn_test): Likewise.
5039         (scalbln_test): Likewise.
5040         (tan_test): Likewise.
5041         (y1_test): Likewise.
5042         * sysdeps/i386/fpu/libm-test-ulps: Update.
5043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5044
5045 2012-05-23  David S. Miller  <davem@davemloft.net>
5046
5047         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5048         (__libc_sigaction): Remove unused local variables.
5049
5050 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5051
5052         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5053
5054 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5055
5056         mktime: avoid signed integer overflow
5057         * time/mktime.c (__mktime_internal): Do not mishandle the case
5058         where diff == INT_MIN.
5059
5060         mktime: simplify computation of average
5061         * time/mktime.c (ranged_convert): Use new time_t_avg function
5062         instead of rolling our own (probably-slower) code.
5063
5064         mktime: do not assume signed right shift propagates sign bit
5065         * time/mktime.c (isdst_differ): New static function.
5066         (__mktime_internal): No need to normalize tm_isdst now.
5067         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5068         tm_isdst values.
5069
5070         mktime: merge another wrapv change from gnulib
5071         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5072         from some compilers.
5073
5074         mktime: remove incorrect attempt at unusual arithmetics
5075         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5076         The code didn't really work on such machines anyway.
5077         (TYPE_MINIMUM): Assume two's complement.
5078         (twos_complement_arithmetic): Verify that long_int and time_t
5079         are two's complement (or unsigned, in the latter case).
5080
5081         mktime: check signed shifts on long_int and time_t, too
5082         * time/mktime.c (SHR): Check that shifts work as desired
5083         on the types long_int and time_t too, as SHR is used on
5084         such types.
5085
5086         mktime: do not assume 'long' is wide enough
5087         * time/mktime.c (verify): Move decl up.
5088         (long_int): New type.
5089         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5090         to remove assumption in the code that 'long' is wide enough to
5091         store year values.  This assumption is not true on x32 and on
5092         some non-glibc platforms.
5093
5094         mktime: merge wrapv change from gnulib
5095         * time/mktime.c (WRAPV): New macro.
5096         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5097         (guess_time_tm, __mktime_internal): Do not assume that signed
5098         integer overflow wraps around; modern compilers generate code
5099         where this assumption is no longer valid.
5100
5101 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5102
5103         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5104         Replace "jmp L(pseudo_end)" with "ret".
5105         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5106         Likewise.
5107
5108 2012-05-23  Andreas Jaeger  <aj@suse.de>
5109
5110         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5111         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5112
5113 2012-05-23  Andreas Jaeger  <aj@suse.de>
5114             Maximilian Attems  <max@stro.at>
5115
5116         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5117         New macros.
5118
5119 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5120
5121         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5122         code so that pseudo_end is just ret and the stack pointer is
5123         correct also for static library in error case.
5124
5125 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5126
5127         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5128         move to syscalls.list.
5129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5133
5134         * manual/install.texi (Running make install): Do not mention Linux
5135         kernel version for which pt_chown is not needed.
5136         (Linux): Do not mention problems with nscd with 2.0 kernels.
5137         * INSTALL: Regenerated.
5138
5139 2012-05-23  Andreas Jaeger  <aj@suse.de>
5140
5141         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5142         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5143         macro.
5144         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5145         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5146         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5147         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5148         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5149         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5150         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5151         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5152         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5153         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5154         * sysdeps/unix/sysv/linux/bits/in.h
5155         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5156
5157 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5158
5159         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5160         (PREPARE_VERSION): Just use assert instead, it will be elided
5161         under [NDEBUG] anyway.
5162
5163 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5164
5165         * sysdeps/unix/sysv/linux/Makefile: Include
5166         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5167         (sysdep_routines): Remove sysctl.
5168         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5169         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5170         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5171         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5172         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5173
5174 2012-05-22  Andreas Jaeger  <aj@suse.de>
5175
5176         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5177         that pseudo_end is just ret and the stack pointer is correct also
5178         for static library in error case.
5179
5180 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5181
5182         [BZ #14122]
5183         * nss/nsswitch.c (defconfig_entries): New variable.
5184         (__nss_database_lookup): Don't leak defconfig entries.
5185         (nss_parse_service_list): Don't leak on error paths.
5186         (free_database_entries): New function.
5187         (free_defconfig): New function.
5188         (free_mem): Move common code to free_database_entries.
5189
5190 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5191
5192         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5193         Add arch_prctl.
5194         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5195
5196         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5197         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5198         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5199         New macro.
5200         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5201         (INTERNAL_SYSCALL_TYPES): Likewise.
5202         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5203         (LOAD_REGS_TYPES_[1-6]): Likewise.
5204         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5205         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5206
5207 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5208
5209         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5210         copysignl for GLIBC_2_0.
5211         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5212         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5213         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5214         logbl for GLIBC_2_0.
5215         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5216         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5217
5218 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5219
5220         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5221         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5222
5223         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5224         Use "neg %eax".
5225
5226         * time/mktime.c: Update copyright years.
5227
5228 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5229
5230         mktime: merge comment-quoting-style change from gnulib
5231         * time/mktime.c: Quote 'like this' in comments.
5232         The GNU coding standards suggest that we no longer quote `like this',
5233         as "`" and "'" are typically rendered asymmetrically nowadays.
5234         The typical gnulib style is to quote 'like this' when quoting
5235         code, and "like this" when quoting English.
5236
5237         * time/mktime.c (compile-command): Add "-I.".
5238
5239         mktime: merge mktime-internal.h change from gnulib
5240         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5241
5242         mktime: merge time_r change from gnulib
5243         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5244
5245         mktime: merge DEBUG change from gnulib
5246         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5247         case system <time.h> has a #define.
5248
5249         mktime: merge <sys/types.h> change from gnulib
5250         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5251         since <time.t> is now guaranteed to define time_t.
5252
5253         mktime: merge HAVE_CONFIG_H change from gnulib
5254         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5255
5256 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5257
5258         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5259         Use "neg %eax".
5260
5261         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5262         __rlim_t cast.
5263         (struct rusage): Use anonymous union to pad each field to
5264         __syscall_slong_t.
5265
5266 2012-05-21  David S. Miller  <davem@davemloft.net>
5267
5268         * Makefules (o-iterator): Remove .s cases.
5269         (compile-command.s): Delete.
5270         (COMPILE.s): Delete.
5271         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5272
5273 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5274
5275         * configure.in (libc_cv_predef_stack_protector): Only consider
5276         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5277         * configure: Regenerated.
5278
5279 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5280
5281         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5282         New macro.  Use R*LP on int and pointer.
5283         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5284         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5285         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5286         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5287
5288         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5289         [__WORDSIZE_TIME64_COMPAT32] instead of
5290         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5291         (struct utmp): Likewise.
5292         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5293         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5294         Renamed to ...
5295         (__WORDSIZE_TIME64_COMPAT32): This.
5296         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5297         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5298         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5299         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5300         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5301         (__WORDSIZE_TIME64_COMPAT32): New macro.
5302
5303 2012-05-21  Andreas Jaeger  <aj@suse.de>
5304
5305         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5306         only if [SHARED]. Add prototype for __wcschr_ia32.
5307
5308 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5309
5310         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5311         of %rbp unmolested in the jmp_buf while mangling the low bits.
5312         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5313         unmolested high bits of %rbp while demangling the low bits.
5314         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5315
5316 2012-05-21  Andreas Jaeger  <aj@suse.de>
5317
5318         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5319         * sunrpc/svc_simple.c: Use it for registerrpc.
5320         * sunrpc/xcrypt.c: Use it for passwd2des.
5321
5322         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5323
5324 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5325
5326         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5327         Don't define if [__SYSCALL_WORDSIZE != 32].
5328         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5329         New macro.
5330
5331 2012-05-21  Bruno Haible  <bruno@clisp.org>
5332             Andreas Jaeger  <aj@suse.de>
5333
5334         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5335         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5336         inptr and inend for must_buffer_ch.
5337         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5338         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5339         * stdio-common/Makefile (tests): Remove bug15.
5340         (bug15-ENV): Remove macro.
5341         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5342         anymore.
5343
5344 2012-05-19  Andreas Jaeger  <aj@suse.de>
5345             Roland McGrath  <roland@hack.frob.com>
5346
5347         * manual/contrib.texi: Completely rewritten. It contains now an
5348         alphabetical list of contributors and their contributions.
5349
5350 2012-05-21  Richard Henderson  <rth@twiddle.net>
5351
5352         * misc/getauxval.c (__getauxval): Use unsigned long int.
5353         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5354         (getauxval): Use unsigned long int.
5355
5356 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5357
5358         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5359
5360 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5361
5362         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5363         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5364         __alignof__ (long double).
5365
5366 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5367
5368         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5369
5370 2012-05-20  Richard Henderson  <rth@twiddle.net>
5371
5372         * misc/getauxval.c: New file.
5373         * misc/sys/auxv.h: New file.
5374         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5375         (routines): Add getauxval.
5376         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5377         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5378         * elf/dl-sysdep.c (_dl_auxv): Remove.
5379         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5380         * elf/dl-support.c (_dl_auxv): New variable.
5381         (_dl_aux_init): Initialize it.
5382         * manual/startup.texi (Auxiliary Vector): New node.
5383         * sysdeps/generic/bits/hwcap.h: New file.
5384         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5385         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5386         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5387         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5388         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5389         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5391         Update.
5392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5393         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5394         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5395         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5396         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5397         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5399         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5400
5401 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5402
5403         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5404
5405 2012-05-19  David S. Miller  <davem@davemloft.net>
5406
5407         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5408
5409 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5410
5411         [BZ #14123]
5412         * math/s_ccosh.c: Include <float.h>
5413         (__ccosh): Avoid internal overflow calculating sinh and cosh
5414         values before multiplying by sin and cos values.
5415         * math/s_ccoshf.c: Likewise.
5416         * math/s_ccoshl.c: Likewise.
5417         * math/s_csin.c: Likewise.
5418         * math/s_csinf.c: Likewise.
5419         * math/s_csinl.c: Likewise.
5420         * math/s_csinh.c: Likewise.
5421         * math/s_csinhf.c: Likewise.
5422         * math/s_csinhl.c: Likewise.
5423         * math/libm-test.inc (ccos_test): Add more tests.
5424         (ccosh_test): Likewise.
5425         (csin_test): Likewise.
5426         (csinh_test): Likewise.
5427         * sysdeps/i386/fpu/libm-test-ulps: Update.
5428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5429
5430 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5431
5432         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5433         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5434
5435         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5436
5437 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5438
5439         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5440         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5441         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5442         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5443         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5444         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5445         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5446         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5447         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5448         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5449         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5450         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5451         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5452         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5453         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5454         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5455         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5456         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5457         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5458         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5459         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5460         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5461         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5462         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5463         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5464         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5465         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5466         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5467         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5468         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5469         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5470
5471 2012-05-18  Andreas Jaeger  <aj@suse.de>
5472
5473         * csu/.gitignore: Delete.
5474
5475 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5476
5477         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5478         (timex): Use __syscall_slong_t.
5479
5480 2012-05-18  Andreas Jaeger  <aj@suse.de>
5481             Carlos O'Donell  <carlos_odonell@mentor.com>
5482
5483         * manual/install.texi (Configuring and compiling): Update
5484         description about files modified in the source directory.
5485         * INSTALL: Regenerated.
5486
5487 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5488
5489         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5490         value.  Use "or" to set return value to -1.
5491         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5492         negate return value.
5493
5494 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5495
5496         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5497         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5498         failure if the compiler has Graphite support disabled.
5499         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5500         Likewise.
5501         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5502         CFLAGS-memmove.c): Likewise.
5503         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5504         Likewise.
5505
5506 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5507
5508         * sysdeps/x86_64/x32/_itoa.h: New file.
5509
5510         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5511         getdents system call only if kernel and user dirents have the
5512         same d_ino and d_off.
5513
5514         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5515         LLONG_MAX != LONG_MAX.
5516         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5517         (_fitoa_word): Likewise.
5518
5519         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5520         years.
5521         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5522         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5523         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5524
5525         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5526         include <bits/wordsize.h>.  Check __x86_64__ instead of
5527         __WORDSIZE.
5528         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5529         if __x86_64__ is defined.  Use anonymous union on fpstate.
5530
5531         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5532         anonymous union.
5533
5534 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5535
5536         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5537         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5538         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5539         Refer to _rtld_local_ro instead of _rtld_global_ro.
5540         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5541         Likewise.
5542         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5543         Likewise.
5544         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5545         Likewise.
5546         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5547         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5548         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5549
5550         * sysdeps/powerpc/powerpc32/dl-machine.c
5551         (__elf_machine_runtime_setup) [PROF]: Don't reference
5552         _dl_prof_resolve.
5553
5554 2012-05-18  Andreas Jaeger  <aj@suse.de>
5555
5556         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5557         function only available for GCCs before 3.4 since GCC 3.4
5558         introduced a builtin.
5559         (lrint): Likewise.
5560         (llrintf): Likewise.
5561         (llrint): Likewise.
5562         (fmaxf): Likewise.
5563         (fmax): Likewise.
5564         (fminf): Likewise.
5565         (fmin): Likewise.
5566         (rint): Likewise.
5567         (rintf): Likewise.
5568         (nearbyint): Likewise.
5569         (nearbyintf): Likewise.
5570         (ceil): Likewise.
5571         (ceilf): Likewise.
5572         (floor): Likewise.
5573         (floorf): Likewise.
5574
5575 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5576
5577         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5578         on both fields and cast pointer to __syscall_ulong_t.
5579
5580         * bits/types.h (__fsword_t): New type.
5581         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5582         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5583         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5584         (__FSWORD_T_TYPE): Likewise.
5585         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5586         (__FSWORD_T_TYPE): Likewise.
5587         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5588         (__FSWORD_T_TYPE): Likewise.
5589         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5590         (__FSWORD_T_TYPE): Likewise.
5591         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5592         __SWORD_TYPE with __fsword_t.
5593         (statfs64): Likewise.
5594
5595 2012-05-17  David S. Miller  <davem@davemloft.net>
5596
5597         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5598
5599 2012-05-17  Andreas Jaeger  <aj@suse.de>
5600
5601         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5602         warning.
5603
5604 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5605
5606         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5607
5608 2012-05-17  Andreas Jaeger  <aj@suse.de>
5609
5610         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5611         when it is used.
5612
5613 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5614
5615         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5616
5617 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5618
5619         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5620         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5621
5622 2012-05-17  Andreas Jaeger  <aj@suse.de>
5623             Carlos O'Donell  <carlos_odonell@mentor.com>
5624
5625         [BZ #14059]
5626         * sysdeps/x86_64/multiarch/init-arch.h
5627         (bit_YMM_Usable): Rename to...
5628         (bit_AVX_Usable): ... this.
5629         (bit_FMA4_Usable): New macro.
5630         (bit_XMM_state): New macro.
5631         (bit_YMM_state): New macro.
5632         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5633         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5634         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5635         (CPUID_OSXSAVE): New macro.
5636         (CPUID_AVX): New macro.
5637         (CPUID_FMA4): New macro.
5638         (index_YMM_Usable): Rename to...
5639         (index_AVX_Usable): ... this.
5640         (HAS_AVX): Use HAS_ARCH_FEATURE.
5641         (HAS_FMA4): Likewise.
5642         (HAS_YMM_USABLE): Remove.
5643         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5644         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5645         are present.
5646         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5647         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5648         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5649         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5650         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5651
5652 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5653
5654         * math/libm-test.c: Support platforms without multiple rounding modes.
5655         * math/bug-nextafter.c: Support platforms without FP exceptions.
5656         * math/bug-nexttoward.c: Likewise.
5657         * math/test-fenv.c: Likewise.
5658         * math/test-misc.c: Likewise.
5659         * stdlib/bug-getcontext.c: Likewise.
5660
5661 2012-05-17  Andreas Jaeger  <aj@suse.de>
5662
5663         * manual/examples/search.c (critter_cmp): Change signature to
5664         avoid warnings.
5665         * manual/string.texi (Collation Functions): Likewise.
5666
5667 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5668
5669         * bits/types.h: Fold copyright years.
5670         * bits/typesizes.h: Likewise.
5671         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5672         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5673         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5674         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5675         * time/time.h: Likewise.
5676
5677 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5678
5679         [BZ #208]
5680         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5681         in instead of returning them.  Return void.
5682         (__libc_mallinfo): Accumulate over all arenas.
5683         (__malloc_stats): Adjust for change in int_mallinfo interface.
5684
5685 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5686
5687         [BZ #10375]
5688         * configure.in (NM): Add AC_CHECK_TOOL for it.
5689         (libc_extra_cflags): New substituted variable.
5690         Check for -fstack-protector being used implicitly.
5691         * configure: Regenerated.
5692         * config.make.in (config-extra-cflags): New variable,
5693         gets @libc_extra_cflags@.
5694         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5695
5696         [BZ #10375]
5697         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5698         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5699         * configure: Regenerated.
5700         * config.make.in (CPPUNDEFS): New substituted variable.
5701         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5702         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5703         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5704
5705 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5706
5707         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5708         (mq_attr): Use __syscall_slong_t.
5709
5710 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5711
5712         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5713         Check __x86_64__ instead of __WORDSIZE.
5714         (_STAT_VER_LINUX): Likewise.
5715         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5716         __syscall_ulong_t and __syscall_slong_t.
5717         (stat64): Likewise.
5718
5719 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5720
5721         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5722
5723 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5724
5725         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5726
5727 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5728
5729         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5730         __syscall_ulong_t.
5731
5732         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5733         include <bits/wordsize.h>.  Check __x86_64__ instead of
5734         __WORDSIZE.
5735         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5736         defined.
5737         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5738
5739         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5740         include <bits/wordsize.h>.  Check __x86_64__ instead of
5741         __WORDSIZE.
5742         (user_regs_struct): Use "__extension__ unsigned long long"
5743         instead of "unsigned long" if __x86_64__ is defined.
5744         (user): Likewise.  Pad after pointer field if __ILP32__ is
5745         defined.
5746
5747 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5748
5749         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5750         versions 5 to 9.
5751         * configure: Regenerated.
5752         * manual/install.texi (texinfo): Increase version requirement to
5753         4.5 or later.
5754         * INSTALL: Regenerated.
5755
5756         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5757
5758 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5759
5760         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5761
5762         * sysdeps/x86_64/x32/ffs.c: New file.
5763
5764         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5765         __syscall_ulong_t.
5766         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5767         defined.  Use __syscall_ulong_t.
5768         (shminfo): Use __syscall_ulong_t.
5769         (shm_info): Likewise.
5770
5771         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5772         __syscall_ulong_t.
5773
5774         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5775         <bits/wordsize.h>.
5776         (msgqnum_t): Use __syscall_ulong_t.
5777         (msglen_t): Likewise.
5778         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5779         __syscall_ulong_t.
5780
5781         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5782         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5783
5784         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5785
5786         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5787         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5788
5789         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5790         __syscall_slong_t.
5791
5792         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5793         include <bits/wordsize.h>.  Check __x86_64__ instead of
5794         __WORDSIZE.
5795
5796         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5797         "unsigned long long int" if __x86_64__ is defined.
5798         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5799
5800         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5801         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5802         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5803
5804         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5805         <stdint.h>.
5806         (GET_PC): Cast to uintptr_t first.
5807         (GET_FRAME): Likewise.
5808         (GET_STACK): Likewise.
5809
5810         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5811         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5812         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5813         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5814         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5815         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5816         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5817         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5818         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5819         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5820         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5821         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5822         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5823         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5824         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5825         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5826         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5827         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5828         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5829         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5830         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5831         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5832         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5833         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5834         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5835         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5836         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5837         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5838         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5839
5840 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5841
5842         * Makerules (+depfiles): Also collect depfiles from .oS in
5843         $(extra-objs).
5844         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5845         .oS, $(libnldbl-routines)).
5846
5847         * Makerules (native-compile-mkdep-flags): Define.
5848         * sunrpc/Makefile (extra-objs): Add $(addprefix
5849         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5850         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5851         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5852         calling $(make-target-directory).
5853
5854 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5855
5856         * bits/types.h (__snseconds_t): Removed.
5857         * time/time.h (struct timespec): Replace __snseconds_t with
5858         __syscall_slong_t.
5859         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5860         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5861         Likewise.
5862         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5863         (__SNSECONDS_T_TYPE): Likewise.
5864         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5865         (__SNSECONDS_T_TYPE): Likewise.
5866         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5867         (__SNSECONDS_T_TYPE): Likewise.
5868
5869 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5870
5871         * sysdeps/mach/hurd/bits/typesizes.h
5872         (__SYSCALL_SLONG_TYPE): New macro.
5873         (__SYSCALL_ULONG_TYPE): Likewise.
5874
5875 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5876
5877         * bits/types.h (__syscall_slong_t): New type.
5878         (__syscall_ulong_t): Likewise.
5879
5880         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5881         (__SYSCALL_ULONG_TYPE): Likewise.
5882         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5883         (__SYSCALL_SLONG_TYPE): Likewise.
5884         (__SYSCALL_ULONG_TYPE): Likewise.
5885         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5886         (__SYSCALL_SLONG_TYPE): Likewise.
5887         (__SYSCALL_ULONG_TYPE): Likewise.
5888         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5889         (__SYSCALL_SLONG_TYPE): Likewise.
5890         (__SYSCALL_ULONG_TYPE): Likewise.
5891
5892 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5893
5894         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5895         Add sigaltstack-offsets.sym.
5896         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5897         <sigaltstack-offsets.h>.
5898         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5899         longjmp_msg pointer.
5900         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5901         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5902         signal stack.
5903         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5904
5905 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5906
5907         * elf/stackguard-macros.h: Remove file.
5908         * sysdeps/generic/stackguard-macros.h: New file.
5909         * sysdeps/i386/stackguard-macros.h: Likewise.
5910         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5911         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5912         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5913         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5914         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5915         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5916         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5917         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5918         <elf/stackguard-macros.h>.
5919
5920         [BZ #14109]
5921         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5922         __aligned__ in attribute.
5923         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5924         (gregset_t): Likewise.
5925
5926 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5927
5928         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5929         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5930         * sysdeps/x86_64/x32/Implies-after: New file.
5931
5932 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5933
5934         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5935         and access return value for _dl_profile_fixup.  Use R10_LP to
5936         load frame size.
5937
5938 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5939
5940         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5941
5942 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5943
5944         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5945         * sysdeps/x86_64/x32/sysdep.h: New file.
5946
5947 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5948
5949         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5950         * sysdeps/x86_64/setjmp.S: Likewise.
5951
5952 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5953
5954         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5955         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5956         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5957         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5958         remove unused global constant.
5959
5960 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5961
5962         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5963         include of <not-cancel.h>.
5964
5965 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5966
5967         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5968
5969 2012-05-15  Jeff Law  <law@redhat.com>
5970             Andreas Jaeger  <aj@suse.de>
5971
5972         [BZ #13594]
5973         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5974         out from...
5975         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5976         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
5977         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
5978         code changing __hst_map_handle.map.
5979
5980 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5981
5982         * configure.in (sysnames): Look for Implies-before and Implies-after
5983         files.
5984         * configure: Regenerated.
5985
5986 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5987
5988         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
5989         8-byte data alignment with LP_SIZE alignment.
5990
5991 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5992
5993         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
5994         into R10_LP.
5995
5996 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5997
5998         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
5999
6000 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6001
6002         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6003         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6004         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6005         Likewise.
6006         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6007
6008 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6011         (stackinfo_sub_sp): Likewise.
6012
6013 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6014
6015         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6016         RAX_LP.
6017
6018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6019
6020         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6021         into R*_LP.
6022
6023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6024
6025         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6026         sizes into R*_LP.
6027
6028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6031
6032 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6033
6034         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6035         into R11_LP and load __x86_64_shared_cache_size_half into
6036         R8_LP.
6037
6038 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6039
6040         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6041         R8_LP.
6042
6043 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6044
6045         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6046         logb for POWER7.
6047         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6048         logbf for POWER7.
6049         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6050         logbl for POWER7.
6051         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6052         powerpc32/power7/fpu/s_logb.c via #include.
6053         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6054         powerpc32/power7/fpu/s_logbf.c via #include.
6055         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6056         powerpc32/power7/fpu/s_logbl.c via #include.
6057
6058 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6059
6060         * README.libm: Remove file.
6061
6062 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6063
6064         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6065         count for x32.  Use R*_LP and omit operand-size suffix.
6066
6067 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6068
6069         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6070         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6071         * sysdeps/x86_64/x32/shlib-versions: New file.
6072
6073 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6074
6075         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6076         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6077         Use _dl_fatal_printf instead.
6078
6079 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6080
6081         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6082         set if not set by the user.  Do not allow for being unset.
6083         * sysdeps/unix/sysv/linux/configure: Regenerated.
6084
6085 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6086
6087         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6088         the `q' suffix from lea and replace .quad with ASM_ADDR.
6089
6090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6091
6092         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6093         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6094         instead of $17.
6095         (PTR_DEMANGLE): Likewise.
6096
6097 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6098
6099         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6100         (LP_OP): Likewise.
6101         (ASM_ADDR): Likewise.
6102         (RAX_LP): Likewise.
6103         (RBP_LP): Likewise.
6104         (RBX_LP): Likewise.
6105         (RCX_LP): Likewise.
6106         (RDI_LP): Likewise.
6107         (RSI_LP): Likewise.
6108         (RSP_LP): Likewise.
6109         (R8_LP): Likewise.
6110         (R9_LP): Likewise.
6111         (R10_LP): Likewise.
6112         (R10_LP): Likewise.
6113         (R11_LP): Likewise.
6114         (R12_LP): Likewise.
6115         (R13_LP): Likewise.
6116         (R14_LP): Likewise.
6117         (R15_LP): Likewise.
6118
6119 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6120
6121         * sysdeps/x86_64/x32/dl-machine.h: New file.
6122
6123 2012-05-14  Andreas Jaeger  <aj@suse.de>
6124
6125         * manual/Makefile (subdir): Remove export of subdir.
6126         (all): Remove target.
6127         (.PHONY): Remove all from list.
6128         (mkinstalldirs): Remove.
6129         (.PHONY): Remove installdirs from list.
6130         ($(inst_infodir)/libc.info): Use make-target-directory.
6131         (installdirs): Remove.
6132         (subdir_%): Remove.
6133         (glibc-targets): Remove.
6134         (lib): Remove.
6135         (stubs): Remove.
6136         ($(objpfx)stubs ../po/manual.pot): Remove.
6137         ($(objpfx)stamp%): Remove.
6138         (make-target-directory): Remove.
6139         (subdir_install): Remove.
6140         (routines): Remove.
6141         (aux): Remove.
6142         (sources): Remove.
6143         (objects): Remove.
6144         (headers): Remove.
6145
6146         [BZ #13750]
6147         * manual/.gitignore: Remove, it's not needed anymore.
6148         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6149         all files in it.
6150         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6151         directory.
6152         (texis): Renamed to $(objpfx)texis.
6153         (texis-path): New, contains path to generated files.
6154         (chapters.%): Use texis-path for complete path, add extra argument
6155         libc-texinfo.sh.
6156         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6157         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6158         (summary,texi, stamp-summary): Use complete path of
6159         files. Generate files in build dir.
6160         (dir-add.texi): Build in build dir.
6161         (libm-err.texi,stamp-libm-err): Likewise.
6162         (version.texi, stamp-version): Likewise.
6163         (.%c.texi): Likewise.
6164         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6165         (mostlyclean): Remove target.
6166         (realclean): Remove target.
6167         (generated): Add new variable with contents from mostlyclean and
6168         realclean, remove entries duplicated in common-mostlyclean, add
6169         stamp-libm-err and stamp-version.
6170         (generated-dirs): Add libc directory.
6171         ($(inst_infodir)/libc.info): Install files from build dir.
6172
6173         * manual/install.texi (Configuring and compiling): Adjust since
6174         the info files are not part of the tar ball anymore.
6175
6176 2012-05-14  Andreas Jaeger  <aj@suse.de>
6177
6178         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6179         variable.
6180
6181 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6182
6183         [BZ #13717]
6184         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6185         to 2.2.0 where earlier.
6186         * sysdeps/unix/sysv/linux/configure: Regenerated.
6187         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6188         Remove conditional code.
6189         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6190         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6191         Remove conditional code.
6192         [!__NR_lchown]: Likewise.
6193         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6194         [__NR_lchown]: Likewise.
6195         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6196         comment referencing __ASSUME_LCHOWN_SYSCALL.
6197         * sysdeps/unix/sysv/linux/i386/sigaction.c
6198         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6199         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6200         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6201         Remove conditional code.
6202         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6203         (__protocol_available): Remove #if 0 code.
6204         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6205         conditional code.
6206         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6207         * sysdeps/unix/sysv/linux/kernel-features.h
6208         (__ASSUME_GETCWD_SYSCALL): Don't define.
6209         (__ASSUME_REALTIME_SIGNALS): Likewise.
6210         (__ASSUME_PREAD_SYSCALL): Likewise.
6211         (__ASSUME_PWRITE_SYSCALL): Likewise.
6212         (__ASSUME_POLL_SYSCALL): Likewise.
6213         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6214         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6215         non-SPARC.
6216         (__ASSUME_SIOCGIFNAME): Don't define.
6217         (__ASSUME_MSG_NOSIGNAL): Likewise.
6218         (__ASSUME_SENDFILE): Define unconditionally.
6219         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6220         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6221         conditional code.
6222         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6223         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6224         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6225         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6226         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6227         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6228         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6230         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6231         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6233         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6234         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6236         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6237         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6239         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6240         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6242         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6243         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6245         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6246         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6248         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6249         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6251         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6252         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6253         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6254         Remove conditional code.
6255         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6256         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6257         Remove conditional code.
6258         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6259         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6260         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6261         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6262         Remove conditional code.
6263         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6264         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6265         Remove conditional code.
6266         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6267         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6268         Remove conditional code.
6269         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6270         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6271         Remove conditional code.
6272         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6273         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6274         Remove conditional code.
6275         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6276         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6277         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6278         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6279         * sysdeps/unix/sysv/linux/sigaction.c
6280         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6281         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6282         * sysdeps/unix/sysv/linux/sigpending.c
6283         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6284         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6285         * sysdeps/unix/sysv/linux/sigprocmask.c
6286         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6287         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6288         * sysdeps/unix/sysv/linux/sigsuspend.c
6289         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6290         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6291         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6292         (__libc_missing_rt_sigs): Remove.
6293         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6294         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6295         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6296         Remove conditional code.
6297         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6298         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6299         return 1.
6300         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6301         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6302         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6303         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6304
6305 2012-05-14  Andreas Jaeger  <aj@suse.de>
6306
6307         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6308         it's not used in glibc.
6309         (__coshm1): Likewise.
6310         (__acosh1p): Likewise.
6311         (__sgn): Likewise.
6312
6313         * manual/string.texi (Copying and Concatenation): Add missing
6314         variable in concat example.
6315         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6316
6317 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6318
6319         [BZ #14103]
6320         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6321         __builtin_clzl with __builtin_clzll.
6322
6323 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6324
6325         [BZ #14104]
6326         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6327         libc_freeres_ptr.
6328
6329 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6330
6331         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6332         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6333         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6334         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6335
6336 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6337
6338         * NEWS: Update ia64 info.
6339
6340 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6341
6342         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6343         used as bcopy.
6344
6345 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6346
6347         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6348         * sysdeps/unix/syscalls.list (dup3): Likewise.
6349         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6350         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6351
6352 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6353
6354         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6355         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6356
6357 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6358
6359         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6360         thread pointer.
6361         (TLS_IE): Use mov/add instead of movq/addq to load thread
6362         pointer.
6363         (TLS_GD_PREFIX): New.
6364         (TLS_GD): Use it.
6365
6366 2012-05-11  David S. Miller  <davem@davemloft.net>
6367
6368         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6369         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6370         (_FPU_SETCW): Likewise.
6371
6372 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6373
6374         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6375         is 32-byte aligned.
6376
6377 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6378
6379         [BZ #11837]
6380         * iconvdata/gb18030.c: Update tables.
6381         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6382         characters specially.
6383         (BODY for TO_LOOP): Add encoding of missing ranges.
6384
6385 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6386
6387         [BZ #13673]
6388         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6389         * sysdeps/mach/hurd/dup3.c: Likewise.
6390         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6391         * sysdeps/powerpc/memmove.c:: Likewise.
6392
6393 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6394
6395         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6396         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6397
6398 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6399
6400         * elf/elf.h (R_X86_64_RELATIVE64): New.
6401         (R_X86_64_NUM): Updated.
6402         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6403         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6404         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6405         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6406         tst-quad1pie tst-quad2pie
6407         (modules-names): Add tst-quadmod1 tst-quadmod2.
6408         ($(objpfx)tst-quad1): New dependency.
6409         ($(objpfx)tst-quad2): Likewise.
6410         ($(objpfx)tst-quad1pie): Likewise.
6411         ($(objpfx)tst-quad2pie): Likewise.
6412         * sysdeps/x86_64/tst-quad1.c: New file.
6413         * sysdeps/x86_64/tst-quad1pie.c: New file.
6414         * sysdeps/x86_64/tst-quad2.c: Likewise.
6415         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6416         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6417         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6418         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6419         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6420
6421 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6422
6423         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6424         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6425         * streams/stropts.h (t_scalar_t): Define type.
6426
6427         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6428         (_PATH_PRESERVE): Set to "/var/lib".
6429         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6430
6431         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6432         instead of int.
6433
6434         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6435         if __dir_mkfile succeeded.
6436
6437         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6438         checking for _hurd_dtablesize.  Unlock it right after having
6439         finished _hurd_dtable allocation.
6440
6441 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6442
6443         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6444         * sysdeps/mach/hurd/configure: Regenerated.
6445         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6446         special-casing to...
6447         * sysdeps/gnu/configure.in: ... this new file.
6448         * sysdeps/unix/sysv/linux/configure: Regenerated.
6449         * sysdeps/gnu/configure: New generated file.
6450
6451         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6452         for Linux: use nsec instead of usec, as well as:
6453         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6454         members of type struct timespec.
6455         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6456         New macros.
6457         (struct stat64): Likewise.
6458         (_STATBUF_ST_NSEC): New macro.
6459         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6460
6461         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6462         __strtoul_internal rather than strtoul.
6463
6464 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6465
6466         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6467         and reject them.
6468
6469 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6470
6471         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6472         which preserves existing values.
6473         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6474
6475 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6476
6477         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6478         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6479         greater than FD_SETSIZE.
6480
6481 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6482
6483         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6484         allocated, call __vm_protect to finish enabling the existing space, and
6485         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6486         allocate the remainder.
6487
6488 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6489
6490         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6491         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6492
6493 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6494
6495         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6496         sysdeps/mach/hurd/readlink.c.
6497
6498         * posix/tst-sysconf.c (posix_options): Only use
6499         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6500         _POSIX_SYNCHRONIZED_IO when they are defined
6501         * sysdeps/mach/hurd/bits/posix_opt.h:
6502         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6503         (_XOPEN_REALTIME): Undefine macro.
6504         (_XOPEN_REALTIME_THREADS): Undefine macro.
6505         (_XOPEN_SHM): Undefine macro.
6506         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6507         macro to -1.
6508         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6509         macro to -1.
6510         (_POSIX_ASYNC_IO): Undefine macro.
6511         (_POSIX_PRIORITIZED_IO): Undefine macro.
6512         (_POSIX_SPIN_LOCKS): Define macro to -1.
6513
6514         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6515         SA_NODEFER, SA_RESETHAND.
6516         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6517         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6518         F_DUPFD_CLOEXEC.
6519
6520 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6521
6522         * elf/Makefile (pldd-modules): Define unconditionally.
6523
6524 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6525
6526         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6527
6528 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6529
6530         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6531         Return ENOENT when name is empty.
6532         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6533
6534 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6535
6536         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6537
6538         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6539
6540 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6541
6542         Fix mlock in all cases except non-readable pages.
6543         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6544         instead of VM_PROT_ALL as parameter to __vm_wire function.
6545
6546         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6547         (__mkdir): When path is `/', just fail with EEXIST.
6548         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6549
6550 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6551
6552         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6553         <sys/uio.h> (for writev).
6554         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6555         and <sys/param.h> (for MIN).
6556
6557 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6558
6559         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6560         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6561         if interrupted.
6562
6563 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6564
6565         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6566         Depend on against $(link-rpcuserlibs).
6567
6568 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6569
6570         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6571         (__libc_stack_end): Do not use attribute_relro.
6572         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6573         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6574         to libthread-provided value.
6575         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6576         attribute_relro.
6577
6578 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6579
6580         [BZ #3748]
6581         * bits/libc-lock.h (__libc_once_get): New macro.
6582         * sysdeps/mach/bits/libc-lock.h: Likewise.
6583         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6584         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6585         instead of using implementation details.
6586
6587         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6588         * libio/freopen.c: Likewise.
6589         * libio/freopen64.c: Likewise.
6590         * misc/syslog.c: Likewise.
6591         * nscd/connections.c: Likewise.
6592         * nscd/netgroupcache.c: Likewise.
6593         * sysdeps/posix/getcwd.c: Likewise.
6594
6595 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6596
6597         * math/w_ilogbf.c: Add #include <limits.h>.
6598
6599 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6600
6601         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6602         path instead of returning without unlocking.
6603
6604         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6605         immediate-write ioctls.
6606         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6607
6608 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6609
6610         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6611         __builtin_frame_address instead of making assumptions about the
6612         location of the return address relative to DATA.  Force early load of
6613         the return address.
6614         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6615         __builtin_frame_address.
6616
6617         dup3 for GNU Hurd.
6618         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6619         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6620         implement dup3 and do some further code clean-ups.
6621         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6622         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6623
6624 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6625
6626         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6627
6628         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6629         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6630         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6631         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6632         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6633         d->port.lock.
6634
6635         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6636         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6637         when handler == SIG_ERR, not when handler != SIG_ERR.
6638
6639 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6640
6641         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6642         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6643         definitions.
6644
6645         accept4 for GNU Hurd.
6646         * include/sys/socket.h (__libc_accept4): New prototype.
6647         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6648         to implement __libc_accept4.
6649         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6650         __libc_accept4.
6651         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6652
6653         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6654         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6655         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6656         signal-defines.sym.
6657
6658 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6659
6660         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6661
6662 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6663
6664         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6665         assertion on O_CLOEXEC flag.
6666         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6667         * hurd/intern-fd.c: Likewise.
6668         * hurd/port2fd.c: Likewise.
6669
6670 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6671
6672         [BZ #3906]
6673         * bits/in.h (IPV6_PKTINFO): Define new macro.
6674         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6675
6676 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6677
6678         [BZ #13954]
6679         [BZ #13955]
6680         [BZ #13956]
6681         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6682         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6683         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6684         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6685         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6686         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6687         * math/libm-test.inc (logb_test) : Additional logb tests.
6688
6689 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6690             Andreas Jaeger  <aj@suse.de>
6691
6692         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6693         * configure: Regenerated.
6694         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6695         * config.make.in (link-obsolete-rpc): New substituted variable.
6696         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6697         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6698         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6699         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6700         so that libc.a contains the symbols.
6701         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6702         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6703         * sunrpc/auth_none.c: Likewise.
6704         * sunrpc/auth_unix.c: Likewise.
6705         * sunrpc/authdes_prot.c: Likewise.
6706         * sunrpc/authuxprot.c: Likewise.
6707         * sunrpc/clnt_gen.c: Likewise.
6708         * sunrpc/clnt_perr.c: Likewise.
6709         * sunrpc/clnt_raw.c: Likewise.
6710         * sunrpc/clnt_simp.c: Likewise.
6711         * sunrpc/clnt_tcp.c: Likewise.
6712         * sunrpc/clnt_udp.c: Likewise.
6713         * sunrpc/clnt_unix.c: Likewise.
6714         * sunrpc/des_crypt.c: Likewise.
6715         * sunrpc/des_soft.c: Likewise.
6716         * sunrpc/get_myaddr.c: Likewise.
6717         * sunrpc/key_call.c: Likewise.
6718         * sunrpc/key_prot.c: Likewise.
6719         * sunrpc/netname.c: Likewise.
6720         * sunrpc/pm_getmaps.c: Likewise.
6721         * sunrpc/pm_getport.c: Likewise.
6722         * sunrpc/pmap_clnt.c: Likewise.
6723         * sunrpc/pmap_prot.c: Likewise.
6724         * sunrpc/pmap_prot2.c: Likewise.
6725         * sunrpc/pmap_rmt.c: Likewise.
6726         * sunrpc/publickey.c: Likewise.
6727         * sunrpc/rpc_cmsg.c: Likewise.
6728         * sunrpc/rpc_common.c: Likewise.
6729         * sunrpc/rpc_dtable.c: Likewise.
6730         * sunrpc/rpc_prot.c: Likewise.
6731         * sunrpc/rpc_thread.c: Likewise.
6732         * sunrpc/rtime.c: Likewise.
6733         * sunrpc/svc.c: Likewise.
6734         * sunrpc/svc_auth.c: Likewise.
6735         * sunrpc/svc_raw.c: Likewise.
6736         * sunrpc/svc_run.c: Likewise.
6737         * sunrpc/svc_tcp.c: Likewise.
6738         * sunrpc/svc_udp.c: Likewise.
6739         * sunrpc/svc_unix.c: Likewise.
6740         * sunrpc/svcauth_des.c: Likewise.
6741         * sunrpc/xcrypt.c: Likewise.
6742         * sunrpc/xdr.c: Likewise.
6743         * sunrpc/xdr_array.c: Likewise.
6744         * sunrpc/xdr_float.c: Likewise.
6745         * sunrpc/xdr_intXX_t.c: Likewise.
6746         * sunrpc/xdr_mem.c: Likewise.
6747         * sunrpc/xdr_rec.c: Likewise.
6748         * sunrpc/xdr_ref.c: Likewise.
6749         * sunrpc/xdr_sizeof.c: Likewise.
6750         * sunrpc/xdr_stdio.c: Likewise.
6751
6752 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6753
6754         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6755         change.  Update copyright years.
6756
6757 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6758
6759         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6760
6761 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6762             Joseph Myers  <joseph@codesourcery.com>
6763             Paul Pluzhnikov  <ppluzhnikov@google.com>
6764
6765         [BZ #14012]
6766         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6767         requiring rpcgen.
6768         [cross-compiling] (extra-libs): Likewise.
6769         [cross-compiling] (extra-libs-others): Likewise.
6770         [cross-compiling] (librpcsvc-routines): Likewise.
6771         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6772         [cross-compiling] (omit-deps): Likewise.
6773         (sunrpc-CPPFLAGS): New variable.
6774         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6775         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6776         (cross-rpcgen-objs): New variable.
6777         (extra-objs): Append $(cross-rpcgen-objs).
6778         ($(cross-rpcgen-objs)): New rule.
6779         ($(objpfx)cross-rpcgen): Likewise.
6780         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6781         comment.
6782         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6783         ($(objpfx)x%.stmp): Likewise.
6784         * sunrpc/proto.h [IS_IN_build] (_): Define.
6785         [IS_IN_build] (_libc_intl_domainname): Likewise.
6786
6787 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6788
6789         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6790         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6791         and R_X86_64_TPOFF64.
6792
6793 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6794
6795         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6796         sysdeps/unix/sysv/syscalls.list.
6797         (stime): Likewise.
6798         (utime): Likewise.
6799         * sysdeps/unix/sysv/syscalls.list: Remove file.
6800
6801 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6802
6803         [BZ #3440]
6804         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6805         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6806         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6807         (__LC_IDENTIFICATION): Make these macros useful in #if
6808         expressions, as required by C99.
6809
6810 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6811
6812         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6813         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6814         after this.
6815
6816 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6817
6818         * stdlib/longlong.h: Updated from GCC.
6819
6820 2012-05-09  Andreas Jaeger  <aj@suse.de>
6821
6822         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6823         default is first entry.
6824         (run_mode): Set type.
6825         (main): Remove informal message about syslog.
6826         (options): Fix typo.
6827
6828         [BZ #14053]
6829         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6830         to asm.
6831         (lrint): Likewise.
6832         (llrintf): Likewise.
6833         (llrint): Likewise.
6834         (rint): Likewise.
6835         (rintf): Likewise.
6836         (nearbyint): Likewise.
6837         (nearbyintf): Likewise.
6838
6839 2012-05-09  Andreas Jaeger  <aj@suse.de>
6840             Pedro Alves  <palves@redhat.com>
6841
6842         * nscd/nscd.c (run_mode): Use enum.
6843         (main): Cleanup coding style issue.
6844
6845 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6846             Andreas Jaeger  <aj@suse.de>
6847
6848         * nscd/nscd.c (go_background): Replaced with...
6849         (run_mode): ... this.
6850         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6851         (options): Add -F --foreground.
6852         (main): Implement it.
6853         (parse_opt): Parse it.
6854
6855 2012-05-09  Andreas Jaeger  <aj@suse.de>
6856
6857         [BZ #14083]
6858         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6859         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6860         -Wconversion warning.
6861         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6862         Likewise.
6863
6864 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6865
6866         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6867         == 0.
6868         (LC_ALL): Use macro-int-constant.
6869         (LC_COLLATE): Likewise.
6870         (LC_CTYPE): Likewise.
6871         (LC_MESSAGES): Likewise.
6872         (LC_MONETARY): Likewise.
6873         (LC_NUMERIC): Likewise.
6874         (LC_TIME): Likewise.
6875         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6876         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6877         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6878         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6879         Specify type.
6880         [C99-based standards] (float_t): Expect type.
6881         [C99-based standards] (double_t): Expect type.
6882         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6883         type.
6884         [C99-based standards] (HUGE_VALL): Likewise.
6885         [C99-based standards] (INFINITY): Likewise.
6886         [C99-based standards] (NAN): Likewise.
6887         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6888         [C99-based standards] (FP_NAN): Likewise.
6889         [C99-based standards] (FP_NORMAL): Likewise.
6890         [C99-based standards] (FP_SUBNORMAL): Likewise.
6891         [C99-based standards] (FP_ZERO): Likewise.
6892         [C99-based standards] (FP_FAST_FMA): Use
6893         optional-macro-int-constant.  Specify type.  Require == 1.
6894         [C99-based standards] (FP_FAST_FMAF): Likewise.
6895         [C99-based standards] (FP_FAST_FMAL): Likewise.
6896         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6897         [C99-based standards] (FP_ILOGBNAN): Likewise.
6898         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6899         Specify type.
6900         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6901         [C99-based standards] (math_errhandling): Specify type.
6902         [ISO99 || ISO11] (signgam): Do not allow.
6903         [non-C99-based standards] (copysignf): Do not allow.
6904         [non-C99-based standards] (exp2f): Likewise.
6905         [non-C99-based standards] (log2f): Likewise.
6906         [non-C99-based standards] (modff): Allow.
6907         [non-C99-based standards] (erff): Do not allow.
6908         [non-C99-based standards] (erfcf): Likewise.
6909         [non-C99-based standards] (gammaf): Likewise.
6910         [non-C99-based standards] (hypotf): Likewise.
6911         [non-C99-based standards] (j0f): Likewise.
6912         [non-C99-based standards] (j1f): Likewise.
6913         [non-C99-based standards] (jnf): Likewise.
6914         [non-C99-based standards] (lgammaf): Likewise.
6915         [non-C99-based standards] (tgammaf): Likewise.
6916         [non-C99-based standards] (y0f): Likewise.
6917         [non-C99-based standards] (y1f): Likewise.
6918         [non-C99-based standards] (ynf): Likewise.
6919         [non-C99-based standards] (isnanf): Likewise.
6920         [non-C99-based standards] (acoshf): Likewise.
6921         [non-C99-based standards] (asinhf): Likewise.
6922         [non-C99-based standards] (atanhf): Likewise.
6923         [non-C99-based standards] (cbrtf): Likewise.
6924         [non-C99-based standards] (expm1f): Likewise.
6925         [non-C99-based standards] (ilogbf): Likewise.
6926         [non-C99-based standards] (log1pf): Likewise.
6927         [non-C99-based standards] (logbf): Likewise.
6928         [non-C99-based standards] (nextafterf): Likewise.
6929         [non-C99-based standards] (remainderf): Likewise.
6930         [non-C99-based standards] (rintf): Likewise.
6931         [non-C99-based standards] (scalbf): Likewise.
6932         [non-C99-based standards] (copysignl): Likewise.
6933         [non-C99-based standards] (exp2l): Likewise.
6934         [non-C99-based standards] (log2l): Likewise.
6935         [non-C99-based standards] (modfl): Allow.
6936         [non-C99-based standards] (erfl): Do not allow.
6937         [non-C99-based standards] (erfcl): Likewise.
6938         [non-C99-based standards] (gammal): Likewise.
6939         [non-C99-based standards] (hypotl): Likewise.
6940         [non-C99-based standards] (j0l): Likewise.
6941         [non-C99-based standards] (j1l): Likewise.
6942         [non-C99-based standards] (jnl): Likewise.
6943         [non-C99-based standards] (lgammal): Likewise.
6944         [non-C99-based standards] (tgammal): Likewise.
6945         [non-C99-based standards] (y0l): Likewise.
6946         [non-C99-based standards] (y1l): Likewise.
6947         [non-C99-based standards] (ynl): Likewise.
6948         [non-C99-based standards] (isnanl): Likewise.
6949         [non-C99-based standards] (acoshl): Likewise.
6950         [non-C99-based standards] (asinhl): Likewise.
6951         [non-C99-based standards] (atanhl): Likewise.
6952         [non-C99-based standards] (cbrtl): Likewise.
6953         [non-C99-based standards] (expm1l): Likewise.
6954         [non-C99-based standards] (ilogbl): Likewise.
6955         [non-C99-based standards] (log1pl): Likewise.
6956         [non-C99-based standards] (logbl): Likewise.
6957         [non-C99-based standards] (nextafterl): Likewise.
6958         [non-C99-based standards] (remainderl): Likewise.
6959         [non-C99-based standards] (rintl): Likewise.
6960         [non-C99-based standards] (scalbl): Likewise.
6961         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6962         [non-C99-based standards] (FP_*): Do not allow.
6963         [C99-based standards] (FP_*): Change to
6964         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6965         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6966         allow.
6967         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6968         (SIG_ERR): Likewise.
6969         [X/Open-based standards] (SIG_HOLD): Likewise.
6970         (SIG_IGN): Likewise.
6971         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6972         positive value.
6973         (SIGFPE): Likewise.
6974         (SIGILL): Likewise.
6975         (SIGINT): Likewise.
6976         (SIGSEGV): Likewise.
6977         (SIGTER): Likewise.
6978         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
6979         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
6980         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
6981         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
6982         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
6983         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
6984         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
6985         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
6986         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
6987         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
6988         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
6989         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
6990         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
6991         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
6992         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
6993         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
6994         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
6995         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
6996         [X/Open-based standards] (SIGTRAP): Likewise.
6997         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
6998         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
6999         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7000         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7001         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7002         allow.
7003
7004 2012-05-08  Ian Wienand  <ianw@vmware.com>
7005
7006         [BZ #14080]
7007         * time/tzset.c (__tzset_parse_tz): Update default rules for
7008         daylight time changes in the Energy Policy Act of 2005.
7009
7010 2012-05-09  Andreas Jaeger  <aj@suse.de>
7011
7012         [BZ #13983]
7013         * elf/ldconfig.c (parse_conf): Change string to make clear that
7014         ldconfig only issued a warning if ld.so.conf does not exist.
7015
7016 2012-05-08  David S. Miller  <davem@davemloft.net>
7017
7018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7019         movxtod instead of popping the value on the stack.
7020
7021         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7022
7023 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7024
7025         * config.h.in: Add HAVE_ARM_PCS_VFP.
7026
7027 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7028
7029         [BZ #13979]
7030         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7031         checking but the checks are disabled for any reason.
7032
7033 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7034
7035         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7036         and ELF64_R_TYPE with ELFW(R_TYPE).
7037
7038 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7039
7040         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7041         (ulimit): Likewise.
7042
7043         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7044         (settimeofday): Likewise.
7045
7046 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7047
7048         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7049         a struct th_u2 inside the union, and move tu_block/tu_code into
7050         a new th_u3 union of tu_block/tu_code inside of that.  Move
7051         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7052         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7053         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7054         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7055         (th_stuff): Change to th_u1.tu_stuff.
7056         (th_data): Define.
7057         (th_msg): Change to th_u1.th_u2.tu_data.
7058
7059 2012-05-07  David S. Miller  <davem@davemloft.net>
7060
7061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7062
7063         [BZ #14074]
7064         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7065         (SETUP_PIC_REG): Use it.
7066         (SETUP_PIC_REG_LEAF): Use it.
7067
7068 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7069
7070         [BZ #13885]
7071         [BZ #13923]
7072         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7073         USE_AS_EXPM1L.
7074         (EXPL_FINITE): Likewise.
7075         (FLDLOG): Likewise.
7076         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7077         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7078         e_expl.S.
7079         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7080         USE_AS_EXPM1L.
7081         (EXPL_FINITE): Likewise.
7082         (FLDLOG): Likewise.
7083         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7084         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7085         e_expl.S.
7086         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7087         test of -max_value argument for long double.
7088         * sysdeps/i386/fpu/libm-test-ulps: Update.
7089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7090
7091 2012-05-06  David S. Miller  <davem@davemloft.net>
7092
7093         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7094         quad soft-float symbols whose references which are compiler
7095         generated.
7096         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7097
7098 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7099
7100         [BZ #13884]
7101         [BZ #13914]
7102         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7103         USE_AS_EXP10L.
7104         (EXPL_FINITE): Likewise.
7105         (FLDLOG): Likewise.
7106         (c0): Likewise.
7107         (c1): Likewise.
7108         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7109         Adjust comments for base varying.
7110         (__expl_finite): Change alias to EXPL_FINITE.
7111         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7112         e_expl.S.
7113         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7114         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7115         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7116         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7117         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7118         USE_AS_EXP10L.
7119         (EXPL_FINITE): Likewise.
7120         (FLDLOG): Likewise.
7121         (c0): Likewise.
7122         (c1): Likewise.
7123         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7124         Adjust comments for base varying.
7125         (__expl_finite): Change alias to EXPL_FINITE.
7126         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7127         tests for bugs.
7128         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7129
7130         [BZ #14064]
7131         * math/libm-test.inc (check_float_internal): Correct ulp
7132         calculation for subnormal expected results.
7133
7134 2012-05-06  Andreas Jaeger  <aj@suse.de>
7135
7136         * Makeconfig (+math-flags): New, set to -frounding-math.
7137         (+cflags): Add +math-flags so that all of glibc gets compiled with
7138         it.
7139
7140         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7141
7142 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7143
7144         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7145         Disable one test.
7146
7147         [BZ #13787]
7148         [BZ #13922]
7149         [BZ #14036]
7150         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7151         (__ieee754_expl): Allow for and saturate large arguments.
7152         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7153         (u_threshold): Likewise.
7154         (__exp): Call __ieee754_exp before checking for overflow and
7155         underflow.
7156         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7157         (u_threshold): Likewise.
7158         (__expf): Call __ieee754_expf before checking for overflow and
7159         underflow.
7160         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7161         (u_threshold): Likewise.
7162         (__expl): Call __ieee754_expl before checking for overflow and
7163         underflow.
7164         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7165         (__ieee754_expl): Allow for and saturate large arguments.
7166         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7167         missing overflow exception on overflow.
7168         (expm1_test): Do not allow missing overflow exception on overflow.
7169
7170         * sysdeps/i386/fpu/e_expl.c: Move to ...
7171         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7172         rather than using inline asm.
7173         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7174         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7175         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7176
7177         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7178         (nice): Likewise.
7179         (poll): Likewise.
7180         (signal): Likewise.
7181         (time): Likewise.
7182         (times): Likewise.
7183
7184 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7185
7186         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7187         sysdeps/unix/common/syscalls.list.
7188         (fchmod): Likewise.
7189         (fchown): Likewise.
7190         (ftruncate): Likewise.
7191         (getrusage): Likewise.
7192         (gettimeofday): Likewise.
7193         (setpgid): Likewise.
7194         (setregid): Likewise.
7195         (setreuid): Likewise.
7196         (sigaction): Likewise.
7197         (truncate): Likewise.
7198         (vhangup): Likewise.
7199         * sysdeps/unix/common/syscalls.list: Remove file.
7200         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7201         * sysdeps/unix/sysv/linux/Implies: Likewise.
7202
7203 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7204
7205         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7207         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7208         Moved to ...
7209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7210         Here.
7211         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7212         to ...
7213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7214         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7215         to ...
7216         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7217         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7218         to ...
7219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7220         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7221         to ...
7222         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7223         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7224         to ...
7225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7226         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7227         to ...
7228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7229         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7230         to ...
7231         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7232         Here.
7233         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7234         to ...
7235         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7236         Here.
7237         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7238         to ...
7239         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7240         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7241         Moved to ...
7242         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7243         Here.
7244         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7245         to ...
7246         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7247
7248 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7249
7250         * sysdeps/unix/common/bits/dirent.h: Remove file.
7251         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7252
7253         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7254         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7255         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7256         * sysdeps/unix/bsd/isatty.c: Likewise.
7257         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7258         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7259         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7260
7261 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7262
7263         [BZ #13563]
7264         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7265         long double comparison inaccuracies.
7266         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7267         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7268
7269 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7270
7271         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7272         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7273
7274 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7275
7276         [BZ #14049]
7277         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7278         nonzero digits before rounding a hex value.
7279         * stdlib/tst-strtod.c (tests): Add another test.
7280
7281 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7282
7283         * sysdeps/s390/fpu/libm-test-ulps: Update.
7284
7285 2012-05-03  Andreas Jaeger  <aj@suse.de>
7286
7287         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7288         does not get optimized out.
7289         (malloc_opt_barrier): New.
7290
7291 2012-05-03  Andreas Jaeger  <aj@suse.de>
7292             Roland McGrath  <roland@hack.frob.com>
7293
7294         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7295         intermediate file deletion.
7296         (generated): Add .symlist files.
7297
7298 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7299
7300         [BZ #13775]
7301         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7302         Redirect under this condition.
7303         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7304         [__USE_GNU] (__dprintf_chk): Not under this condition.
7305         [__USE_GNU] (__vdprintf_chk): Likewise.
7306         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7307         under this condition.
7308         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7309         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7310         [__USE_XOPEN2K8] (vdprintf): Likewise.
7311         [__USE_GNU] (__dprintf_chk): Not under this condition.
7312         [__USE_GNU] (__vdprintf_chk): Likewise.
7313         [__USE_GNU] (dprintf): Likewise.
7314         [__USE_GNU] (vdprintf): Likewise.
7315
7316 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7317
7318         * elf/Makefile (common-generated): Set this instead of generated for
7319         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7320         $(all-built-dso)-derived lists.
7321
7322 2012-05-03  Andreas Jaeger  <aj@suse.de>
7323
7324         * sysdeps/i386/fpu/libm-test-ulps: Update.
7325
7326         * FAQ: Removed.
7327         * FAQ.in: Likewise.
7328         * scripts/gen-FAQ.pl: Likewise.
7329         * manual/install.texi (Installation): Point to online location of
7330         FAQ.
7331         * Makefile (files-for-dist): Remove FAQ.
7332         (FAQ): Remove.
7333
7334 2012-05-02  Allan McRae  <allan@archlinux.org>
7335
7336         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7337         (LDFLAGS-reldepmod5.so): Likewise.
7338         (LDFLAGS-reldep6mod1.so): Likewise.
7339         (LDFLAGS-reldep6mod4.so): Likewise.
7340         (LDFLAGS-reldep8mod3.so): Likewise.
7341         (LDFLAGS-unload4mod1.so): Likewise.
7342         (LDFLAGS-unload4mod2.so): Likewise.
7343         (LDFLAGS-tst-initorder): Likewise.
7344         (LDFLAGS-tst-initordera2.so): Likewise.
7345         (LDFLAGS-tst-initordera3.so): Likewise.
7346         (LDFLAGS-tst-initordera4.so): Likewise.
7347         (LDFLAGS-tst-initorderb2.so): Likewise.
7348         (LDFLAGS-noload): Likewise.
7349         (LDFLAGS-next): Likewise.
7350         (LDFLAGS-order2mod1.so): Likewise.
7351         (LDFLAGS-order2mod2.so): Likewise.
7352         (LDFLAGS-tst-initorder2): Likewise.
7353         (LDFLAGS-tst-initorder2a.so): Likewise.
7354         (LDFLAGS-tst-initorder2b.so): Likewise.
7355         (LDFLAGS-tst-initorder2c.so): Likewise.
7356         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7357
7358 2012-05-02  David S. Miller  <davem@davemloft.net>
7359
7360         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7361
7362 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7363
7364         [BZ #14055]
7365         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7366
7367 2012-05-02  Andreas Jaeger  <aj@suse.de>
7368
7369         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7370         since we manipulate rounding mode.
7371         (CPPFLAGS-test-idouble.c): Likewise.
7372         (CPPFLAGS-test-ifloat.c): Likewise.
7373         (CFLAGS-test-ldouble.c): Likewise.
7374         (CFLAGS-test-double.c): Likewise.
7375         (CFLAGS-test-float.c): Likewise.
7376         (CFLAGS-test-misc.c): Likewise.
7377         (CFLAGS-test-test-fenv.c): Likewise.
7378
7379 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7380
7381         [BZ #2550]
7382         [BZ #2570]
7383         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7384         comparisons to determine direction to adjust input.
7385
7386 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7387
7388         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7389         output to the target.
7390
7391         * scripts/localplt.awk: New file.
7392         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7393         (check-localplt-CFLAGS): Variable removed.
7394         ($(all-built-dso:=.jmprel)): New static pattern rule.
7395         (generated): Add those targets.
7396         (localplt-built-dso): New variable.
7397         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7398
7399         * elf/check-localplt.c: File removed.
7400
7401         * scripts/check-execstack.awk: New file.
7402         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7403         (check-execstack-CFLAGS): Variable removed.
7404         ($(objpfx)check-execstack.h): Target removed.
7405         ($(objpfx)execstack-default): New target.
7406         (generated): Add that instead of check-execstack.h.
7407         ($(all-built-dso:=.phdr)): New static pattern rule.
7408         (generated): Add those targets.
7409         * elf/check-execstack.c: File removed.
7410
7411         * scripts/check-textrel.awk: New file.
7412         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7413         (check-textrel-CFLAGS): Variable removed.
7414         (all-built-dso): Use := to define.o
7415         ($(all-built-dso:=.dyn)): New static pattern rule.
7416         (generated): Add those targets.
7417         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7418         * config.make.in (READELF): New substituted variable.
7419         * elf/check-textrel.c: File removed.
7420
7421 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7422
7423         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7424         allow.
7425         * conform/data/ctype.h-data [C99-based standards] (isblank):
7426         Expect function.
7427         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7428         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7429         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7430         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7431         Specify type.  Require positive value.
7432         (EILSEQ): Likewise.
7433         (ERANGE): Likewise.
7434         [ISO || POSIX] (EILSEQ): Do not expect.
7435         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7436         Specify type.  Require positive value.
7437         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7438         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7439         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7440         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7441         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7442         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7443         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7444         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7445         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7446         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7447         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7448         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7449         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7450         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7451         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7452         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7453         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7454         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7455         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7456         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7457         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7458         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7459         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7460         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7461         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7462         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7463         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7464         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7465         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7466         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7467         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7468         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7469         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7470         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7471         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7472         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7473         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7474         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7475         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7476         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7477         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7478         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7479         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7480         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7481         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7482         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7483         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7484         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7485         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7486         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7487         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7488         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7489         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7490         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7491         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7492         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7493         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7494         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7495         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7496         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7497         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7498         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7499         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7500         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7501         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7502         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7503         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7504         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7505         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7506         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7507         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7508         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7509         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7510         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7511         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7512         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7513         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7514         Require >= 2.
7515         (FLT_ROUNDS): Expect as macro, not constant.
7516         (FLT_MANT_DIG): Use macro-int-constant.
7517         (DBL_MANT_DIG): Likewise.
7518         (LDBL_MANT_DIG): Likewise.
7519         (FLT_DIG): Likewise.
7520         (DBL_DIG): Likewise.
7521         (LDBL_DIG): Likewise.
7522         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7523         (DBL_MIN_EXP): Likewise.
7524         (LDBL_MIN_EXP): Likewise.
7525         (FLT_MAX_EXP): Use macro-int-constant.
7526         (DBL_MAX_EXP): Likewise.
7527         (LDBL_MAX_EXP): Likewise.
7528         (FLT_MAX_10_EXP): Likewise.
7529         (DBL_MAX_10_EXP): Likewise.
7530         (LDBL_MAX_10_EXP): Likewise.
7531         (FLT_MAX): Use macro-constant.
7532         (DBL_MAX): Likewise.
7533         (LDBL_MAX): Likewise.
7534         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7535         (DBL_EPSILON): Likewise.
7536         (LDBL_EPSILON): Likewise.
7537         (FLT_MIN): Likewise.
7538         (DBL_MIN): Likewise.
7539         (LDBL_MIN): Likewise.
7540         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7541         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7542         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7543         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7544         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7545         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7546         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7547         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7548         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7549         [ISO11] (FLT_TRUE_MIN): Likewise.
7550         [ISO11] (LDBL_TRUE_MIN): Likewise.
7551         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7552         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7553         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7554         (SCHAR_MAX): Likewise.
7555         (UCHAR_MAX): Likewise.
7556         (CHAR_MIN): Likewise.
7557         (CHAR_MAX): Likewise.
7558         (MB_LEN_MAX): Use macro-int-constant.
7559         (SHRT_MIN): Use macro-int-constant.  Specify type.
7560         (SHRT_MAX): Likewise.
7561         (USHRT_MAX): Likewise.
7562         (INT_MAX): Likewise.
7563         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7564         bound negative.
7565         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7566         bound with "U".
7567         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7568         bound with "L".
7569         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7570         bound negative.  Suffix upper bound with "L".
7571         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7572         bound with "UL".
7573         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7574         Specify type.
7575         [C99-based standards] (LLONG_MAX): Likewise.
7576         [C99-based standards] (ULLONG_MAX): Likewise.
7577         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7578         == 0.
7579         [ISO11] (max_align_t): Require type.
7580         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7581
7582         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7583         from $CFLAGS, without defining away __attribute__ calls.
7584         (checknamespace): Use $CFLAGS_namespace.
7585
7586         * conform/conformtest.pl (@keywords): Only include C99 keywords
7587         for standards based on C99 or C11.
7588
7589         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7590         Disable tests.
7591         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7592         UNIX98]: Likewise.
7593
7594         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7595         usability of symbols in #if.
7596
7597         * conform/conformtest.pl: If macro or constant types start
7598         "promoted:", expect the symbol to be of the following type
7599         promoted by the integer promotions.
7600
7601         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7602         in one place.  Also handle "macro-constant".
7603
7604         * conform/conformtest.pl: Only accept expected macro values with
7605         "==".  Parse all "macro" lines in one place.
7606         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7607
7608         * conform/conformtest.pl: Handle braced types on "constant" lines
7609         instead of handling "typed-constant".
7610         * conform/data/signal.h-data: Use "constant" instead of
7611         "typed-constant".
7612
7613         * conform/conformtest.pl: Handle "optional-" at start of lines in
7614         one place rather than duplicating several cases.  Handle each
7615         format of "macro" line with initial "optional-".
7616
7617         * conform/conformtest.pl: Only accept expected constant or
7618         optional-constant values with "==".  Parse all "constant" lines in
7619         one place.  Parse all "optional-constant" lines in one place.
7620         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7621         * conform/data/fmtmsg.h-data: Likewise.
7622         * conform/data/netinet/in.h-data: Likewise.
7623         * conform/data/tar.h-data: Likewise.
7624         * conform/data/limits.h-data: Use "==" form on "constant" and
7625         "optional-constant" lines.
7626
7627         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7628         Use -std=c99 for XOPEN2K.
7629         (@knownproblems): Remove.
7630         (newtoken): Don't check %isknown.
7631
7632         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7633         Do not expect macro.
7634         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7635         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7636         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7637         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7638         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7639         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7640         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7641         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7642         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7643         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7644         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7645         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7646         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7647         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7648         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7649         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7650         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7651         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7652         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7653         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7654         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7655         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7656         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7657         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7658         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7659         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7660         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7661         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7662         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7663         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7664         [XPG3] (acosh): Likewise.
7665         [XPG3] (asinh): Likewise.
7666         [XPG3] (atanh): Likewise.
7667         [XPG3] (cbrt): Likewise.
7668         [XPG3] (expm1): Likewise.
7669         [XPG3] (ilogb): Likewise.
7670         [XPG3] (log1p): Likewise.
7671         [XPG3] (logb): Likewise.
7672         [XPG3] (nextafter): Likewise.
7673         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7674         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7675         [XPG3] (remainder): Likewise.
7676         [XPG3] (rint): Likewise.
7677         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7678         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7679         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7680         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7681         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7682         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7683         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7684         [UNIX98 || XOPEN2K] (scalb): Expect.
7685         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7686         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7687         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7688         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7689         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7690         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7691         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7692         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7693         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7694         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7695         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7696         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7697         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7698         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7699         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7700         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7701         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7702         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7703         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7704         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7705         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7706         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7707         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7708         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7709         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7710         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7711         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7712         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7713         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7714         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7715         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7716         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7717         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7718         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7719         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7720         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7721         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7722         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7723         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7724         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7725         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7726         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7727         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7728         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7729         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7730         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7731         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7732         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7733         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7734         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7735         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7736         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7737         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7738         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7739         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7740         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7741         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7742         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7743         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7744         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7745         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7746         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7747         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7748         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7749         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7750         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7751         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7752         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7753         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7754         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7755         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7756         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7757         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7758         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7759         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7760         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7761         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7762         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7763         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7764         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7765         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7766         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7767         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7768         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7769         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7770         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7771         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7772         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7773         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7774         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7775         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7776         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7777         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7778         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7779         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7780         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7781         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7782         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7783         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7784         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7785         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7786         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7787         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7788         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7789         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7790         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7791         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7792         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7793         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7794         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7795         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7796         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7797         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7798         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7799         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7800         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7801         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7802         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7803         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7804         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7805         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7806         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7807         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7808         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7809         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7810         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7811         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7812         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7813         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7814         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7815         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7816         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7817         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7818         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7819         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7820         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7821         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7822
7823         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7824         _XOPEN_SOURCE_EXTENDED for XPG4.
7825
7826         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7827
7828         * Makeconfig (localtime): Remove variable.
7829         (inst_localtime-file): Likewise.
7830
7831 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7832
7833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7834         Update.
7835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7836         Update.
7837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7838         Update.
7839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7840         Update.
7841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7842         Update.
7843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7844         Update.
7845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7846         Update.
7847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7848         Update.
7849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7850         Update.
7851
7852 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7853
7854         [BZ #2550]
7855         [BZ #2570]
7856         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7857         comparisons to determine direction to adjust input.
7858         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7859         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7860         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7861         Likewise.
7862         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7863         Likewise.
7864         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7865         Likewise.
7866         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7867         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7868         Likewise.
7869         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7870         Likewise.
7871         * math/libm-test.inc (nexttoward_test): Add more tests.
7872
7873 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7874
7875         [BZ #14040]
7876         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7877         in version GLIBC_2.1, not GLIBC_2.0.
7878         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7879         Likewise.
7880
7881 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7882
7883         [BZ #13942]
7884         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7885         (1 - x) * (1 + x).
7886         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7887         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7888         * math/libm-test.inc (acos_test): Add more tests.
7889         (asin_test): Likewise.
7890         * sysdeps/i386/fpu/libm-test-ulps: Update.
7891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7892
7893         [BZ #14034]
7894         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7895         of square root.
7896         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7897         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7898         * math/libm-test.inc (acos_test_tonearest): New function.
7899         (acos_test_towardzero): Likewise.
7900         (acos_test_downward): Likewise.
7901         (acos_test_upward): Likewise.
7902         (asin_test_tonearest): Likewise.
7903         (asin_test_towardzero): Likewise.
7904         (asin_test_downward): Likewise.
7905         (asin_test_upward): Likewise.
7906         (main): Call the new functions.
7907         * sysdeps/i386/fpu/libm-test-ulps: Update.
7908         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7909
7910         [BZ #13884]
7911         [BZ #13924]
7912         * math/e_exp10.c: Include <float.h>.
7913         (__ieee754_exp10): Handle underflow here rather than multiplying
7914         large negative argument by M_LN10.
7915         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7916         of __ieee754_expf.
7917         * math/e_exp10l.c: Include <float.h>.
7918         (__ieee754_exp10l): Handle underflow here rather than multiplying
7919         large negative argument by M_LN10l.
7920         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7921         spurious overflow exception on underflow.
7922
7923 2012-04-29  Marek Polacek  <polacek@redhat.com>
7924
7925         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7926         (__fortify_function): New macro.
7927         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7928         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7929         __extern_always_inline.
7930         * libio/bits/stdio2.h: Likewise.
7931         * libio/bits/stdio.h: Likewise.
7932         * string/string.h: Likewise.
7933         * string/bits/string3.h: Likewise.
7934         * include/stdio.h: Likewise.
7935         * stdlib/bits/stdlib.h: Likewise.
7936         * stdlib/stdlib.h: Likewise.
7937         * rt/bits/mqueue2.h: Likewise.
7938         * rt/mqueue.h: Likewise.
7939         * posix/bits/unistd.h: Likewise.
7940         * posix/unistd.h: Likewise.
7941         * io/bits/poll2.h: Likewise.
7942         * io/bits/fcntl2.h: Likewise.
7943         * io/fcntl.h: Likewise.
7944         * io/sys/poll.h: Likewise.
7945         * misc/bits/syslog.h: Likewise.
7946         * misc/bits/syslog-ldbl.h: Likewise.
7947         * misc/sys/syslog.h: Likewise.
7948         * socket/bits/socket2.h: Likewise.
7949         * socket/sys/socket.h: Likewise.
7950         * debug/tst-chk1.c: Likewise.
7951         * wcsmbs/bits/wchar2.h: Likewise.
7952         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7953         * wcsmbs/wchar.h: Likewise.
7954
7955 2012-04-29  Andreas Jaeger  <aj@suse.de>
7956
7957         * Makerules (tests): Remove enable-check-abi protection.
7958         (check-abi-warn): Remove.
7959         (check-abi-%): Remove check-abi-warn usage.
7960
7961         * configure.in: Remove check-abi configure option.
7962         * configure: Regenerated.
7963         * config.make.in (enable-check-abi): Remove.
7964
7965 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7966
7967         [BZ #14033]
7968         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7969         double functions to double *_finite functions.
7970
7971         [BZ #13941]
7972         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7973         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7974         LDBL_MIN_EXP.
7975         * stdio-common/Makefile (tests): Add tst-sprintf3.
7976         * stdio-common/tst-sprintf3.c: New file.
7977
7978         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
7979         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
7980
7981 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7982
7983         * conform/conformtest.pl: Remove duplicate typed-constant
7984         handling.
7985
7986 2012-04-28  David S. Miller  <davem@davemloft.net>
7987
7988         * Makerules (%.abilist): Add vpath on sysdep_dirs.
7989         (check-abi-%): Remove AWK script prerequisite and explicit
7990         abilist directory.
7991         (check-abi): Rewrite to just diff the symlist with the abilist.
7992         (config-tls, config-abi-config): Delete, no longer used.
7993         (update-abi-%): Remove AWK script and explicit abilist directory.
7994         (update-abi): Rewrite to simply compare and conditionally copy the
7995         symlist and the sysdep abilist file.  Remove update-abi-config
7996         checks.
7997         * abilist/ld.abilist: Remove.
7998         * abilist/libBrokenLocale.abilist: Remove.
7999         * abilist/libanl.abilist: Remove.
8000         * abilist/libcrypt.abilist: Remove.
8001         * abilist/libdl.abilist: Remove.
8002         * abilist/librt.abilist: Remove.
8003         * abilist/libthread_db.abilist: Remove.
8004         * abilist/libutil.abilist: Remove.
8005         * scripts/extract-abilist.awk: Remove.
8006         * scripts/merge-abilist.awk: Remove.
8007         * sysdeps/generic/libcidn.abilist: New file.
8008         * sysdeps/generic/libnss_compat.abilist: New file.
8009         * sysdeps/generic/libnss_db.abilist: New file.
8010         * sysdeps/generic/libnss_dns.abilist: New file.
8011         * sysdeps/generic/libnss_files.abilist: New file.
8012         * sysdeps/generic/libnss_hesiod.abilist: New file.
8013         * sysdeps/generic/libnss_nis.abilist: New file.
8014         * sysdeps/generic/libnss_nisplus.abilist: New file.
8015         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8016         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8017         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8018         file.
8019         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8020         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8021         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8022         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8023         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8024         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8025         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8026         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8027         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8028         file.
8029         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8030         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8031         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8032         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8033         file.
8034         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8035         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8036         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8037         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8038         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8039         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8040         file.
8041         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8042         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8043         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8044         file.
8045         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8046         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8047         New file.
8048         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8049         New file.
8050         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8051         New file.
8052         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8053         New file.
8054         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8055         New file.
8056         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8057         New file.
8058         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8059         New file.
8060         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8061         New file.
8062         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8063         New file.
8064         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8065         New file.
8066         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8067         New file.
8068         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8069         New file.
8070         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8071         New file.
8072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8073         file.
8074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8075         New file.
8076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8077         New file.
8078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8079         file.
8080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8081         New file.
8082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8083         New file.
8084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8085         file.
8086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8087         New file.
8088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8089         New file.
8090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8091         New file.
8092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8093         New file.
8094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8095         New file.
8096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8097         New file.
8098         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8099         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8100         file.
8101         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8102         New file.
8103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8104         file.
8105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8106         file.
8107         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8108         file.
8109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8110         file.
8111         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8112         file.
8113         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8114         New file.
8115         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8116         file.
8117         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8118         file.
8119         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8120         New file.
8121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8122         file.
8123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8125         file.
8126         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8127         New file.
8128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8129         file.
8130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8131         file.
8132         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8133         file.
8134         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8135         file.
8136         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8137         file.
8138         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8139         New file.
8140         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8141         file.
8142         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8143         file.
8144         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8145         New file.
8146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8147         file.
8148         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8149         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8150         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8151         file.
8152         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8153         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8154         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8155         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8156         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8157         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8158         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8159         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8160         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8161         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8162         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8164         file.
8165         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8166         New file.
8167         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8168         file.
8169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8170         file.
8171         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8172         file.
8173         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8174         file.
8175         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8176         file.
8177         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8178         New file.
8179         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8180         New file.
8181         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8182         file.
8183         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8184         New file.
8185         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8186         file.
8187         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8189         file.
8190         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8191         New file.
8192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8193         file.
8194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8195         file.
8196         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8197         file.
8198         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8199         file.
8200         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8201         file.
8202         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8203         New file.
8204         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8205         New file.
8206         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8207         file.
8208         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8209         New file.
8210         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8211         file.
8212
8213 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8214
8215         * conform/conformtest.pl: Fix typo in handling typed-constant from
8216         allow-header.
8217
8218 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8219
8220         * README: Cut down references to pre-2.6 Linux kernels and
8221         Linuxthreads.  Update lists of configurations in libc and ports
8222         and sort alphabetically.  Say "or newer" with Linux kernel version
8223         requirements.
8224
8225         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8226
8227 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8228
8229         [BZ #887]
8230         * math/libm-test.inc (logb_test_downward): New test to expose
8231         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8232         rounding mode.
8233
8234 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8235
8236         [BZ #14027]
8237         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8238         to be done.
8239         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8240         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8241
8242 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8243
8244         * sysdeps/unix/i386/brk.S: Remove file.
8245         * sysdeps/unix/i386/dl-brk.S: Likewise.
8246         * sysdeps/unix/i386/pipe.S: Likewise.
8247         * sysdeps/unix/i386/sigreturn.S: Likewise.
8248         * sysdeps/unix/i386/syscall.S: Likewise.
8249         * sysdeps/unix/i386/vfork.S: Likewise.
8250         * sysdeps/unix/i386/wait.S: Likewise.
8251
8252         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8253         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8254
8255         * configure.in (arm*-none*): Do not allow without
8256         --enable-hacker-mode.
8257         (netbsd*): Remove case setting base_os.
8258         (386bsd*): Likewise.
8259         (freebsd*): Likewise.
8260         (bsdi*): Likewise.
8261         (osf*): Likewise.
8262         (sunos*): Likewise.
8263         (ultrix*): Likewise.
8264         (newsos*): Likewise.
8265         (dynix*): Likewise.
8266         (*bsd*): Likewise.
8267         (sysv*): Likewise.
8268         (isc*): Likewise.
8269         (esix*): Likewise.
8270         (sco*): Likewise.
8271         (minix*): Likewise.
8272         (irix4*): Likewise.
8273         (irix6*): Likewise.
8274         (solaris[2-9]*): Likewise.
8275         (none): Likewise.
8276         * configure: Regenerated.
8277
8278 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8279
8280         [BZ #11521]
8281         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8282         overflow or cancellation in calculating denominator.
8283         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8284         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8285         down expression to avoid unexpected rounding in newer GCCs.
8286         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8287
8288 2012-04-26  David S. Miller  <davem@davemloft.net>
8289
8290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8291         long-double compat symbols.
8292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8298         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8305
8306 2012-04-25  David S. Miller  <davem@davemloft.net>
8307
8308         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8309         HWCAP_* values only after the memory barriers have been defined.
8310         (atomic_full_barrier): Define.
8311         (atomic_read_barrier): Define.
8312         (atomic_write_barrier): Define.
8313
8314 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8315
8316         * shlib-versions: Add libgcc_s version information.
8317         * sysdeps/generic/libgcc_s.h: Remove.
8318         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8319         libgcc_s.h.
8320         * sysdeps/gnu/unwind-resume.c: Likewise.
8321         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8322
8323 2012-04-25  David S. Miller  <davem@davemloft.net>
8324
8325         * sysdeps/unix/sparc/brk.S: Delete.
8326         * sysdeps/unix/sparc/dl-brk.S: Delete.
8327         * sysdeps/unix/sparc/pipe.S: Delete.
8328         * sysdeps/unix/sparc/sysdep.S: Delete.
8329         * sysdeps/unix/sparc/sysdep.h: Delete.
8330         * sysdeps/unix/sparc/vfork.S: Delete.
8331         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8332         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8333         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8334         ret_ERRVAL, r0, r1, MOVE): Define.
8335         (JUMPTARGET): Remove.
8336         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8337         sysdeps/unix/sparc/sysdep.h
8338         (ENTRY, END): Remove.
8339         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8340
8341 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8342
8343         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8344         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8345         -DIS_IN_build.
8346
8347         * timezone/README: Update upstream location and email address for
8348         tzcode and tzdata.
8349         * timezone/zdump.c: Update from tzcode 2012b.
8350         * timezone/zic.c: Likewise.
8351
8352         * configure.in (libc_cv_as_needed): Remove test.
8353         * configure: Regenerated.
8354         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8355         conditional definition.
8356         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8357         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8358         * config.make.in (have-as-needed): Remove variable.
8359
8360 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8361             Paul Pluzhnikov  <ppluzhnikov@google.com>
8362
8363         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8364         strings correctly.
8365
8366 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8367
8368         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8369         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8370         * sysdeps/sh/strlen.S: Likewise.
8371
8372 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8373
8374         * sysdeps/unix/fork.S: Remove file.
8375         * sysdeps/unix/i386/fork.S: Likewise.
8376         * sysdeps/unix/sparc/fork.S: Likewise.
8377
8378         * sysdeps/unix/system.c: Remove file.
8379         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8380
8381         * sysdeps/unix/getegid.S: Remove file.
8382         * sysdeps/unix/geteuid.S: Likewise.
8383
8384 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8385
8386         * scripts/check-localplt.awk: New file.
8387         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8388         of diff.
8389         * scripts/data/localplt-generic.data: Add a comment.
8390
8391         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8392         NODE when __dir_mkfile failed.
8393         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8394         Reported by Ludovic Courtès <ludo@gnu.org>.
8395
8396 2012-04-24  Andreas Jaeger  <aj@suse.de>
8397
8398         * Makerules (common-clean): Also remove gen-as-const-headers
8399         files.
8400
8401 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8402
8403         * Makerules (native-compile): Do not change working directory for
8404         build.  Use $(OUTPUT_OPTION) in command.
8405         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8406
8407 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8408
8409         [BZ #13886]
8410         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8411         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8412         * math/libm-test.inc (floor_test): Add more tests.
8413         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8414
8415 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8416
8417         * sysdeps/unix/getdents.c: Remove file.
8418         * sysdeps/unix/sysv/getdents.c: Likewise.
8419         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8420
8421         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8422         sysdeps/unix/mman/syscalls.list.
8423         (mmap): Likewise.
8424         (mprotect): Likewise.
8425         (msync): Likewise.
8426         (munmap): Likewise.
8427         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8428         * sysdeps/unix/mman/syscalls.list: Remove.
8429         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8430
8431         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8432         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8433         * configure: Regenerated.
8434         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8435         $(libgcc_s_suffix).
8436         * config.make.in (libgcc_s_suffix): Remove variable.
8437
8438 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8439
8440         * sysdeps/unix/sysv/gethostname.c: Move to ...
8441         * sysdeps/posix/gethostname.c: ... here.
8442
8443         * sysdeps/unix/execve.S: Remove file.
8444
8445         * sysdeps/unix/_exit.S: Remove file.
8446
8447 2012-04-23  Andreas Jaeger  <aj@suse.de>
8448
8449         [BZ #13739]
8450         * manual/Makefile: Remove make dist support, there's no
8451         need for a stand-alone documentation tar ball.
8452         (TEXI2DVI): Define always, it's not in Makeconfig.
8453         (dist): Removed.
8454         (tar-it): Removed.
8455         (edition): Removed.
8456         (glibc-doc-$(edition).tar): Removed
8457         (%.Z): Removed.
8458         (%.gz): Removed.
8459         (%.uu): Removed.
8460         (ETAGS): Remove, it's in Makeconfig.
8461         (move-if-change): Remove, it's in Makeconfig.
8462
8463 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8464
8465         [BZ #13970]
8466         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8467         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8468         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8469         (strtod_l, strtof_l, strtold_l): Remove __wur.
8470         It is not necessarily an error to ignore strtol's return value.
8471         One can reliably look at the stored endptr to decide whether
8472         the number had valid syntax.
8473
8474 2012-04-21  Andreas Jaeger  <aj@suse.de>
8475
8476         [BZ #13739]
8477         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8478
8479 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8480
8481         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8482         * sysdeps/unix/sysv/Versions: Remove file.
8483
8484 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8485
8486         [BZ #13927]
8487         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8488
8489 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8490
8491         [BZ #7064]
8492         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8493         version from __vm86.
8494
8495 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8496
8497         * sysdeps/unix/common/lxstat.c: Remove file.
8498         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8499
8500         * sysdeps/unix/sysv/Makefile: Remove file.
8501
8502         * sysdeps/unix/sysv/direct.h: Remove file.
8503
8504         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8505         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8506         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8507         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8508         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8509         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8510         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8511
8512         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8513
8514         * sysdeps/unix/xmknod.c: Remove file.
8515         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8516
8517         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8518
8519         * sysdeps/unix/sysv/i386/time.S: Remove file.
8520
8521         * sysdeps/unix/fxstat.c: Remove file.
8522         * sysdeps/unix/xstat.c: Likewise.
8523         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8524
8525         * sysdeps/unix/sysv/sigaction.c: Remove file.
8526
8527         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8528         (sysdep_headers): Remove variable.
8529         [termio.h not in sysdep_headers] (generated): Likewise.
8530         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8531         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8532         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8533         * sysdeps/unix/sysv/tcflow.c: Likewise.
8534         * sysdeps/unix/sysv/tcflush.c: Likewise.
8535         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8536         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8537         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8538         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8539         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8540
8541         * sysdeps/unix/siglist.c: Remove file.
8542
8543         * sysdeps/unix/getppid.S: Remove file.
8544
8545         * sysdeps/unix/mkdir.c: Remove file.
8546         * sysdeps/unix/rmdir.c: Likewise.
8547
8548 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8549
8550         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8551         ERR_MAX value.
8552         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8553         errlist-compat value.
8554
8555 2012-04-18  David S. Miller  <davem@davemloft.net>
8556
8557         * sysdeps/generic/memcopy.h (reg_char): Delete.
8558         * debug/strcat_chk.c: Use char, not reg_char.
8559         * debug/strcpy_chk.c: Likewise.
8560         * debug/strncat_chk.c: Likewise.
8561         * debug/strncpy_chk.c: Likewise.
8562         * string/memchr.c: Likewise.
8563         * string/memrchr.c: Likewise.
8564         * string/rawmemchr.c: Likewise.
8565         * string/strcat.c: Likewise.
8566         * string/strchr.c: Likewise.
8567         * string/strchrnul.c: Likewise.
8568         * string/strcmp.c: Likewise.
8569         * string/strcpy.c: Likewise.
8570         * string/strncat.c: Likewise.
8571         * string/strncmp.c: Likewise.
8572         * string/strncpy.c: Likewise.
8573
8574 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8575
8576         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8577         __builtin_memcopy is called when src and dest ranges are known to not
8578         overlap.
8579
8580 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8581
8582         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8583         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8584         fwd_align_merge macro call.
8585         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8586         bwd_align_merge macro call.
8587         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8588
8589 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8590
8591         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8592         bwd_align_merge macros.
8593         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8594         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8595         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8596
8597 2012-04-18  David S. Miller  <davem@davemloft.net>
8598
8599         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8600
8601 2012-04-18  Andreas Jaeger  <aj@suse.de>
8602
8603         [BZ# 6794]
8604         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8605         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8606         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8607
8608         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8609         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8610         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8611
8612         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8613         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8614         Adjust for changed ldbl-128 files.
8615
8616         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8617         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8618         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8619
8620 2012-04-17  David S. Miller  <davem@davemloft.net>
8621
8622         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8623
8624 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8625
8626         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8627         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8628         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8629         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8630         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8631         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8632
8633 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8634
8635         [BZ #6794]
8636         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8637         * math/libm-test.inc: Add ilogb errno and exception tests.
8638         * math/w_ilogb.c: New file: ilogb wrapper.
8639         * math/w_ilogbf.c: New file: ilogbf wrapper.
8640         * math/w_ilogbl.c: New file: ilogbl wrapper.
8641         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8642         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8643         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8644         exception being thrown with 0.0 as argument.
8645         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8646         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8647         exception being thrown with 0.0 as argument.
8648         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8649         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8650         exception being thrown with 0.0 as argument.
8651         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8652         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8653         exception being thrown with 0.0 as argument.
8654         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8655         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8656         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8657         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8658         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8659         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8660         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8661         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8662         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8663
8664 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8665
8666         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8667         with altivec.
8668
8669 2012-04-16  Marek Polacek  <polacek@redhat.com>
8670
8671         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8672
8673 2012-04-16  Marek Polacek  <polacek@redhat.com>
8674
8675         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8676         operands of fdivp instruction.
8677
8678 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8679
8680         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8681         * elf/tst-auditmod3b.c: Likewise.
8682         * elf/tst-auditmod4b.c: Likewise.
8683         * elf/tst-auditmod5b.c: Likewise.
8684         * elf/tst-auditmod6b.c: Likewise.
8685         * elf/tst-auditmod6c.c: Likewise.
8686         * elf/tst-auditmod7b.c: Likewise.
8687         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8688         * sysdeps/x86_64/preconfigure.in: Likewise.
8689         * sysdeps/x86_64/preconfigure: Regenerated.
8690
8691 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8692
8693         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8694         __ILP32__.
8695
8696 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8697
8698         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8699         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8700
8701 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8702
8703         [BZ #13973]
8704         * locale/iso-639.def: Fix gl language name. Spotted by
8705         Yaron Shahrabani.
8706
8707 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8708
8709         [BZ #2074]
8710         * libio/libio.h (__io_write_fn): Update comment.
8711
8712 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8713
8714         [BZ #2074]
8715         * stdio.texi (Hook Functions): The user provided writer function
8716         is not allowed to return -1.
8717
8718 2012-04-11  David S. Miller  <davem@davemloft.net>
8719
8720         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8721
8722 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8723
8724         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8725         Add a leading slash to rtkaio.
8726
8727 2012-04-11  Jim Meyering  <meyering@redhat.com>
8728
8729         [BZ #11959]
8730         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8731         It is not necessarily an error to ignore fwrite's return
8732         value.  One can reliably use ferror to test for errors after
8733         the fact.
8734
8735 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8736
8737         * bits/types.h (__snseconds_t): New type.
8738         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8739
8740         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8741         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8742         (__SNSECONDS_T_TYPE): Likewise.
8743         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8744         (__SNSECONDS_T_TYPE): Likewise.
8745         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8746         (__SNSECONDS_T_TYPE): Likewise.
8747
8748 2012-04-10  Andreas Jaeger  <aj@suse.de>
8749
8750         [BZ #2636]
8751         * manual/time.texi (Processor Time): Return type of times is
8752         elapsed real time since an arbitrary point in the past.
8753         (CPU Time): Move CLK_TCK from here...
8754         (Processor Time): ...to here.  Correct description.
8755         * manual/conf.texi (Constants for Sysconf): Correct description of
8756         _SC_CLK_TCK.
8757
8758 2012-04-10  David S. Miller  <davem@davemloft.net>
8759
8760         [BZ #13967]
8761         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8762         where the is a gap between DT_REL(A) and DT_JMPREL.
8763
8764 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8765
8766         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8767         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8768         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8769
8770 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8771
8772         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8773         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8774         (dl_main): Handle --inhibit-cache.
8775         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8776         _dl_inhibit_cache.
8777         * elf/dl-load.c (_dl_map_object): Use it.
8778         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8779
8780 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8781
8782         [BZ #13872]
8783         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8784         (__ieee754_powl): Saturate large exponents rather than testing for
8785         overflow of y*log2(x).
8786         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8787         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8788         exceptions.
8789
8790         [BZ #11521]
8791         * math/s_ctan.c: Include <float.h>.
8792         (__ctan): Avoid internal overflow or cancellation in calculating
8793         denominator.
8794         * math/s_ctanf.c: Likewise.
8795         * math/s_ctanl.c: Likewise.
8796         * math/s_ctanh.c: Likewise.
8797         * math/s_ctanhf.c: Likewise.
8798         * math/s_ctanhl.c: Likewise.
8799         * math/libm-test.inc (ctan_test): Add more tests.
8800         (ctanh_test): Likewise.
8801         * sysdeps/i386/fpu/libm-test-ulps: Update.
8802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8803
8804 2012-04-09  Andreas Jaeger  <aj@suse.de>
8805
8806         [BZ #6894]
8807         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8808         is an optional BSD extension.
8809
8810         [BZ #10254]
8811         * manual/stdio.texi (Opening Streams): Document additional fopen
8812         parameters.
8813
8814 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8815
8816         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8817         %eax without telling the compiler.
8818
8819 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8820
8821         [BZ # 13963]
8822         * manual/install.texi: Use sourceware.org.
8823
8824 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8825
8826         [BZ #13873]
8827         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8828         (__ieee754_pow): Generate overflow and underflow using huge*huge
8829         and tiny*tiny rather than just returning constant infinity or zero
8830         for large exponents.
8831         * math/libm-test.inc (pow_test): Require overflow exceptions for
8832         applicable cases of large exponents.
8833
8834         [BZ #706]
8835         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8836         (__ieee754_pow): Use iterative multiplication algorithm only for
8837         integer exponents with absolute value below 1024.  Check for odd
8838         integer exponents when using algorithm for real exponents.
8839         * math/libm-test.inc (pow_test): Add more tests.
8840         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8841
8842 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8843
8844         [BZ #13705]
8845         * math/libm-test.inc (exp_test): Do not allow overflow exception
8846         on underflow test.
8847
8848 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8849
8850         [BZ #13705]
8851         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8852         instead of __kernel_standard_f.
8853
8854 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8855
8856         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8857         * sysdeps/x86_64/memset_chk.S: Likewise.
8858
8859 2012-04-08  Andreas Jaeger  <aj@suse.de>
8860
8861         [BZ #10153]
8862         * manual/startup.texi (Environment Access): Describe return value
8863         for putenv and setenv.
8864
8865         [BZ #6895]
8866         * manual/filesys.texi (Directory Entries): Add description for
8867         DT_LNK.
8868
8869         [BZ #6890]
8870         * manual/filesys.texi (Directory Entries): Clarify that it's file
8871         system not operating system in the description of DT_UNKNOWN.
8872
8873         [BZ #6578]
8874         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8875
8876 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8877
8878         [BZ #6649]
8879         * manual/llio.texi (Opening and Closing Files): Add cross
8880         reference to explain mode argument.
8881
8882 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8883
8884         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8885         * sysdeps/x86_64/memset_chk.S: Likewise.
8886
8887 2012-04-07  David S. Miller  <davem@davemloft.net>
8888
8889         * elf/elf.h (R_SPARC_WDISP10): Define.
8890         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8891         R_SPARC_SIZE32.
8892         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8893         R_SPARC_SIZE64 and R_SPARC_H34.
8894
8895 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8896
8897         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8898         conditions and remove no longer applicable assertion.
8899
8900 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8901
8902         * bits/byteswap.h: Include <features.h>.
8903         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8904         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8905
8906 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8907
8908         * bits/byteswap.h (__bswap_16): Removed.
8909         Include <bits/byteswap-16.h> to get __bswap_16.
8910         * sysdeps/i386/bits/byteswap.h: Likewise.
8911         * sysdeps/s390/bits/byteswap.h: Likewise.
8912         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8913         * bits/byteswap-16.h: New file.
8914         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8915         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8916         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8917         * string/Makefile (headers): Add bits/byteswap-16.h.
8918
8919 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8920
8921         [BZ #13895]
8922         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8923         extra indirection.
8924         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8925         * nss/tst-nss-static.c: New.
8926
8927 2012-04-06  Robert Millan  <rmh@gnu.org>
8928
8929         [BZ #6486]
8930         * manual/llio.texi (File Position Primitive): lseek
8931         refers to WHENCE when it really means OFFSET.
8932
8933 2012-04-06  Andreas Jaeger  <aj@suse.de>
8934
8935         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8936         strncmp declarations.
8937
8938         * abilist/libc.abilist: Add __poll and __ppoll.
8939
8940 2012-04-05  David S. Miller  <davem@davemloft.net>
8941
8942         * scripts/check-local-headers.sh: Accept a host triplet in the
8943         path matched by the exclude regexp.
8944
8945         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8946         definition.
8947         * sysdeps/powerpc/powerpc32/dl-machine.h
8948         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8949         * sysdeps/s390/s390-32/dl-machine.h
8950         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8951         * sysdeps/sparc/sparc32/dl-machine.h
8952         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8953         * sysdeps/sparc/sparc64/dl-machine.h
8954         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8955
8956         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8957         lazy binding.
8958         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8959         undefined symbol errors.
8960
8961         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8962         DT_NEEDED entries.
8963
8964 2012-04-05  Michael Matz  <matz@suse.de>
8965
8966         [BZ #13592]
8967         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8968
8969 2012-04-05  Andreas Jaeger  <aj@suse.de>
8970
8971         [BZ #13908]
8972         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8973         comment.
8974
8975 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8976
8977         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
8978         which ROUND is no valid rounding mode.
8979
8980 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8981
8982         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
8983         read again.
8984         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
8985
8986 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8987
8988         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
8989         an exception using FPU order intentionally.
8990
8991 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8992
8993         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
8994         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
8995         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
8996         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
8997
8998 2012-04-05  Simon Josefsson  <simon@josefsson.org>
8999
9000         [BZ #12340]
9001         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9002         EINVAL when BUFLEN is too smal.
9003
9004 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9005
9006         [BZ #13553]
9007         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9008         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9009
9010 2012-04-03  Andreas Jaeger  <aj@suse.de>
9011
9012         [BZ #13938]
9013         * manual/setjmp.texi (System V contexts): Fix sentence.
9014
9015         [BZ #13926]
9016         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9017         New macro for this case.
9018         [!__GNUC__] (__bswap_64): New inline function for this case.
9019         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9020         * bits/byteswap.h: Likewise.
9021         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9022         ull, guard with __GLIBC_HAVE_LONG_LONG.
9023
9024         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9025         __GLIBC_HAVE_LONG_LONG.
9026
9027         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9028         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9029
9030 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9031
9032         [BZ #13691]
9033         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9034         inptr and inend, rather than using last_ch.
9035
9036 2012-04-02  David S. Miller  <davem@davemloft.net>
9037
9038         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9039         * stdio-common/printf-parse.h (read_int): Change return type to
9040         'int', return -1 on INT_MAX overflow.
9041         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9042         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9043         overflows INT_MAX.  Check for overflow of in-format-string precision
9044         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9045         SIZE_MAX not INT_MAX for integer overflow test.
9046         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9047         skip the construct in the format string but do not record anything.
9048         * stdio-common/bug22.c: Adjust to test both width/prevision
9049         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9050         explicitly for proper errno values.
9051
9052 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9053
9054         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9055         CHAR_MAX.
9056         * string/test-strcmp.c [! WIDE]: Likewise.
9057         * time/tst-mktime2.c: Likewise for INT_MAX.
9058         * string/test-string.h: #include <sys/param.h> for MIN.
9059
9060         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9061         * sysdeps/i386/init-first.c (init): Likewise.
9062         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9063         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9064         * sysdeps/sh/init-first.c (init): Likewise.
9065
9066 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9067
9068         * po/ru.po: Update from translation team.
9069         * po/vi.po: Likewise.
9070
9071 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9072
9073         * resolv/nss_dns/dns-host.c: Merge copyright years.
9074
9075 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9076
9077         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9078         Optimize memcpy with prefetch if
9079         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9080         src, dst pointers have unequal 16 byte alignments.
9081
9082 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9083
9084         [BZ #13928]
9085         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9086         from a CNAME entry and return the minimum ttl for the query.
9087         (gaih_getanswer_slice): Likewise.
9088
9089 2012-03-30  Jeff Law  <law@redhat.com>
9090
9091         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9092         due to long keys.
9093         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9094         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9095
9096         * resolv/nss_dns/dns-host.c: Update copyright year.
9097
9098 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9099
9100         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9101         requests to save a system call.  Fix check that all bytes are sent.
9102
9103         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9104         comments for sendmmsg.
9105
9106 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9107
9108         [BZ #13691]
9109         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9110         with only 1 character between 0x0041 and 0x01b0.
9111         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9112         * wcsmbs/tst-mbsnrtowcs.c: New file.
9113
9114 2012-03-29  David S. Miller  <davem@davemloft.net>
9115
9116         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9117         small copies by hand.
9118
9119 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9120
9121         [BZ #13761]
9122         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9123         _nss_compat_initgroups_dyn): Fall back to malloc/free
9124         for large group memberships.
9125
9126 2012-03-28  David S. Miller  <davem@davemloft.net>
9127
9128         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9129         that branches into memcpy.
9130         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9131         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9132         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9133         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9134         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9135         bits.
9136         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9137         implementation too.
9138         * sysdeps/sparc/mempcpy.S: New file.
9139
9140         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9141         the IFUNC routine in the libc case.
9142         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9143
9144         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9145         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9146         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9147         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9148         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9149         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9150         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9151         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9152
9153         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9154         loop to 256 bytes instead of 64 bytes and fix test signedness.
9155
9156         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9157         * sysdeps/sparc/sparc32/Makefile: rather than here...
9158         * sysdeps/sparc/sparc64/Makefile: and here.
9159
9160 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9161
9162         * malloc/mallocbug.c: Avoid warnings about unused variables.
9163
9164 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9165
9166         [BZ #13760]
9167         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9168         in the right place. Discard and retry query if response is
9169         larger than input buffer size.
9170
9171 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9172
9173         [BZ #369]
9174         [BZ #2678]
9175         [BZ #3866]
9176         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9177         x for large integer exponent.
9178         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9179         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9180         sign of result as needed afterwards.
9181         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9182         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9183         result for underflowing pow the same as for overflow.
9184         (__kernel_standard_l): Handle powl overflow and underflow here
9185         rather than calling __kernel_standard.
9186         * math/libm-test.inc (pow_test): Add more tests.
9187
9188         [BZ #3868]
9189         [BZ #13879]
9190         [BZ #13910]
9191         [BZ #13911]
9192         [BZ #13912]
9193         [BZ #13913]
9194         [BZ #13915]
9195         [BZ #13916]
9196         [BZ #13917]
9197         [BZ #13918]
9198         [BZ #13919]
9199         [BZ #13920]
9200         [BZ #13921]
9201         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9202         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9203         (__kernel_standard_l): New function.
9204         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9205         __kernel_standard.
9206         * math/w_acosl.c (__acosl): Likewise.
9207         * math/w_asinl.c (__asinl): Likewise.
9208         * math/w_atan2l.c (__atan2l): Likewise.
9209         * math/w_atanhl.c (__atanhl): Likewise.
9210         * math/w_coshl.c (__coshl): Likewise.
9211         * math/w_exp10l.c (__exp10l): Likewise.
9212         * math/w_exp2l.c (__exp2l): Likewise.
9213         * math/w_fmodl.c (__fmodl): Likewise.
9214         * math/w_hypotl.c (__hypotl): Likewise.
9215         * math/w_j0l.c (__j0l, __y0l): Likewise.
9216         * math/w_j1l.c (__j1l, __y1l): Likewise.
9217         * math/w_jnl.c (__jnl, __ynl): Likewise.
9218         * math/w_lgammal.c (__lgammal): Likewise.
9219         * math/w_log10l.c (__log10l): Likewise.
9220         * math/w_log2l.c (__log2l): Likewise.
9221         * math/w_logl.c (__logl): Likewise.
9222         * math/w_powl.c (__powl): Likewise.
9223         * math/w_remainderl.c (__remainderl): Likewise.
9224         * math/w_scalbl.c (sysv_scalbl): Likewise.
9225         * math/w_sinhl.c (__sinhl): Likewise.
9226         * math/w_sqrtl.c (__sqrtl): Likewise.
9227         * math/w_tgammal.c (__tgammal): Likewise.
9228         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9229         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9230         * math/libm-test.inc (acos_test): Add more tests.
9231         (acosh_test): Likewise.
9232         (asin_test): Likewise.
9233         (atanh_test): Likewise.
9234         (exp_test): Likewise.
9235         (exp10_test): Likewise.
9236         (exp2_test): Likewise.
9237         (expm1_test): Likewise.
9238         (lgamma_test): Likewise.
9239         (log_test): Likewise.
9240         (log10_test): Likewise.
9241         (log1p_test): Likewise.
9242         (log2_test): Likewise.
9243         (pow_test): Do not allow some spurious overflow exceptions.
9244         (sqrt_test): Add more tests.
9245         (tgamma_test): Likewise.
9246         (y0_test): Likewise.
9247         (y1_test): Likewise.
9248         (yn_test): Likewise.
9249
9250 2012-03-27  Anton Blanchard  <anton@samba.org>
9251
9252         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9253         MAP_HUGETLB.
9254         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9255         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9256         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9257
9258 2012-03-27  David S. Miller  <davem@davemloft.net>
9259
9260         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9261
9262         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9263         have-as-vis3 check.
9264
9265 2012-03-27  Andreas Jaeger  <aj@suse.de>
9266
9267         * sysdeps/x86_64/elf/configure.in: Moved to ...
9268         * sysdeps/x86_64/configure.in: ... here.
9269         * sysdeps/x86_64/elf/start.S: Moved to ...
9270         * sysdeps/x86_64/start.S: ... here.
9271         * sysdeps/x86_64/elf/configure: Delete.
9272
9273         * sysdeps/x86_64/configure.in: Merge contents from
9274         sysdeps/i386/configure.in (without i686 check).
9275
9276         * sysdeps/i386/elf/Versions: Merge into ...
9277         * sysdeps/i386/Versions: ... this.
9278         * sysdeps/i386/elf/Versions: Delete file.
9279         * sysdeps/i386/elf/start.S: Moved to ...
9280         * sysdeps/i386/start.S: ...here.
9281         * sysdeps/i386/elf/configure.in: Merge into...
9282         * sysdeps/i386/configure.in: ...here.
9283         * sysdeps/i386/elf/configure.in: Delete file.
9284         * sysdeps/i386/elf/configure: Delete file.
9285
9286         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9287         * debug/backtracesyms.c: ... here.
9288         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9289         * debug/backtracesymsfd.c: ... here.
9290         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9291         * sysdeps/generic/ifunc-sel.h: ... here.
9292
9293         * sysdeps/unix/i386/start.c: Delete file.
9294         * sysdeps/unix/sparc/start.c: Delete file.
9295         * sysdeps/unix/start.c: Delete file.
9296
9297         * sysdeps/sh/elf/configure.in: Moved to ...
9298         * sysdeps/sh/configure.in: ... here.
9299         * sysdeps/sh/elf/start.S: Moved to ...
9300         * sysdeps/sh/start.S: ... here.
9301         * sysdeps/sh/elf/configure: Delete file.
9302
9303         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9304         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9305         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9306         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9307         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9308         * sysdeps/powerpc/powerpc64/start.S: here.
9309         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9310         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9311         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9312         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9313         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9314
9315         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9316         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9317         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9318         * sysdeps/powerpc/powerpc32/start.S: ... here.
9319         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9320         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9321         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9322
9323         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9324         * sysdeps/powerpc/ifunc-sel.h: ... here.
9325         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9326         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9327
9328         * sysdeps/sparc/elf/configure.in: Moved to ...
9329         * sysdeps/sparc/configure.in: ... here.
9330         * sysdeps/sparc/elf/configure: Delete file.
9331         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9332         * sysdeps/sparc/sparc32/start.S: ... here.
9333         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9334         * sysdeps/sparc/sparc64/start.S: ... here.
9335         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9336         * sysdeps/sparc/sparc32/Makefile: ... this.
9337         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9338         * sysdeps/sparc/sparc64/Makefile: ... this.
9339
9340         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9341         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9342         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9343         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9344         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9345         * sysdeps/s390/s390-32/setjmp.S: ... here.
9346         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9347         * sysdeps/s390/s390-32/configure.in: ... here.
9348         * sysdeps/s390/s390-32/elf/configure: Delete file.
9349         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9350         * sysdeps/s390/s390-32/start.S: ... here.
9351
9352         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9353         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9354         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9355         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9356         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9357         * sysdeps/s390/s390-64/setjmp.S: ... here.
9358         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9359         * sysdeps/s390/s390-64/configure.in: ... here
9360         * sysdeps/s390/s390-64/elf/configure: Delete file.
9361         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9362         * sysdeps/s390/s390-64/start.S: ... here.
9363         * sysdeps/s390/s390-64/elf/configure: Delete.
9364
9365         * configure.in: Remove support for elf directories in sysdeps.
9366
9367         * configure: Regenerated.
9368         * sysdeps/i386/configure: Regenerated.
9369         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9370         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9371         * sysdeps/s390/s390-32/configure: Regenerated.
9372         * sysdeps/s390/s390-64/configure: Regenerated.
9373         * sysdeps/sh/configure: Regenerated.
9374         * sysdeps/sparc/configure: Regenerated.
9375         * sysdeps/x86_64/configure: Regenerated.
9376
9377 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9378
9379         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9380
9381         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9382         denormal result into account.
9383
9384 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9385
9386         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9387         Reported by Allan McRae <allan@archlinux.org>.
9388
9389 2012-03-23  Jeff Law  <law@redhat.com>
9390
9391         * nss/getnssent.c (__nss_getent): Fix typo.
9392
9393 2012-03-23  David S. Miller  <davem@davemloft.net>
9394
9395         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9396
9397 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9398
9399         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9400         to pad to uint64_t for each field.
9401         (dl_tls_index): Replace unsigned long with uint64_t.
9402
9403 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9404         Paul Pluzhnikov  <ppluzhnikov@google.com>
9405
9406         [BZ #6528]
9407         * grp/Makefile (otherlibs): Don't set it.
9408         * inet/Makefile (otherlibs): Likewise.
9409         * login/Makefile (otherlibs): Likewise.
9410         * nscd/Makefile (otherlibs): Likewise.
9411         * posix/Makefile (otherlibs): Likewise.
9412         * pwd/Makefile (otherlibs): Likewise.
9413         * rt/Makefile (otherlibs): Likewise.
9414         * sunrpc/Makefile (otherlibs): Likewise.
9415         * nss/Makefile (otherlibs): Likewise.
9416         Add libnss_files to routines and static-only-routines.
9417         ($(objpfx)getent): Remove rule.
9418         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9419         static-only-routines.
9420
9421 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9422
9423         [BZ #13892]
9424         * math/s_cexp.c: Include <float.h>.
9425         (__cexp): Handle exp result overflowing not necessarily
9426         overflowing both real and imaginary parts of result.
9427         * math/s_cexpf.c: Likewise.
9428         * math/s_cexpl.c: Likewise.
9429         * math/libm-test.inc (cexp_test): Add more tests.
9430         * sysdeps/i386/fpu/libm-test-ulps: Update.
9431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9432
9433 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9434
9435         * include/link.h (ELFW): New macro.
9436         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9437         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9438
9439 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9440
9441         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9442         with uint64_t.
9443
9444 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9445
9446         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9447         declaration.
9448         (struct La_x32_retval): Likewise.
9449
9450 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9451
9452         * sysdeps/x86_64/preconfigure.in: New file.
9453         * sysdeps/x86_64/preconfigure: New generated file.
9454
9455 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9456
9457         [BZ #13824]
9458         * math/e_exp2l.c: Include <float.h>.
9459         (__ieee754_exp2l): Handle overflow and underflow cases
9460         separately.  Only pass fractional part of argument to
9461         __ieee754_expl.
9462         * math/libm-test.inc (exp2_test): Add more tests.
9463
9464         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9465         negating x to take absolute value.
9466         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9467         Likewise.
9468         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9469         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9470         Likewise.
9471         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9472         computing low part if x was negated.
9473         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9474
9475 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9476
9477         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9478         la_x32_gnu_pltexit.
9479         (pltexit): Cast int_retval to ptrdiff_t.
9480         * elf/tst-auditmod3b.c: Likewise.
9481         * elf/tst-auditmod4b.c: Likewise.
9482         * elf/tst-auditmod5b.c: Likewise.
9483         * elf/tst-auditmod6b.c: Likewise.
9484         * elf/tst-auditmod6c.c: Likewise.
9485         * elf/tst-auditmod7b.c: Likewise.
9486
9487         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9488         and x32_gnu_pltexit.
9489
9490         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9491         __ELF_NATIVE_CLASS.
9492         (La_x32_regs): New macro.
9493         (La_x32_retval): Likewise.
9494         (la_x32_gnu_pltenter): New function prototype.
9495         (la_x32_gnu_pltexit): Likewise.
9496
9497 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9498
9499         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9500         exponent.
9501
9502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9503
9504         * configure.in (libc_cv_cc_nofma): Check for option to disable
9505         generation of FMA instructions.
9506         * configure: Regenerate.
9507         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9508         * sysdeps/ieee754/dbl-64/Makefile: New file.
9509         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9510         Remove brandred-fma4.
9511         (CFLAGS-brandred-fma4.c): Remove.
9512         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9513         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9514         define.
9515         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9516         define.
9517
9518 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9519
9520         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9521         LLONG_MAX != LONG_MAX.
9522         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9523         (_fitoa_word): Likewise.
9524         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9525         LLONG_MAX != LONG_MAX.
9526         * stdio-common/_itowa.h: Include <_itoa.h>.
9527         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9528         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9529         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9530         only if not defined.
9531         (_ITOA_WORD_TYPE): Likewise.
9532         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9533         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9534
9535 2012-03-21  David S. Miller  <davem@davemloft.net>
9536
9537         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9538
9539 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9540
9541         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9542         of x86_64 when setting libc_cv_slibdir, libdir and
9543         libc_cv_localedir.
9544         * sysdeps/unix/sysv/linux/configure: Regenerated.
9545
9546 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9547
9548         * manual/lang.texi (Old Varargs): Remove section.
9549         (How Variadic): Update menu.
9550         (va_start): Do not mention varargs.h.
9551
9552 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9553             Joseph Myers  <joseph@codesourcery.com>
9554
9555         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9556         link test.
9557         * configure: Regenerated.
9558
9559 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9560
9561         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9562         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9563         conformtest.pl
9564
9565 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9566
9567         * NOTES: Remove.
9568         * Makefile (files-for-dist): Remove NOTES.
9569         (NOTES): Remove rule.
9570         * README: Don't refer to NOTES.
9571         * manual/creature.texi: Don't include macros.texi.
9572         * manual/intro.texi (creature.texi): Remove comment referring to
9573         NOTES.
9574
9575         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9576         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9577         * configure: Regenerated.
9578         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9579         LIBC_TRY_CC_OPTION.
9580         (libc_cv_as_i686): Likewise.
9581         (libc_cv_cc_avx): Likewise.
9582         (libc_cv_cc_sse2avx): Likewise.
9583         (libc_cv_cc_fma4): Likewise.
9584         (libc_cv_cc_novzeroupper): Likewise.
9585         * sysdeps/i386/configure: Regenerated.
9586
9587         [BZ #13883]
9588         * sysdeps/i386/fpu/s_cexp.S: Remove.
9589         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9590         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9591         * math/libm-test.inc (cexp_test): Add more tests.
9592         * sysdeps/i386/fpu/libm-test-ulps: Update.
9593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9594
9595 2012-03-21  Allan McRae  <allan@archlinux.org>
9596
9597         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9598
9599 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9600
9601         [BZ #13871]
9602         * math/w_exp2.c: Do not include <float.h>.
9603         (o_threshold, u_threshold): Remove.
9604         (__exp2): Calculate result before checking finiteness and calling
9605         __kernel_standard.
9606         * math/w_exp2f.c: Likewise.
9607         * math/w_exp2l.c: Likewise.
9608         * math/libm-test.inc (exp2_test): Require overflow exception for
9609         1e6 input.
9610
9611         [BZ #3866]
9612         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9613         range of signed 64-bit integers before using fistpll.  Remove
9614         checks for whether integers fit in mantissa bits.
9615         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9616         the range of signed 32-bit integers before using fistpl.  Remove
9617         checks for whether integers fit in mantissa bits.
9618         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9619         (__ieee754_powl): Test for y outside the range of signed 64-bit
9620         integers before using fistpll.  Reduce 64-bit values to 63-bit
9621         ones as needed.
9622         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9623         divide-by-zero is raised for zero to large negative powers.
9624         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9625         (__ieee754_powl): Test for y outside the range of signed 64-bit
9626         integers before using fistpll.  Reduce 64-bit values to 63-bit
9627         ones as needed.
9628         * math/libm-test.inc (pow_test): Add more tests.
9629
9630 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9631
9632         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9633         <stdio-common/_itoa.h>.
9634         * debug/segfault.c: Likewise.
9635         * elf/dl-cache.c: Likewise.
9636         * elf/dl-minimal.c: Likewise.
9637         * elf/dl-misc.c: Likewise.
9638         * elf/dl-sysdep.c: Likewise.
9639         * elf/dl-version.c: Likewise.
9640         * elf/rtld.c: Likewise.
9641         * hurd/hurdsock.c: Likewise.
9642         * hurd/lookup-retry.c: Likewise.
9643         * malloc/malloc.c: Likewise.
9644         * malloc/mtrace.c: Likewise.
9645         * nscd/nscd_getgr_r.c: Likewise.
9646         * nscd/nscd_getpw_r.c: Likewise.
9647         * nscd/nscd_getserv_r.c: Likewise.
9648         * posix/getopt_init.c: Likewise.
9649         * posix/wordexp.c: Likewise.
9650         * stdio-common/_itoa.c: Likewise.
9651         * stdio-common/printf_fphex.c: Likewise.
9652         * stdio-common/vfprintf.c: Likewise.
9653         * string/_strerror.c: Likewise.
9654         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9655         * sysdeps/i386/i686/hp-timing.h: Likewise.
9656         * sysdeps/mach/_strerror.c: Likewise.
9657         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9658         * sysdeps/mach/hurd/sethostid.c: Likewise.
9659         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9660         * sysdeps/mach/xpg-strerror.c: Likewise.
9661         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9662         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9663         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9664         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9665         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9666         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9667         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9668         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9669         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9670         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9671         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9672         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9673         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9674         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9675         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9676         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9677         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9678         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9679         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9680         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9681         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9682
9683         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9684
9685         * stdio-common/_itoa.h: Moved to ...
9686         * sysdeps/generic/_itoa.h: Here.
9687
9688         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9689
9690         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9691         instead of "_itoa.h" and "_itowa.h".
9692         * stdio-common/vfprintf.: Likewise.
9693
9694 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9695
9696         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9697         <bits/wordsize.h>.
9698         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9699         (__signbit): Likwise.
9700         (llrintf): Likwise.
9701         (llrint): Likwise.
9702
9703 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9704
9705         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9706         __WORDSIZE != 64.
9707
9708 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9709
9710         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9711         OVERFLOW_EXCEPTION_OK.
9712         * math/libm-test.inc ("Philosophy"): Update comment about
9713         exception testing.
9714         (OVERFLOW_EXCEPTION): Define.
9715         (OVERFLOW_EXCEPTION_OK): Likewise.
9716         (INVALID_EXCEPTION_OK): Renumber.
9717         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9718         (IGNORE_ZERO_INF_SIGN): Likewise.
9719         (test_exceptions): Handle FE_OVERFLOW.
9720         (exp10_test): Expect overflow exceptions.
9721         (exp2_test): Likewise.
9722         (expm1_test): Likewise.
9723         (nextafter_test): Likewise.
9724         (pow_test): Likewise.
9725         (scalbn_test): Likewise.
9726         (scalbln_test): Likewise.
9727
9728 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9729
9730         * sysdeps/x86_64/bits/atomic.h
9731         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9732         64bit integer.
9733         (atomic_exchange_acq): Likewise.
9734         (__arch_exchange_and_add_body): Likewise.
9735         (__arch_add_body): Likewise.
9736         (atomic_add_negative): Likewise.
9737         (atomic_add_zero): Likewise.
9738
9739 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9740
9741         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9742         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9743
9744 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9745
9746         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9747         Check __x86_64__ instead of __WORDSIZE.
9748
9749 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9750
9751         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9752
9753 2012-03-19  David S. Miller  <davem@davemloft.net>
9754
9755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9756
9757         * sysdeps/sparc/fpu/fenv_private.h: New file.
9758         * sysdeps/sparc/fpu/math_private.h: Use it.
9759         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9760         Remove.
9761         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9762         (libc_feholdexcept_setroundl): Remove.
9763         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9764         Remove.
9765         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9766         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9767
9768 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9769
9770         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9771         int64_t instead of long int.
9772         (INSERT_WORDS64): Likwise.
9773
9774 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9775
9776         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9777         _Unwind_GetCFA return to _Unwind_Ptr first.
9778
9779 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9780
9781         [BZ #13629]
9782         * math/s_clog.c: Include <float.h>.
9783         (__clog): Scale large or subnormal inputs.
9784         * math/s_clogf.c: Likewise.
9785         * math/s_clogl.c: Likewise.
9786         * math/s_clog10.c: Include <float.h>.
9787         (M_LOG10_2): Define.
9788         (__clog10): Scale large or subnormal inputs.
9789         * math/s_clog10f.c: Likewise.
9790         * math/s_clog10l.c: Likewise.
9791         * math/libm-test.inc (clog_test): Add more tests.
9792         (clog10_test): Likewise.
9793         * sysdeps/i386/fpu/libm-test-ulps: Update.
9794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9795
9796         [BZ #11451]
9797         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9798         x and y.
9799         * math/libm-test.inc (atan2_test): Add another test.
9800
9801         * Makerules (common-objdir-compile): Remove.
9802         * sysdeps/unix/Makefile (config-generated): Do not add
9803         $(unix-generated) to variable.
9804         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9805         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9806         Remove rule.
9807         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9808         Likewise.
9809         [generic bits/local_lim.h] (before-compile): Do not append to
9810         variable.
9811         [generic bits/local_lim.h] (common-generated): Likewise.
9812         [generic sys/param.h] (before-compile): Do not append to variable.
9813         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9814         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9815         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9816         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9817         include.
9818         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9819         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9820         [generic sys/param.h] ($(addprefix
9821         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9822         [generic sys/param.h] (common-generated): Do not append to
9823         variable.
9824         [generic sys/param.h] (sysdep_headers): Likewise.
9825         [generic bits/errno.h] (before-compile): Do not append to
9826         variable.
9827         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9828         rule.
9829         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9830         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9831         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9832         [generic bits/errno.h] (common-generated): Do not append to
9833         variable.
9834         [generic bits/ioctls.h] (before-compile): Do not append to
9835         variable.
9836         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9837         rule.
9838         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9839         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9840         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9841         rule.
9842         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9843         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9844         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9845         [generic bits/ioctls.h] (common-generated): Do not append to
9846         variable.
9847         [generic sys/syscall.h] (syscall.h): Remove variable.
9848         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9849         rule.
9850         [generic sys/syscall.h] (before-compile): Do not append to
9851         variable.
9852         [generic sys/syscall.h] (common-generated): Likewise.
9853         * sysdeps/unix/errnos-tmpl.c: Remove file.
9854         * sysdeps/unix/errnos.awk: Likewise.
9855         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9856         * sysdeps/unix/ioctls.awk: Likewise.
9857         * sysdeps/unix/mk-local_lim.c: Likewise.
9858         * sysdeps/unix/snarf-ioctls: Likewise.
9859
9860 2012-03-19  Richard Henderson  <rth@twiddle.net>
9861
9862         * sysdeps/i386/fpu/fenv_private.h: New file.
9863         * sysdeps/i386/fpu/math_private.h: Use it.
9864         (math_opt_barrier, math_force_eval): Remove.
9865         (libc_feholdexcept_setround_53bit): Remove.
9866         (libc_feupdateenv_53bit): Remove.
9867         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9868         (math_opt_barrier, math_force_eval): Remove.
9869         (libc_feholdexcept): Remove.
9870         (libc_feholdexcept_setround): Remove.
9871         (libc_fetestexcept, libc_fesetenv): Remove.
9872         (libc_feupdateenv_test): Remove.
9873         (libc_feupdateenv, libc_feholdsetround): Remove.
9874         (libc_feresetround): Remove.
9875
9876         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9877         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9878
9879         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9880         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9881         (libc_feupdateenv_testl): New.
9882         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9883         (libc_feupdateenv_testf): New.
9884         (libc_feupdateenv): Use libc_feupdateenv_test.
9885         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9886         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9887
9888         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9889         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9890         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9891         (libc_feresetround_noex): New.
9892         (libc_feresetround_noexf): New.
9893         (libc_feresetround_noexl): New.
9894         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9895         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9896         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9897         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9898         SET_RESTORE_ROUND.
9899         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9900         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9901         (__cos): Likewise.
9902         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9903         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9904         SET_RESTORE_ROUND_NOEX.
9905         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9906         SET_RESTORE_ROUND_NOEXF.
9907         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9908         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9909         (libc_feholdsetroundf): New.
9910         (libc_feresetround, libc_feresetroundf): New.
9911
9912         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9913         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9914         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9915
9916         * sysdeps/generic/math_private.h: Include <fenv.h>.
9917         (default_libc_feholdexcept): New.
9918         (default_libc_feholdexcept_setround): New.
9919         (default_libc_fesetenv, default_libc_feupdateenv): New.
9920         (libc_feholdexcept): Only define if undefined.
9921         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9922         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9923         (libc_feholdexcept_setroundl): Likewise.
9924         (libc_feholdexcept_setround_53bit): Likewise.
9925         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9926         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9927         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9928         (libc_feupdateenv_53bit): Likewise.
9929         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9930         (libc_feholdexcept): Convert from macro to inline function.
9931         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9932         (libc_fesetenv, libc_feupdateenv): Likewise.
9933
9934         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9935         not previously defined.
9936         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9937         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9938         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9939         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9940         * sysdeps/ieee754/flt-32/math_private.h: New file.
9941         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9942         math_private.h below SET_FLOAT_WORD.
9943         (__isnan, __isinf_ns, __finite): Remove.
9944         (__isnanf, __isinf_nsf, __finitef): Remove.
9945
9946 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9947
9948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9949
9950 2012-03-17  David S. Miller  <davem@davemloft.net>
9951
9952         [BZ #6471]
9953         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9954         for 2.16.
9955
9956 2012-03-16  David S. Miller  <davem@davemloft.net>
9957
9958         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9959         warnings.
9960
9961         [BZ #6471]
9962         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9963         properly.
9964         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9965         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9966         sysdep_routines when subdir is sysvipc.
9967         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9968         __getshmlba helper.
9969
9970         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9971
9972 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9973
9974         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9975         [__LP64__].
9976
9977 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9978
9979         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
9980         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
9981         (__lround): Renamed to ...
9982         (__llround): This.  Replace long int with long long int.
9983         Define lround functions as aliases of llround functions.
9984         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
9985
9986 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9987
9988         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
9989         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
9990         adresses to uintptr_t.  Replace "long int" and "unsigned long
9991         int" with "greg_t" on va_arg.
9992
9993 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9994
9995         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
9996         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
9997
9998         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
9999         Move e_machine check before EI_CLASS check.  Handle x32
10000         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10001         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10002         SKIP_EM_IA_64 and include
10003         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10004
10005         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10006         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10007         (add_system_dir): New macro.
10008
10009         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10010         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10011
10012 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10013
10014         [BZ #2551]
10015         [BZ #2552]
10016         [BZ #2553]
10017         [BZ #2554]
10018         [BZ #2562]
10019         [BZ #2563]
10020         [BZ #2565]
10021         [BZ #2566]
10022         [BZ #2576]
10023         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10024         (y0): Likewise.
10025         * math/w_j0f.c (j0f): Likewise.
10026         (y0f): Likewise.
10027         * math/w_j0l.c (__j0l): Likewise.
10028         (__y0l): Likewise.
10029         * math/w_j1.c (j1): Likewise.
10030         (y1): Likewise.
10031         * math/w_j1f.c (j1f): Likewise.
10032         (y1f): Likewise.
10033         * math/w_j1l.c (__j1l): Likewise.
10034         (__y1l): Likewise.
10035         * math/w_jn.c (jn): Likewise.
10036         (yn): Likewise.
10037         * math/w_jnf.c (jnf): Likewise.
10038         (ynf): Likewise.
10039         * math/w_jnl.c (__jnl): Likewise.
10040         (__ynl): Likewise.
10041         * math/libm-test.inc (j0_test): Add more tests.
10042         (j1_test): Likewise.
10043         (jn_test): Likewise.  Add trailing semicolon to existing test.
10044         (y0_test): Likewise.
10045         (y1_test): Likewise.
10046         * sysdeps/i386/fpu/libm-test-ulps: Update.
10047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10048
10049         [BZ #13851]
10050         [BZ #13854]
10051         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10052         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10053         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10054         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10055         (__tanl): Set errno for infinite argument.
10056         * sysdeps/i386/fpu/mptan.c: Remove.
10057         * sysdeps/i386/fpu/s_tan.S: Likewise.
10058         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10059         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10060         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10061         * math/libm-test.inc (tan_test): Add more tests and enable more
10062         tests for double and long double.
10063         * sysdeps/i386/fpu/libm-test-ulps: Update.
10064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10065
10066 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10067
10068         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10069         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10070
10071 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10072
10073         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10074         * configure.in: Use it for both main tree and add-ons.
10075         * configure: Regenerated.
10076
10077 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10078
10079         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10080
10081 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10082
10083         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10084         in comment.
10085
10086         [BZ #13851]
10087         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10088         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10089         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10090         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10091         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10092         infinite argument.
10093         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10094         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10095         != 0 for prec == 2.
10096         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10097         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10098         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10099         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10100         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10101         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10102         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10103         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10104         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10105         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10106         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10107         * math/libm-test.inc (cos_test): Add more tests and enable more
10108         tests for long double.
10109         (sin_test): Likewise.
10110         (sincos_test): Likewise.
10111         * sysdeps/i386/fpu/libm-test-ulps: Update.
10112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10113
10114 2012-03-16  David S. Miller  <davem@davemloft.net>
10115
10116         * sysdeps/sparc/fpu/math_private.h: New file.
10117
10118 2012-03-15  David S. Miller  <davem@davemloft.net>
10119
10120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10121         file.
10122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10124         file.
10125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10126         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10127         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10128         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10129         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10130         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10131         sysdep routines.
10132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10133
10134         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10135         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10136
10137         * sysdeps/sparc/sparc-ifunc.h: New file.
10138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10139         sparc-ifunc.h
10140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10142         Likewise.
10143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10144         Likewise.
10145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10149         Likewise.
10150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10155         Likewise.
10156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10157         Likewise.
10158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10162         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10163         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10164         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10165         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10166         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10167         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10168         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10169         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10170         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10171         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10172         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10173         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10174         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10175         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10176         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10177         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10178         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10179         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10180         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10181         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10182
10183 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10184
10185         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10186         scaling.
10187         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10188
10189 2012-03-15  Andreas Jaeger  <aj@suse.de>
10190
10191         [BZ #13852]
10192         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10193         ieee754/flt-32 implementation for sin, cos and sincos.
10194         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10195         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10196         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10197         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10198         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10199         ieee754/flt-32 implementation for tan.
10200
10201         * math/libm-test.inc (cos_test): Enable some large input tests for
10202         float as well
10203         (sin_test): Likewise.
10204         (sincos_test): Likewise.
10205         (tan_test): Add tests for large input.
10206
10207         * sysdeps/i386/fpu/libm-test-ulps: Update.
10208
10209 2012-03-15  Andreas Jaeger  <aj@suse.de>
10210
10211         [BZ #13658]
10212         * math/libm-test.inc (cos_test): Add more test cases.
10213         (sin_test): Likewise.
10214         (sincos_test): Likewise.
10215
10216 2012-03-15  Andreas Jaeger  <aj@suse.de>
10217
10218         [BZ #13837]
10219         * math/libm-test.inc (cos_test): Add a test case for large input
10220         value.
10221         (sin_test): Likewise.
10222         (sincos_test): Likewise.
10223
10224 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10225         Joseph Myers  <joseph@codesourcery.com>
10226
10227         [BZ #13658]
10228         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10229         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10230         * sysdeps/i386/fpu/branred.c: Likewise.
10231         * sysdeps/i386/fpu/dosincos.c: Likewise.
10232         * sysdeps/i386/fpu/mpa.c: Likewise.
10233         * sysdeps/i386/fpu/s_cos.S: Likewise.
10234         * sysdeps/i386/fpu/s_sin.S: Likewise.
10235         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10236         * sysdeps/i386/fpu/sincos32.c: Likewise.
10237
10238         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10239         Define.
10240         (libc_feupdateenv_53bit): Define.
10241         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10242         Define.
10243         (libc_feupdateenv_53bit): Define.
10244
10245         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10246         53 bit (without extend i386 double precision).
10247
10248         * math/libm-test.inc (sincos_test): Add tests for large input.
10249         (sin): Likewise.
10250         (cos): Likewise.
10251
10252         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10253
10254 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10255
10256         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10257
10258 2012-03-15  David S. Miller  <davem@davemloft.net>
10259
10260         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10261         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10262         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10263         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10268         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10269         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10270         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10271         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10272         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10273         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10274         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10276         file.
10277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10279         file.
10280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10282         file.
10283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10285         file.
10286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10287         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10288         fmin/fmax sysdep routines.
10289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10290
10291 2012-03-14  David S. Miller  <davem@davemloft.net>
10292
10293         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10294         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10295         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10296         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10297         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10298         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10299         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10300         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10301         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10302         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10303         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10304         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10305         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10306         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10307         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10308         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10309         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10310         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10311         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10312         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10313         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10314         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10315         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10316         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10317         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10318         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10319         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10320         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10321         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10322         routines.
10323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10324         file.
10325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10327         file.
10328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10330         file.
10331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10333         file.
10334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10336         file.
10337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10339         file.
10340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10341         file.
10342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10343         file.
10344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10345         file.
10346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10347         New file.
10348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10349         file.
10350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10351         file.
10352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10354         file.
10355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10357         file.
10358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10360         file.
10361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10363         VIS3 routines.
10364
10365         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10366         New file.
10367
10368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10369
10370         * sysdeps/sparc/configure.in: New file.
10371         * sysdeps/sparc/configure: Generate.
10372         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10373         * configure: Regenerate.
10374         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10375         * config.make.in (have-as-vis3): New.
10376         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10377         available use -Av9d instead of -Av9a.
10378         * sysdeps/sparc/sparc64/Makefile: Likewise.
10379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10381         New file.
10382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10383         file.
10384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10385         New file.
10386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10387         file.
10388         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10389         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10390         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10391         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10392         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10393
10394         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10395         fzeros/fnegs to load 0x80000000 into a float register instead of
10396         using the stack.
10397         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10398
10399 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10400
10401         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10402         bits/syscall.h.
10403         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10404         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10405         ($(inst_includedir)/bits/syscall.h): Remove rule.
10406         ($(objpfx)bits/syscall.d): Include instead of
10407         $(objpfx)syscall-list.d.
10408         (generated): Change syscall-list.h and syscall-list.d to
10409         bits/syscall.h and bits/syscall.d.
10410
10411 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10412
10413         [BZ #13846]
10414         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10415
10416 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10417
10418         [BZ #13841]
10419         * math/s_csqrt.c: Include <float.h>.
10420         (__csqrt): Scale large or subnormal inputs.
10421         * math/s_csqrtf.c: Likewise.
10422         * math/s_csqrtl.c: Likewise.
10423         * math/libm-test.inc (csqrt_test): Add more tests.
10424         * sysdeps/i386/fpu/libm-test-ulps: Update.
10425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10426
10427         [BZ #13840]
10428         * math/libm-test.inc (hypot_test): Add more tests.
10429
10430 2012-03-13  David S. Miller  <davem@davemloft.net>
10431
10432         [BZ #13840]
10433         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10434         double-precision for the calculation instead of scaling.
10435
10436 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10439         manipulate bits before adding and subtracting TWO52[sx].
10440         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10441         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10442         Likewise.
10443         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10444
10445 2012-03-13  David S. Miller  <davem@davemloft.net>
10446
10447         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10448         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10449         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10450         rtld-global-offsets.h
10451         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10452
10453         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10454         large parameters.
10455
10456         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10457
10458         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10459         'err' in the ifdef scope in which it is actually used.
10460
10461         * nss/nss_db/db-init.c: Include string.h
10462
10463 2012-03-12  David S. Miller  <davem@davemloft.net>
10464
10465         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10466         masking out of the most significant byte of random value used.
10467         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10468         Fix coding style in previous change.
10469
10470         * sysdeps/unix/sysv/linux/kernel-features.h
10471         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10472         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10473         expression.
10474         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10475         later.
10476
10477 2012-03-11  David S. Miller  <davem@davemloft.net>
10478
10479         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10480         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10481         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10482         for 'resultvar' otherwise things get truncated on 64-bit.
10483
10484         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10485         Fix masking out of the most significant byte of random value used.
10486
10487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10488
10489 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10490
10491         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10492
10493 2012-03-09  David S. Miller  <davem@davemloft.net>
10494
10495         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10496         variables with appropriate CPP guards.
10497         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10498         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10499         on resulting framesize and the management of the outregs buffer for pltexit.
10500         Preserve floating point return values across _dl_call_pltexit call.
10501         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10502         framesize and the management of the outregs buffer for pltexit.
10503         Preserve floating point return values across _dl_call_pltexit
10504         call.
10505         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10506         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10507         (print_exit): Fix format string for return register value.
10508
10509 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10510
10511         * sunrpc/Makefile (others): Add rpcgen.
10512         ($(objpfx)rpcgen): Remove special build rule and dependency on
10513         libc.
10514         * sunrpc/rpcgen.c: New file.
10515
10516 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10517
10518         [BZ #13673]
10519         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10520         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10521         * sysdeps/i386/crti.S: Likewise.
10522         * sysdeps/i386/crtn.S: Likewise.
10523         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10524         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10525         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10526         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10527         * sysdeps/sh/crti.S: Likewise.
10528         * sysdeps/sh/crtn.S: Likewise.
10529         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10530
10531         [BZ #13673]
10532         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10533         with URL.
10534         * locale/programs/locfile-kw.gperf: Likewise.
10535         * locale/programs/charmap-kw.h: Regenerated.
10536         * locale/programs/locfile-kw.h: Likewise.
10537
10538         [BZ #13673]
10539         * intl/plural.y: Replace FSF snail mail address with URL.
10540         * intl/plural.c: Regenerated.
10541
10542 2012-03-09  Richard Henderson  <rth@twiddle.net>
10543
10544         * include/math_private.h: Remove file.
10545         * math/math_private.h: Move file ...
10546         * sysdeps/generic/math_private.h: ... here.
10547
10548         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10549         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10550         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10551
10552         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10553         and <math_private.h>.
10554         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10555         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10556         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10557         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10558         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10559         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10560         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10561         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10562         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10563         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10564         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10565         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10566         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10567         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10568         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10569         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10570         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10571         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10572         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10573         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10574         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10575         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10576         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10577         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10578         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10579         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10580         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10581         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10582         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10583         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10584         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10585         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10586         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10587         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10588         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10589         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10590         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10591         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10592         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10593         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10594         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10595         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10596         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10597         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10598         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10599         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10600         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10601         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10602         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10603         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10604         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10605         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10606         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10607         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10608         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10609         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10610         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10611         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10612         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10613         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10614         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10615         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10616         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10617         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10618         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10619         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10620         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10621         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10622         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10623         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10624         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10625         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10626         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10627         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10628         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10629         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10630         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10631         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10632         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10633         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10634         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10635         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10636         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10637         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10638         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10639         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10640         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10641         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10642         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10643         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10644         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10645         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10646         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10647         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10648         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10649         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10650         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10651         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10652         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10653         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10654         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10655         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10656         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10657         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10658         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10659         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10660         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10661         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10662         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10663         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10664         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10665         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10666         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10667         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10668         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10669         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10670         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10671         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10672         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10673         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10674         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10675         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10676         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10677         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10678         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10679         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10680         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10681         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10682         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10683         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10684         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10685         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10686         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10687         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10688         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10689         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10690         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10691         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10692         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10693         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10694         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10695         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10696         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10697         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10698         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10699         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10700         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10701         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10702         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10703         * sysdeps/ieee754/k_standard.c: Likewise.
10704         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10705         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10706         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10707         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10708         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10709         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10710         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10711         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10712         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10713         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10714         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10715         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10716         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10717         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10718         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10719         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10720         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10721         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10722         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10723         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10724         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10725         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10726         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10727         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10728         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10729         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10730         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10731         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10732         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10733         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10734         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10735         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10736         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10737         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10738         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10739         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10740         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10741         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10742         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10743         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10744         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10745         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10746         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10747         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10748         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10749         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10750         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10751         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10752         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10753         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10754         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10755         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10756         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10757         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10758         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10759         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10760         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10761         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10762         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10763         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10764         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10765         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10766         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10767         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10768         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10769         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10770         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10771         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10772         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10773         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10774         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10775         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10776         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10777         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10778         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10779         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10780         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10781         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10782         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10783         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10784         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10785         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10786         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10787         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10788         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10789         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10790         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10791         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10792         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10793         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10794         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10795         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10796         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10797         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10798         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10799         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10800         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10801         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10802         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10803         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10804         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10805         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10806         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10807         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10808         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10809         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10810         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10811         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10812         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10813         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10814         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10815         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10816         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10817         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10818         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10819         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10820         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10821         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10822         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10823         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10824         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10825         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10826         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10827         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10828         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10829         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10830         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10831         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10832         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10833         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10834         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10835         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10836         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10837         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10838         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10839         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10840         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10841         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10842         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10843         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10844         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10845         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10846         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10847         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10848         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10849         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10850         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10851         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10852         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10853         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10854         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10855         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10856         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10857         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10858         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10859         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10860         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10861         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10862         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10863         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10864         * sysdeps/ieee754/s_lib_version.c: Likewise.
10865         * sysdeps/ieee754/s_matherr.c: Likewise.
10866         * sysdeps/ieee754/s_signgam.c: Likewise.
10867         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10868         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10869         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10870         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10871         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10872         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10873         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10874         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10875         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10876         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10877         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10878         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10879         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10880         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10881         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10882         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10883         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10884         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10885         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10886         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10887         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10888
10889 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10890
10891         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10892         * sunrpc/rpc_main.c: Likewise.
10893         * sunrpc/rpc_svcout.c: Likewise.
10894
10895 2012-03-09  David S. Miller  <davem@davemloft.net>
10896
10897         * include/math_private.h: New file.
10898
10899 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10900
10901         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10902         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10903         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10904         from <bits/socket_type.h>.
10905         (enum __socket_type): Don't define here.
10906         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10907         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10908         bits/socket_type.h.
10909
10910         [BZ #13566]
10911         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10912         checking __USE_GNU.
10913
10914         * Makerules ($(inst_includedir)/%.h): New rule.
10915         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10916         (install-others): Remove variable setting.
10917         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10918
10919 2012-03-08  Richard Henderson  <rth@twiddle.net>
10920
10921         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10922         from macro to inline function; merge with the
10923         !__LIBC_INTERNAL_MATH_INLINES version.
10924         (__ieee754_sqrtf): Likewise.
10925
10926         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10927         to inline function.
10928         (__rintf, __floor, __floorf): Likewise.
10929
10930         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10931         macro to inline function.
10932         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10933
10934         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10935         not <math/math_private.h>.
10936
10937 2012-03-08  David S. Miller  <davem@davemloft.net>
10938
10939         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10940         copyright year.
10941         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10942
10943 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10944
10945         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10946         normalization.
10947         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10948         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10949
10950 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10951
10952         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10953         be defined individually, they must be defined as a block.  Define
10954         S for printing a string instead of hidint the different by using a
10955         macro for adding the 'l'.
10956         * stdio-common/tst-fphex-wide.c: Adjust.
10957
10958 2012-03-07  Marek Polacek  <polacek@redhat.com>
10959
10960         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10961
10962 2012-03-08  Marek Polacek  <polacek@redhat.com>
10963
10964         [BZ #13806]
10965         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10966         * stdio-common/tst-fphex.c: Define a few macros to make the
10967         test reusable.  Use them.
10968         * stdio-common/tst-fphex-wide.c: New file.
10969
10970 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10971
10972         [BZ #6911]
10973         * manual/macros.texi (gnusystems): New macro.
10974         (nongnusystems): Likewise.
10975         (gnulinuxhurdsystems): Likewise.
10976         (gnuhurdsystems): Likewise..
10977         (gnulinuxsystems): Likewise.
10978         * manual/charset.texi: Use new macros or @theglibc{} to refer to
10979         variants of the GNU system, not "GNU system".
10980         * manual/conf.texi: Likewise.
10981         * manual/errno.texi: Likewise.  Update example of errno macro
10982         expansion.
10983         * manual/filesys.texi: Likewise.
10984         (getumask): Document as specific to GNU/Hurd.
10985         * manual/install.texi: Likewise.  Reword some references to
10986         GNU/Linux.
10987         * manual/intro.texi: Likewise.
10988         * manual/io.texi: Likewise.
10989         (File Name Portability): Detail which constraints are inapplicable
10990         to all GNU systems and which are only inapplicable to GNU/Hurd.
10991         * manual/job.texi: Likewise.
10992         * manual/llio.texi: Likewise.
10993         (O_NOCTTY): Document as present on GNU/Linux.
10994         * manual/maint.texi: Likewise.
10995         * manual/memory.texi: Likewise.
10996         * manual/pattern.texi: Likewise.
10997         * manual/pipe.texi: Likewise.
10998         * manual/process.texi: Likewise.
10999         * manual/resource.texi: Likewise.
11000         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11001         child on GNU/Hurd.
11002         * manual/setjmp.texi: Likewise.
11003         * manual/signal.texi: Likewise.
11004         * manual/startup.texi: Likewise.
11005         * manual/stdio.texi: Likewise.
11006         * manual/terminal.texi: Likewise.
11007         (ONLCR): Document as POSIX.
11008         (OXTABS): Document availability on GNU/Linux as XTABS.
11009         (ONOEOT): Document availability separately from other bits.
11010         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11011         * manual/time.texi: Likewise.
11012         * manual/users.texi: Likewise.
11013         * INSTALL: Regenerated.
11014         * sysdeps/gnu/errlist.c: Regenerated.
11015
11016         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11017         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11018         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11019         puts.
11020         * configure: Regenerated.
11021
11022 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11023
11024         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11025         default includes instead of AC_HEADER_CHECK.
11026         * sysdeps/i386/configure: Regenerated.
11027
11028         [BZ #10716]
11029         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11030         * math/s_cacoshf.c (__cacoshf): Likewise.
11031         * math/s_cacoshl.c (__cacoshl): Likewise.
11032         * math/s_casinh.c (__casinh): Set signs of result from argument.
11033         * math/s_casinhf.c (__casinhf): Likewise.
11034         * math/s_casinhl.c (__casinhl): Likewise.
11035         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11036         (casinh_test): Add more tests.
11037         * sysdeps/i386/fpu/libm-test-ulps: Update.
11038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11039
11040 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11041
11042         * po/zh_TW.po: Update from translation team.
11043
11044         * login/Makefile (distribute): Remove variable.
11045         * catgets/Makefile: Likewise.
11046         * mach/Makefile: Likewise.
11047         * malloc/Makefile: Likewise.
11048         * misc/Makefile: Likewise.
11049         * iconv/Makefile: Likewise.
11050         * nscd/Makefile: Likewise.
11051         * hurd/Makefile: Likewise.
11052         * manual/Makefile: Likewise.
11053         * locale/Makefile: Likewise.
11054         * intl/Makefile: Likewise.
11055         * conform/Makefile: Likewise.
11056         * nss/Makefile: Likewise.
11057         * time/Makefile: Likewise.
11058         * soft-fp/Makefile: Likewise.
11059         * dirent/Makefile: Likewise.
11060         * gmon/Makefile: Likewise.
11061         * po/Makefile: Likewise.
11062         * rt/Makefile: Likewise.
11063         * socket/Makefile: Likewise.
11064         * math/Makefile: Likewise.
11065         * signal/Makefile: Likewise.
11066         * debug/Makefile: Likewise.
11067         * elf/Makefile: Likewise.
11068         * timezone/Makefile: Likewise.
11069         * stdlib/Makefile: Likewise.
11070         * iconvdata/Makefile: Likewise.
11071         * sunrpc/Makefile: Likewise.
11072         * io/Makefile: Likewise.
11073         * argp/Makefile: Likewise.
11074         * inet/Makefile: Likewise.
11075         * hesiod/Makefile: Likewise.
11076         * grp/Makefile: Likewise.
11077         * csu/Makefile: Likewise.
11078         * wctype/Makefile: Likewise.
11079         * crypt/Makefile: Likewise.
11080         * libio/Makefile: Likewise.
11081         * string/Makefile: Likewise.
11082         * nis/Makefile: Likewise.
11083         * resolv/Makefile: Likewise.
11084         * stdio-common/Makefile: Likewise.
11085         * wcsmbs/Makefile: Likewise.
11086         * dlfcn/Makefile: Likewise.
11087         * posix/Makefile: Likewise.
11088
11089         [BZ #6959]
11090         * timezone/Makefile: Don't install timezone files, just the programs
11091         and scripts.
11092
11093 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11094
11095         * nss/databases.def: Add missing gshadow entry.
11096
11097         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11098
11099 2012-03-06  Marek Polacek  <polacek@redhat.com>
11100
11101         [BZ #13726]
11102         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11103         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11104         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11105         * stdio-common/tst-long-dbl-fphex.c: New file.
11106
11107 2012-03-06  David S. Miller  <davem@davemloft.net>
11108
11109         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11110         (set_obp_int): New function.
11111         (get_obp_int): New function.
11112         (__get_clockfreq_via_dev_openprom): Likewise.
11113         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11114         Avoid unused variable warnings on 'val' and use builtin_expect.
11115         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11116         __builtin_expect.
11117         (INLINE_CLONE_SYSCALL): Likewise.
11118
11119 2012-03-05  David S. Miller  <davem@davemloft.net>
11120
11121         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11122
11123 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11124
11125         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11126
11127         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11128         only for |x| >= 40.
11129         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11130
11131 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11132
11133         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11134         Replace gettimeofday with __vdso_gettimeofday.
11135
11136         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11137         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11138         __vdso_clock_gettime and __vdso_getcpu.
11139
11140         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11141         time with __vdso_time.
11142
11143 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11144
11145         * manual/lang.texi (size_t): Note types to which size_t may be
11146         equivalent with the GNU C Library, but do not describe when
11147         differences between them are significant.
11148
11149 2012-03-05  Andreas Jaeger  <aj@suse.de>
11150
11151         * sysdeps/i386/fpu/libm-test-ulps: Update.
11152
11153 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11154
11155         [BZ #3976]
11156         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11157         (__ieee754_pow): Save and restore rounding mode and use
11158         round-to-nearest for main computations.
11159         * math/libm-test.inc (pow_test_tonearest): New function.
11160         (pow_test_towardzero): Likewise.
11161         (pow_test_downward): Likewise.
11162         (pow_test_upward): Likewise.
11163         (main): Call the new functions.
11164         * sysdeps/i386/fpu/libm-test-ulps: Update.
11165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11166
11167         [BZ #3976]
11168         * math/libm-test.inc (cosh_test_tonearest): New function.
11169         (cosh_test_towardzero): Likewise.
11170         (cosh_test_downward): Likewise.
11171         (cosh_test_upward): Likewise.
11172         (sinh_test_tonearest): Likewise.
11173         (sinh_test_towardzero): Likewise.
11174         (sinh_test_downward): Likewise.
11175         (sinh_test_upward): Likewise.
11176         (main): Call the new functions.
11177         * sysdeps/i386/fpu/libm-test-ulps: Update.
11178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11179
11180 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11181
11182         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11183         default stack guard is set in last bytes.
11184         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11185
11186 2012-03-05  Kees Cook  <keescook@chromium.org>
11187
11188         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11189
11190         [BZ #13656]
11191         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11192         possibly allocate from heap instead of stack.
11193         * stdio-common/bug-vfprintf-nargs.c: New file.
11194         * stdio-common/Makefile (tests): Add nargs overflow test.
11195
11196 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11197
11198         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11199
11200 2012-03-03  Marek Polacek  <polacek@redhat.com>
11201
11202         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11203         * math/math_private.h: Likewise.
11204         * stdlib/tst-strtod.c: Likewise.
11205         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11206         * sysdeps/x86_64/bits/atomic.h: Likewise.
11207
11208 2012-03-02  David S. Miller  <davem@davemloft.net>
11209
11210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11211         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11212         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11214         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11215         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11216         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11217         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11218
11219 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11220
11221         [BZ #13792]
11222         * manual/examples/README: New file, says the example source files
11223         can be used under GPL>=2.
11224         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11225         line containing just "*/".
11226         * manual/examples/add.c: Add copyright header (GPL>=2).
11227         * manual/examples/argp-ex1.c: Likewise.
11228         * manual/examples/argp-ex2.c: Likewise.
11229         * manual/examples/argp-ex3.c: Likewise.
11230         * manual/examples/argp-ex4.c: Likewise.
11231         * manual/examples/atexit.c: Likewise.
11232         * manual/examples/db.c: Likewise.
11233         * manual/examples/dir.c: Likewise.
11234         * manual/examples/dir2.c: Likewise.
11235         * manual/examples/execinfo.c: Likewise.
11236         * manual/examples/filecli.c: Likewise.
11237         * manual/examples/filesrv.c: Likewise.
11238         * manual/examples/fmtmsgexpl.c: Likewise.
11239         * manual/examples/genpass.c: Likewise.
11240         * manual/examples/inetcli.c: Likewise.
11241         * manual/examples/inetsrv.c: Likewise.
11242         * manual/examples/isockad.c: Likewise.
11243         * manual/examples/longopt.c: Likewise.
11244         * manual/examples/memopen.c: Likewise.
11245         * manual/examples/memstrm.c: Likewise.
11246         * manual/examples/mkfsock.c: Likewise.
11247         * manual/examples/mkisock.c: Likewise.
11248         * manual/examples/mygetpass.c: Likewise.
11249         * manual/examples/pipe.c: Likewise.
11250         * manual/examples/popen.c: Likewise.
11251         * manual/examples/rprintf.c: Likewise.
11252         * manual/examples/search.c: Likewise.
11253         * manual/examples/select.c: Likewise.
11254         * manual/examples/setjmp.c: Likewise.
11255         * manual/examples/sigh1.c: Likewise.
11256         * manual/examples/sigusr.c: Likewise.
11257         * manual/examples/stpcpy.c: Likewise.
11258         * manual/examples/strdupa.c: Likewise.
11259         * manual/examples/strftim.c: Likewise.
11260         * manual/examples/strncat.c: Likewise.
11261         * manual/examples/subopt.c: Likewise.
11262         * manual/examples/swapcontext.c: Likewise.
11263         * manual/examples/termios.c: Likewise.
11264         * manual/examples/testopt.c: Likewise.
11265         * manual/examples/testpass.c: Likewise.
11266         * manual/examples/timeval_subtract.c: Likewise.
11267
11268         [BZ #13792]
11269         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11270         function to ...
11271         * manual/timeval_subtract.c.texi: ... here, new file.
11272
11273 2012-03-02  David S. Miller  <davem@davemloft.net>
11274
11275         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11276
11277 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11278
11279         [BZ #3976]
11280         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11281         (__sin): Save and restore rounding mode and use round-to-nearest
11282         for all computations.
11283         (__cos): Save and restore rounding mode and use round-to-nearest
11284         for all computations.
11285         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11286         <fenv.h>.
11287         (tan): Save and restore rounding mode and use round-to-nearest for
11288         all computations.
11289         * math/libm-test.inc (cos_test_tonearest): New function.
11290         (cos_test_towardzero): Likewise.
11291         (cos_test_downward): Likewise.
11292         (cos_test_upward): Likewise.
11293         (sin_test_tonearest): Likewise.
11294         (sin_test_towardzero): Likewise.
11295         (sin_test_downward): Likewise.
11296         (sin_test_upward): Likewise.
11297         (tan_test_tonearest): Likewise.
11298         (tan_test_towardzero): Likewise.
11299         (tan_test_downward): Likewise.
11300         (tan_test_upward): Likewise.
11301         (main): Call the new functions.
11302         * sysdeps/i386/fpu/libm-test-ulps: Update.
11303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11304
11305         [BZ #10135]
11306         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11307         small n, then large n, before computing and testing k+n.
11308         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11309         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11310         Likewise.
11311         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11312         Likewise.
11313         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11314         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11315         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11316         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11317         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11318         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11319         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11320         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11321         * math/libm-test.inc (scalbn_test): Add more tests.
11322         (scalbln_test): Likewise.
11323
11324         * manual/filesys.texi (mode_t): Describe constraints on size and
11325         signedness, not exact equivalence to a particular type.
11326         (ino_t): Likewise.
11327         (ino64_t): Likewise.
11328         (dev_t): Likewise.
11329         (nlink_t): Likewise.
11330         (blkcnt_t): Likewise.
11331         (blkcnt64_t): Likewise.
11332         * manual/llio.texi (off_t): Likewise.
11333
11334         [BZ #3976]
11335         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11336         (__ieee754_exp): Save and restore rounding mode and use
11337         round-to-nearest for all computations.
11338         * math/libm-test.inc (exp_test_tonearest): New function.
11339         (exp_test_towardzero): Likewise.
11340         (exp_test_downward): Likewise.
11341         (exp_test_upward): Likewise.
11342         (main): Call the new functions.
11343         * sysdeps/i386/fpu/libm-test-ulps: Update.
11344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11345
11346 2012-03-01  Chris Demetriou  <cgd@google.com>
11347
11348         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11349         have predictable order.
11350
11351 2012-03-01  David S. Miller  <davem@davemloft.net>
11352
11353         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11354
11355         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11356         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11357         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11358         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11359
11360         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11361         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11362         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11364         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11365         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11366         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11367         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11368         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11369
11370         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11371
11372         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11373         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11374         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11375
11376         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11377         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11378         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11379         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11380         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11381         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11382         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11383         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11384         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11385         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11386         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11387         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11388         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11389         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11390         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11391         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11392         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11393         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11394         * sysdeps/sparc/elf/configure: Regenerated.
11395
11396 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11397
11398         * configure.in (AS, LD): Require binutils 2.20 or later.
11399         * configure: Regenerated.
11400         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11401         as required minimum version.
11402         * INSTALL: Regenerated.
11403
11404         [BZ #2541]
11405         [BZ #4108]
11406         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11407         before squaring exponent.
11408         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11409         bottom long double and 27 bits of top long double before squaring
11410         exponent.
11411         * math/libm-test.inc (erfc_test): Add more tests.
11412         * sysdeps/i386/fpu/libm-test-ulps: Update.
11413         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11415
11416 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11417
11418         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11419         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11420         containing bit-fields.
11421         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11422         * soft-fp/single.h (_FP_UNION_S): Likewise.
11423         * soft-fp/double.h (_FP_UNION_D): Likewise.
11424
11425 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11426
11427         [BZ #13786]
11428         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11429         not include ../strcmp.S.
11430         [USE_AS_STRNCASECMP_L]: Likewise.
11431         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11432         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11433         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11434         (__strncasecmp_l_ia32): Define as alias to
11435         __strncasecmp_l_nonascii.
11436
11437         [BZ #5794]
11438         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11439         * sysdeps/i386/fpu/libm-test-ulps: Update.
11440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11441
11442         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11444
11445 2012-02-29  Jeff Law  <law@redhat.com>
11446
11447         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11448         out of bounds read.
11449
11450 2012-02-29  Marek Polacek  <polacek@redhat.com>
11451
11452         [BZ #13706]
11453         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11454         * elf/Makefile: Add rules to run tst-unused-dep.out.
11455
11456 2012-02-28  David S. Miller  <davem@davemloft.net>
11457
11458         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11459         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11460         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11461         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11462         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11463         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11464
11465 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11466
11467         * math/libm-test.inc (llround_test): Move one test from
11468         lround_test.  Use TEST_f_L in moved test.
11469         (lround_test): Move misplaced test to llround_test.  Add testcase
11470         from bug 2561.
11471
11472 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11473
11474         * sysdeps/x86_64/fpu/e_expf.S: New file.
11475         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11476
11477 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11478
11479         [BZ #13637]
11480         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11481         of remain_len that may cause incomplete multi-byte character and
11482         false match.
11483         * posix/bug-regex33.c: New file.
11484         * posix/Makefile (tests): Add bug-regex33.
11485
11486 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11487
11488         * manual/macros.texi: New file.
11489         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11490         * manual/libc.texinfo: Include macros.texi.
11491         * manual/creatute.texi: Likewise.
11492         * manual/install.texi: Likewise.
11493         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11494         @glibcadj{} in references to the GNU C Library.
11495         * manual/charset.texi: Likewise.
11496         * manual/conf.texi: Likewise.
11497         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11498         when not using those macros.
11499         * manual/creature.texi: Likewise.
11500         * manual/crypt.texi: Likewise.
11501         * manual/errno.texi: Likewise.
11502         * manual/filesys.texi: Likewise.
11503         * manual/header.texi: Likewise.
11504         * manual/install.texi: Likewise.
11505         * manual/intro.texi: Likewise.
11506         * manual/io.texi: Likewise.
11507         * manual/job.texi: Likewise.
11508         * manual/lang.texi: Likewise.
11509         * manual/libc.texiinfo: Likewise.
11510         * manual/llio.texi: Likewise.
11511         * manual/locale.texi: Likewise.
11512         * manual/maint.texi: Likewise.
11513         * manual/math.texi: Likewise.
11514         * manual/memory.texi: Likewise.
11515         * manual/message.texi: Likewise.
11516         * manual/nss.texi: Likewise.
11517         * manual/pattern.texi: Likewise.
11518         * manual/process.texi: Likewise.
11519         * manual/resource.texi: Likewise.
11520         * manual/search.texi: Likewise.
11521         * manual/setjmp.texi: Likewise.
11522         * manual/signal.texi: Likewise.
11523         * manual/socket.texi: Likewise.
11524         * manual/startup.texi: Likewise.
11525         * manual/stdio.texi: Likewise.
11526         * manual/string.texi: Likewise.
11527         * manual/sysinfo.texi: Likewise.
11528         * manual/syslog.texi: Likewise.
11529         * manual/terminal.texi: Likewise.
11530         * manual/time.texi: Likewise.
11531         * manual/users.texi: Likewise.
11532         * INSTALL: Regenerated.
11533         * NOTES: Regenerated.
11534         * sysdeps/gnu/errlist.c: Regenerated.
11535
11536 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11537
11538         * include/dirent.h: Include <dirstream.h> before
11539         <dirent/dirent.h>.
11540
11541 2012-02-28  David S. Miller  <davem@davemloft.net>
11542
11543         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11544         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11545         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11546         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11547
11548 2012-02-27  David S. Miller  <davem@davemloft.net>
11549
11550         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11552         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11553         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11554
11555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11556         frame pointer instead of stack pointer relative arg slot.
11557         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11558         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11559         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11560
11561 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11562
11563         [BZ #3992]
11564         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11565
11566 2012-02-27  David S. Miller  <davem@davemloft.net>
11567
11568         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11572         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11573         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11574         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11575         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11576
11577 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11578
11579         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11580         later.  Allow versions 5-9.
11581         * configure: Regenerated.
11582         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11583         required minimum version and 4.6 as recommended version.  Do not
11584         mention bugs in GCC 2.7 and 2.8.
11585         * INSTALL: Regenerated.
11586
11587 2012-02-27  David S. Miller  <davem@davemloft.net>
11588
11589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11593         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11594         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11595         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11596         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11597
11598         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11599         manipulate bits before adding and subtracting TWO112[sx].
11600         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11601
11602 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11603
11604         [BZ #13775]
11605         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11606         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11607         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11608         being in POSIX, because they are in 1003.1-2008.
11609
11610         * rt/tst-aio.c: Include <fcntl.h>.
11611         * rt/tst-aio7.c: Likewise.
11612         * rt/tst-aio64.c: Likewise.
11613
11614         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11615
11616 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11617
11618         * manual/install.texi (--with-headers): Describe headers as
11619         interface headers, not private headers.
11620         (Specific advice for GNU/Linux systems): Describe use of headers
11621         from "make headers_install", not private headers from older
11622         kernels.
11623         * INSTALL: Regenerated.
11624         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11625         Change to 2.6.19.
11626         * sysdeps/unix/sysv/linux/configure: Regenerated.
11627
11628         * manual/llio.texi (fclean): Remove documentation.
11629
11630         * manual/Makefile (libc-texi-generated): New variable.  Include
11631         version.texi.
11632         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11633         $(libc-texi-generated), not duplicated list of files.
11634         (version.texi, stamp-version): New rules.
11635         (realclean): Remove $(libc-texi-generated), not individual files
11636         from that list.  Do not remove dir-add.texinfo.
11637         * manual/libc.texinfo: Comment out uses of edition numbers and
11638         references to printed manual.  Remove last-updated dates.
11639         (EDITION): Comment out.
11640         (ISBN): Likewise.
11641         (VERSION, UPDATED): Remove.
11642         (version.texi): Include.
11643
11644 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11645
11646         * sysdeps/posix/spawni.c: Include <signal.h>.
11647         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11648         * sysdeps/pthread/aio_fsync.c: Likewise.
11649
11650 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11651
11652         * conform/Makefile (tests): Run only when not cross-compiling and
11653         when fast-check is not defined.
11654
11655         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11656         * conform/data/limits.h-data: Fixes for POSIX2008.
11657         * conform/run-conformtest.sh: Run all tests.
11658         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11659         headers.
11660         * include/bits/dlfcn.h: Likewise.
11661         * include/langinfo.h: Likewise.
11662         * include/monetary.h: Likewise.
11663         * include/sys/poll.h: Likewise.
11664
11665         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11666         for __USE_GNU.
11667         * posix/spawn.h: Define __need_sigset_t.
11668         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11669         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11670         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11671         to get sigevent_t only.
11672         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11673         only for __USE_GNU.
11674         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11675         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11676         process_vm_writev only for __USE_GNU.
11677         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11678
11679         * conform/Makefile: For now ignore errors from run-conformtest.
11680         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11681         POSIX to avoid namespace pollution.  Don't prepend headers.
11682         * conform/data/aio.h-data: Fixes for POSIX testing.
11683         * conform/data/fcntl.h-data: Likewise.
11684         * conform/data/glob.h-data: Likewise.
11685         * conform/data/grp.h-data: Likewise.
11686         * conform/data/pthread.h-data: Likewise.
11687         * conform/data/pwd.h-data: Likewise.
11688         * conform/data/signal.h-data: Likewise.
11689         * conform/data/spawn.h-data: Likewise.
11690         * conform/data/stdio.h-data: Likewise.
11691         * conform/data/stdlib.h-data: Likewise.
11692         * conform/data/stropts.h-data: Likewise.
11693         * conform/data/sys/mman.h-data: Likewise.
11694         * conform/data/sys/stat.h-data: Likewise.
11695         * conform/data/sys/types.h-data: Likewise.
11696         * conform/data/sys/wait.h-data: Likewise.
11697         * conform/data/time.h-data: Likewise.
11698         * conform/data/unistd.h-data: Likewise.
11699         * conform/data/utime.h-data: Likewise.
11700
11701         * io/sys/stat.h: fchmod was always in POSIX.
11702         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11703         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11704         * rt/aio.h: Define __need_timespec before including <time.h>.
11705         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11706         struct.  Add forward declaration of pthread_attr_t and use it in
11707         sigevent.
11708         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11709         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11710         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11711         always remove CLK_TCK definition.
11712
11713 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11714
11715         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11716
11717 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11718
11719         * conform/run-conformtest.sh: New file.
11720         * conform/Makefile: Run run-conformtest for tests.
11721         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11722         support.
11723
11724         * conform/data/uchar.h-data: New file.
11725         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11726         * conform/data/arpa/inet.h-data: Likewise.
11727         * conform/data/assert.h-data: Likewise.
11728         * conform/data/complex.h-data: Likewise.
11729         * conform/data/cpio.h-data: Likewise.
11730         * conform/data/ctype.h-data: Likewise.
11731         * conform/data/dirent.h-data: Likewise.
11732         * conform/data/dlfcn.h-data: Likewise.
11733         * conform/data/errno.h-data: Likewise.
11734         * conform/data/fcntl.h-data: Likewise.
11735         * conform/data/float.h-data: Likewise.
11736         * conform/data/fmtmsg.h-data: Likewise.
11737         * conform/data/fnmatch.h-data: Likewise.
11738         * conform/data/ftw.h-data: Likewise.
11739         * conform/data/glob.h-data: Likewise.
11740         * conform/data/grp.h-data: Likewise.
11741         * conform/data/iconv.h-data: Likewise.
11742         * conform/data/inttypes.h-data: Likewise.
11743         * conform/data/langinfo.h-data: Likewise.
11744         * conform/data/libgen.h-data: Likewise.
11745         * conform/data/limits.h-data: Likewise.
11746         * conform/data/locale.h-data: Likewise.
11747         * conform/data/math.h-data: Likewise.
11748         * conform/data/monetary.h-data: Likewise.
11749         * conform/data/mqueue.h-data: Likewise.
11750         * conform/data/ndbm.h-data: Likewise.
11751         * conform/data/net/if.h-data: Likewise.
11752         * conform/data/netdb.h-data: Likewise.
11753         * conform/data/netinet/in.h-data: Likewise.
11754         * conform/data/nl_types.h-data: Likewise.
11755         * conform/data/poll.h-data: Likewise.
11756         * conform/data/pthread.h-data: Likewise.
11757         * conform/data/pwd.h-data: Likewise.
11758         * conform/data/regex.h-data: Likewise.
11759         * conform/data/sched.h-data: Likewise.
11760         * conform/data/search.h-data: Likewise.
11761         * conform/data/semaphore.h-data: Likewise.
11762         * conform/data/setjmp.h-data: Likewise.
11763         * conform/data/signal.h-data: Likewise.
11764         * conform/data/spawn.h-data: Likewise.
11765         * conform/data/stdarg.h-data: Likewise.
11766         * conform/data/stdio.h-data: Likewise.
11767         * conform/data/stdlib.h-data: Likewise.
11768         * conform/data/string.h-data: Likewise.
11769         * conform/data/strings.h-data: Likewise.
11770         * conform/data/stropts.h-data: Likewise.
11771         * conform/data/sys/ipc.h-data: Likewise.
11772         * conform/data/sys/mman.h-data: Likewise.
11773         * conform/data/sys/msg.h-data: Likewise.
11774         * conform/data/sys/resource.h-data: Likewise.
11775         * conform/data/sys/select.h-data: Likewise.
11776         * conform/data/sys/sem.h-data: Likewise.
11777         * conform/data/sys/shm.h-data: Likewise.
11778         * conform/data/sys/socket.h-data: Likewise.
11779         * conform/data/sys/stat.h-data: Likewise.
11780         * conform/data/sys/statvfs.h-data: Likewise.
11781         * conform/data/sys/time.h-data: Likewise.
11782         * conform/data/sys/timeb.h-data: Likewise.
11783         * conform/data/sys/times.h-data: Likewise.
11784         * conform/data/sys/types.h-data: Likewise.
11785         * conform/data/sys/uio.h-data: Likewise.
11786         * conform/data/sys/un.h-data: Likewise.
11787         * conform/data/sys/utsname.h-data: Likewise.
11788         * conform/data/sys/wait.h-data: Likewise.
11789         * conform/data/syslog.h-data: Likewise.
11790         * conform/data/tar.h-data: Likewise.
11791         * conform/data/termios.h-data: Likewise.
11792         * conform/data/utime.h-data: Likewise.
11793         * conform/data/utmpx.h-data: Likewise.
11794         * conform/data/varargs.h-data: Likewise.
11795         * conform/data/wchar.h-data: Likewise.
11796         * conform/data/wctype.h-data: Likewise.
11797         * conform/data/wordexp.h-data: Likewise.
11798
11799         * include/stropts.h: New file.
11800         * include/uchar.h: New file.
11801         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11802         * include/assert.h: Likewise.
11803         * include/ctype.h: Likewise.
11804         * include/dirent.h: Likewise.
11805         * include/dlfcn.h: Likewise.
11806         * include/fcntl.h: Likewise.
11807         * include/fnmatch.h: Likewise.
11808         * include/glob.h: Likewise.
11809         * include/grp.h: Likewise.
11810         * include/libio.h: Likewise.
11811         * include/locale.h: Likewise.
11812         * include/math.h: Likewise.
11813         * include/net/if.h: Likewise.
11814         * include/netdb.h: Likewise.
11815         * include/netinet/in.h: Likewise.
11816         * include/pthread.h: Likewise.
11817         * include/pwd.h: Likewise.
11818         * include/regex.h: Likewise.
11819         * include/sched.h: Likewise.
11820         * include/search.h: Likewise.
11821         * include/setjmp.h: Likewise.
11822         * include/signal.h: Likewise.
11823         * include/stdio.h: Likewise.
11824         * include/stdlib.h: Likewise.
11825         * include/string.h: Likewise.
11826         * include/sys/cdefs.h: Likewise.
11827         * include/sys/mman.h: Likewise.
11828         * include/sys/msg.h: Likewise.
11829         * include/sys/resource.h: Likewise.
11830         * include/sys/select.h: Likewise.
11831         * include/sys/socket.h: Likewise.
11832         * include/sys/stat.h: Likewise.
11833         * include/sys/statvfs.h: Likewise.
11834         * include/sys/time.h: Likewise.
11835         * include/sys/times.h: Likewise.
11836         * include/sys/uio.h: Likewise.
11837         * include/sys/utsname.h: Likewise.
11838         * include/sys/wait.h: Likewise.
11839         * include/termios.h: Likewise.
11840         * include/time.h: Likewise.
11841         * include/ulimit.h: Likewise.
11842         * include/unistd.h: Likewise.
11843         * include/utime.h: Likewise.
11844         * include/wchar.h: Likewise.
11845         * include/wctype.h: Likewise.
11846         * include/wordexp.h: Likewise.
11847
11848         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11849
11850         * time/time.h: TIME_UTC must be a macro.
11851         Make timespec_get available for ISO C11 only as well.
11852
11853 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11854
11855         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11856         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11857
11858 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11859
11860         * configure.in: Use -o not -a in test for unsupported multi-arch.
11861
11862 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11863
11864         * manual/texinfo.tex: Update to version 2012-01-19.16.
11865
11866 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11867
11868         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11869
11870 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11871
11872         [BZ #13738]
11873         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11874         * manual/fdl-1.3.texi: New file.
11875         * manual/fdl-1.1.texi: File removed.
11876
11877         [BZ #13738]
11878         * manual/libc.texinfo (FDL_VERSION): New @set.
11879         Use it for mention of FDL in cover text.
11880         (Documentation License): Use it in @include file name.
11881
11882 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11883             Roland McGrath  <roland@hack.frob.com>
11884
11885         [BZ #5461]
11886         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11887         not LONG_LONG_MAX and LONG_LONG_MIN.
11888         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11889         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11890         name.
11891         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11892
11893 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11894
11895         [BZ #2547]
11896         [BZ #11365]
11897         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11898         manipulate bits before adding and subtracting TWO23[sx].
11899         * math/libm-test.inc (nearbyint_test): Add more tests.
11900
11901 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11902
11903         [BZ #2548]
11904         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11905         bits before adding and subtracting TWO23[sx].
11906         * math/libm-test.inc (rint_test): Add more tests.
11907         (rint_test_tonearest): Likewise.
11908         (rint_test_towardzero): Likewise.
11909         (rint_test_downward): Likewise.
11910         (rint_test_upward: Likewise.
11911
11912 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11913
11914         [BZ #10110]
11915         * include/stdc-predef.h: New file.  Extracted from features.h.
11916         * include/features.h: Include stdc-predef.h.
11917         * Makefile (headers): Add stdc-predef.h.
11918         * CONFORMANCE (Compiler limitations): Update.
11919
11920 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11921
11922         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11923
11924 2012-02-21  David S. Miller  <davem@davemloft.net>
11925
11926         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11927         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11928
11929 2012-02-20  David S. Miller  <davem@davemloft.net>
11930
11931         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11932         using a normal save/restore sequence, rather than allocating a
11933         dummy stack frame just to store a frame pointer and restore.
11934         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11935
11936 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11937
11938         * manual/install.texi: Fix stray word in line-wrapped comment.
11939
11940 2012-02-20  David S. Miller  <davem@davemloft.net>
11941
11942         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11943         both binutils and gcc support GOTDATA.
11944
11945         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11946         "rd %pc" in the PIC register setup sequences.
11947
11948         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11949         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11950         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11951         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11952         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11953         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11954         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11955         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11956         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11957         (SYSCALL_ERROR_HANDLER): Likewise.
11958         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11959         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11960         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11961         (SYSCALL_ERROR_HANDLER): Likewise.
11962
11963         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11964         (HAVE_GCC_GOTDATA): New.
11965         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11966         relocation support in both binutils and gcc.
11967         * sysdeps/sparc/elf/configure: Regenerate.
11968
11969         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11970         * sysdeps/sparc/sparc32/elf/configure: Delete.
11971         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11972         * sysdeps/sparc/sparc64/elf/configure: Delete.
11973         * sysdeps/sparc/elf/configure.in: New file.
11974         * sysdeps/sparc/elf/configure: Generate.
11975
11976         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
11977         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
11978         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11979         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
11980         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
11981
11982 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11983
11984         * manual/install.texi: Do not mention specific glibc version
11985         numbers.
11986         * manual/libc.texinfo (VERSION, UPDATED): Update.
11987         (@copying): Use @copyright{} and range of years.
11988
11989 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11990
11991         [BZ #13695]
11992         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
11993         [crti.S not in sysdirs] (generated): Do not append.
11994         [crti.S not in sysdirs] (omit-deps): Likewise.
11995         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
11996         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
11997         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
11998         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
11999         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12000         Likewise.
12001         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12002         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12003         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12004         * csu/defs.awk: Remove file.
12005         * sysdeps/generic/initfini.c: Likewise.
12006         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12007         variable.
12008         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12009         Likewise.
12010
12011 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12012
12013         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12014         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12015         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12016         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12017         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12018         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12019         <bits/epoll.h>.
12020         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12021         (__EPOLL_PACKED): Define to empty if not defined by
12022         <bits/epoll.h>.
12023         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12024         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12025         bits/epoll.h.
12026
12027 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12028
12029         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12030         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12031         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12032         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12033         <bits/timerfd.h>.
12034         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12035         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12036         bits/timerfd.h.
12037
12038 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12039
12040         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12041         in C locale.
12042         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12043         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12044         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12046
12047 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12048
12049         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12050         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12051
12052 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12053
12054         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12055         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12056         defined.
12057         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12058         Likewise.
12059         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12060         entry for 2.16.
12061
12062 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12063
12064         * math/w_acos.c: Use non-signaling floating-point comparisons.
12065         * math/w_acosf.c: Likewise.
12066         * math/w_acosh.c: Likewise.
12067         * math/w_acoshf.c: Likewise.
12068         * math/w_acoshl.c: Likewise.
12069         * math/w_acosl.c: Likewise.
12070         * math/w_asin.c: Likewise.
12071         * math/w_asinf.c: Likewise.
12072         * math/w_asinl.c: Likewise.
12073         * math/w_atanh.c: Likewise.
12074         * math/w_atanhf.c: Likewise.
12075         * math/w_atanhl.c: Likewise.
12076         * math/w_exp2.c: Likewise.
12077         * math/w_exp2f.c: Likewise.
12078         * math/w_exp2l.c: Likewise.
12079         * math/w_j0.c: Likewise.
12080         * math/w_j0f.c: Likewise.
12081         * math/w_j0l.c: Likewise.
12082         * math/w_j1.c: Likewise.
12083         * math/w_j1f.c: Likewise.
12084         * math/w_j1l.c: Likewise.
12085         * math/w_jn.c: Likewise.
12086         * math/w_jnf.c: Likewise.
12087         * math/w_log.c: Likewise.
12088         * math/w_log10.c: Likewise.
12089         * math/w_log10f.c: Likewise.
12090         * math/w_log10l.c: Likewise.
12091         * math/w_log2.c: Likewise.
12092         * math/w_log2f.c: Likewise.
12093         * math/w_log2l.c: Likewise.
12094         * math/w_logf.c: Likewise.
12095         * math/w_logl.c: Likewise.
12096         * math/w_sqrt.c: Likewise.
12097         * math/w_sqrtf.c: Likewise.
12098         * math/w_sqrtl.c: Likewise.
12099         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12100         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12101         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12102         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12103         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12104
12105 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12106
12107         [BZ #9739]
12108         * manual/string.texi (strnlen): Use correct parameter name in
12109         equivalent expression.
12110
12111 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12112
12113         [BZ #11174]
12114         * manual/users.texi (seteuid): Consistently use neweuid for
12115         argument name.
12116
12117 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12118
12119         [BZ #13704]
12120         * manual/nss.texi (Services in the NSS configuration): Correct
12121         list of services in example configuration file.
12122
12123 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12124
12125         [BZ #11322]
12126         * manual/arith.texi: Remove statements about negative zero
12127         behaving identically to zero.
12128
12129 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12130
12131         [BZ #5993]
12132         * manual/install.texi: Do not document upgrading from libc5.
12133
12134 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12135
12136         [BZ #4596]
12137         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12138
12139 2012-02-18  David S. Miller  <davem@davemloft.net>
12140
12141         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12142         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12143         %o7 across the call.
12144         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12145         instead.
12146         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12147         SETUP_PIC_REG_LEAF.
12148         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12149         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12150         * sysdeps/sparc/crtn.S: Likewise.
12151
12152 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12153
12154         * aout/Makefile: Remove.
12155
12156 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12157
12158         [BZ #13058]
12159         * manual/examples/argp-ex1.c (main): Format definition in GNU
12160         style.
12161         * manual/examples/argp-ex2.c (main): Likewise.
12162         * manual/examples/argp-ex3.c (main): Likewise.
12163         * manual/examples/argp-ex4.c (main): Likewise.
12164         * manual/examples/longopt.c (main): Use new-style prototype
12165         definition.
12166         * manual/examples/strncat.c (main): Specify return type and use
12167         (void) for arguments.
12168         * manual/examples/subopt.c (main): Use char **argv argument.
12169
12170 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12171
12172         [BZ #5077]
12173         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12174         rounding modes.
12175
12176 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12177
12178         [BZ #6907]
12179         * manual/string.texi (strchr): Change when strchrnul is
12180         recommended.
12181
12182 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12183
12184         [BZ #174]
12185         * manual/locale.texi (setlocale): Document LOCPATH.
12186
12187 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12188
12189         [BZ #10210]
12190         * manual/process.texi (execle): Move @dots{} before last argument.
12191
12192 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12193
12194         [BZ #12047]
12195         * manual/charset.texi (Generic Charset Conversion): Fix typo
12196         (LC_TYPE -> LC_CTYPE).
12197
12198 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12199
12200         [BZ #5805]
12201         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12202         (scalbnf): Likewise.
12203         (scalbnl): Likewise.
12204         (scalbln): Likewise.
12205         (scalblnf): Likewise.
12206         (scalblnl): Likewise.
12207         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12208         (vwarnx): Likewise.
12209         (verr): Likewise.
12210         (verrx): Likewise.
12211         * manual/filesys.texi (telldir): Use braces around return type.
12212         * manual/llio.texi (mmap): Add space after comma.
12213         (mmap64): Likewise.
12214         * manual/math.texi (jn): Use @var{} on parameter names.
12215         (jnf): Likewise.
12216         (jnl): Likewise.
12217         (yn): Likewise.
12218         (ynf): Likewise.
12219         (ynl): Likewise.
12220         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12221         line.
12222         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12223         "...".
12224         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12225         (sched_get_priority_max): Likewise.
12226         * manual/signal.texi (sigvec): Add space after comma.
12227         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12228         names.
12229         (if_indextoname): Likewise.
12230         (if_freenameindex): Likewise.
12231         (sendto): Use ',' instead of '.' in prototype.
12232         * manual/startup.texi (syscall): Use @dots{} instead of literal
12233         "...".
12234         * manual/stdio.texi (__fpending): Separate initial words of
12235         paragraph from @deftypefun line.
12236         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12237         "...".
12238         (vsyslog): Use @var{} on parameter names.
12239         * manual/terminal.texi (stty): Use @var{} on parameter names.
12240         * manual/users.texi (getutmp): Use @var{} on parameter names.
12241         (getutmpx): Likewise.
12242
12243 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12244
12245         [BZ #6884]
12246         * manual/stdio.texi (fopen): Fix typos in description of
12247         ",ccs=STRING".
12248
12249 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12250
12251         [BZ #4026]
12252         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12253         get clock_id definition.
12254
12255 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12256
12257         [BZ #4822]
12258         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12259         (madvise): Cast every argument to void on its own.
12260
12261 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12262
12263         [BZ #9902]
12264         * manual/startup.texi (Exit Status): Fix typo.
12265
12266 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12267
12268         [BZ #10140]
12269         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12270         * manual/examples/argp-ex2.c: Likewise.
12271         * manual/examples/argp-ex3.c: Likewise.
12272
12273 2012-02-16  Richard Henderson  <rth@redhat.com>
12274
12275         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12276         * sysdeps/s390/s390-32/initfini.c: Remove.
12277         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12278         * sysdeps/s390/s390-64/initfini.c: Remove.
12279
12280 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12281
12282         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12283         compiler output for sysdeps/generic/initfini.c.
12284         * sysdeps/sh/elf/initfini.c: Remove file.
12285
12286 2012-02-16  David S. Miller  <davem@davemloft.net>
12287
12288         [BZ #11494]
12289         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12290
12291         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12292         * sysdeps/sparc/crti.S: New file.
12293         * sysdeps/sparc/crtn.S: New file.
12294         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12295         * sysdeps/sparc/sparc64/Makefile: Likewise.
12296
12297 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12298
12299         [BZ #3335]
12300         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12301
12302 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12303
12304         [BZ #4822]
12305         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12306
12307         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12308         (write, read, close): Likewise.
12309         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12310
12311 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12312
12313         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12314         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12315         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12316         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12317         <bits/signalfd.h>.
12318         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12319         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12320         bits/signalfd.h.
12321
12322 2012-02-14  Marek Polacek  <polacek@redhat.com>
12323
12324         * sysdeps/x86_64/crti.S: New file.
12325         * sysdeps/x86_64/crtn.S: New file.
12326         * sysdeps/x86_64/elf/initfini.c: Remove file.
12327
12328 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12329
12330         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12331         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12332         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12333         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12334         <bits/inotify.h>.
12335         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12336         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12337         bits/inotify.h.
12338
12339 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12340
12341         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12342         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12343         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12344         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12345         <bits/eventfd.h>.
12346         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12347         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12348         bits/eventfd.h.
12349
12350 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12351
12352         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12353         __feraiseexcept instead of feraiseexcept.
12354
12355         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12356         nanosleep invocations.
12357         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12358         strings, and add error checking for a nanosleep invocations.
12359
12360 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12361
12362         Replace FSF snail mail address with URLs, as per GNU coding standards.
12363         Most of the snail mail addresses were wrong anyway, and omitting
12364         them makes the source code easier to maintain.  Almost all of the
12365         changes are to license notices and to locale LC_IDENTIFICATION
12366         addresses, except for this one:
12367         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12368         not its snail mail address.
12369
12370 2012-02-09  Richard Henderson  <rth@twiddle.net>
12371
12372         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12373         of kernel-features.h.
12374
12375         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12376
12377 2012-02-08  Marek Polacek  <polacek@redhat.com>
12378
12379         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12380         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12381         * sysdeps/gnu/_G_config.h: Likewise.
12382         * sysdeps/generic/_G_config.h: Likewise.
12383
12384 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12385
12386         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12387         tests.
12388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12389
12390         * sysdeps/powerpc/powerpc32/crti.S: New file.
12391         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12392         * sysdeps/powerpc/powerpc64/crti.S: New file.
12393         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12394
12395         * Makeconfig (have-initfini): Don't set.
12396         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12397         * configure.in (nopic_initfini): Don't substitute.
12398         * config.h.in (HAVE_INITFINI): Don't #undef.
12399         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12400         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12401
12402 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12403
12404         Support crti.S and crtn.S provided directly by architectures.
12405         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12406         [crti.S in sysdirs] (omit-deps): Likewise.
12407         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12408         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12409         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12410         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12411         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12412         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12413         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12414         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12415         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12416         compiler output for sysdeps/generic/initfini.c.
12417         * sysdeps/i386/elf/Makefile: Remove file.
12418         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12419
12420 2012-02-07  Marek Polacek  <polacek@redhat.com>
12421
12422         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12423         * sysdeps/gnu/_G_config.h: Likewise.
12424         * sysdeps/mach/hurd/_G_config.h: Likewise.
12425
12426 2012-02-07  Marek Polacek  <polacek@redhat.com>
12427
12428         * math/Makefile (tests): Add tst-CMPLX2.
12429         * math/tst-CMPLX2.c: New file.
12430
12431 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12432
12433         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12434
12435         * math/libm-test.inc (jn_test): Add missing L suffix.
12436
12437 2012-02-06  Marek Polacek  <polacek@redhat.com>
12438
12439         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12440         * sysdeps/i386/fpu/e_powf.S: Likewise.
12441         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12442         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12443         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12444         * sysdeps/i386/fpu/e_pow.S: Likewise.
12445         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12446         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12447         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12448         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12449         * sysdeps/i386/fpu/e_log2.S: Likewise.
12450         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12451         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12452         * sysdeps/i386/fpu/e_powl.S: Likewise.
12453         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12454         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12455         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12456         * sysdeps/i386/fpu/e_logl.S: Likewise.
12457         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12458         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12459         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12460         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12461         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12462         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12463         * sysdeps/i386/fpu/e_log.S: Likewise.
12464         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12465         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12466         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12467         * sysdeps/i386/fpu/e_logf.S: Likewise.
12468         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12469         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12470         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12471         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12472         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12473         * sysdeps/i386/fpu/e_log10.S: Likewise.
12474         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12475         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12476         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12477         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12478         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12479         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12480         * sysdeps/i386/asm-syntax.h: Likewise.
12481         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12482         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12483         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12484         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12485         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12486         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12487         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12488         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12489         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12490         * sysdeps/powerpc/sysdep.h: Likewise.
12491         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12492         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12493
12494 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12495
12496         [BZ #411]
12497         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12498
12499 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12500
12501         * sysdeps/i386/sysdep.h: Include <features.h>.
12502         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12503         version.
12504
12505 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12506
12507         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12508         Define.
12509         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12510         LOAD_PIC_REG_STR.
12511
12512 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12513
12514         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12515         (SETUP_PIC_REG): Use GET_PC_THUNK.
12516         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12517         macro.
12518
12519 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12520
12521         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12522         for non-PIC compilation.
12523         (SETUP_PIC_REG): Add .p2align directive.
12524         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12525         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12526         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12527         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12528         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12529         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12530         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12531         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12532         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12533         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12534         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12535         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12536         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12537         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12538         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12539         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12540         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12541         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12542         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12543         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12544         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12545         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12546         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12547         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12548         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12549         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12550         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12551         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12552         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12553         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12554         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12555         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12556         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12557         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12558         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12559         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12560         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12561         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12562         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12563         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12564         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12565
12566 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12567
12568         * math/tst-CMPLX.c: Include <stdio.h>.
12569
12570 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12571
12572         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12573         float.
12574         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12575         * sysdeps/sparc/bits/mathdef.h: Likewise.
12576
12577 2012-01-31  Marek Polacek  <polacek@redhat.com>
12578
12579         * libio/libio.h: Don't define _PARAMS.
12580         * locale/programs/config.h: Don't define PARAMS.
12581         * stdlib/strtol_l.c: Likewise.
12582         (__strtol_l): Remove PARAMS from the prototype.
12583
12584 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12585
12586         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12587         names.  Just use the correct names.  Remove unnecessary wrapper
12588         functions.
12589         * malloc/arena.c: Likewise.
12590         * malloc/hooks.c: Likewise.
12591
12592         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12593         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12594         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12595
12596 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12597
12598         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12599         into tail calls.
12600         (update_get_addr): New function.
12601         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12602         GET_ADDR_MODULE parameter.
12603
12604 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12605
12606         * crypt/cert.c: Remove __STDC__ conditionals.
12607         * crypt/crypt-entry.c: Likewise.
12608         * crypt/crypt_util.c: Likewise.
12609         * libio/filedoalloc.c: Likewise.
12610         * libio/fileops.c: Likewise.
12611         * libio/genops.c: Likewise.
12612         * libio/iofclose.c: Likewise.
12613         * libio/iofdopen.c: Likewise.
12614         * libio/iofopen.c: Likewise.
12615         * libio/iofopen64.c: Likewise.
12616         * libio/iogetdelim.c: Likewise.
12617         * libio/iopopen.c: Likewise.
12618         * libio/obprintf.c: Likewise.
12619         * libio/oldfileops.c: Likewise.
12620         * libio/oldiofclose.c: Likewise.
12621         * libio/oldiofdopen.c: Likewise.
12622         * libio/oldiofopen.c: Likewise.
12623         * libio/oldiopopen.c: Likewise.
12624         * libio/wfiledoalloc.c: Likewise.
12625         * libio/wgenops.c: Likewise.
12626         * locale/programs/xmalloc.c: Likewise.
12627         * misc/syslog.c: Likewise.
12628         * stdio-common/xbug.c: Likewise.
12629         * string/memchr.c: Likewise.
12630         * string/memcmp.c: Likewise.
12631         * string/memrchr.c: Likewise.
12632         * string/rawmemchr.c: Likewise.
12633         * sysdeps/posix/getcwd.c: Likewise.
12634         * time/strftime_l.c: Likewise.
12635
12636 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12637
12638         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12639         * config.make.in (config-cflags-sse2avx): Define.
12640         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12641         Fix typo.
12642
12643 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12644
12645         * scripts/config.guess: Update from upstream config git repository.
12646         * scripts/config.sub: Likewise.
12647
12648 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12649
12650         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12651         (EM_NUM): Update.
12652         (R_TILEPRO_*, R_TILEGX_*): New macros.
12653
12654         * scripts/firstversions.awk: Fix bug in version range handling.
12655
12656         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12657
12658         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12659
12660         * include/sys/epoll.h: New file.
12661         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12662         libc_hidden_def.
12663
12664 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12665
12666         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12667         Avoid unnecessary __WORDSIZE == 64 test.
12668         (fmaxf): Use VEX format if possible.
12669         (fmax): Likewise.
12670         (fminf): Likewise.
12671         (fmin): Likewise.
12672
12673         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12674         * math/math_private.h: Remove libc_fegetround* and
12675         libc_fesetround*.
12676         * sysdeps/i386/configure.in: Check for -msse2avx.
12677         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12678         also if SSE2AVX is defined.
12679         Remove libc_fegetround* and libc_fesetround*.
12680         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12681         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12682         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12683         of HAS_YMM_USABLE.
12684         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12685         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12686         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12687         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12688         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12689
12690         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12691
12692 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12693
12694         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12695         size is not set.
12696         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12697
12698 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12699
12700         [BZ #13618]
12701         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12702         relocation.
12703         * Makeconfig (libm): Define.
12704         * elf/Makefile: Add rules to build and run tst-relsort1.
12705         * elf/tst-relsort1.c: New file.
12706         * elf/tst-relsort1mod1.c: New file.
12707         * elf/tst-relsort1mod2.c: New file.
12708
12709 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12710
12711         * math/s_ldexp.c: Remove __STDC__ conditionals.
12712         * math/s_ldexpf.c: Likewise.
12713         * math/s_ldexpl.c: Likewise.
12714         * math/s_nextafter.c: Likewise.
12715         * math/s_nexttowardf.c: Likewise.
12716         * math/s_significand.c: Likewise.
12717         * math/s_significandf.c: Likewise.
12718         * math/s_significandl.c: Likewise.
12719         * math/w_jnl.c: Likewise.
12720         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12721         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12722         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12723         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12724         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12725         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12726         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12727         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12728         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12729         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12731         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12739         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12740         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12741         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12742         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12743         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12744         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12745         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12746         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12747         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12748         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12749         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12750         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12751         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12752         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12753         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12754         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12755         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12756         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12757         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12758         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12759         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12760         * sysdeps/ieee754/k_standard.c: Likewise.
12761         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12762         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12763         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12764         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12765         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12766         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12767         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12768         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12769         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12770         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12771         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12772         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12773         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12774         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12775         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12776         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12777         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12778         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12779         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12780         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12781         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12782         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12783         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12784         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12785         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12786         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12787         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12788         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12789         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12790         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12791         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12792         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12793         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12794         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12795         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12796         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12797         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12798         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12799         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12800         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12801         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12802         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12803         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12804         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12805         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12806         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12807         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12808         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12809         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12810         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12811         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12812         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12813         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12814         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12815         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12816         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12817         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12818         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12819         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12820         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12821         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12822         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12823         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12824         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12825         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12826         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12827         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12828         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12829         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12830         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12831         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12832         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12833         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12834         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12835         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12836         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12837         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12838         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12839         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12840         * sysdeps/ieee754/s_matherr.c: Likewise.
12841         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12842         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12843         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12844         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12845
12846 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12847
12848         * crypt/md5.h: Remove __STDC__ conditionals.
12849         * libio/libioP.h: Likewise.
12850         * locale/programs/config.h: Likewise.
12851         * sysdeps/generic/sysdep.h: Likewise.
12852         * sysdeps/i386/asm-syntax.h: Likewise.
12853         * sysdeps/s390/asm-syntax.h: Likewise.
12854         * sysdeps/unix/sysdep.h: Likewise.
12855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12857
12858 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12859
12860         * libio/libio.h: Remove __STDC__ conditionals.
12861         * malloc/obstack.h: Likewise.
12862         * math/complex.h: Likewise.
12863         * math/math.h: Likewise.
12864         * sysdeps/generic/_G_config.h: Likewise.
12865         * sysdeps/gnu/_G_config.h: Likewise.
12866         * sysdeps/mach/hurd/_G_config.h: Likewise.
12867         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12868         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12869         * sysdeps/sparc/bits/mathdef.h: Likewise.
12870
12871 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12872
12873         [BZ #13583]
12874         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12875         Clean up HAS_* macros.
12876         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12877         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12878         possible.
12879         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12880         HAS_AVX.
12881         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12882         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12883         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12884         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12885         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12886
12887 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12888
12889         * elf/tst-unique3.cc (gets): Remove declaration.
12890         * elf/tst-unique3lib.cc (gets): Likewise.
12891         * elf/tst-unique3lib2.cc (gets): Likewise.
12892         * elf/tst-unique4.cc (gets): Likewise.
12893
12894 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12895
12896         * include/stdio.h: Add C++ protection.  Add gets declarations and
12897         definitions.
12898         * debug/tst-chk1.c: Don't declare gets here.
12899         * stdio-common/tst-gets.c: Likewise.
12900
12901 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12902
12903         * posix/glob: Remove directory.
12904
12905 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12906
12907         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12908
12909 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12910
12911         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12912         of the non-standard EPFNOSUPPORT.
12913
12914 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12915
12916         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12917         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12918         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12919
12920 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12921
12922         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12923
12924 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12925
12926         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12927         transient errors.
12928         * nscd/grpcache.c (cache_addgr): Likewise.
12929         * nscd/hstcache.c (cache_addhst): Likewise.
12930         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12931         * nscd/pwdcache.c (cache_addpw): Likewise.
12932         * nscd/servicescache.c (cache_addserv): Likewise.
12933
12934 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12935
12936         * malloc/malloc.c: Various cleanups.
12937         * malloc/hooks.c: Likewise.
12938
12939         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12940         * stdlib/bug-fmtmsg1.c: New file.
12941
12942         * stdlib/fmtmsg.c (init): Add missing unlock.
12943         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12944
12945 2012-01-12  Marek Polacek  <polacek@redhat.com>
12946
12947         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12948         and _GNU_SOURCE.
12949
12950 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12951
12952         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12953         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12954         macro to ensure uniqueness of label name.
12955         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12956         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12957
12958 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12959
12960         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12961
12962         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12963         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12964         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12965         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12966
12967 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12968
12969         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12970
12971         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12972         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12973         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12974
12975         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12976
12977         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
12978         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12979         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12980         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
12981
12982         * math/bits/math-finite.h: Add ldexp support.
12983
12984 2012-01-10  Marek Polacek  <polacek@redhat.com>
12985
12986         * locale/programs/localedef.h (show_archive_content): Add noreturn
12987         attribute.
12988
12989 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
12990
12991         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
12992
12993 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12994
12995         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
12996
12997         * io/Makefile (headers): Add bits/poll2.h.
12998
12999 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13000
13001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13002         typo #include statement.
13003
13004 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13005
13006         * include/sys/cdefs.h: Define __attribute_alloc_size.
13007         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13008         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13009         * elf/pldd.c: Likewise.
13010         * iconv/iconv_charmap.c: Likewise.
13011         * iconv/iconvconfig.c: Likewise.
13012         * iconv/strtab.c: Likewise.
13013         * locale/programs/locale.c: Likewise.
13014         * locale/programs/localedef.h: Likewise.
13015         * locale/programs/simple-hash.c: Likewise.
13016         * nscd/nscd.h: Likewise.
13017         * nss/makedb.c: Likewise.
13018         * sysdeps/generic/ldconfig.h: Likewise.
13019         * locale/programs/localedef.c: Remove xmalloc prototype.
13020         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13021
13022 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13023
13024         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13025         appropriate.
13026
13027 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13028
13029         * math/Makefile (tests): Add tst-CMPLX.
13030         * math/tst-CMPLX.c: New file.
13031
13032         * math/complex.h (CMPLXL): Fix typo.
13033
13034         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13035         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13036         GLIBC_2.16.
13037         * debug/tst-chk1.c: Add poll and ppoll tests.
13038         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13039         * include/sys/poll.h: Add hidden proto for ppoll.
13040         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13041         * sysdeps/mach/hurd/ppoll.c: Likewise.
13042         * io/ppoll.c: Likewise.
13043         * debug/poll_chk.c: New file.
13044         * debug/ppoll_chk.c: New file.
13045         * include/bits/poll2.h: New file.
13046         * io/bits/poll2.h: New file.
13047
13048         [BZ #1350]
13049         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13050
13051         * configure.in: static is always set to yes.  Remove.
13052         * config.make.in: Don't set build-static.
13053         * Makeconfig: Remove use of build-static.
13054         * dlfcn/Makefile: Likewise.
13055         * elf/Makefile: Likewise.
13056         * math/Makefile: Likewise.
13057         * misc/Makefile: Likewise.
13058         * nptl/Makefile: Likewise.
13059         * sysdeps/mach/hurd/Makefile: Likewise.
13060
13061         * configure.in: PWD_P is not used anymore.
13062         * config.make.in: Remove PWD_P entry.
13063
13064         * configure.in: Remove last remnants of RANLIB.
13065         No need to check for signed size_t anymore.
13066         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13067         and IA-64.
13068         Remove __builtin_expect test because we require at least gcc 3.4.
13069         * aclocal.m4: Likewise.
13070
13071         * wcsmbs/mbrtoc16.c: Implement using towc function.
13072         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13073         * wcsmbs/wcsmbsload.c: Likewise.
13074         * iconv/gconv_simple.c: Likewise.
13075         * iconv/gconv_int.h: Likewise.
13076         * iconv/gconv_builtin.h: Likewise.
13077         * iconv/iconv_prog.c: Remove CHAR16 handling.
13078
13079         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13080
13081         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13082
13083         * configure.in: Remove --with-elf and --enable-bounded options.
13084         Dont set base_machine for ia64.  More non-ELF conditions removed.
13085         Remove testing and setting of leading underscore information.
13086         * config.make.in (build-bounded): Set to no.
13087         * config.h.in: Remove NO_UNDERSCORES entry.
13088         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13089         them.
13090         * csu/start.c: Remove !NO_UNDERSCORE code.
13091         * locale/localeinfo.h: Likewise.
13092         * sysdeps/generic/machine-gmon.h: Likewise.
13093         * sysdeps/generic/sysdep.h: Likewise.
13094         * sysdeps/i386/sysdep.h: Likewise.
13095         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13096         * sysdeps/mach/sysdep.h: Likewise.
13097         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13098         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13099         * sysdeps/sh/sysdep.h: Likewise.
13100         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13101         * sysdeps/unix/i386/sysdep.S: Likewise.
13102         * sysdeps/unix/sparc/start.c: Likewise.
13103         * sysdeps/unix/sparc/sysdep.S: Likewise.
13104         * sysdeps/unix/sparc/sysdep.h: Likewise.
13105         * sysdeps/unix/start.c: Likewise.
13106         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13107         * sysdeps/x86_64/sysdep.h: Likewise.
13108
13109 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13110
13111         [BZ #13553]
13112         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13113         for non-gcc.
13114         * argp/argp-fmtstream.h: Use const instead __const.
13115         * argp/argp.h: Likewise.
13116         * assert/assert.h: Likewise.
13117         * bits/fenv.h: Likewise.
13118         * bits/sched.h: Likewise.
13119         * bits/sigset.h: Likewise.
13120         * bits/sigthread.h: Likewise.
13121         * catgets/nl_types.h: Likewise.
13122         * conform/data/pthread.h-data: Likewise.
13123         * crypt/crypt-private.h: Likewise.
13124         * crypt/crypt.h: Likewise.
13125         * crypt/crypt_util.c: Likewise.
13126         * ctype/ctype.h: Likewise.
13127         * debug/execinfo.h: Likewise.
13128         * debug/mbsnrtowcs_chk.c: Likewise.
13129         * debug/mbsrtowcs_chk.c: Likewise.
13130         * debug/wcsnrtombs_chk.c: Likewise.
13131         * debug/wcsrtombs_chk.c: Likewise.
13132         * debug/wcstombs_chk.c: Likewise.
13133         * dirent/dirent.h: Likewise.
13134         * dlfcn/dlfcn.h: Likewise.
13135         * elf/neededtest4.c: Likewise.
13136         * grp/grp.h: Likewise.
13137         * gshadow/gshadow.h: Likewise.
13138         * iconv/gconv.h: Likewise.
13139         * iconv/gconv_int.h: Likewise.
13140         * iconv/gconv_simple.c: Likewise.
13141         * iconv/iconv.h: Likewise.
13142         * iconv/loop.c: Likewise.
13143         * iconv/skeleton.c: Likewise.
13144         * include/aio.h: Likewise.
13145         * include/aliases.h: Likewise.
13146         * include/argz.h: Likewise.
13147         * include/arpa/inet.h: Likewise.
13148         * include/assert.h: Likewise.
13149         * include/dirent.h: Likewise.
13150         * include/dlfcn.h: Likewise.
13151         * include/execinfo.h: Likewise.
13152         * include/fcntl.h: Likewise.
13153         * include/fenv.h: Likewise.
13154         * include/glob.h: Likewise.
13155         * include/grp.h: Likewise.
13156         * include/libintl.h: Likewise.
13157         * include/mntent.h: Likewise.
13158         * include/netdb.h: Likewise.
13159         * include/pwd.h: Likewise.
13160         * include/rpc/netdb.h: Likewise.
13161         * include/sched.h: Likewise.
13162         * include/search.h: Likewise.
13163         * include/shadow.h: Likewise.
13164         * include/signal.h: Likewise.
13165         * include/stdio.h: Likewise.
13166         * include/stdlib.h: Likewise.
13167         * include/string.h: Likewise.
13168         * include/sys/socket.h: Likewise.
13169         * include/sys/stat.h: Likewise.
13170         * include/sys/statfs.h: Likewise.
13171         * include/sys/statvfs.h: Likewise.
13172         * include/sys/syslog.h: Likewise.
13173         * include/sys/time.h: Likewise.
13174         * include/sys/uio.h: Likewise.
13175         * include/time.h: Likewise.
13176         * include/unistd.h: Likewise.
13177         * include/utmp.h: Likewise.
13178         * include/wchar.h: Likewise.
13179         * include/wctype.h: Likewise.
13180         * inet/aliases.h: Likewise.
13181         * inet/arpa/inet.h: Likewise.
13182         * inet/netinet/ether.h: Likewise.
13183         * inet/netinet/in.h: Likewise.
13184         * intl/libintl.h: Likewise.
13185         * io/bits/fcntl2.h: Likewise.
13186         * io/fcntl.h: Likewise.
13187         * io/ftw.h: Likewise.
13188         * io/sys/poll.h: Likewise.
13189         * io/sys/stat.h: Likewise.
13190         * io/sys/statfs.h: Likewise.
13191         * io/sys/statvfs.h: Likewise.
13192         * io/utime.h: Likewise.
13193         * libio/bits/stdio.h: Likewise.
13194         * libio/bits/stdio2.h: Likewise.
13195         * libio/libio.h: Likewise.
13196         * libio/libioP.h: Likewise.
13197         * libio/stdio.h: Likewise.
13198         * locale/lc-ctype.c: Likewise.
13199         * locale/locale.h: Likewise.
13200         * login/utmp.h: Likewise.
13201         * malloc/arena.c: Likewise.
13202         * malloc/malloc.c: Likewise.
13203         * malloc/malloc.h: Likewise.
13204         * malloc/mcheck.c: Likewise.
13205         * malloc/mtrace.c: Likewise.
13206         * math/bits/mathcalls.h: Likewise.
13207         * math/fenv.h: Likewise.
13208         * math/math_private.h: Likewise.
13209         * misc/bits/error.h: Likewise.
13210         * misc/bits/syslog.h: Likewise.
13211         * misc/err.h: Likewise.
13212         * misc/error.h: Likewise.
13213         * misc/fstab.h: Likewise.
13214         * misc/mntent.h: Likewise.
13215         * misc/regexp.h: Likewise.
13216         * misc/search.h: Likewise.
13217         * misc/sgtty.h: Likewise.
13218         * misc/sys/mman.h: Likewise.
13219         * misc/sys/syslog.h: Likewise.
13220         * misc/sys/uio.h: Likewise.
13221         * misc/sys/xattr.h: Likewise.
13222         * misc/ttyent.h: Likewise.
13223         * nis/rpcsvc/ypclnt.h: Likewise.
13224         * nss/nss.h: Likewise.
13225         * posix/bits/unistd.h: Likewise.
13226         * posix/fnmatch.h: Likewise.
13227         * posix/glob.h: Likewise.
13228         * posix/sched.h: Likewise.
13229         * posix/spawn.h: Likewise.
13230         * posix/sys/wait.h: Likewise.
13231         * posix/unistd.h: Likewise.
13232         * posix/wordexp.h: Likewise.
13233         * pwd/pwd.h: Likewise.
13234         * resolv/netdb.h: Likewise.
13235         * resource/sys/resource.h: Likewise.
13236         * rt/aio.h: Likewise.
13237         * rt/bits/mqueue2.h: Likewise.
13238         * rt/mqueue.h: Likewise.
13239         * shadow/shadow.h: Likewise.
13240         * signal/signal.h: Likewise.
13241         * socket/send.c: Likewise.
13242         * socket/sendto.c: Likewise.
13243         * socket/sys/socket.h: Likewise.
13244         * stdio-common/printf.h: Likewise.
13245         * stdlib/bits/stdlib.h: Likewise.
13246         * stdlib/fmtmsg.h: Likewise.
13247         * stdlib/monetary.h: Likewise.
13248         * stdlib/stdlib.h: Likewise.
13249         * stdlib/ucontext.h: Likewise.
13250         * streams/stropts.h: Likewise.
13251         * string/argz.h: Likewise.
13252         * string/bits/string2.h: Likewise.
13253         * string/string.h: Likewise.
13254         * string/strings.h: Likewise.
13255         * sunrpc/rpc/auth.h: Likewise.
13256         * sunrpc/rpc/auth_des.h: Likewise.
13257         * sunrpc/rpc/clnt.h: Likewise.
13258         * sunrpc/rpc/netdb.h: Likewise.
13259         * sunrpc/rpc/pmap_clnt.h: Likewise.
13260         * sunrpc/rpc/xdr.h: Likewise.
13261         * sysdeps/generic/inttypes.h: Likewise.
13262         * sysdeps/generic/net/if.h: Likewise.
13263         * sysdeps/generic/sys/swap.h: Likewise.
13264         * sysdeps/gnu/net/if.h: Likewise.
13265         * sysdeps/gnu/utmpx.h: Likewise.
13266         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13267         * sysdeps/i386/i486/bits/string.h: Likewise.
13268         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13269         * sysdeps/s390/bits/string.h: Likewise.
13270         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13271         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13272         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13273         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13274         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13275         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13276         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13277         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13278         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13279         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13280         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13281         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13282         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13283         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13284         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13285         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13286         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13287         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13288         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13289         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13290         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13291         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13292         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13293         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13294         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13295         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13296         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13297         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13298         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13299         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13300         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13301         * sysvipc/sys/ipc.h: Likewise.
13302         * sysvipc/sys/msg.h: Likewise.
13303         * sysvipc/sys/sem.h: Likewise.
13304         * sysvipc/sys/shm.h: Likewise.
13305         * termios/termios.h: Likewise.
13306         * time/sys/time.h: Likewise.
13307         * time/time.h: Likewise.
13308         * wcsmbs/bits/wchar2.h: Likewise.
13309         * wcsmbs/uchar.h: Likewise.
13310         * wcsmbs/wchar.h: Likewise.
13311         * wctype/wctype.h: Likewise.
13312
13313         [BZ #13551]
13314         * Makeconfig: Remove all but ELF support including AIX support.
13315         * Makerules: Likewise.
13316         * config.h.in: Likewise.
13317         * config.make.in: Likewise.
13318         * configure: Likewise.
13319         * configure.in: Likewise.
13320         * csu/Makefile: Likewise.
13321         * csu/version.c: Likewise.
13322         * debug/Makefile: Likewise.
13323         * dlfcn/Makefile: Likewise.
13324         * elf/Makefile: Likewise.
13325         * extra-lib.mk: Likewise.
13326         * iconv/Makefile: Likewise.
13327         * include/libc-symbols.h: Likewise.
13328         * include/shlib-compat.h: Likewise.
13329         * resolv/Makefile: Likewise.
13330         * resolv/res_libc.c: Likewise.
13331         * rt/Makefile: Likewise.
13332         * sysdeps/i386/asm-syntax.h: Likewise.
13333         * sysdeps/i386/sysdep.h: Likewise.
13334         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13335         * sysdeps/mach/sysdep.h: Likewise.
13336         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13337         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13338         * sysdeps/s390/asm-syntax.h: Likewise.
13339         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13340         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13341         * sysdeps/sh/sysdep.h: Likewise.
13342         * sysdeps/unix/sparc/sysdep.h: Likewise.
13343         * sysdeps/wordsize-32/divdi3.c: Likewise.
13344         * sysdeps/x86_64/sysdep.h: Likewise.
13345
13346         * argp/Versions: Remove _argp_unlock_xxx.
13347
13348         [BZ #13559]
13349         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13350         * abilist/libBrokenLocale.abilist: Likewise.
13351         * abilist/libanl.abilist: Likewise.
13352         * abilist/libc.abilist: Likewise.
13353         * abilist/libcrypt.abilist: Likewise.
13354         * abilist/libdl.abilist: Likewise.
13355         * abilist/libm.abilist: Likewise.
13356         * abilist/libnsl.abilist: Likewise.
13357         * abilist/libpthread.abilist: Likewise.
13358         * abilist/libresolv.abilist: Likewise.
13359         * abilist/librt.abilist: Likewise.
13360         * abilist/libthread_db.abilist: Likewise.
13361         * abilist/libutil.abilist: Likewise.
13362         * abilist/libnss_db.abilist: New file.
13363
13364         * scripts/abilist.awk: Add support for indirect functions.
13365
13366         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13367
13368         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13369
13370         * shlib-versions: Remove entries for ports architectures.
13371
13372         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13373         files in ports.
13374         * elf/stackguard-macros.h: Remove support for IA-64.
13375         * elf/tst-auditmod1.c: Likewise.
13376         * sysdeps/generic/ldsodefs.h: Likewise.
13377
13378         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13379         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13380         configure files.
13381
13382         [BZ #13552]
13383         * configure.in: Remove --enable-omitfp support.
13384         * FAQ.in: Adjust.
13385         * config.make.in: Likewise.
13386         * Makeconfig: Likewise.
13387         * manual/install.texi: Likewise.
13388
13389         In case anyone cares, the IA-64 architecture could move to ports.
13390         * sysdeps/ia64/*: Removed.
13391         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13392         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13393
13394         [BZ #13555]
13395         * configure.in: Remove entries for unsupported architectures.
13396
13397         [BZ #13533]
13398         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13399         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13400         routines.
13401         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13402         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13403         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13404         fall back to using wcrtomb.
13405         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13406         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13407         renaming.
13408         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13409         * wcsmbs/tst-c16c32-1.c: New file.
13410
13411         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13412         local variable.
13413
13414         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13415
13416         * elf/tst-unique3.cc: Add explicit declaration of gets.
13417         * elf/tst-unique3lib.cc: Likewise.
13418         * elf/tst-unique3lib2.cc: Likewise.
13419         * elf/tst-unique4.cc: Likewise.
13420
13421         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13422
13423 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13424
13425         [BZ #13566]
13426         * assert/assert.h (static_assert): Don't define for C++.
13427         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13428         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13429
13430 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13431
13432         * iconv/loop.c (single loop): Fix assertion in storing of
13433         remaining bytes.
13434
13435         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13436
13437 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13438
13439         * posix/getconf.c: Update copyright year.
13440         * nss/getent.c: Likewise.
13441         * nss/makedb.c: Likewise.
13442         * iconv/iconvconfig.c: Likewise.
13443         * iconv/iconv_prog.c: Likewise.
13444         * elf/ldconfig.c: Likewise.
13445         * elf/pldd.c: Likewise.
13446         * elf/sotruss.ksh: Likewise.
13447         * catgets/gencat.c: Likewise.
13448         * csu/version.c: Likewise.
13449         * elf/ldd.bash.in: Likewise.
13450         * elf/sprof.c (print_version): Likewise.
13451         * locale/programs/locale.c: Likewise.
13452         * locale/programs/localedef.c: Likewise.
13453         * login/programs/pt_chown.c: Likewise.
13454         * nscd/nscd.c (print_version): Likewise.
13455         * debug/xtrace.sh: Likewise.
13456         * malloc/memusage.sh: Likewise.
13457         * malloc/mtrace.pl: Likewise.
13458         * debug/catchsegv.sh: Likewise.
13459
13460 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13461
13462         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13463         pure attribute.
13464
13465 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13466
13467         [BZ #13533]
13468         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13469         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13470         transformations.
13471         * iconv/gconv_int.h: Likewise.
13472         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13473         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13474         from libc for GLIBC_2.16.
13475         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13476         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13477         * wcsmbs/uchar.h: Really define mbstate_t.
13478         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13479         * wcsmbs/c16rtomb.c: New file.
13480         * wcsmbs/mbrtoc16.c: New file.
13481         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13482         for C/POSIX locale.
13483         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13484         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13485
13486         * wcsmbs/wchar.h: Add missing __restrict.
13487
13488 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13489
13490         [BZ #13532]
13491         * time/Makefile (routines): Add timespec_get.
13492         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13493         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13494         timespec for ISO C11.
13495         * time/timespec_get.c: New file.
13496         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13497         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13498
13499         [BZ #13531]
13500         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13501         * stdlib/stdlib.h: Declare aligned_alloc.
13502         * Versions.def: Add GLIBC_2.16 for libc.
13503         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13504
13505         [BZ 13527]
13506         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13507         ISO C11.
13508
13509         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13510         code.
13511
13512         [BZ #13528]
13513         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13514
13515         [BZ #13529]
13516         * assert/assert.h (static_assert): Define.
13517
13518         * version.h: Update for 2.16 development version.
13519
13520         [BZ #13526]
13521         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13522         _ISOC11_SOURCE.
13523
13524         * version.h (RELEASE): Bump for 2.15 release.
13525         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13526
13527         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13528         Patch by Marek Polacek <mpolacek@redhat.com>.
13529
13530         * bits/byteswap.h: Protect long long constants with __extension__.
13531         * sysdeps/i386/bits/byteswap.h: Likewise.
13532         * sysdeps/ia64/bits/byteswap.h: Likewise.
13533         * sysdeps/s390/bits/byteswap.h: Likewise.
13534         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13535
13536 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13537
13538         [BZ #13540]
13539         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13540         destination buffer.
13541         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13542
13543 2011-12-23  Marek Polacek  <polacek@redhat.com>
13544
13545         * elf/dl-addr.c (determine_info): Add inline keyword.
13546         * elf/tst-auditmod4b.c (check_avx): Likewise.
13547         * elf/tst-auditmod6b.c (check_avx): Likewise.
13548         * elf/tst-auditmod6c.c (check_avx): Likewise.
13549         * elf/tst-auditmod7b.c (check_avx): Likewise.
13550
13551 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13552
13553         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13554         !__SSE_MATH__.
13555
13556 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13557
13558         [BZ #13540]
13559         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13560         processing for last bytes.
13561
13562 2011-08-06  Bruno Haible  <bruno@clisp.org>
13563
13564         [BZ #13061]
13565         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13566         U+0385, not to U+1FEE.
13567
13568         [BZ #13062]
13569         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13570         entry for U+00A5 U+0301.
13571
13572 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13573
13574         [BZ #13166]
13575         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13576         buffer for the output is too small.
13577
13578         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13579         optimization.
13580
13581         [BZ #13185]
13582         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13583         SSE flags if possible.
13584
13585 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13586
13587         [BZ #13540]
13588         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13589         processing for last bytes.
13590
13591 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13592
13593         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13594         (syscall-list-default-options, syscall-list-default-condition)
13595         (syscall-list-includes): Define.
13596         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13597         list of ABIs and options and #if conditions for each ABI.  Do not
13598         handle common syscalls between ABIs specially.
13599         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13600         Remove.
13601         (syscall-list-variants, syscall-list-32bit-options)
13602         (syscall-list-32bit-condition, syscall-list-64bit-options)
13603         (syscall-list-64bit-condition): Define.
13604         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13605         (syscall-list-variants, syscall-list-32bit-options)
13606         (syscall-list-32bit-condition, syscall-list-64bit-options)
13607         (syscall-list-64bit-condition): Define.
13608         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13609         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/x86_64/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
13619 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13620
13621         * locale/iso-639.def: Add brx entry.
13622
13623         [BZ #13328]
13624         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13625         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13626
13627         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13628         __feraiseexcept_renamed.
13629
13630 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13631
13632         [BZ #13538]
13633         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13634         EPOLLET with unsigned values.
13635         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13636         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13637
13638         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13639         to large cancellation.
13640         * math/s_cacoshf.c: Likewise.
13641         * math/s_cacoshl.c: Likewise.
13642
13643 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13644
13645         [BZ #13305]
13646         [BZ #12786]
13647         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13648         * math/s_cacoshf.c: Likewise.
13649         * math/s_cacoshl.c: Likewise.
13650
13651 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13652
13653         [BZ #13439]
13654         * iconv/gconv.h: Define __GCONV_SWAP.
13655         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13656         * iconvdata/utf-16.c: Likewise.
13657         * iconvdata/utf-32.c: Likewise.
13658
13659 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13660
13661         [BZ #13524]
13662         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13663         numerator after shifting it by one limb.
13664
13665 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13666
13667         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13668         under [__USE_EXTERN_INLINES].
13669
13670 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13671
13672         [BZ #13446]
13673         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13674
13675 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13676
13677         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13678         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13679         optimized code.
13680         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13681         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13682         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13683         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13684         for strncasecmp/strncasecmp_l compilation.
13685         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13686         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13687
13688 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13689
13690         [BZ #13484]
13691         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13692         of __asm__.
13693
13694 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13695
13696         [BZ #13506]
13697         * time/tzfile.c (__tzfile_read): Check values from file header.
13698
13699 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13700
13701         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13702         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13703         * powerpc/powerpc32/dl-start.S: Likewise.
13704         * powerpc/powerpc32/elf/start.S: Likewise.
13705         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13706         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13707         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13708         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13709         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13710         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13711         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13712         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13713         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13714         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13715         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13716         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13717         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13718         * powerpc/powerpc32/memset.S: Likewise.
13719         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13720         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13721         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13722         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13723         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13724         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13725         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13726         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13727         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13728         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13729         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13730         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13731         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13732
13733 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13734
13735         * math/libm-test.inc: Added more nearbyint tests.
13736         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13737         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13738         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13739         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13740
13741 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13742
13743         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13744         FD_CLOEXEC.
13745
13746 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13747
13748         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13749         Add wcscpy-ssse3 wcscpy-c.
13750         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13751         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13752         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13753         * sysdeps/x86_64/wcschr.S: New file.
13754         * sysdeps/x86_64/wcsrchr.S: New file.
13755         * string/test-strcmp.c: Remove checking of wcscmp function for
13756         wrong alignments.
13757         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13758         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13759         wcsrchr-sse2 wcsrchr-c.
13760         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13761         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13762         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13763         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13764         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13765         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13766         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13767         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13768         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13769         * wcsmbc/wcschr.c (WCSCHR): New macro.
13770
13771 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13772
13773         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13774         * wcsmbs/test-wcsrchr.c: New file.
13775         * string/test-strrchr.c: Add wcsrchr support.
13776         (WIDE): New macro.
13777         * wcsmbs/test-wcscpy.c: New file.
13778         * string/test-strcpy.c: Add wcscpy support.
13779         (WIDE): New macro.
13780
13781 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13782
13783         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13784         the inner loop.
13785
13786 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13787
13788         [BZ #13472]
13789         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13790
13791 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13792
13793         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13794         Minor optimizations.
13795
13796         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13797         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13798         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13799
13800 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13801
13802         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13803         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13804         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13805         for gcc to avoid warnings.
13806         * inet/Makefile (tests): Add tst-checks.
13807         * inet/tst-checks.c: New file.
13808
13809         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13810         warning.
13811
13812         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13813         __wmemcmp_sse2.
13814
13815         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13816         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13817
13818         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13819
13820 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13821
13822         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13823         problem.
13824
13825         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13826
13827 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13828
13829         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13830         conditional on GCC version.
13831         (__arch_compare_and_exchange_val_8_acq)
13832         (__arch_compare_and_exchange_val_16_acq)
13833         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13834         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13835         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13836
13837 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13838
13839         * sysdeps/sh/backtrace.c: New file.
13840
13841 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13842
13843         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13844         parenthesis.
13845
13846 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13847
13848         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13849         falling back to utime.
13850
13851 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13852
13853         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13854         expectations for float.
13855
13856 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13857
13858         * locale/weight.h (findidx): Add parameter len.
13859         * locale/weightwc.h (findidx): Likewise.
13860         * posix/fnmatch_loop.c (FCT): Adjust caller.
13861         * posix/regcomp.c (build_equiv_class): Likewise.
13862         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13863         * posix/regexec.c (check_node_accept_bytes): Likewise.
13864         * string/strcoll_l.c (STRCOLL): Likewise.
13865         * string/strxfrm_l.c (STRXFRM): Likewise.
13866
13867 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13868
13869         * Makefile.in: Remove CVSOPT handling.
13870         * configure.in: Remove use of AC_REVISION.
13871         * iconvdata/Makefile (distribute): No need to filter out CVS.
13872         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13873         handling.
13874
13875 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13876
13877         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13878         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13879         [USE_AS_STRNCASECMP_L]: Likewise.
13880         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13881         NO_TLS_DIRECT_SEG_REFS.
13882         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13883         Fix argument offsets for non-PIC.
13884         [USE_AS_STRNCASECMP_L]: Likewise.
13885         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13886         NO_TLS_DIRECT_SEG_REFS.
13887
13888 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13889
13890         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13891         O_CLOEXEC.
13892         * locale/loadlocale.c (_nl_load_locale): Likewise.
13893
13894 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13895
13896         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13897         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13898         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13899         (SYSCALL_GETTIME): Set errno on error.
13900
13901         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13902         count references to noai6ai_cached.
13903
13904 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13905
13906         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13907
13908         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13909         FD_CLOEXEC for /proc/self/maps.
13910
13911         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13912         FD_CLOEXEC for /proc/meminfo.
13913
13914         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13915         gai.conf.
13916
13917         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13918         FD_CLOEXEC for given file.
13919
13920         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13921
13922         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13923         FD_CLOEXEC for /etc/hosts.
13924         (_gethtent): Likewise.
13925
13926         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13927
13928         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13929         cancellation and set FD_CLOEXEC for /etc/netgroup.
13930
13931         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13932         reading /etc/publickey.
13933
13934         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13935         allow cancellation when reading /etc/group.
13936
13937         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13938         cancellation.
13939         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13940
13941         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13942         when using data file.
13943
13944         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13945
13946         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13947         (write_nis_obj): Use "c" and "e" in fopen.
13948
13949         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13950
13951         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13952
13953         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13954
13955         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13956
13957         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13958         locale.alias.
13959
13960         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13961
13962         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13963
13964         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13965
13966         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13967         file parsing and set FD_CLOEXEC.
13968
13969 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13970
13971         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13972
13973 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13974
13975         * malloc/arena.c (arena_get2): Don't call reused_arena when
13976         _int_new_arena failed.
13977
13978 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13979
13980         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
13981         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
13982         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
13983         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13984         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13985         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
13986         to compile strcasecmp and strncasecmp.
13987         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
13988         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
13989
13990         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
13991
13992 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
13993
13994         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
13995         locale-defines.sym to gen-as-const-headers.
13996         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
13997         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
13998         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
13999         to compile strcasecmp and strncasecmp.
14000         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14001         strcasecmp_l and strncasecmp_l.
14002         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14003         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14004         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14005         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14006         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14007         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14008         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14009         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14010         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14011         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14012         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14013
14014 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14015
14016         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14017         result of SYSDEP_GETTIME_CPU to retval.
14018         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14019         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14020
14021         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14022         variable.
14023
14024         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14025         mantissa words.
14026         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14027
14028         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14029         from unused variable.
14030
14031         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14032         DWARF definitions.
14033         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14034         for assembling.
14035
14036         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14037         over namespaces.
14038
14039         * sunrpc/rpc_prot.c (rejected): Fix case value.
14040
14041         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14042         unsigned long long int to avoid warnings in shift.
14043
14044         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14045         of use of trans.
14046         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14047         variable tmp.
14048
14049         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14050         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14051         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14052
14053         * nis/nis_table.c (nis_list): Use variable of correct type for
14054         result of __follow_path call.
14055
14056 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14057
14058         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14059         of math functions ceil, trunc, floor, round, and sqrt, when
14060         avaliable on the platform.
14061         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14062         name clash.
14063         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14064         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14065         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14066
14067 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14068
14069         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14070         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14071
14072 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14073
14074         * include/unistd.h: Fix __readlink return type.
14075         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14076
14077 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14078
14079         * stdlib/ucontext.h: Undo last change for makecontext.
14080
14081 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14082
14083         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14084
14085         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14086         * setjmp/setjmp.h: Mark functions as non-leaf.
14087         * setjmp/bits/setjmp2.h: Likewise.
14088         * stdlib/ucontext.h: Likewise.
14089
14090 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14091
14092         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14093         (reused_arena): Don't check arena limit.
14094         (arena_get2): Atomically check arena limit.
14095
14096 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14097
14098         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14099         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14100
14101         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14102         instructions.
14103
14104 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14105
14106         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14107         handler when locking.
14108
14109         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14110         Fix size of allocated buffer.
14111
14112 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14113
14114         [BZ #10103]
14115         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14116         declarations for long double functions.
14117         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14118
14119         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14120
14121 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14122
14123         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14124         installed.
14125
14126         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14127         is disabled.
14128
14129 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14130
14131         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14132
14133 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14134
14135         * include/alloca.h (stackinfo_alloca_round): Define.
14136         (extend_alloca): Use it.
14137         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14138         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14139         here.
14140
14141         * scripts/check-local-headers.sh: Ignore libaudit.h.
14142
14143         * nscd/Makefile (extra-objs): Make recursively expanded.
14144
14145 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14146
14147         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14148         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14149
14150         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14151         * posix/tst-rfc3484-2.c: Likewise.
14152         * posix/tst-rfc3484-3.c: Likewise.
14153
14154         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14155         process_vm_writev.
14156         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14157         process_vm_writev.
14158         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14159         process_vm_writev from libc using GLIBC_2.15 version.
14160
14161         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14162
14163 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14164
14165         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14166         stack usage.
14167
14168 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14169
14170         [BZ #13367]
14171         * nss/getent.c (initgroups_keys): Show error message in case no group
14172         names are given.
14173
14174         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14175         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14176         __bump_nl_timestamp.
14177         * nscd/connections (nscd_init): When host database is served open
14178         netlink socket and request notification about configuration changes.
14179         (main_loop_poll): Track netlink file descriptor and bump timestamp
14180         in case data becomes available.
14181         (main_loop_epoll): Likewise.
14182         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14183         (database_pers_head): Add extra_data fileds.
14184         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14185         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14186         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14187         Adjust caller.
14188         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14189         in6ai data, call __free_in6ai.
14190         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14191         Add -DHAVE_NETLINK.
14192         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14193         interface information.  Reuse previous data if netlink timestamp
14194         is not changed.
14195         (__bump_nl_timestamp): New function.
14196         (__free_in6ai): New function.
14197
14198 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14199
14200         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14201         close_not_cancel_no_status here.
14202         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14203
14204 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14205
14206         [BZ #13276]
14207         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14208         return value.
14209
14210         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14211         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14212         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14213
14214 2011-07-03  Andreas Jaeger  <aj@suse.de>
14215
14216         [BZ #10709]
14217         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14218         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14219         * math/libm-test.inc (sin_test): Add test case.
14220
14221 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14222
14223         [BZ #13337]
14224         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14225         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14226
14227         * elf/chroot_canon.c (chroot_canon): Cleanups.
14228
14229         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14230
14231         [BZ #13335]
14232         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14233         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14234
14235         * string/test-strchr.c: Make usable for strchrnul testing.
14236         * string/test-strchrnul.c: New file.
14237         * string/Makefile (strop-tests): Add strchrnul.
14238
14239         * po/it.po: Update from translation team.
14240         * po/es.po: Likewise.
14241
14242 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14243
14244         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14245         the three constants needed as parameters.  Drop the others.
14246         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14247         __m128i_strloadu_tolower.
14248         Create and initialize variable zero and use it in all the places
14249         where _mm_setzero_si128 was used.
14250
14251         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14252         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14253         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14254         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14255         anymore.
14256         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14257         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14258         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14259         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14260         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14261         __mpranred, __mptan.
14262         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14263         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14264         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14265         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14266         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14267         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14268         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14269         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14270         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14271
14272 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14273
14274         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14275         redefine if SHARED.
14276         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14277
14278         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14279         wide char related routines to wcsmbs subdir.
14280
14281 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14282
14283         [BZ #13344]
14284         * misc/sys/cdefs.h (__THROWNL): Define.
14285         * posix/unistd.h: Use __THREADNL instead of __THREAD
14286         for memory synchronization functions.
14287
14288 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14289
14290         [BZ #13349]
14291         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14292         doesn't exist.
14293         * manual/stdio.texi (Obstack Streams): Node removed.
14294
14295 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14296
14297         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14298         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14299         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14300
14301         * math/math_private.h (math_force_eval): Allow non-addressable
14302         arguments.
14303         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14304
14305 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14306
14307         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14308         file is not needed.
14309
14310         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14311         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14312         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14313         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14314         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14315         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14316         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14317         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14318         Add AVX variants.
14319         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14320         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14321         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14322         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14323         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14324         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14325         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14326         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14327         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14328         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14329         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14330         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14331         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14332         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14333         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14334         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14335         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14336         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14337         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14338
14339         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14340         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14341
14342         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14343         place.  Use VEX encoding when compiling for AVX.
14344
14345 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14346
14347         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14348         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14349
14350         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14351
14352 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14353
14354         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14355         useless if() expression.
14356         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14357         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14358         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14359         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14360         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14361         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14362         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14363         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14364         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14365         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14366         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14367         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14368         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14369         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14370         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14371         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14372         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14373         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14374         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14375
14376         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14377
14378 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14379
14380         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14381         condition.
14382         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14383
14384 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14385
14386         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14387         .text section.  Avoid duplicate constants.
14388         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14389         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14390         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14391         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14392         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14393         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14394         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14395         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14396         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14397         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14398         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14399         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14400         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14401         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14402         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14403         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14404         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14405         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14406         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14407         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14408         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14409         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14410         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14411         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14412         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14413         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14414         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14415         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14416         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14417         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14418         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14419         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14420         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14421         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14422         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14423         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14424         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14425         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14426         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14427         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14428         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14429         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14430         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14431         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14432         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14433
14434 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14435
14436         * sysdeps/x86_64/dla.h: Move to ...
14437         * sysdeps/x86_64/fpu/dla.h: ...here.
14438         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14439         situations.  Use __builtin_fma only for gcc 4.6 and up.
14440
14441         * config.make.in: Add have-mfma4 entry.
14442         * configure.in: Substitute libc_cv_cc_fma4.
14443         * math/Makefile (dbl-only-routines): Add sincostab.
14444         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14445         Use __sincostab not sincos.
14446         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14447         name is a macro.
14448         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14449         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14450         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14451         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14452         using __copysign.
14453         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14454         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14455         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14456         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14457         and __inv.
14458         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14459         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14460         __copysign.
14461         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14462         define aliases when function name is a macro.
14463         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14464         sysdeps/ieee754/dbl-64/sincos.tbl.
14465         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14466         fma4-enabled routines.
14467         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14468         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14469         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14470         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14471         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14472         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14473         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14474         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14475         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14476         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14477         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14478         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14479         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14480         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14481         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14482         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14483         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14484         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14485         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14486         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14487         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14488         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14489         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14490         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14491         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14492         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14493         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14494         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14495         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14496         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14497
14498         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14499         rename.
14500         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14501         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14502         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14503         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14504         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14505         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14506         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14507         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14508
14509 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14510
14511         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14512
14513 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14514
14515         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14516
14517         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14518         prediction.
14519         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14520
14521         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14522         Remove unused variable magic_bits.
14523         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14524
14525         * string/strnlen.c: Define and use STRNLEN macro.
14526         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14527         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14528         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14529         * wcsmbs/wcslen.c: Define and use WCSLEN.
14530         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14531         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14532         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14533         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14534         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14535         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14536         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14537
14538 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14539
14540         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14541         strnlen-sse2-no-bsf.
14542         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14543         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14544         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14545         Add strnlen support.
14546         (USE_AS_STRNLEN): New macro.
14547         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14548         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14549         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14550         * sysdeps/x86_64/wcslen.S: New file.
14551
14552 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14553
14554         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14555         XMM-moves are used for copying on small sizes.
14556
14557 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14558
14559         * wcsmbs/Makefile (strop-tests): Add wcschr.
14560         * wcsmbs/test-wcschr.c: New file.
14561         * string/test-strchr.c: Update.
14562         Add wcschr support.
14563         (WIDE): New macro.
14564
14565 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14566
14567         * wcsmbs/Makefile (strop-tests): Add wcslen.
14568         * wcsmbs/test-wcslen.c: New file.
14569         * string/test-strlen.c: Update.
14570         Add wcslen support.
14571         (WIDE): New macro.
14572
14573 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14574
14575         * po/it.po: Update from translation team.
14576
14577 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14578
14579         * sysdeps/x86_64/wcscmp.S: Update.
14580         Fix wrong comparison semantics.
14581         wcscmp shall use signed comparison not unsigned.
14582         Don't use substraction to avoid overflow bug.
14583         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14584         * wcsmbc/wcscmp.c: Likewise.
14585         * string/test-strcmp.c: Likewise.
14586         Add new tests to check cases with negative values.
14587
14588 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14589
14590         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14591         * sysdeps/x86_64/dla.h: ...here.  New file.
14592         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14593         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14594         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14595         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14596         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14597         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14598         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14599         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14600         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14601
14602 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14603
14604         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14605         __ynl_finite aliases.
14606
14607 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14608
14609         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14610
14611         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14612         define DLA_FMA.
14613         [DLA_FMA] (EMULV): Use DLA_FMA.
14614         [DLA_FMA] (MUL12): Use EMULV.
14615         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14616         that are not needed.
14617         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14618         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14619         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14620         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14621         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14622         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14623         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14624
14625 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14626
14627         * math/s_nan.c: Undef __nan.
14628         * math/s_nanf.c: Undef __nanf.
14629         * math/s_nanl.c: Undef __nanl.
14630         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14631         "math_private.h".
14632
14633 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14634
14635         * math/s_catan.c: Add branch predictions.
14636         * math/s_catanf.c: Likewise.
14637         * math/s_catanh.c: Likewise.
14638         * math/s_catanhf.c: Likewise.
14639         * math/s_catanhl.c: Likewise.
14640         * math/s_catanl.c: Likewise.
14641         * math/s_cexp.c: Likewise.
14642         * math/s_cexpf.c: Likewise.
14643         * math/s_cexpl.c: Likewise.
14644         * math/s_clog.c: Likewise.
14645         * math/s_clog10.c: Likewise.
14646         * math/s_clog10f.c: Likewise.
14647         * math/s_clog10l.c: Likewise.
14648         * math/s_clogf.c: Likewise.
14649         * math/s_clogl.c: Likewise.
14650         * math/s_csqrt.c: Likewise.
14651         * math/s_csqrtf.c: Likewise.
14652         * math/s_csqrtl.c: Likewise.
14653         * math/s_ctanf.c: Likewise.
14654         * math/s_ctanh.c: Likewise.
14655         * math/s_ctanhf.c: Likewise.
14656         * math/s_ctanhl.c: Likewise.
14657         * math/s_ctanl.c: Likewise.
14658
14659         * math/math_private.h: Define __nan, __nanf, __nanl.
14660         * math/s_cacosh.c: Include <math_private.h>.
14661         * math/s_cacoshl.c: Likewise.
14662         * math/s_casinh.c: Likewise.
14663         * math/s_casinhf.c: Likewise.
14664         * math/s_casinhl.c: Likewise.
14665         * math/s_ccos.c: Rely entire on ccosh.
14666         * math/s_ccosf.c: Rely entire on ccoshf.
14667         * math/s_ccosl.c: Rely entirely on ccoshl.
14668         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14669         Remove tests for FE_INVALID.
14670         * math/s_ccoshf.c: Likewise.
14671         * math/s_ccoshl.c: Likewise.
14672         * math/s_csin.c: Likewise.
14673         * math/s_csinf.c: Likewise.
14674         * math/s_csinh.c Likewise.
14675         * math/s_csinhf.c: Likewise.
14676         * math/s_csinhl.c: Likewise.
14677         * math/s_csinl.c: Likewise.
14678         * math/s_ctan.c: Likewise.
14679         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14680         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14681         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14682
14683 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14684
14685         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14686         compilation problems.
14687
14688         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14689         __builtin_expect.
14690
14691 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14692
14693         * sysdeps/i386/configure.in: Test for -mfma4 option.
14694         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14695         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14696         COMMON_CPUID_INDEX_80000001.
14697         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14698         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14699         use it if FMA3 is not supported.
14700         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14701
14702         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14703         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14704
14705 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14706
14707         [BZ #12892]
14708         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14709         it would create a cycle with a link time dependency.
14710
14711 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14712
14713         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14714         instruction.
14715         * string/Makefile (strop-tests): Add rawmemchr.
14716         * string/test-rawmemchr.c: New file.
14717
14718         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14719         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14720         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14721         when compiling str{,n}casecmp and when AVX is available.  Hook up
14722         new optimized code in initializers.
14723
14724 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14725
14726         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14727         __feraiseexcept instead of feraiseexcept.
14728
14729 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14730
14731         * math/math_private.h: Define defaults for libc_fetestexcept and
14732         libc_feupdateenv.
14733         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14734         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14735         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14736         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14737         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14738         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14739         libc_fetestexcept and libc_feupdateenv.
14740
14741         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14742         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14743         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14744         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14745         libc_feholdexcept_setround.
14746
14747         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14748         Add s_nearbyint-c and s_nearbyintf-c.
14749         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14750         nearbyintf inlines.
14751         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14752         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14753         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14754         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14755
14756         * math/math_private.h: Define defaults for libc_fegetround,
14757         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14758         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14759         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14760         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14761         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14762         standard functions.
14763         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14764         Remove comments and hacks for old compiler versions.
14765         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14766         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14767         libc_feholdexceptl.
14768
14769 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14770
14771         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14772         (__feraiseexcept_renamed): Add __NTH.
14773         (feraiseexcept): Add __NTH.  Rename local variables to fix
14774         namespace violations.
14775
14776 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14777
14778         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14779
14780         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14781
14782         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14783         recently added interfaces.
14784         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14785
14786         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14787         about macro parameter expansion.
14788
14789         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14790         __NO_MATH_INLINES is defined.  Cleanups.
14791
14792         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14793         and __floorf is target has SSE4.1.
14794         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14795         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14796         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14797         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14798
14799         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14800         name.
14801         (floorf): Likewise.
14802
14803         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14804
14805 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14806
14807         * misc/sys/cdefs.h: Fix last change.
14808
14809         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14810         database lookup.
14811
14812 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14813
14814         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14815
14816         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14817         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14818         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14819         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14820         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14821         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14822         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14823         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14824         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14825         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14826         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14827         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14828         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14829         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14830         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14831         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14832         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14833         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14834         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14835         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14836         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14837         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14838
14839         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14840         ceil, ceilf, floor, floorf.
14841
14842         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14843         Perform IRELATIVE relocations last.
14844
14845         * elf/do-rel.h: Add another parameter nrelative, replacing the
14846         local variable with the same name.  Change name of the function
14847         to end in Rel or Rela (uppercase).
14848         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14849         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14850         elf_dynamic_do_##reloc function.
14851
14852 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14853
14854         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14855         is sufficient, at least on modern CPUs.
14856
14857         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14858
14859         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14860         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14861
14862         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14863         __expl_finite.
14864         * math/bits/math-finite.h: Add entries for exp.
14865         * math/e_expl.c: Add __*_finite alias.
14866         * sysdeps/i386/fpu/e_exp.S: Likewise.
14867         * sysdeps/i386/fpu/e_expf.S: Likewise.
14868         * sysdeps/i386/fpu/e_expl.c: Likewise.
14869         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14870         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14871         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14872         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14873         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14874         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14875         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14876
14877         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14878         is sufficient, at least on modern CPUs.
14879
14880         * ctype/ctype-info.c (__ctype_init): Define.
14881         * include/ctype.h (__ctype_init): Declare.
14882         (__ctype_b_loc): The variable is always initialized.
14883         (__ctype_toupper_loc): Likewise.
14884         (__ctype_tolower_loc): Likewise.
14885         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14886         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14887
14888 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14889
14890         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14891
14892         * configure.in: Also look in $cxxmachine/include for C++ system
14893         headers.
14894
14895 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14896
14897         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14898         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14899         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14900         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14901         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14902         (USE_AS_WMEMCMP): New macro.
14903         Fixing indents.
14904         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14905         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14906         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14907         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14908         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14909         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14910         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14911         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14912         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14913         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14914         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14915         (USE_AS_WMEMCMP): New macro.
14916         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14917         * sysdeps/string/test-memcmp.c: Update.
14918         Fix simple_wmemcmp.
14919         Add new tests.
14920         * wcsmbs/wmemcmp.c: Update.
14921         (WMEMCMP): New macro.
14922         Fix overflow bug.
14923
14924 2011-10-12  Andreas Jaeger  <aj@suse.de>
14925
14926         [BZ #13268]
14927         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14928
14929 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14930
14931         * libio/iofwide.c (do_length): Avoid warning.
14932
14933         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14934
14935 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14936
14937         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14938
14939         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14940         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14941         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14942         * sysdeps/i386/i686/fpu/e_log.S: New file.
14943         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14944         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14945
14946         * ctype/ctype.h: Add support for inlined isXXX functions when
14947         compiling C++ code.
14948
14949 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14950
14951         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14952
14953         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14954
14955 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14956
14957         [BZ #13291]
14958         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14959
14960 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14961
14962         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14963         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14964         feraiseexcept.
14965
14966         * sysdeps/x86_64/memrchr.S: Check for zero size.
14967
14968         * string/stratcliff.c: Add memrchr tests.
14969
14970 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14971
14972         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14973         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14974         rawmemchr-sse2 rawmemchr-sse2-bsf.
14975         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14976         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
14977         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
14978         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
14979         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
14980         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
14981         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
14982         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14983         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
14984         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
14985         * string/memrchr.c (MEMRCHR): New macro.
14986
14987 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
14988
14989         Add integration with gcc's -ffinite-math-only and optimize wrapper
14990         functions in libm.
14991         * Versions.def: Define GLIBC_2.15 version for libm.
14992         * math/Makefile (headers): Add bits/math-finite.h.
14993         * math/bits/math-finite.h: New file.
14994         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
14995         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
14996         * math/e_acoshl.c: Add __*_finite alias.
14997         * math/e_acosl.c: Likewise.
14998         * math/e_asinl.c: Likewise.
14999         * math/e_atan2l.c: Likewise.
15000         * math/e_atanhl.c: Likewise.
15001         * math/e_coshl.c: Likewise.
15002         * math/e_exp10.c: Likewise.
15003         * math/e_exp10f.c: Likewise.
15004         * math/e_exp10l.c: Likewise.
15005         * math/e_exp2l.c: Likewise.
15006         * math/e_fmodl.c: Likewise.
15007         * math/e_gammal_r.c: Likewise.
15008         * math/e_hypotl.c: Likewise.
15009         * math/e_j0l.c: Likewise.
15010         * math/e_j1l.c: Likewise.
15011         * math/e_jnl.c: Likewise.
15012         * math/e_lgammal_r.c: Likewise.
15013         * math/e_log10l.c: Likewise.
15014         * math/e_log2l.c: Likewise.
15015         * math/e_logl.c: Likewise.
15016         * math/e_powl.c: Likewise.
15017         * math/e_sinhl.c: Likewise.
15018         * math/e_sqrtl.c: Likewise.
15019         * math/e_scalb.c: Completely rewritten and optimized.
15020         * math/e_scalbf.c: Likewise.
15021         * math/e_scalbl.c: Likewise.
15022         * math/w_acos.c: Likewise.
15023         * math/w_acosf.c: Likewise.
15024         * math/w_acosl.c: Likewise.
15025         * math/w_acosh.c: Likewise.
15026         * math/w_acoshf.c: Likewise.
15027         * math/w_acoshl.c: Likewise.
15028         * math/w_asin.c: Likewise.
15029         * math/w_asinf.c: Likewise.
15030         * math/w_asinl.c: Likewise.
15031         * math/w_atan2.c: Likewise.
15032         * math/w_atan2f.c: Likewise.
15033         * math/w_atan2l.c: Likewise.
15034         * math/w_atanh.c: Likewise.
15035         * math/w_atanhf.c: Likewise.
15036         * math/w_atanhl.c: Likewise.
15037         * math/w_exp10.c: Likewise.
15038         * math/w_exp10f.c: Likewise.
15039         * math/w_exp10l.c: Likewise.
15040         * math/w_fmod.c: Likewise.
15041         * math/w_fmodf.c: Likewise.
15042         * math/w_fmodl.c: Likewise.
15043         * math/w_j0.c: Likewise.
15044         * math/w_j0f.c: Likewise.
15045         * math/w_j0l.c: Likewise.
15046         * math/w_j1.c: Likewise.
15047         * math/w_j1f.c: Likewise.
15048         * math/w_j1l.c: Likewise.
15049         * math/w_jn.c: Likewise.
15050         * math/w_jnf.c: Likewise.
15051         * math/w_log.c: Likewise.
15052         * math/w_logf.c: Likewise.
15053         * math/w_logl.c: Likewise.
15054         * math/w_log10.c: Likewise.
15055         * math/w_log10f.c: Likewise.
15056         * math/w_log10l.c: Likewise.
15057         * math/w_log2.c: Likewise.
15058         * math/w_log2f.c: Likewise.
15059         * math/w_log2l.c: Likewise.
15060         * math/w_pow.c: Likewise.
15061         * math/w_powf.c: Likewise.
15062         * math/w_powl.c: Likewise.
15063         * math/w_remainder.c: Likewise.
15064         * math/w_remainderf.c: Likewise.
15065         * math/w_remainderl.c: Likewise.
15066         * math/w_scalb.c: Likewise.
15067         * math/w_scalbf.c: Likewise.
15068         * math/w_scalbl.c: Likewise.
15069         * math/w_sqrt.c: Likewise.
15070         * math/w_sqrtf.c: Likewise.
15071         * math/w_sqrtl.c: Likewise.
15072         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15073         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15074         used.
15075         * math/math_private.h: Declare __kernel_standard_f.
15076         * math/w_cosh.c: Remove cruft and optimize a bit.
15077         * math/w_coshf.c: Likewise.
15078         * math/w_coshl.c: Likewise.
15079         * math/w_exp2.c: Likewise.
15080         * math/w_exp2f.c: Likewise.
15081         * math/w_exp2l.c: Likewise.
15082         * math/w_hypot.c: Likewise.
15083         * math/w_hypotf.c: Likewise.
15084         * math/w_hypotl.c: Likewise.
15085         * math/w_lgamma.c: Likewise.
15086         * math/w_lgamma_r.c: Likewise.
15087         * math/w_lgammaf.c: Likewise.
15088         * math/w_lgammaf_r.c: Likewise.
15089         * math/w_lgammal.c: Likewise.
15090         * math/w_lgammal_r.c: Likewise.
15091         * math/w_sinh.c: Likewise.
15092         * math/w_sinhf.c: Likewise.
15093         * math/w_sinhl.c: Likewise.
15094         * math/w_tgamma.c: Likewise.
15095         * math/w_tgammaf.c: Likewise.
15096         * math/w_tgammal.c: Likewise.
15097         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15098         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15099         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15100         Minor optimizations.  Pretty printing.  Remove cruft.
15101         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15102         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15103         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15104         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15105         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15106         * sysdeps/i386/fpu/e_asin.S: Likewise.
15107         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15108         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15109         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15110         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15111         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15112         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15113         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15114         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15115         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15116         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15117         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15118         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15119         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15120         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15121         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15122         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15123         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15124         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15125         * sysdeps/i386/fpu/e_log.S: Likewise.
15126         * sysdeps/i386/fpu/e_log10.S: Likewise.
15127         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15128         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15129         * sysdeps/i386/fpu/e_log2.S: Likewise.
15130         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15131         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15132         * sysdeps/i386/fpu/e_logf.S: Likewise.
15133         * sysdeps/i386/fpu/e_logl.S: Likewise.
15134         * sysdeps/i386/fpu/e_pow.S: Likewise.
15135         * sysdeps/i386/fpu/e_powf.S: Likewise.
15136         * sysdeps/i386/fpu/e_powl.S: Likewise.
15137         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15138         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15139         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15140         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15141         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15142         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15143         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15144         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15145         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15146         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15147         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15148         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15149         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15150         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15151         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15152         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15153         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15154         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15155         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15156         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15157         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15158         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15159         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15160         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15161         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15162         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15163         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15164         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15165         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15166         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15167         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15168         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15169         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15170         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15171         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15172         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15173         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15174         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15175         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15176         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15177         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15178         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15179         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15180         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15181         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15182         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15183         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15184         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15185         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15186         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15187         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15188         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15189         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15190         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15191         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15192         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15193         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15194         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15195         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15196         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15197         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15198         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15199         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15200         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15201         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15202         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15203         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15204         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15205         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15206         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15207         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15208         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15209         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15210         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15211         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15212         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15213         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15214         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15215         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15216         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15217         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15218         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15219         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15220         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15221         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15222         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15223         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15224         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15225         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15226         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15227         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15228         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15229         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15230         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15231         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15232         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15233         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15234         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15235         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15236         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15237         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15238         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15239         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15240         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15241         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15242         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15243         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15244         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15245         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15246         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15247         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15248         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15249         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15250         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15251         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15252         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15253         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15254         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15255         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15256         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15257         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15258         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15259         (__isnanf): Likewise.
15260         (__isinf_ns): Likewise.
15261         (__isinf_nsf): Likewise.
15262         (__finite): Likewise.
15263         (__finitef): Likewise.
15264         (__ieee754_sqrt): Define as macro.
15265         (__ieee754_sqrtf): Define as macro.
15266         (__ieee754_sqrtl): Define as macro.
15267         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15268         inlined copy.
15269         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15270         __FINITE_MATH_ONLY__ consistent.
15271         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15272
15273 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15274
15275         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15276         of rawmemchr.
15277
15278         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15279
15280 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15281
15282         * po/ja.po: Update from translation team.
15283
15284 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15285
15286         * locale/programs/locarchive.c (prepare_address_space): New function.
15287         (create_archive, enlarge_archive, open_archive): Use it.
15288
15289         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15290         inside [SHARED], where it is used.
15291
15292         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15293
15294         * nss/getent.c (netgroup_keys): Remove unused variable.
15295         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15296
15297 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15298
15299         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15300         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15301         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15302         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15303         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15304         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15305         * math/Makefile (libm-calls): Add s_isinf_ns.
15306         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15307         * math/multc3.c: Likewise.
15308         * math/s_casin.c: Likewise.
15309         * math/s_casinf.c: Likewise.
15310         * math/s_casinl.c: Likewise.
15311         * math/s_ccos.c: Likewise.
15312         * math/s_ccosf.c: Likewise.
15313         * math/s_ccosl.c: Likewise.
15314         * math/s_ctan.c: Likewise.
15315         * math/s_ctanf.c: Likewise.
15316         * math/s_ctanh.c: Likewise.
15317         * math/s_ctanhf.c: Likewise.
15318         * math/s_ctanhl.c: Likewise.
15319         * math/s_ctanl.c: Likewise.
15320         * math/w_fmod.c: Likewise.
15321         * math/w_fmodf.c: Likewise.
15322         * math/w_fmodl.c: Likewise.
15323         * math/w_remainder.c: Likewise.
15324         * math/w_remainderf.c: Likewise.
15325         * math/w_remainderl.c: Likewise.
15326         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15327         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15328         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15329         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15330         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15331         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15332         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15333         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15334
15335         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15336         of the number.
15337         * stdio-common/printf_fphex.c: Likewise.
15338         * stdio-common/printf_size.c: Likewise.
15339
15340         * math/e_exp10.c: Include math_private.h using <...> not "...".
15341         * math/e_exp10f.c: Likewise.
15342         * math/e_exp10l.c: Likewise.
15343         * math/e_exp2l.c: Likewise.
15344         * math/e_j0l.c: Likewise.
15345         * math/e_j1l.c: Likewise.
15346         * math/e_jnl.c: Likewise.
15347         * math/e_lgammal_r.c: Likewise.
15348         * math/e_rem_pio2l.c: Likewise.
15349         * math/e_scalb.c: Likewise.
15350         * math/e_scalbf.c: Likewise.
15351         * math/e_scalbl.c: Likewise.
15352         * math/k_cosl.c: Likewise.
15353         * math/k_sinl.c: Likewise.
15354         * math/k_tanl.c: Likewise.
15355         * math/s_cacoshf.c: Likewise.
15356         * math/s_catan.c: Likewise.
15357         * math/s_catanf.c: Likewise.
15358         * math/s_catanh.c: Likewise.
15359         * math/s_catanhf.c: Likewise.
15360         * math/s_catanhl.c: Likewise.
15361         * math/s_catanl.c: Likewise.
15362         * math/s_ccosh.c: Likewise.
15363         * math/s_ccoshf.c: Likewise.
15364         * math/s_ccoshl.c: Likewise.
15365         * math/s_cexp.c: Likewise.
15366         * math/s_cexpf.c: Likewise.
15367         * math/s_cexpl.c: Likewise.
15368         * math/s_clog.c: Likewise.
15369         * math/s_clog10.c: Likewise.
15370         * math/s_clog10f.c: Likewise.
15371         * math/s_clog10l.c: Likewise.
15372         * math/s_clogf.c: Likewise.
15373         * math/s_clogl.c: Likewise.
15374         * math/s_csin.c: Likewise.
15375         * math/s_csinf.c: Likewise.
15376         * math/s_csinh.c: Likewise.
15377         * math/s_csinhf.c: Likewise.
15378         * math/s_csinhl.c: Likewise.
15379         * math/s_csinl.c: Likewise.
15380         * math/s_csqrt.c: Likewise.
15381         * math/s_csqrtf.c: Likewise.
15382         * math/s_csqrtl.c: Likewise.
15383         * math/s_ctan.c: Likewise.
15384         * math/s_ctanf.c: Likewise.
15385         * math/s_ctanh.c: Likewise.
15386         * math/s_ctanhf.c: Likewise.
15387         * math/s_ctanhl.c: Likewise.
15388         * math/s_ctanl.c: Likewise.
15389         * math/s_ldexp.c: Likewise.
15390         * math/s_ldexpf.c: Likewise.
15391         * math/s_ldexpl.c: Likewise.
15392         * math/s_significand.c: Likewise.
15393         * math/s_significandf.c: Likewise.
15394         * math/s_significandl.c: Likewise.
15395         * math/w_acos.c: Likewise.
15396         * math/w_acosf.c: Likewise.
15397         * math/w_acosh.c: Likewise.
15398         * math/w_acoshf.c: Likewise.
15399         * math/w_acoshl.c: Likewise.
15400         * math/w_acosl.c: Likewise.
15401         * math/w_asin.c: Likewise.
15402         * math/w_asinf.c: Likewise.
15403         * math/w_asinl.c: Likewise.
15404         * math/w_atan2.c: Likewise.
15405         * math/w_atan2f.c: Likewise.
15406         * math/w_atan2l.c: Likewise.
15407         * math/w_atanh.c: Likewise.
15408         * math/w_atanhf.c: Likewise.
15409         * math/w_atanhl.c: Likewise.
15410         * math/w_cosh.c: Likewise.
15411         * math/w_coshf.c: Likewise.
15412         * math/w_coshl.c: Likewise.
15413         * math/w_dremf.c: Likewise.
15414         * math/w_exp10.c: Likewise.
15415         * math/w_exp10f.c: Likewise.
15416         * math/w_exp10l.c: Likewise.
15417         * math/w_exp2.c: Likewise.
15418         * math/w_exp2f.c: Likewise.
15419         * math/w_fmod.c: Likewise.
15420         * math/w_fmodf.c: Likewise.
15421         * math/w_fmodl.c: Likewise.
15422         * math/w_hypot.c: Likewise.
15423         * math/w_hypotf.c: Likewise.
15424         * math/w_hypotl.c: Likewise.
15425         * math/w_j0.c: Likewise.
15426         * math/w_j0f.c: Likewise.
15427         * math/w_j0l.c: Likewise.
15428         * math/w_j1.c: Likewise.
15429         * math/w_j1f.c: Likewise.
15430         * math/w_j1l.c: Likewise.
15431         * math/w_jn.c: Likewise.
15432         * math/w_jnf.c: Likewise.
15433         * math/w_jnl.c: Likewise.
15434         * math/w_lgamma.c: Likewise.
15435         * math/w_lgamma_r.c: Likewise.
15436         * math/w_lgammaf.c: Likewise.
15437         * math/w_lgammaf_r.c: Likewise.
15438         * math/w_lgammal.c: Likewise.
15439         * math/w_lgammal_r.c: Likewise.
15440         * math/w_log.c: Likewise.
15441         * math/w_log10.c: Likewise.
15442         * math/w_log10f.c: Likewise.
15443         * math/w_log10l.c: Likewise.
15444         * math/w_log2.c: Likewise.
15445         * math/w_log2f.c: Likewise.
15446         * math/w_log2l.c: Likewise.
15447         * math/w_logf.c: Likewise.
15448         * math/w_logl.c: Likewise.
15449         * math/w_pow.c: Likewise.
15450         * math/w_powf.c: Likewise.
15451         * math/w_powl.c: Likewise.
15452         * math/w_remainder.c: Likewise.
15453         * math/w_remainderf.c: Likewise.
15454         * math/w_remainderl.c: Likewise.
15455         * math/w_scalb.c: Likewise.
15456         * math/w_scalbf.c: Likewise.
15457         * math/w_scalbl.c: Likewise.
15458         * math/w_sinh.c: Likewise.
15459         * math/w_sinhf.c: Likewise.
15460         * math/w_sinhl.c: Likewise.
15461         * math/w_sqrt.c: Likewise.
15462         * math/w_sqrtf.c: Likewise.
15463         * math/w_sqrtl.c: Likewise.
15464         * math/w_tgamma.c: Likewise.
15465         * math/w_tgammaf.c: Likewise.
15466         * math/w_tgammal.c: Likewise.
15467
15468         * po/ja.po: Update from translation team.
15469
15470 2011-09-29  Andreas Jaeger  <aj@suse.de>
15471
15472         [BZ #13179]
15473         * sunrpc/netname.c (netname2host): Fix logic.
15474
15475         [BZ #6779]
15476         [BZ #6783]
15477         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15478         correctly.
15479         * math/w_remainder.c (__remainder): Likewise.
15480         * math/w_remainderf.c (__remainderf): Likewise.
15481         * math/libm-test.inc (remainder_test): Add test cases.
15482
15483 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15484
15485         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15486         sdiv_qrnnd.
15487
15488 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15489
15490         * string/test-memcmp.c: Avoid unncessary #defines.
15491         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15492
15493 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15494
15495         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15496         Use new sse2 version for core i3 - i7 as it's faster
15497         than sse42 version.
15498         (bit_Prefer_PMINUB_for_stringop): New.
15499         * sysdeps/x86_64/rawmemchr.S: Update.
15500         Replace with faster SSE2 version.
15501         * sysdeps/x86_64/memrchr.S: New file.
15502         * sysdeps/x86_64/memchr.S: Update.
15503         Replace with faster SSE2 version.
15504
15505 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15506
15507         * elf/dl-load.c (lose): Add cast to avoid warning.
15508
15509 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15510
15511         * po/ca.po: Update from translation team.
15512
15513         * inet/getnetgrent_r.c: Hook up nscd.
15514         * nscd/Makefile (routines): Add nscd_netgroup.
15515         (nscd-modules): Add netgroupcache.
15516         (CFLAGS-netgroupcache.c): Define.
15517         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15518         (cache_search): Add const to second parameter.
15519         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15520         INNETGR.
15521         (dbs): Add netgrdb entry.
15522         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15523         (verify_persistent_db): Handle netgrdb.
15524         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15525         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15526         GETFDNETGR.
15527         (netgroup_response_header): Define.
15528         (innetgroup_response_header): Define.
15529         (datahead): Add netgroup_response_header and innetgroup_response_header
15530         elements.
15531         * nscd/nscd.conf: Add entries for netgroup cache.
15532         * nscd/nscd.h (dbtype): Add netgrdb.
15533         (_PATH_NSCD_NETGROUP_DB): Define.
15534         (netgroup_iov_disabled): Declare.
15535         (xmalloc, xcalloc, xrealloc): Move declarations here.
15536         (cache_search): Adjust prototype.
15537         Add netgroup-related prototypes.
15538         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15539         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15540         (__nscd_innetgr): Declare.
15541         * nscd/selinux.c (perms): Use access_vector_t as element type and
15542         add netgroup-related initializers.
15543         * nscd/netgroupcache.c: New file.
15544         * nscd/nscd_netgroup.c: New file.
15545         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15546         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15547         For four parameters use innetgr.
15548         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15549         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15550         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15551         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15552
15553         * nscd/connections.c (register_traced_file): Don't register file
15554         for disabled databases.
15555
15556 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15557
15558         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15559
15560         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15561         from tree and freeing node.
15562
15563 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15564
15565         * nss/nsswitch.c (__nss_database_lookup): Handle
15566         nss_parse_service_list out of memory case.
15567
15568 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15569
15570         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15571         out of memory case.
15572
15573 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15574
15575         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15576         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15577         pass it down.
15578         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15579         elf_machine_rela, elf_machine_lazy_rel.
15580         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15581         (ELF_DYNAMIC_DO_REL): Likewise.
15582         (ELF_DYNAMIC_DO_RELA): Likewise.
15583         (ELF_DYNAMIC_RELOCATE): Likewise.
15584         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15585         to ELF_DYNAMIC_DO_REL.
15586         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15587         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15588         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15589         elf_machine_rela.
15590         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15591         skip_ifunc, don't call ifunc function if non-zero.
15592         (elf_machine_rela): Likewise.
15593         (elf_machine_lazy_rel): Likewise.
15594         (elf_machine_lazy_rela): Likewise.
15595         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15596         (elf_machine_lazy_rel): Likewise.
15597         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15598         Likewise.
15599         (elf_machine_lazy_rel): Likewise.
15600         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15601         Likewise.
15602         (elf_machine_lazy_rel): Likewise.
15603         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15604         (elf_machine_lazy_rel): Likewise.
15605         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15606         (elf_machine_lazy_rel): Likewise.
15607         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15608         (elf_machine_lazy_rel): Likewise.
15609         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15610         (elf_machine_lazy_rel): Likewise.
15611         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15612         (elf_machine_lazy_rel): Likewise.
15613         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15614         (elf_machine_lazy_rel): Likewise.
15615
15616 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15617
15618         * nss/nss_files/files-init.c (_nss_files_init): Use static
15619         initialization for all the *_traced_file variables.
15620
15621 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15622
15623         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15624
15625 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15626
15627         [BZ #13226]
15628         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15629
15630 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15631
15632         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15633         Reread the line before reparsing it.
15634
15635 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15636
15637         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15638
15639 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15640             Maxim Kuvyrkov  <maxim@codesourcery.com>
15641             Joseph Myers  <joseph@codesourcery.com>
15642
15643         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15644         if needed for __stack_chk_guard.
15645
15646 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15647
15648         * sysdeps/posix/spawni.c (script_execute): Always define it.
15649         It will be optimized away if unused.
15650         (maybe_script_execute): New function.
15651         (__spawni): Call it.
15652
15653         * Makerules: Don't include tls.make.
15654         (config-tls): Always set to thread.
15655         * tls.make.c: File removed.
15656
15657 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15658
15659         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15660         * config.make.in (CPPFLAGS-config): New substituted variable.
15661
15662 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15663
15664         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15665
15666         [BZ #13192]
15667         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15668         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15669
15670 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15671
15672         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15673         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15674         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15675         (CALL_FAIL): Likewise.
15676         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15677         (CALL_FAIL): Macro removed.
15678         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15679
15680 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15681
15682         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15683         for __FINITE_MATH_ONLY__ == 1.
15684
15685 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15686
15687         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15688         __ieee754_sqrt instead of sqrt.
15689         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15690         __ieee754_sqrtf instead of sqrtf.
15691         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15692         __floorf instead of floorf.
15693         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15694         __floorf, __truncf instead of floorf, truncf.
15695
15696 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15697
15698         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15699
15700         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15701         __extern_always_inline.
15702         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15703         32-bit.
15704
15705 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15706
15707         * elf/rtld.c (dl_main): Also relocate in dependency order when
15708         doing symbol dependency testing.
15709
15710 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15711
15712         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15713         Always define `refsym'.
15714
15715 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15716
15717         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15718         (__FD_ELT): Renamed from __FDELT.
15719         * misc/bits/select2.h (__FD_ELT): Likewise.
15720         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15721         __FD_MASK instead of __FDELT, __FDMASK.
15722         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15723         Likewise.
15724         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15725         Likewise.
15726
15727         * elf/Makefile (gen-ldd): Fix pattern.
15728
15729         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15730         (init_tls): Likewise.
15731
15732 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15733
15734         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15735
15736 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15737
15738         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15739         `struct cmsghdr *' instead of `void *'.
15740         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15741         Likewise.
15742
15743 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15744
15745         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15746         if non-absolute.
15747         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15748         ldd_rewrite_script.
15749
15750 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15751
15752         * configure.in: Remove --with-tls option.
15753         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15754         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15755         out in case it is missing.
15756         * sysdeps/ia64/elf/configure.in: Likewise.
15757         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15758         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15759         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15760         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15761         * sysdeps/sh/elf/configure.in: Likewise.
15762         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15763         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15764         * sysdeps/x86_64/elf/configure.in: Likewise.
15765         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15766         * sysdeps/mach/hurd/tls.h: Likewise.
15767
15768         [BZ #13067]
15769         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15770
15771         [BZ #13090]
15772         * configure.in: Fix use of AC_INIT.
15773
15774         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15775
15776 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15777
15778         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15779         __set_errno.
15780         * malloc/hooks.c: Likewise.
15781
15782         [BZ #11929]
15783         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15784         variables statically.
15785         (narenas): Initialize.
15786         (list_lock): Initialize.
15787         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15788         initializtion of main_arena and list_lock.  Small cleanups.
15789         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15790         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15791         Add initializers to main_arena and mp_.
15792         (malloc_state): Remove pagesize member.  Change all users to use
15793         GLRO(dl_pagesize).
15794
15795         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15796         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15797         is always initialized.
15798
15799         * malloc/malloc.c: Removed unused configurations and dead code.
15800         * malloc/arena.c: Likewise.
15801         * malloc/hooks.c: Likewise.
15802         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15803
15804         * include/tls.h: Removed.  USE___THREAD must always be defined.
15805         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15806         * elf/dl-libc.c: Likewise.
15807         * elf/dl-tsd.c: Likewise.
15808         * include/errno.h: Likewise.
15809         * include/netdb.h: Likewise.
15810         * include/resolv.h: Likewise.
15811         * inet/herrno-loc.c: Likewise.
15812         * inet/herrno.c: Likewise.
15813         * malloc/arena.c: Likewise.
15814         * malloc/hooks.c: Likewise.
15815         * malloc/malloc.c: Likewise.
15816         * resolv/res-state.c: Likewise.
15817         * resolv/res_libc.c: Likewise.
15818         * sysdeps/i386/dl-machine.h: Likewise.
15819         * sysdeps/ia64/dl-machine.h: Likewise.
15820         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15821         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15822         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15823         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15824         * sysdeps/sh/dl-machine.h: Likewise.
15825         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15826         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15827         * sysdeps/unix/i386/sysdep.S: Likewise.
15828         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15829         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15830         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15831         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15832         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15833         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15834         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15835         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15836         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15837         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15838         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15839         * sysdeps/x86_64/dl-machine.h: Likewise.
15840         * tls.make.c: Likewise.
15841
15842         * configure.in: Remove --with-__thread option.  Make tests for
15843         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15844         tls_model attribute fail if no support is available.  Remove
15845         USE_IN_LIBIO.
15846         * Makeconfig: Adjust for dropped configure option.  All features are
15847         now mandatory.
15848         * Makerules: Likewise.
15849         * Versions.def: Likewise.
15850         * argp/argp-fmtstream.c: Likewise.
15851         * argp/argp-fmtstream.h: Likewise.
15852         * argp/argp-help.c: Likewise.
15853         * assert/assert.c: Likewise.
15854         * config.h.in: Likewise.
15855         * config.make.in: Likewise.
15856         * configure: Likewise.
15857         * configure.in: Likewise.
15858         * csu/Versions: Likewise.
15859         * csu/init.c: Likewise.
15860         * elf/tst-audit2.c: Likewise.
15861         * elf/tst-tls10.c: Likewise.
15862         * elf/tst-tls10.h: Likewise.
15863         * elf/tst-tls11.c: Likewise.
15864         * elf/tst-tls12.c: Likewise.
15865         * elf/tst-tls14.c: Likewise.
15866         * elf/tst-tlsmod11.c: Likewise.
15867         * elf/tst-tlsmod12.c: Likewise.
15868         * elf/tst-tlsmod13.c: Likewise.
15869         * elf/tst-tlsmod13a.c: Likewise.
15870         * elf/tst-tlsmod14a.c: Likewise.
15871         * elf/tst-tlsmod15b.c: Likewise.
15872         * elf/tst-tlsmod16a.c: Likewise.
15873         * elf/tst-tlsmod16b.c: Likewise.
15874         * elf/tst-tlsmod7.c: Likewise.
15875         * elf/tst-tlsmod8.c: Likewise.
15876         * elf/tst-tlsmod9.c: Likewise.
15877         * gmon/gmon.c: Likewise.
15878         * grp/fgetgrent_r.c: Likewise.
15879         * grp/putgrent.c: Likewise.
15880         * hurd/fopenport.c: Likewise.
15881         * include/libc-symbols.h: Likewise.
15882         * include/tls.h: Likewise.
15883         * intl/gettextP.h: Likewise.
15884         * intl/loadinfo.h: Likewise.
15885         * locale/global-locale.c: Likewise.
15886         * locale/localeinfo.h: Likewise.
15887         * mach/devstream.c: Likewise.
15888         * malloc/arena.c: Likewise.
15889         * malloc/set-freeres.c: Likewise.
15890         * misc/err.c: Likewise.
15891         * misc/getttyent.c: Likewise.
15892         * misc/mntent_r.c: Likewise.
15893         * posix/getopt.c: Likewise.
15894         * posix/wordexp.c: Likewise.
15895         * pwd/fgetpwent_r.c: Likewise.
15896         * resolv/Versions: Likewise.
15897         * resolv/res_hconf.c: Likewise.
15898         * shadow/fgetspent_r.c: Likewise.
15899         * shadow/putspent.c: Likewise.
15900         * stdio-common/printf_fphex.c: Likewise.
15901         * stdio-common/tmpfile.c: Likewise.
15902         * stdlib/abort.c: Likewise.
15903         * stdlib/fmtmsg.c: Likewise.
15904         * sunrpc/auth_unix.c: Likewise.
15905         * sunrpc/clnt_perr.c: Likewise.
15906         * sunrpc/clnt_tcp.c: Likewise.
15907         * sunrpc/clnt_udp.c: Likewise.
15908         * sunrpc/clnt_unix.c: Likewise.
15909         * sunrpc/openchild.c: Likewise.
15910         * sunrpc/svc_simple.c: Likewise.
15911         * sunrpc/svc_tcp.c: Likewise.
15912         * sunrpc/svc_udp.c: Likewise.
15913         * sunrpc/svc_unix.c: Likewise.
15914         * sunrpc/xdr.c: Likewise.
15915         * sunrpc/xdr_array.c: Likewise.
15916         * sunrpc/xdr_rec.c: Likewise.
15917         * sunrpc/xdr_ref.c: Likewise.
15918         * sunrpc/xdr_stdio.c: Likewise.
15919
15920 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15921
15922         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15923
15924 2011-07-03  Andreas Jaeger  <aj@suse.de>
15925
15926         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15927         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15928         regenerate with gen-libm-tests.pl.
15929
15930 2010-05-12  Petr Baudis  <pasky@suse.cz>
15931
15932         [BZ #11589]
15933         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15934         around j0() zero points by switching to j1().
15935         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15936         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15937         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15938         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15939
15940 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15941
15942         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15943         instead of 0.
15944         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15945         instead of 0.                              .
15946         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15947         Patch in part by Pavel Roskin <proski@gnu.org>.
15948
15949         [BZ #13138]
15950         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15951         realloc.
15952         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15953         Free memory block if necessary.
15954
15955         [BZ #12847]
15956         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15957         be NULL.  Don't lock in this case.
15958
15959 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15960
15961         * elf/elf.h (ELFOSABI_GNU): New macro.
15962         (ELFOSABI_LINUX): Define to that.
15963
15964 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15965
15966         * string/strncat.c (strncat): Undef the symbol in case it has been
15967         defined in bits/string.h.
15968
15969 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15970
15971         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15972
15973         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15974         link map.
15975
15976 2011-08-17  Andreas Jaeger  <aj@suse.de>
15977
15978         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
15979
15980 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
15981             Ian Lance Taylor  <iant@google.com>
15982
15983         * math/libm-test.inc (lround_test): New testcase.
15984         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
15985
15986 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
15987
15988         * Makefile: Remove support for automatic cvs check-ins.
15989         * Makerules: Likewise.
15990         * config.make.in: Likewise.
15991         * configure.in: Likewise.
15992         * intl/Makefile: Likewise.
15993         * locale/Makefile: Likewise.
15994         * po/Makefile: Likewise.
15995         * posix/Makefile: Likewise.
15996         * sysdeps/gnu/Makefile: Likewise.
15997         * sysdeps/mach/hurd/Makefile: Likewise.
15998         * sysdeps/sparc/sparc32/Makefile: Likewise.
15999
16000         [BZ #13118]
16001         * posix/Makefile (bug-regex32-ENV): Define.
16002         Patch by John Stanley <jpsinthemix@verizon.net>.
16003
16004         * misc/Makefile (headers): Add bits/select2.h.
16005         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16006         * misc/bits/select2.h: New file.
16007         * include/bits/select2.h: New file.
16008         * debug/Makefile (routines): Add fdelt_chk.
16009         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16010         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16011         FD_ISSET.
16012         * debug/fdelt_chk.c: New file.
16013
16014         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16015         * wcsmbs/test-wmemcmp.c: Likewise.
16016         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16017         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16018
16019 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16020
16021         * string/Makefile (strop-tests): Add memcmp.
16022         * string/test-wmemcmp.c: New file.
16023         * string/test-memcmp.c: Add wmemcmp support.
16024
16025 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16026
16027         [BZ #13153]
16028         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16029         2011-07-19 change.
16030
16031         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16032         garbage value in a __mach_port_mod_refs call in the cases of the
16033         task-self and thread-self ports.
16034
16035 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16036
16037         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16038
16039 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16040
16041         * elf/dl-load.c (lose): Check for non-null L.
16042
16043 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16044
16045         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16046
16047         * elf/dl-libc.c (dlerror_run): Pass back error code from
16048         dl_catch_error.
16049
16050         [BZ #13123]
16051         * elf/dl-load.c (lose): Free l_origin if it is valid.
16052
16053         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16054         names.
16055         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16056         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16057         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16058         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16059         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16060         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16061
16062 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16063
16064         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16065         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16066         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16067         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16068         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16069         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16070         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16071         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16072         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16073         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16074
16075 2011-08-15  Alan Modra  <amodra@gmail.com>
16076
16077         [BZ #13092]
16078         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16079         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16080         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16081         ppc_mcount to static-only-routines.
16082         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16083         __mcount_internal.
16084         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16085         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16086
16087 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16088
16089         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16090         for finite and infinity parameters.
16091
16092 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16093
16094         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16095         and add nop instructions for throughput optimization.
16096         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16097
16098 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16099
16100         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16101         aligned copy for power7 with vector-scalar instructions.
16102         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16103
16104 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16105
16106         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16107         AVX check.
16108
16109 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16110
16111         [BZ #13144]
16112         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16113         last change.
16114
16115 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16116
16117         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16118         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16119         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16120         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16121         clock_gettime.
16122
16123 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16124
16125         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16126         Forgot to demangle the pointer.
16127
16128         * sysdeps/i386/sysdep.h: Define atom_text_section.
16129         * sysdeps/x86_64/sysdep.h: Likewise.
16130         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16131         section with atom_text_section.
16132         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16133         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16134         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16135         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16136         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16137
16138         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16139         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16140         already be defined.  Change to take two parameters and don't assign
16141         result to variable.  Adjust all users.
16142         Define INTERNAL_GETTIME if not already defined.
16143         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16144         call.
16145         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16146         HAVE_CLOCK_GETTIME_VSYSCALL.
16147         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16148
16149         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16150         gettimeofday vsyscall, just use time.
16151
16152 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16153
16154         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16155         <errno.h>.
16156
16157 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16158
16159         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16160         syscall on x86-64.
16161         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16162         syscall.
16163         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16164         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16165         syscall if possible.
16166
16167 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16168
16169         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16170         e_ident.  Don't pass to find_mapsXX.
16171         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16172
16173 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16174
16175         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16176         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16177         * sysdeps/x86_64/multiarch/strchr.S: Update.
16178         Check bit_slow_BSF bit.
16179         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16180         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16181         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16182
16183 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16184
16185         [BZ #13134]
16186         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16187         before glibc 2.15.
16188         (tryshell): Define.
16189         (__spawni): Change last parameter to be flag.  Test
16190         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16191         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16192         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16193         * posix/spawni.c: Likewise.
16194         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16195         * posix/spawnp.c: Likewise.  Change normal version to use
16196         SPAWN_XFLAGS_USE_PATH.
16197         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16198         SPAWN_XFLAGS_TRY_SHELL.
16199
16200         [BZ #13150]
16201         * posix/glob.h: Remove gcc 1.x support.
16202
16203         [BZ #13068]
16204         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16205
16206 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16207
16208         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16209         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16210         strrchr-sse2-bsf
16211         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16212         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16213         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16214         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16215         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16216         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16217
16218 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16219
16220         * sysdeps/x86_64/wcscmp.S: New file.
16221
16222         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16223         wcscmp-c wcscmp-sse2
16224         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16225         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16226         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16227         * wcsmbs/wcscmp.c: Allow renaming.
16228
16229 2011-09-05  David S. Miller  <davem@davemloft.net>
16230
16231         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16232         stack slot, rather than the struct return pointer slot.
16233         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16234         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16236         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16237
16238 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16239
16240         * po/ja.po: Update from translation team.
16241
16242         [BZ #13144]
16243         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16244         kernel in 64-bit binaries.
16245
16246 2011-09-01  David S. Miller  <davem@davemloft.net>
16247
16248         * elf/elf.h (HWCAP_SPARC_*): Move to..
16249         * sysdeps/sparc/sysdep.h: this new file and add new values.
16250         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16251         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16252         _DL_HWCAP_COUNT to 24.
16253         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16254         entries.
16255         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16256         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16257         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16258         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16259         instead of magic constants.
16260         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16261
16262 2011-08-31  David S. Miller  <davem@davemloft.net>
16263
16264         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16265         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16266         Reimplement to do errno handling inline.
16267         (SYSCALL_ERROR_HANDLER): New macro.
16268         (__SYSCALL_STRING): Do not do errno handling in asm.
16269         (__CLONE_SYSCALL_STRING): Delete.
16270         (__INTERNAL_SYSCALL_STRING): Delete.
16271         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16272         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16273         (PSEUDO): Reimplement to do errno handling inline.
16274         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16275         (SYSCALL_ERROR_HANDLER): New macro.
16276         (__SYSCALL_STRING): Do not do errno handling in asm.
16277         (__CLONE_SYSCALL_STRING): Delete.
16278         (__INTERNAL_SYSCALL_STRING): Delete.
16279         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16280         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16281         i386.
16282         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16283         (inline_syscall*): Add 'err' argument.
16284         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16285         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16286         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16287         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16288
16289         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16290         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16291
16292 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16293
16294         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16295
16296 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16297
16298         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16299         directive.
16300
16301 2011-08-24  David S. Miller  <davem@davemloft.net>
16302
16303         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16304
16305 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16306
16307         * elf/Makefile: Add rules to build and run unload8 test.
16308         * elf/unload8.c: New file.
16309         * elf/unload8mod1.c: New file.
16310         * elf/unload8mod1x.c: New file.
16311         * elf/unload8mod2.c: New file.
16312         * elf/unload8mod3.c: New file.
16313
16314         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16315         it wasn't used.
16316
16317 2011-08-23  David S. Miller  <davem@davemloft.net>
16318
16319         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16320         subtract stack bias.
16321         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16322         %sp not %fp in calculations.
16323         (_JMPBUF_UNWINDS_ADJ): Likewise.
16324
16325         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16326         (aio_suspend): Call it to force an exception region around the
16327         AIO_MISC_WAIT() invocation.
16328
16329 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16330
16331         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16332         backslash.
16333
16334 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16335
16336         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16337         protection macro.
16338         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16339         and <dl-machine.h>.
16340         (Elf64_FuncDesc): Remove.
16341
16342 2011-08-22  David S. Miller  <davem@davemloft.net>
16343
16344         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16345         sigaltstack check, add missing cfi directives.
16346         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16347         missing cfi directives, and sigaltstack handling.
16348
16349 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16350
16351         [BZ #11724]
16352         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16353         object is seen twice.
16354         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16355
16356         * elf/Makefile (distribute): Add tst-initorder2.c.
16357         (tests): Add tst-initorder2.
16358         (modules-names): Add tst-initorder2a tst-initorder2b
16359         tst-initorder2c tst-initorder2d.  Add rules to build them.
16360         ($(objpfx)tst-initorder2.out): New rule.
16361         * elf/tst-initorder2.c: New file.
16362         * elf/tst-initorder2.exp: New file.
16363
16364 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16365
16366         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16367
16368         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16369         dependencies back to end of function.
16370
16371         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16372         $(elfobjdir)/ld.so.
16373
16374 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16377         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16378         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16379         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16380         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16381         of __vdso_gettimeofday.
16382         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16383         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16384         attribute_hidden.
16385         (_libc_vdso_platform_setup): Remove initialization of
16386         __vdso_gettimeofday and __vdso_time.
16387
16388 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16389
16390         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16391         and fgetc_unlocked.
16392         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16393         getc_unlocked.
16394
16395         * elf/dl-open.c (add_to_global): Report additions to the global scope
16396         for LD_DEBUG=scopes.
16397         (dl_open_worker): Also print scope of newly loaded dependencies.
16398         (_dl_show_scope): Indicate if there is no scope.
16399
16400         [BZ #13114]
16401         * stdio-common/Makefile (tests): Add bug24.
16402         * stdio-common/bug24.c: New file.
16403
16404 2011-08-19  Andreas Jaeger  <aj@suse.de>
16405
16406         [BZ #13114]
16407         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16408         non-existant file when using close-on-exec mode.
16409
16410 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16411
16412         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16413         the very first instruction.
16414
16415         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16416         the CFI state in the end.
16417         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16418         inclusion of dl-trampoline.h.
16419         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16420
16421 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16422
16423         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16424         expectations for long double.
16425
16426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16427         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16428
16429 2011-08-14  David S. Miller  <davem@davemloft.net>
16430
16431         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16432         artificual limit depends upon the system page size.
16433
16434 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16435
16436         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16437         * resolv/Makefile: Define CFLAGS-libresolv.
16438
16439 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16440
16441         * nss/makedb.c (compute_tables): Make variables used in nested
16442         function static.
16443
16444 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16445
16446         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16447         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16448         if buffer was too small.
16449
16450         * elf/pldd.c (main): Attach to all threads in the process.
16451         Rewrite /proc handling to use *at functions.
16452
16453 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16454
16455         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16456         specifies first scope to show.
16457         (dl_open_worker): Update callers.  Move printing scope of new
16458         object to before the relocation.
16459         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16460         * sysdeps/generic/ldsodefs.h: Update declaration.
16461
16462         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16463         string for the scope number.
16464
16465 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16466
16467         * nscd/servicescache.c (cache_addserv): Make sure written is always
16468         initialized.
16469
16470 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16471
16472         * sysdeps/i386/i486/bits/atomic.h
16473         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16474         statement expression, so as to suppress "set but not used" warning.
16475         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16476
16477         * string/strncat.c (STRNCAT): Use prototype definition.
16478
16479         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16480         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16481         -Iprograms here.
16482         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16483         (localedef-modules): Add localedef.
16484         (locale-modules): Add locale.
16485
16486         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16487         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16488         to avoid a warning.
16489
16490 2011-08-14  David S. Miller  <davem@davemloft.net>
16491
16492         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16493         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16494
16495 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16496
16497         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16498         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16499         * elf/rtld.c (dl_main): Set l_name of vDSO.
16500         Call _dl_show_scope when DL_DEBUG_SCOPES.
16501         (process_dl_debug): Recognize scopes flag and also set it for all.
16502         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16503         Declare _dl_show_scope.
16504
16505         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16506         (do_dlopen): Pass caller_dlopen to dl_open.
16507         (__libc_dlopen_mode): Initialize caller_dlopen.
16508
16509         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16510         of libc.  Make tolower call locale-independent.  Optimize a bit by
16511         using isdigit instead of isalnum.
16512         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16513
16514 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16515
16516         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16517         was a dependency or dynamically loaded.
16518
16519 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16520
16521         * intl/l10nflist.c: Allow architecture-specific pop function.
16522         * sysdeps/x86_64/l10nflist.c: New file.
16523
16524         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16525         classification.
16526
16527 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16528
16529         * include/dirent.h: Add libc_hidden_proto for scandirat and
16530         scandirat64.  Don't declare __scandirat64.
16531         * dirent/scandirat.c: Add libc_hidden_def.
16532         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16533         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16534
16535 2011-08-10  David S. Miller  <davem@davemloft.net>
16536
16537         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16538         enum.
16539         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16540         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16541         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16542
16543 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16544
16545         * Versions.def [libc]: Add GLIBC_2.15.
16546         * dirent/Makefile (routines): Add scandirat and scandirat64.
16547         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16548         GLIBC_2.15.
16549         * dirent/dirent.h: Declare scandirat and scandirat64.
16550         * dirent/scandirat.c: New file.
16551         * dirent/scandirat64.c: New file.
16552         * sysdeps/wordsize-64/scandirat.c: New file.
16553         * sysdeps/wordsize-64/scandirat64.c: New file.
16554         * dirent/opendir.c: Define opendirat.
16555         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16556         using scandirat.
16557         * dirent/scandir64.c: Adjust for scandir.c change.
16558         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16559         __scandirat64, and __scandir_cancel_handler.
16560         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16561         additional parameter and use openat instead of open (outside of ld.so).
16562         Add new __opendir as wrapper around __opendirat.
16563         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16564         here without requiring old scandirat implementation.
16565
16566 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16567
16568         * dirent/scandir.c (cancel_handler): Renamed to
16569         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16570         defined.  Adjust users.
16571         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16572         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16573
16574 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16575
16576         * string/test-string.h (IMPL): Use __STRING to expand name and then
16577         stringify it.
16578
16579         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16580         of cleanups.
16581
16582 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16583
16584         * string/Makefile: Update.
16585         (strop-tests): Append strncat.
16586         * string/test-wcscmp.c: New file.
16587         New comprehensive test for wcscmp.
16588         * string/test-strcmp.c: Update.
16589         (WIDE): New define.
16590
16591 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16592
16593         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16594         line.
16595
16596 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16597
16598         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16599         encoding to ACE if AI_IDN.
16600
16601 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16602
16603         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16604         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16605
16606 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16607
16608         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16609         Fix overflow bug in strncat.
16610         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16611
16612         * string/test-strncat.c: Update.
16613         Add new tests for checking overflow bugs.
16614
16615 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16616
16617         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16618         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16619         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16620         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16621         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16622         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16623         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16624         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16625         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16626
16627         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16628         (USE_AS_STRCAT): Define.
16629         Add strcat and strncat support.
16630         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16631
16632 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16633
16634         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16635         __n bigger than INT_MAX+1.
16636         (__strncmp_g): Likewise.
16637
16638 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16639
16640         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16641         * libio/stido.h: Likewise.
16642
16643         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16644         (AF_NFC): Define.
16645         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16646         (AF_NFC): Define.
16647
16648         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16649         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16650         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16651         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16652         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16653
16654         [BZ #13021]
16655         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16656         installed.
16657
16658         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16659         typo.
16660         (_dl_x86_64_save_sse): Likewise.
16661
16662 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16663
16664         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16665         OSXSAVE.
16666         (_dl_x86_64_save_sse): Likewise.
16667
16668         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16669
16670         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16671
16672 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16673
16674         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16675         change.
16676         (_dl_x86_64_save_sse): Use correct AVX check.
16677
16678 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16679
16680         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16681         bug in strncpy/strncat.
16682         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16683
16684 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16685
16686         * string/tester.c (test_strcat): Add tests for different alignments
16687         of source and destination.
16688         (test_strncat): Likewise.
16689
16690 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16691
16692         [BZ #12852]
16693         * posix/glob.c (glob): Check passed in values before using them in
16694         expressions to avoid some overflows.
16695         (glob_in_dir): Likewise.
16696
16697         [BZ #13007]
16698         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16699         check for AVX enablement so that we don't crash with old kernels and
16700         new hardware.
16701         * elf/tst-audit4.c: Add same checks here.
16702         * elf/tst-audit6.c: Likewise.
16703
16704         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16705
16706 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16707
16708         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16709
16710 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16711
16712         * po/cs.po: Update from translation team.
16713         * po/bg.po: Likewise.
16714
16715 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16716
16717         * misc/sys/cdefs.h: Add support for const attribute.
16718         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16719         to gnu_dev_{major,minor,makedev} functions.
16720
16721 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16722
16723         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16724
16725 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16726
16727         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16728         strlen results.
16729
16730 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16731
16732         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16733         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16734         register in order to avoid conflicts with the soft frame pointer
16735         being held in r11 when necessary.
16736         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16737         (INTERNAL_VSYSCALL_NCS): Likewise.
16738
16739 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16740
16741         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16742         * elf/dl-fini.c (_dl_fini): Adjust caller.
16743         * elf/dl-close.c (_dl_close_worker): Likewise.
16744         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16745
16746 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16747
16748         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16749         "aux_cache->nlibs < 0".
16750
16751         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16752         in the reload-count case.
16753
16754 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16755
16756         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16757         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16758         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16759         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16760         * sysdeps/x86_64/multiarch/strcat.S: New file.
16761         * sysdeps/x86_64/multiarch/strncat.S: New file.
16762         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16763         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16764         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16765         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16766         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16767         (USE_AS_STRCAT): Define.
16768         Add strcat and strncat support.
16769         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16770         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16771         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16772         * string/strncat.c: Update.
16773         (USE_AS_STRNCAT): Define.
16774         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16775         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16776         and i7.
16777         * sysdeps/x86_64/multiarch/init-arch.h
16778         (bit_Prefer_PMINUB_for_stringop): New.
16779         (index_Prefer_PMINUB_for_stringop): Likewise.
16780         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16781         bit_Prefer_PMINUB_for_stringop.
16782
16783 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16784
16785         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16786         buffer64.
16787         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16788         of casting of buffer.
16789         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16790         buffer32 and buffer64.
16791         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16792         writes instead of casting of buffer.
16793         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16794         buffer32.
16795         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16796         casting of buffer.
16797
16798 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16799
16800         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16801
16802 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16803
16804         * nscd/nscd.c (termination_handler): Don't do anything for a database
16805         if it has not yet been initialized.
16806
16807 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16808
16809         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16810
16811 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16812
16813         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16814
16815 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16816
16817         * po/nl.po: Update from translation team.
16818         * po/sv.po: Likewise.
16819
16820 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16821
16822         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16823         now disallowed by GCC.
16824
16825         * configure.in (use-default-link): Default to yes if a test -shared
16826         link meets our qualifications.
16827         * configure: Regenerated.
16828
16829         * config.make.in (output-format): New variable.
16830         * configure.in: Check for ld --print-output-format support.
16831         * configure: Regenerated.
16832         * Makerules ($(common-objpfx)format.lds)
16833         [$(output-format) != unknown]: Just use $(output-format),
16834         instead of the linker-script munging.
16835
16836 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16837
16838         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16839         of $(common-objpfx)shlib.lds.
16840         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16841
16842         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16843         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16844
16845         * configure.in (-z relro check): Adjust test code to add a large
16846         writable data section after it.
16847         * configure: Regenerated.
16848
16849 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16850
16851         * configure.in (-z relro check): Fix test code to make the variable
16852         truly const.
16853         * configure: Regenerated.
16854
16855 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16856
16857         * nscd/nscd.h (struct traced_file): Define.
16858         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16859         elements.  Add traced_files.
16860         (inotify_fd): Declare.
16861         (register_traced_file): Declare.
16862         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16863         (inotify_fd): Export.
16864         (resolv_conf_descr): Remove.
16865         (nscd_init): Move inotify descriptor creation to main.
16866         Don't register files for notification here.
16867         (register_traced_file): New function.
16868         (invalidate_cache): Don't use reset_res to determine whether to call
16869         res_init, go through the list of registered files.
16870         (main_loop_poll): The inotify descriptors are now stored in the
16871         structures for the traced files.
16872         (main_loop_epoll): Likewise
16873         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16874         to __nss_disable_nscd.
16875         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16876         for a database anymore.  Check the records for all the registered
16877         files instead.
16878         * nss/Makefile (libnss_files-routines): Add files-init.
16879         (libnss_db-routines): Add db-init.
16880         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16881         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16882         * nss/nss_db/db-init.c: New file.
16883         * nss/nss_files/files-init.c: New file.
16884         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16885         __nss_lookup_function.
16886         (__nss_lookup_function): Call nss_load_library.
16887         (nss_load_all_libraries): New function.
16888         (__nss_disable_nscd): Take parameter with callback function for files
16889         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16890         used for the cached services.
16891         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16892         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16893         options for features to all the files in nscd.
16894
16895         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16896
16897 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16898
16899         * csu/elf-init.c (__libc_csu_init): Comment typo.
16900
16901 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16902
16903         * po/pl.po: Update from translation team.
16904         * po/ja.po: Likewise.
16905         * po/ru.po: Likewise.
16906         * po/ko.po: Likewise.
16907         * po/fr.po: Likewise.
16908
16909 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16910
16911         * configure.in (.ctors/.dtors header and trailer check):
16912         Use an empirical test on a built program.
16913         * configure: Regenerated.
16914
16915         * configure.in (-z relro check): Use an empirical test on a built DSO.
16916         Detect, but do not require, on ia64.
16917         * configure: Regenerated.
16918
16919         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16920         Update tests that use readelf to use $READELF instead.
16921         * configure: Regenerated.
16922
16923 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16924
16925         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16926         if the result is not used.
16927
16928 2011-07-05  Andreas Jaeger  <aj@suse.de>
16929
16930         [BZ#9696]
16931         * stdlib/tst-strtod.c: Add testcase.
16932
16933 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16934
16935         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16936         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16937         The latter has a higher limit.  Take additional parameter to pass to
16938         the new function.
16939         (__pathconf): Pass file to __statfs_link_max.
16940         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16941         __statfs_link_max.
16942         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16943         __statfs_link_max.
16944
16945         [BZ #12868]
16946         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16947         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16948         Handle Lustre.
16949         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16950         (__statfs_filesize_max): Likewise.
16951         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16952
16953 2011-07-05  Andreas Jaeger  <aj@suse.de>
16954
16955         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16956
16957 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16958
16959         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16960         `status' variable.
16961         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16962         Likewise.
16963
16964 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16965
16966         * Makefile (strop-tests): Add strncat.
16967         * string/test-strncat.c: New file.
16968
16969 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16970
16971         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16972
16973 2011-06-21  Andreas Jaeger  <aj@suse.de>
16974
16975         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16976         Copy rule from iconvdata/Makefile.
16977
16978 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16979
16980         [BZ #12922]
16981         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
16982         but no long options are defined, just return 'W'.
16983
16984 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
16985
16986         [BZ #9696]
16987         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
16988
16989 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
16990
16991         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
16992         netgroups to read.
16993         (innetgr): Likewise.
16994
16995 2011-07-05  Roland McGrath  <roland@hack.frob.com>
16996
16997         * config.make.in (install_root): Default to $(DESTDIR).
16998
16999 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17000
17001         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17002
17003 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17004
17005         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17006
17007         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17008         containing directory rather than embedding absolute directory names.
17009
17010         * scripts/check-local-headers.sh: Rewritten using awk.
17011         Match by word, not by line.  Print error messages for matches.
17012         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17013
17014         * Makerules [shlib-lds-flags empty]:
17015         ($(common-objpfx)libc_pic.opts): New target.
17016         ($(common-objpfx)libc_pic.os.clean): New target.
17017         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17018
17019         * config.make.in (OBJCOPY): New variable.
17020         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17021         * configure: Regenerated.
17022
17023         * config.make.in (use-default-link): New variable.
17024         * configure.in (use_default_link): Grok --with-default-link to set it.
17025         * configure: Regenerated.
17026         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17027         (shlib-lds, shlib-lds-flags): Define to empty.
17028
17029         * Makerules (shlib-lds): New variable.
17030         (shlib-lds-flags): New variable.
17031         (build-shlib, build-moduile, build-module-asneeded): Use it.
17032         ($(common-objpfx)libc.so): Use $(shlib-lds).
17033         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17034         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17035
17036         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17037         DT_FLAGS/DT_FLAGS_1 with zero flags.
17038
17039         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17040         linker script munging.
17041
17042 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17043
17044         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17045         as 128-bit value.
17046         * crypt/sha512.c (sha512_process_block): Perform total addition using
17047         128-bit if possible.
17048         (__sha512_finish_ctx): Likewise.
17049         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17050         as 64-bit value.
17051         * crypt/sha256.c (SWAP64): Define.
17052         (sha256_process_block): Perform total addition using 64-bit if
17053         possible.
17054         (__sha256_finish_ctx): Likewise.
17055
17056 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17057
17058         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17059         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17060         * nscd/hstcache.c (cache_addhst): Likewise.
17061         * nscd/grpcache.c (cache_addgr): Likewise.
17062         * nscd/aicache.c (addhstaiX): Likewise
17063         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17064
17065 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17066
17067         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17068         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17069         * nscd/hstcache.c (cache_addhst): Likewise.
17070         * nscd/grpcache.c (cache_addgr): Likewise.
17071         * nscd/aicache.c (addhstaiX): Likewise
17072
17073 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17074
17075         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17076         domain only when needed.
17077
17078 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17079
17080         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17081         is always restored.
17082
17083 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17084
17085         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17086         are re-adding the entry.
17087         * nscd/servicescache.c (cache_addserv): Likewise.
17088
17089 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17090
17091         * sysdeps/generic/dl-irel.h: fix protection against multiple
17092         inclusions.
17093         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17094
17095 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17096
17097         [BZ #12935]
17098         * malloc/memusage.sh: Fix quoting in message.
17099         * debug/xtrace.sh: Likewise.
17100
17101         * configure.in: Remove support for --experimental-malloc option, make
17102         it the default.
17103         * config.make.in: Likewise.
17104         * malloc/Makefile: Likewise.
17105
17106 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17107
17108         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17109         two-byte characters.
17110
17111 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17112
17113         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17114         AC_CACHE_CHECK invocation.
17115         * configure: Regenerated.
17116
17117         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17118
17119 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17120
17121         [BZ #12350]
17122         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17123         bit from old_res_options.
17124
17125         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17126
17127         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17128         value type for setfct.
17129
17130 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17131
17132         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17133         __gettimeofday instead of gettimeofday.
17134
17135 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17136
17137         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17138
17139 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17140
17141         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17142
17143         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17144         info.
17145
17146 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17147
17148         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17149         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17150         strcpy-sse2-unaligned strncpy-sse2-unaligned
17151         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17152         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17153         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17154         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17155         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17156         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17157         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17158         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17159         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17160         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17161         (STRCPY): Support SSE2 and SSSE3 versions.
17162
17163 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17164
17165         [BZ #12874]
17166         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17167         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17168         kernels which artificially limit size of requests.
17169
17170 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17171
17172         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17173         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17174         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17175         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17176         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17177         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17178         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17179         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17180         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17181         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17182         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17183         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17184         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17185         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17186         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17187         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17188         Enable unaligned load optimization for Intel Core i3, i5 and i7
17189         processors.
17190         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17191         Define.
17192         (index_Fast_Unaligned_Load): Define.
17193         (HAS_FAST_UNALIGNED_LOAD): Define.
17194
17195 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17196
17197         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17198
17199 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17200
17201         [BZ #12907]
17202         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17203         until it is clear that the information is realy needed.
17204         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17205
17206 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17207
17208         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17209
17210 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17211
17212         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17213         /sys/devices/system/cpu/online if it is usable.
17214
17215         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17216         reading the information from the /proc filesystem to once a second.
17217
17218 2011-06-21  Andreas Jaeger  <aj@suse.de>
17219
17220         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17221         NULL after inclusion of kernel headers.
17222
17223 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17224
17225         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17226         calls to internal_setent.
17227
17228         [BZ #12885]
17229         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17230         addresses using gethostbyname4_r ignore IPv4 addresses.
17231
17232         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17233         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17234
17235         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17236
17237 2011-06-20  David S. Miller  <davem@davemloft.net>
17238
17239         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17240         inclusions.
17241         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17242
17243         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17244         (elf_irel): Use it.
17245         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17246         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17247         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17248         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17249         * sysdeps/x86_64/dl-irel.h: Likewise.
17250
17251         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17252         * elf/dl-sym.c: Likewise.
17253
17254 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17255
17256         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17257         need to dereference resplen2.
17258
17259 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17260
17261         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17262
17263 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17264
17265         * Makeconfig: Define vardbdir and inst_vardbdir.
17266         * nss/Makefile: Add rules to install db-Makefile.
17267
17268         * nss/nss_db/db-XXX.c: Cleanup.
17269
17270         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17271         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17272         GLIBC_PRIVATE.
17273         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17274         * nss/makedb.c: Implement -g option to specify that value strings
17275         are generated and should not be added to table iterated over for
17276         get*ent calls.
17277         * nss/nss_db/db-initgroups.c: New file.
17278
17279         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17280         interface.
17281
17282         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17283         (internal_getgrouplist): Adjust to name change.
17284         Update use_initgroups_entry if this is not the first call.
17285         * nss/databases.def: Add initgroups entry.
17286
17287         * nss/makedb.c (compute_tables): Check result of multiple hash table
17288         sizes to minimize maximum chain length.
17289
17290 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17291
17292         * Versions.def: Add entry for libnss_db.
17293         * shlib-versions: Likewise.
17294         * nss/Makefile: Add rules to build libnss_db.
17295         * nss/Versions: Add libnss_db information.  Organize libnss_files
17296         entries better.
17297         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17298         makedb progra.  Some minor improvements to generate smaller files.
17299         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17300         here from...
17301         * nss/makedb.c: ...here.
17302         Improve database format to be smaller and require less memory at
17303         runtime.
17304         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17305         db anymore.
17306         * nss/nss_db/db-netgrp.c: Likewise.
17307         * nss/nss_db/db-open.c: Likewise.
17308         * nss/nss_files/flies-XXX.x: Adjust comments.
17309         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17310         * nss/nss_files/files-grp.c: Likewise.
17311         * nss/nss_files/files-hosts.c: Likewise.
17312         * nss/nss_files/files-network.c: Likewise.
17313         * nss/nss_files/files-proto.c: Likewise.
17314         * nss/nss_files/files-pwd.c: Likewise.
17315         * nss/nss_files/files-rpc.c: Likewise.
17316         * nss/nss_files/files-service.c: Likewise.
17317         * nss/nss_files/files-sgrp.c: Likewise.
17318         * nss/nss_files/files-spwd.c: Likewise.
17319         * nss/nss_db/db-alias.c: Removed.
17320         * nss/nss_db/dummy-db.h: Removed.
17321
17322 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17323
17324         * nss/makedb.c: Rewritten to not use database library.
17325         * nss/Makefile: Update to build new makedb program.
17326
17327 2011-06-14  Andreas Jaeger  <aj@suse.de>
17328
17329         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17330         memset declaration.
17331
17332 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17333
17334         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17335         tmpbuf.
17336
17337 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17338
17339         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17340         * elf/Makefile ($(objpfx)ld.so): Likewise.
17341
17342         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17343         Don't list ld.so twice in dependencies.
17344
17345         * posix/bug-regex31.c: Include <stdlib.h>.
17346
17347         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17348
17349         * nis/nss_compat/compat-spwd.c
17350         (getspent_next_nss_netgr): Remove unused variable.
17351         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17352
17353         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17354         nonmembers" output to use the right array.
17355
17356         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17357
17358         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17359
17360         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17361         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17362         * catgets/gencat.c (read_input_file): Likewise.
17363         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17364
17365         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17366         variable definition inside #if's controlling its use.
17367
17368         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17369
17370         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17371
17372         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17373
17374         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17375         unreachable code.
17376
17377         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17378
17379         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17380         * configure: Regenerated.
17381
17382         * Makerules: Revert last change.
17383         * elf/Makefile: Likewise.
17384
17385 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17386
17387         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17388         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17389         (reloc-link): Likewise.
17390
17391 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17392
17393         * elf/Makefile: Add rules to build pldd.
17394         * elf/pldd.c: New file.
17395         * elf/pldd-xx.c: New file.
17396
17397 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17398
17399         * version.h: Update for 2.15 development version.
17400
17401 2011-06-07  David S. Miller  <davem@davemloft.net>
17402
17403         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17404         ifuncs.
17405         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17406         elf_machine_lazy_rel): Likewise.
17407         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17408         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17409         elf_machine_lazy_rel): Likewise.
17410         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17411         dl_hwcap via passed in argument.
17412         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17413         Likewise.
17414
17415 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17416
17417         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17418
17419 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17420
17421         [BZ #12849]
17422         * manual/fdl-1.1.texi: New file, verbatim from:
17423         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17424         * manual/lgpl-2.1.texi: New file, verbatim from:
17425         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17426         * manual/Makefile (licenses): New variable, list those new file names.
17427         (texis): Use it.
17428         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17429
17430         * manual/fdl.texi: File removed.
17431         * manual/lesser.texi: File removed.
17432         * manual/libc.texinfo (Copying, Documentation License):
17433         Use new @include file names, put @appendix directive before @include.
17434
17435 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17436
17437         [BZ #12841]
17438         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17439         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17440         (mq_open): Add __NTH.
17441
17442 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17443
17444         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17445         Assume Intel Core i3/i5/i7 processor if AVX is available.
17446
17447 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17448
17449         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17450         typo.
17451
17452 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17453
17454         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17455         memory.  Use alloca_account.  Fix memory leak when retrying.
17456
17457 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17458
17459         * version.h (RELEASE): Bump for 2.14 release.
17460         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17461
17462         * config.make.in (RANLIB): Remove entry.
17463
17464 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17465
17466         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17467         (libc.pot): Work around missing support for .ksh extension in xgettext.
17468
17469         [BZ #12684]
17470         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17471         if both request failed.
17472         (send_dg): In case of server errors clear resplen or *resplen2.
17473
17474         [BZ #12454]
17475         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17476         when there are multiple maps.
17477         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17478         (_dl_fini): Remove test here.
17479
17480         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17481
17482 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17483
17484         [BZ #12350]
17485         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17486         bit from old_res_options.
17487         (gaih_inet): Likewise.
17488
17489         [BZ #11099]
17490         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17491         as signed.
17492
17493         * resolv/res_init.c (res_setoptions): Make the code more compact.
17494
17495         [BZ #11558]
17496         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17497         set RES_USEVC.
17498
17499         [BZ #11634]
17500         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17501
17502         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17503
17504         [BZ #11781]
17505         * malloc/malloc.h: Declare malloc hook variables as volatile.
17506
17507         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17508         in last patch.
17509
17510         [BZ #11799]
17511         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17512         raise in the comment.
17513         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17514         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17515         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17516
17517 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17518
17519         [BZ #12811]
17520         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17521         grow the buffers more if it already has to be sufficient.
17522         (build_wcs_upper_buffer): Likewise.
17523         * posix/regexec.c (check_matching): Likewise.
17524         (clean_state_log_if_needed): Likewise.
17525         (extend_buffers): Don't enlarge buffers beyond size of the input
17526         buffer.
17527         Patches mostly by Emil Wojak <emil@wojak.eu>.
17528         * posix/bug-regex32.c: New file.
17529         * posix/Makefile (tests): Add bug-regex32.
17530
17531         * locale/findlocale.c (_nl_find_locale): Return right away if
17532         _nl_explode_name failed.
17533         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17534
17535         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17536
17537         * debug/xtrace.sh: Unify messages.
17538         * malloc/memusage.sh: Likewise.
17539
17540         [BZ #12813]
17541         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17542         time symbol from vDSO.  Substitute with vsyscall if not available.
17543         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17544         __vdso_time.
17545
17546         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17547         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17548         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17549         Add sendmmsg and internal_sendmmsg.
17550         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17551         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17552         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17553
17554         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17555         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17556         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17557
17558 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17559
17560         [BZ #12813]
17561         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17562         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17563         available.
17564         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17565         __vdso_getcpu.
17566
17567         [BZ #12814]
17568         * iconvdata/Makefile (tests): Add bug-iconv9.
17569         * iconvdata/bug-iconv9.c: New file.
17570
17571 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17572
17573         [BZ #12814]
17574         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17575
17576 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17577
17578         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17579         (struct user_regs_struct): Change intcs field back to cs.
17580
17581 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17582
17583         * po/ja.po: Update from translation team.
17584
17585 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17586
17587         [BZ #12795]
17588         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17589         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17590
17591 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17592
17593         * stdlib/longlong.h: Update from GCC.
17594
17595 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17596
17597         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17598         parameter name.
17599         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17600         Add parameter name.
17601         (__sysconf): Pass it down.
17602
17603 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17604
17605         [BZ #12671]
17606         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17607         some situations.
17608         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17609         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17610         add in in __libc_use_alloca calls.  Adjust callers.
17611         (glob): Use malloc in some situations.
17612
17613         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17614         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17615         pltexit.
17616
17617 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17618
17619         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17620         and CLOCK_BOOTTIME_ALARM.
17621
17622         [BZ #12782]
17623         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17624         is returned.
17625
17626         * string/_strerror.c (__strerror_r): Print negative errors as signed
17627         numbers.
17628
17629         [BZ #12777]
17630         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17631         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17632         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17633
17634         * configure.in: Fix typo in redirection and correct removal of test
17635         files in two cases.
17636
17637         [BZ #12788]
17638         * locale/setlocale.c (new_composite_name): Fix test to check for
17639         identical name of all categories.
17640
17641         [BZ #12792]
17642         * libio/filedoalloc.c (local_isatty): New function.
17643         (_IO_file_doallocate): Use local_isatty.
17644         * stdio-common/perror.c (perror): In case a new stream is used
17645         forward the stream error.
17646         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17647         error flag.
17648
17649 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17650
17651         [BZ #11869]
17652         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17653         alloca.
17654         * include/alloca.h (extend_alloca_account): Define.
17655
17656         [BZ #11857]
17657         * posix/regex.h: Fix comments with documentation of user-accessible
17658         fields after compilation and describe correct free'ing of pattern
17659         after re_compile_pattern.
17660         Patch by Reuben Thomas <rrt@sc3d.org>.
17661
17662 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17663
17664         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17665         and -mno-altivec to prevent the compiler from using Altivec and/or
17666         VSX instructions when the corresponding registers are not available.
17667
17668 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17669
17670         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17671
17672 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17673
17674         * libio/freopen.c (freopen): Use __dup2, not dup2.
17675         * libio/freopen64.c (freopen64): Likewise.
17676
17677 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17678
17679         [BZ #12775]
17680         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17681         * math/Makefile (tests): Add test-powl.
17682         (CFLAGS-test-powl.c): Define.
17683         * math/test-powl.c: New file.
17684
17685 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17686
17687         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17688
17689 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17690
17691         [BZ #11837]
17692         * iconvdata/gb18030.c: Update to GB18020-2005.
17693
17694 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17695
17696         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17697         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17698         Patch by Aharon Robbins <arnold@skeeve.com>.
17699
17700         [BZ #11892]
17701         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17702         on the stack.
17703
17704         [BZ #11895]
17705         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17706         through underflows.
17707
17708         [BZ #12766]
17709         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17710         point to strings before performing equality test for error_one_per_line
17711         mode.
17712
17713         [BZ #11697]
17714         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17715
17716         [BZ #11820]
17717         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17718         (struct user_fpregs_struct): Avoid __uint*_t types.
17719
17720         [BZ #6420]
17721         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17722         symbol info.  Use it instead of calling _dl_addr locally.
17723         (lock_and_info): New function.
17724         (tr_freehook): Call lock_and_info and pass symbol info as additional
17725         parameter to tr_where.
17726         (tr_mallochook): Likewise.
17727         (tr_reallochook): Likewise.
17728         (tr_memalignhook): Likewise.
17729
17730         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17731         used and couldn't be at all thread-safe.
17732
17733 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17734
17735         * libio/freopen.c (freopen): Don't close old file descriptor
17736         before the new one is opened.  Instead dup the new file descriptor
17737         to the old one after the new stream is created.
17738         * libio/freopen64.c (freopen64): Likewise.
17739         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17740         * libio/fileops.c (_IO_new_file_close_it): Handle new
17741         _IO_FLAGS2_NOCLOSE flag.
17742         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17743         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17744         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17745         _IO_FLAGS2_NOCLOSE flag.
17746         * include/unistd.h: Add hidden_proto for dup3.
17747         Define __have_dup3.
17748         * io/dup3.c: Define hidden symbol.
17749         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17750
17751         [BZ #7101]
17752         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17753         when an incomplete long option is used.
17754         * posix/tst-getopt_long1.c: New file.
17755         * posix/Makefile (tests): Add tst-getopt_long1.
17756
17757         [BZ #10138]
17758         * scripts/config.guess: Update from autoconf-2.68.
17759         * scripts/config.sub: Likewise.
17760
17761         [BZ #10157]
17762         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17763         tests into ...
17764         (has_cpuclock): ...this.  New function.
17765         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17766         macro here based on has_cpuclock code.
17767
17768         [BZ #10149]
17769         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17770         First byte (not low byte) is now always NUL.
17771         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17772
17773         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17774         Use non-cancelable interfaces.
17775
17776         [BZ #9809]
17777         * locale/iso-639.def: Add entry for Sorani.
17778
17779         [BZ #11901]
17780         * include/stdlib.h: Move include protection to the right place.
17781         Define abort_msg_s.  Declare __abort_msg with it.
17782         * stdlib/abort.c (__abort_msg): Adjust type.
17783         * assert/assert.c (__assert_fail_base): New function.  Majority
17784         of code from __assert_fail.  Allocate memory for __abort_msg with
17785         mmap.
17786         (__assert_fail): Now call __assert_fail_base.
17787         * assert/assert-perr.c: Remove bulk of implementation.  Use
17788         __assert_fail_base.
17789         * include/assert.hL Declare __assert_fail_base.
17790         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17791         mmap.
17792         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17793
17794 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17795
17796         [BZ #11952]
17797         [BZ #12453]
17798         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17799         until all modules are registered in the DTV.
17800         * elf/Makefile: Add rules to build and run tst-tls19.
17801         * elf/tst-tls19.c: New file.
17802         * elf/tst-tls19mod1.c: New file.
17803         * elf/tst-tls19mod2.c: New file.
17804         * elf/tst-tls19mod3.c: New file.
17805         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17806
17807         [BZ #12083]
17808         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17809         correctly.
17810
17811         [BZ #12601]
17812         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17813         two-byte sequence errors.
17814         * iconvdata/Makefile (tests): Add bug-iconv8.
17815         * iconvdata/bug-iconv8.c: New file.
17816
17817         [BZ #12626]
17818         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17819         buf2 definition.
17820
17821         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17822
17823         [BZ #12432]
17824         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17825         (dummy_getcfa): New function.
17826         (init): Get _Unwind_GetCFA address, use dummy if not found.
17827         (backtrace_helper): In recursion check, also check whether CFA changes.
17828         (__backtrace): Completely initialize arg.
17829
17830         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17831         storing incomplete byte sequence in state object.  Avoid testing for
17832         guaranteed too small input if we know there is enough data available.
17833
17834 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17835
17836         * Makeconfig (+link-pie): Indent.
17837         * Rules (binaries-pie): Define if $(have-fpie) and
17838         $(build-shared).
17839         (binaries-shared): Also filter out $(binaries-pie).
17840         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17841         * nscd/Makefile (others-pie): Add nscd.
17842         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17843         ($(objpfx)nscd): Remove command override.
17844         * login/Makefile (others-pie): Add pt_chown.
17845         ($(objpfx)pt_chown): Remove command override.
17846         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17847         remove command overrides.
17848
17849 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17850
17851         * libio/tst_putwc.c: Fix error messages.
17852
17853         [BZ #12724]
17854         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17855         currently writing and seek to current position when not.
17856         * libio/Makefile (tests): Add bug-fclose1.
17857         * libio/bug-fclose1.c: New file.
17858
17859 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17860
17861         [BZ #12511]
17862         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17863         don't set DF_1_NODELETE here.
17864         (do_lookup_x): When entering new entry test for copy relocation
17865         and if necessary set DF_1_NODELETE flag.
17866         * elf/tst-unique4.cc: New file.
17867         * elf/tst-unique4.h: New file.
17868         * elf/tst-unique4lib.cc: New file.
17869         * elf/Makefile: Add rules to build and run tst-unique4.
17870         Patch by Piotr Bury <pbury@goahead.com>.
17871
17872 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17873
17874         [BZ #12052]
17875         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17876
17877         [BZ #12625]
17878         * misc/mntent_r.c (addmntent): Flush the stream after the output
17879
17880         [BZ #12393]
17881         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17882         (is_trusted_path_normalize): Skip initial colon.  Append slash
17883         to empty buffer.  Duplicate is_trusted_path code but allow
17884         constructed patch to be prefix.
17885         (is_dst): Allow $ORIGIN followed by /.
17886         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17887         Correct testing of result of is_trusted_path_normalize
17888         (decompose_rpath): Fix warning.
17889
17890 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17891
17892         [BZ #11257]
17893         * grp/initgroups.c (internal_getgrouplist): When we found the service
17894         list through the initgroups entry in nsswitch.conf do not always
17895         continue on a successful lookup.  Don't always use the
17896         __nss_group_database value if it is set.
17897         * nss/nsswitch.conf (initgroups): Change action for successful db
17898         lookup to continue for compatibility.
17899
17900 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17901
17902         [BZ #11532]
17903         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17904         and CP774 modules.
17905         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17906         and CP774 modules.
17907         * iconvdata/tst-tables.sh: Likewise.
17908         * iconvdata/cp770.c: New file.
17909         * iconvdata/cp771.c: New file.
17910         * iconvdata/cp772.c: New file.
17911         * iconvdata/cp773.c: New file.
17912         * iconvdata/cp774.c: New file.
17913         * iconvdata/testdata/CP770: New file.
17914         * iconvdata/testdata/CP770..UTF8: New file.
17915         * iconvdata/testdata/CP771: New file.
17916         * iconvdata/testdata/CP771..UTF8: New file.
17917         * iconvdata/testdata/CP772: New file.
17918         * iconvdata/testdata/CP772..UTF8: New file.
17919         * iconvdata/testdata/CP773: New file.
17920         * iconvdata/testdata/CP773..UTF8: New file.
17921         * iconvdata/testdata/CP774: New file.
17922         * iconvdata/testdata/CP774..UTF8: New file.
17923
17924         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17925         END CHARMAP line.
17926         * iconvdata/gen-8bit-gap.sh: Likewise.
17927         * iconvdata/gen-8bit.sh: Likewise.
17928
17929         * locale/iso-639.def: Add ary entry.
17930
17931         [BZ #11258]
17932         * locale/C-translit.h.in: Add U20A1 transliteration.
17933
17934         [BZ #12178]
17935         * locale/iso-639.def: Add wae entry.
17936         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17937
17938         [BZ #12545]
17939         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17940         for n.
17941
17942         [BZ #12711]
17943         * locale/C-translit.h.in: Add entry for U20B9.
17944         Patch by pravin.d.s@gmail.com.
17945
17946 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17947
17948         [BZ #12713]
17949         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17950         ENAMETOOLONG use generic getcwd.
17951         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17952         in rtld.  Use *stat64.
17953         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17954         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17955         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17956         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17957         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17958         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17959         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17960         __fstatat64 macros.
17961         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17962         * dirent/rewinddir.c: Add libc_hidden_def.
17963         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17964         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17965
17966         * include/dirent.h (__alloc_dir): Add flags parameter.
17967         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17968         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17969         __alloc_dir.
17970         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17971         from fdopendir if O_CLOEXEC is already set.
17972
17973 2011-03-15  Alan Modra  <amodra@gmail.com>
17974
17975         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17976         l_tls_firstbyte_offset non-zero.  Save padding offset in
17977         l_tls_firstbyte_offset for later use.
17978         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
17979         freeing static tls block.
17980
17981 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
17982
17983         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
17984         where #ifdef was intended.  The intent is to prevent ARG_MAX from
17985         being defined by the kernel headers.
17986
17987 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
17988
17989         [BZ #12734]
17990         * resolv/resolv.h: Define RES_NOTLDQUERY.
17991         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
17992         no-tld-query and set RES_NOTLDQUERY.
17993         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
17994         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
17995         modern BIND to search name as TLD unless forbidden.
17996
17997 2011-05-07  Petr Baudis  <pasky@suse.cz>
17998             Ulrich Drepper  <drepper@gmail.com>
17999
18000         [BZ #12393]
18001         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18002         (is_trusted_path): ...to here.
18003         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18004         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18005         using is_trusted_path_normalize() in setuid scripts.
18006
18007 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18008
18009         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18010         __BEGIN/__END_DECLS.
18011
18012 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18013
18014         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18015         NSS_STATUS_NOTFOUND if no record was found.
18016
18017 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18018
18019         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18020         (headers-not-in-tirpc): Remove rpc/netdb.h
18021         * resolv/netdb.h: Revert last change.
18022
18023 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18024
18025         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18026         circular dependency between libgcc.a and libc.a.
18027
18028 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18029
18030         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18031         * nis/Makefile: Don't install rpcsvc/*.
18032         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18033         instead of <rpc/types.h>.
18034         (MAXHOSTNAMELEN): Define.
18035
18036 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18037
18038         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18039
18040 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18041
18042         [BZ #12714]
18043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18044         gethostbyname4_r when IPv6 results are possible.
18045
18046 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18047
18048         [BZ #12723]
18049         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18050         _PC_PIPE_BUF handling.
18051
18052 2011-04-30  Bruno Haible  <bruno@clisp.org>
18053
18054         [BZ #12717]
18055         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18056         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18057         to 'int'.
18058         * inet/getnameinfo.c (getnameinfo): Likewise.
18059
18060 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18061
18062         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18063         to groups setting in database lookup.
18064         * nss/nsswitch.conf: Add initgroups entry.
18065
18066 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18067
18068         [BZ #12685]
18069         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18070         mode string.
18071         Patch by Eric Blake <eblake@redhat.com>.
18072
18073 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18074
18075         * sunrpc/Makefile (need-export-routines): Add svc_run.
18076         (routines): Remove svc_run.
18077         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18078         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18079         * sunrpc/svc_run.c (svc_run): Likewise.
18080         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18081
18082 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18083
18084         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18085         problem in reallocation in last patch.
18086
18087 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18088
18089         * sunrpc/Makefile: Move inclusion of Rules.
18090
18091 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18092
18093         * nss/nss_files/files-initgroups.c: New file.
18094         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18095         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18096         _nss_files_initgroups_dyn.
18097
18098 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18099
18100         * elf/elf.h (R_ARM_IRELATIVE): Define.
18101
18102 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18103
18104         * po/ru.po: Update from translation team.
18105
18106 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18107
18108         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18109         dependencies.
18110
18111 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18112
18113         [BZ #12653]
18114         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18115         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18116         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18117         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18118         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18119
18120 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18121
18122         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18123         differing bytes.
18124         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18125         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18126         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18127
18128 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18129
18130         [BZ #12420]
18131         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18132         storing it.
18133         * stdlib/bug-getcontext.c: New file.
18134         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18135
18136 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18137
18138         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18139         instructions into .machine "z9-109".
18140         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18141         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18142
18143 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18144
18145         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18146         between environment variables and auxiliary vector.
18147
18148 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18149
18150         * Makefile: Add rules to build linkobj/libc.so.
18151         * include/libc-symbols.h: Define libc_hidden_nolink.
18152         * include/rpc/auth.h: Mark functions which are to be hidden.
18153         * include/rpc/auth_des.h: Likewise.
18154         * include/rpc/auth_unix.h: Likewise.
18155         * include/rpc/clnt.h: Likewise.
18156         * include/rpc/des_crypt.h: Likewise.
18157         * include/rpc/key_prot.h: Likewise.
18158         * include/rpc/pmap_clnt.h: Likewise.
18159         * include/rpc/pmap_prot.h: Likewise.
18160         * include/rpc/pmap_rmt.h: Likewise.
18161         * include/rpc/rpc_msg.h: Likewise.
18162         * include/rpc/svc.h: Likewise.
18163         * include/rpc/svc_auth.h: Likewise.
18164         * include/rpc/xdr.h: Likewise.
18165         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18166         * nss/Makefile: Likewise.
18167         * sunrpc/Makefile: Don't install headers.  Build library with normal
18168         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18169         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18170         for the compat linking library.  Remove use of INTDEF/INTUSE.
18171         * sunrpc/auth_none.c: Likewise.
18172         * sunrpc/auth_unix.c: Likewise.
18173         * sunrpc/authdes_prot.c: Likewise.
18174         * sunrpc/authuxprot.c: Likewise.
18175         * sunrpc/clnt_gen.c: Likewise.
18176         * sunrpc/clnt_perr.c: Likewise.
18177         * sunrpc/clnt_raw.c: Likewise.
18178         * sunrpc/clnt_simp.c: Likewise.
18179         * sunrpc/clnt_tcp.c: Likewise.
18180         * sunrpc/clnt_udp.c: Likewise.
18181         * sunrpc/clnt_unix.c: Likewise.
18182         * sunrpc/des_crypt.c: Likewise.
18183         * sunrpc/des_soft.c: Likewise.
18184         * sunrpc/get_myaddr.c: Likewise.
18185         * sunrpc/key_call.c: Likewise.
18186         * sunrpc/key_prot.c: Likewise.
18187         * sunrpc/netname.c: Likewise.
18188         * sunrpc/pm_getmaps.c: Likewise.
18189         * sunrpc/pm_getport.c: Likewise.
18190         * sunrpc/pmap_clnt.c: Likewise.
18191         * sunrpc/pmap_prot.c: Likewise.
18192         * sunrpc/pmap_prot2.c: Likewise.
18193         * sunrpc/pmap_rmt.c: Likewise.
18194         * sunrpc/publickey.c: Likewise.
18195         * sunrpc/rpc_cmsg.c: Likewise.
18196         * sunrpc/rpc_common.c: Likewise.
18197         * sunrpc/rpc_dtable.c: Likewise.
18198         * sunrpc/rpc_prot.c: Likewise.
18199         * sunrpc/rpc_thread.c: Likewise.
18200         * sunrpc/rtime.c: Likewise.
18201         * sunrpc/svc.c: Likewise.
18202         * sunrpc/svc_auth.c: Likewise.
18203         * sunrpc/svc_authux.c: Likewise.
18204         * sunrpc/svc_raw.c: Likewise.
18205         * sunrpc/svc_run.c: Likewise.
18206         * sunrpc/svc_simple.c: Likewise.
18207         * sunrpc/svc_tcp.c: Likewise.
18208         * sunrpc/svc_udp.c: Likewise.
18209         * sunrpc/svc_unix.c: Likewise.
18210         * sunrpc/svcauth_des.c: Likewise.
18211         * sunrpc/xcrypt.c: Likewise.
18212         * sunrpc/xdr.c: Likewise.
18213         * sunrpc/xdr_array.c: Likewise.
18214         * sunrpc/xdr_float.c: Likewise.
18215         * sunrpc/xdr_intXX_t.c: Likewise.
18216         * sunrpc/xdr_mem.c: Likewise.
18217         * sunrpc/xdr_rec.c: Likewise.
18218         * sunrpc/xdr_ref.c: Likewise.
18219         * sunrpc/xdr_sizeof.c: Likewise.
18220         * sunrpc/xdr_stdio.c: Likewise.
18221
18222 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18223
18224         [BZ #12650]
18225         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18226         * sysdeps/ia64/dl-tls.h: Likewise.
18227         * sysdeps/powerpc/dl-tls.h: Likewise.
18228         * sysdeps/s390/dl-tls.h: Likewise.
18229         * sysdeps/sh/dl-tls.h: Likewise.
18230         * sysdeps/sparc/dl-tls.h: Likewise.
18231         * sysdeps/x86_64/dl-tls.h: Likewise.
18232         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18233
18234 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18235
18236         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18237         rpath element also skip the following colon.
18238         (expand_dynamic_string_token): Add is_path parameter and pass
18239         down to DL_DST_REQUIRED and _dl_dst_substitute.
18240         (decompose_rpath): Call expand_dynamic_string_token with
18241         non-zero is_path.  Ignore empty rpaths.
18242         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18243         with zero is_path.
18244
18245 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18246
18247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18248         Make cancelable.
18249
18250 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18251
18252         [BZ #12655]
18253         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18254         Patch by Filipe David Manana <fdmanana@apache.org>.
18255
18256 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18257
18258         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18259         Maintain aligned stack.
18260         (CHECK_RSP): Remove unused macro.
18261
18262 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18263
18264         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18265         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18266
18267 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18268
18269         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18270
18271         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18272
18273 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18274
18275         [BZ #12518]
18276         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18277         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18278         * sysdeps/x86_64/memmove.c: New file.
18279         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18280         (memcpy): Renamed to ...
18281         (__new_memcpy): This.
18282         (memcpy): Provide GLIBC_2_14 memcpy.
18283         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18284         (memcpy): Provide GLIBC_2_2_5 memcpy.
18285
18286 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18287
18288         [BZ #12631]
18289         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18290
18291 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18292
18293         * misc/syncfs.c: New file.
18294         * misc/Makefile (routines): Add syncfs.
18295         * posix/unistd.h: Declare syncfs.
18296         * sysdeps/unix/syscalls.list: Add syncfs.
18297
18298 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18299
18300         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18301         open_by_handle_at.
18302         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18303         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18304         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18305         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18306         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18307         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18308         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18309
18310 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18311
18312         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18313         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18314         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18315         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18316         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18317         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18318         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18319
18320         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18321         sync_file_range.c with -fexceptions.
18322         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18323         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18324         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18325         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18326         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18327         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18328         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18329         sync_file_range as cancellation point
18330         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18331         now a wrapper around __call_sync_file_range with cancellation handling.
18332         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18333         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18334         function name to __call_sync_file_range.
18335         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18336         Add call_sync_file_range.
18337
18338 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18339
18340         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18341         bits/timex.h.
18342
18343 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18344
18345         * iconv/iconv.h: Fix typo in comment.
18346         * io/fcntl.h: Likewise.
18347         * libio/stdio.h: Likewise.
18348         * posix/spawn.h: Likewise.
18349         * posix/unistd.h: Likewise.
18350         * stdlib/stdlib.h: Likewise.
18351         * time/time.h: Likewise.
18352         * wcsmbs/wchar.h: Likewise.
18353
18354         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18355         open_by_handle): Add.
18356         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18357         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18358         Augment a few comments.
18359         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18360         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18361         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18362         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18363         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18364         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18365         open_by_handle.
18366
18367         * io/fcntl.h (AT_EMPTY_PATH): Define.
18368
18369 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18370
18371         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18372         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18373         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18374         to...
18375         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18376         * Versions.def: Add GLIBC_2.14.
18377         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18378         Export.
18379
18380 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18381
18382         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18383         round counter.
18384         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18385
18386 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18387
18388         [BZ #12597]
18389         * string/test-strncmp.c (do_page_test): New function.
18390         (check2): Likewise.
18391         (test_main): Call check2.
18392         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18393
18394 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18395
18396         [BZ #12587]
18397         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18398         Handle cache information in CPU leaf 4.
18399         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18400
18401 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18402
18403         [BZ #12583]
18404         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18405         character representation.
18406         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18407
18408 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18409
18410         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18411         END(__isnan) to END(__isnanf) to match function entry point/label
18412         EALIGN(__isnanf,...).
18413
18414 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18415
18416         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18417
18418 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18419
18420         [BZ #12510]
18421         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18422         copy from the symbol referenced in the relocation to initialize the
18423         used variable.
18424         Patch by Piotr Bury <pbury@goahead.com>.
18425         * elf/Makefile: Add rules to build and tst-unique3.
18426         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18427         * elf/tst-unique3.cc: New file.
18428         * elf/tst-unique3.h: New file.
18429         * elf/tst-unique3lib.cc: New file.
18430         * elf/tst-unique3lib2.cc: New file.
18431
18432         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18433
18434 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18435
18436         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18437         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18438         to _start.
18439
18440 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18441
18442         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18443         to-be-loaded object along a path to loader is ld.so.
18444
18445 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18446             Ulrich Drepper  <drepper@gmail.com>
18447
18448         * sysdeps/x86_64/memset.S: After aligning destination, code
18449         branches to different locations depending on the value of
18450         misalignment, when multiarch is enabled. Fix this.
18451
18452 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18453
18454         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18455         Set _x86_64_preferred_memory_instruction for AMD processsors.
18456         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18457         Set bit_Prefer_SSE_for_memop for AMD processors.
18458
18459 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18460
18461         * libio/fmemopen.c (fmemopen): Optimize a bit.
18462
18463 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18464
18465         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18466
18467 2011-03-03  Roland McGrath  <roland@redhat.com>
18468
18469         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18470
18471 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18472
18473         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18474         __bzero_ultra1 instead of __memset_ultra1.
18475
18476 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18477             Ulrich Drepper  <drepper@gmail.com>
18478
18479         [BZ #12509]
18480         * include/link.h (struct link_map): Add l_orig_initfini.
18481         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18482         returning unsuccessfully.
18483         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18484         close of a file loaded at startup, restore the original l_initfini
18485         list.
18486         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18487         list, store the pointer.
18488         * elf/Makefile ($(objpfx)noload-mem): New rule.
18489         (noload-ENV): Define.
18490         (tests): Add $(objpfx)noload-mem.
18491         * elf/noload.c: Include <memcheck.h>.
18492         (main): Call mtrace.  Close all opened handles.
18493
18494 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18495
18496         [BZ #12454]
18497         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18498         dependencies are missing.
18499
18500 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18501
18502         Fix __if_freereq crash: Unlike the generic version which uses free,
18503         Hurd needs munmap.
18504         * sysdeps/mach/hurd/ifreq.h: New file.
18505
18506 2011-01-27  Petr Baudis  <pasky@suse.cz>
18507             Ulrich Drepper  <drepper@gmail.com>
18508
18509         [BZ 12445]#
18510         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18511         to extend_alloca().
18512         * stdio-common/bug23.c: New file.
18513         * stdio-common/Makefile (tests): Add bug23.
18514
18515 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18516             Ulrich Drepper  <drepper@gmail.com>
18517
18518         [BZ #12489]
18519         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18520         before performing relro protection.  At old place add assertion
18521         to make sure nothing changed.
18522
18523 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18524             Glauber de Oliveira Costa  <glommer@gmail.com>
18525
18526         * elf/elf.h: Add new ARM TLS relocs.
18527
18528 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18529
18530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18531         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18532         cast from r3.
18533         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18534         'tests' variable.
18535         * sysdeps/wordsize-64/tst-writev.c: New file.
18536
18537 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18538
18539         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18540         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18541         insns in _dl_start to prevent a TOC reference before relocs are
18542         resolved.
18543
18544 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18545
18546         [BZ #12469]
18547         * Makeconfig: Remove RANLIB definition.
18548         * Makerules: Don't use RANLIB.
18549         * aclocal.m4: Remove ranlib test.
18550         * configure.in: No need to check for ranlib.
18551         * elf/rtld-Rules: Don't use RANLIB.
18552
18553 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18554
18555         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18556         protection macro.
18557         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18558         inclusion protection macro.
18559
18560         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18561         SIGRTMIN and SIGRTMAX and print information in that case only when
18562         SIGRTMIN is defined.
18563
18564 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18565
18566         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18567         arginfo fn returning -1.
18568
18569         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18570         and thousands string is zero terminated.
18571
18572 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18573
18574         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18575         sysdeps/unix/sysv/linux/bits/socket.h.
18576
18577 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18578
18579         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18580         (__CPU_COUNT): Remove old macros.
18581         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18582         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18583         (__CPU_ALLOC, __CPU_FREE): Add macros.
18584         (__sched_cpualloc, __sched_cpufree): Add declarations.
18585
18586 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18587
18588         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18589         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18590         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18591         (readdhstai): Return value of addhstaiX call.
18592         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18593         (addgrbyX): Return value returned by cache_addgr.
18594         (readdgrbyname): Return value returned by addgrbyX.
18595         (readdgrbygid): Likewise.
18596         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18597         (addpwbyX): Return value returned by cache_addpw.
18598         (readdpwbyname): Return value returned by addhstbyX.
18599         (readdpwbyuid): Likewise.
18600         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18601         (addservbyX): Return value returned by cache_addserv.
18602         (readdservbyname): Return value returned by addservbyX:
18603         (readdservbyport): Likewise.
18604         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18605         (addhstbyX): Return value returned by cache_addhst.
18606         (readdhstbyname): Return value returned by addhstbyX.
18607         (readdhstbyaddr): Likewise.
18608         (readdhstbynamev6): Likewise.
18609         (readdhstbyaddrv6): Likewise.
18610         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18611         (readdinitgroups): Return value returned by addinitgroupsX.
18612         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18613         (prune_cache): Keep track of timeout value of re-added entries.
18614         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18615         * nscd/nscd.h: Adjust prototypes of readd* functions.
18616
18617 2011-02-04  Roland McGrath  <roland@redhat.com>
18618
18619         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18620         (nis_stats): Likewise.
18621         * nis/nis_modify.c (nis_modify): Likewise.
18622         * nis/nis_remove.c (nis_remove): Likewise.
18623         * nis/nis_add.c (nis_add): Likewise.
18624
18625         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18626
18627         * posix/fnmatch_loop.c: Add some consts.
18628
18629         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18630
18631 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18632
18633         [BZ #12460]
18634         * config.make.in (config-cflags-novzeroupper): Define.
18635         * configure.in: Substitute libc_cv_cc_novzeroupper.
18636         * elf/Makefile (AVX-CFLAGS): Define.
18637         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18638         (CFLAGS-tst-auditmod4a.c): Likewise.
18639         (CFLAGS-tst-auditmod4b.c): Likewise.
18640         (CFLAGS-tst-auditmod6b.c): Likewise.
18641         (CFLAGS-tst-auditmod6c.c): Likewise.
18642         (CFLAGS-tst-auditmod7b.c): Likewise.
18643         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18644
18645 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18646
18647         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18648         function to the callback.
18649         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18650
18651 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18652
18653         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18654         of errno.
18655
18656 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18657
18658         [BZ #11724]
18659         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18660         of constructors.
18661         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18662         of destructors.
18663         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18664
18665         [BZ #11724]
18666         * elf/Makefile: Add rules to build and run new test.
18667         * elf/tst-initorder.c: New file.
18668         * elf/tst-initorder.exp: New file.
18669         * elf/tst-initordera1.c: New file.
18670         * elf/tst-initordera2.c: New file.
18671         * elf/tst-initordera3.c: New file.
18672         * elf/tst-initordera4.c: New file.
18673         * elf/tst-initorderb1.c: New file.
18674         * elf/tst-initorderb2.c: New file.
18675         * elf/tst-order-a1.c: New file.
18676         * elf/tst-order-a2.c: New file.
18677         * elf/tst-order-a3.c: New file.
18678         * elf/tst-order-a4.c: New file.
18679         * elf/tst-order-b1.c: New file.
18680         * elf/tst-order-b2.c: New file.
18681         * elf/tst-order-main.c: New file.
18682         New test case by George Gensure <werkt0@gmail.com>.
18683
18684 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18685
18686         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18687         decoding ACE if AI_CANONIDN.
18688
18689 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18690
18691         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18692
18693 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18694
18695         * version.h (RELEASE): Bump for 2.13 release.
18696         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18697
18698         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18699
18700         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18701         MADV_NOHUGEPAGE.
18702         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18703         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18704         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18705         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18706         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18707         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18708
18709         * posix/getconf.c: Update copyright year.
18710         * catgets/gencat.c: Likewise.
18711         * csu/version.c: Likewise.
18712         * debug/catchsegv.sh: Likewise.
18713         * debug/xtrace.sh: Likewise.
18714         * elf/ldconfig.c: Likewise.
18715         * elf/ldd.bash.in: Likewise.
18716         * elf/sprof.c (print_version): Likewise.
18717         * iconv/iconv_prog.c: Likewise.
18718         * iconv/iconvconfig.c: Likewise.
18719         * locale/programs/locale.c: Likewise.
18720         * locale/programs/localedef.c: Likewise.
18721         * malloc/memusage.sh: Likewise.
18722         * malloc/mtrace.pl: Likewise.
18723         * nscd/nscd.c (print_version): Likewise.
18724         * nss/getent.c: Likewise.
18725
18726         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18727         PF_CAIF, and PF_ALG.
18728         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18729
18730 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18731
18732         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18733         (modules-names): Use them.
18734         (ifunc-test-modules, ifunc-pie-tests): Define.
18735         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18736         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18737         (test-extras): Likewise.
18738         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18739         $(compile-command.c).
18740         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18741         (all-built-dso): Define.
18742         (check-textrel.out, check-execstack.out): Depend on it.
18743
18744         * configure.in: Don't override --enable-multi-arch.
18745
18746 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18747
18748         [BZ #6812]
18749         * nscd/hstcache.c (tryagain): Define.
18750         (cache_addhst): Return tryagain not notfound for temporary errors.
18751         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18752         failed.
18753
18754 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18755
18756         [BZ #10563]
18757         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18758         to make the syscall.
18759         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18760
18761         [BZ #12378]
18762         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18763         and fall back to matching as normal character if the string ends before
18764         the matching ']' is found.  This is what POSIX requires.
18765         * posix/testfnm.c: Adjust test result.
18766         * posix/globtest.sh: Adjust test result.  Add new test.
18767         * posix/tst-fnmatch.input: Likewise.
18768         * posix/tst-fnmatch2.c: Add new test.
18769
18770 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18771
18772         * elf/Makefile (check-execstack): Revert last change.  Depend on
18773         check-execstack.h.
18774         (check-execstack.h): New target.
18775         (generated): Add check-execstack.h.
18776         * elf/check-execstack.c: Include "check-execstack.h".
18777         (main): Revert last change.
18778         (handle_file): Return zero if GNU_STACK is absent and
18779         DEFAULT_STACK_PERMS doesn't include PF_X.
18780
18781 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18782
18783         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18784         in child fails because the descriptor is already closed.
18785         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18786         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18787         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18788
18789         [BZ #12397]
18790         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18791         syscall.
18792
18793         [BZ #10484]
18794         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18795         temporary buffer used to handle multi lookups locally.
18796         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18797
18798 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18799
18800         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18801         loader is ld.so.
18802
18803 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18804
18805         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18806         alignment for SSE2.
18807
18808 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18809
18810         [BZ #12394]
18811         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18812         characters.  When rounding increased number of integer digits recompute
18813         number of groups.
18814         * stdio-common/tst-grouping.c: New file.
18815         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18816
18817 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18818
18819         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18820         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18821
18822         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18823         void.
18824         * bits/select.h: Likewise.
18825
18826 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18827
18828         * po/ja.po: Update from translation team.
18829
18830 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18831
18832         [BZ #11155]
18833         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18834         implementation just like for lxstat, fxstatat, et al.
18835
18836 2010-12-27  Jim Meyering  <meyering@redhat.com>
18837
18838         [BZ #12348]
18839         * posix/regexec.c (build_trtable): Return failure indication upon
18840         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18841
18842 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18843
18844         [BZ #12201]
18845         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18846         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18847         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18848         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18849
18850         [BZ #12207]
18851         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18852
18853         [BZ #12204]
18854         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18855         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18856
18857 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18858
18859         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18860         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18861         script has SORT_BY_INIT_PRIORITY.
18862         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18863         NO_CTORS_DTORS_SECTIONS is defined.
18864         * elf/soinit.c: Likewise.
18865         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18866         NO_CTORS_DTORS_SECTIONS is defined.
18867         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18868         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18869         * sysdeps/sh/init-first.c: Likewise.
18870         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18871
18872 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18873
18874         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18875         always use the slow path.
18876
18877 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18878
18879         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18880         similar rule which adds the sysdep directories to the header search in
18881         order to pick up the correct platform stackinfo.h.
18882         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18883         perform test if it is, otherwise return successfully without testing.
18884         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18885         DEFAULT_STACK_PERMS define in stackinfo.h.
18886         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18887         defined in stackinfo.h.
18888         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18889         DEFAULT_STACK_PERMS defined in stackinfo.h.
18890         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18891         * sysdeps/ia64/stackinfo.h: Likewise.
18892         * sysdeps/s390/stackinfo.h: Likewise.
18893         * sysdeps/sh/stackinfo.h: Likewise.
18894         * sysdeps/sparc/stackinfo.h: Likewise.
18895         * sysdeps/x86_64/stackinfo.h: Likewise.
18896         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18897         PF_X for powerpc64.  Retain PF_X for powerpc32.
18898
18899 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18900
18901         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18902         accurately.
18903         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18904         GETDENTS_64BIT_ALIGNED.
18905
18906 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18907
18908         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18909
18910 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18911
18912         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18913         _GNU_SOURCE.
18914
18915         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18916         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18917         Remove __restrict.
18918         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18919         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18920
18921 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18922
18923         [BZ #11655]
18924         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18925         are initialized.
18926
18927 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18928
18929         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18930
18931 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18932
18933         * po/it.po: Update from translation team.
18934
18935 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18936
18937         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18938         unused codes.
18939
18940 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18941
18942         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18943
18944 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18945
18946         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18947         specially.
18948         (gaih_getanswer_slice): Likewise.
18949
18950 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18951
18952         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18953
18954 2010-05-31  Petr Baudis  <pasky@suse.cz>
18955
18956         [BZ #11149]
18957         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18958         silently even in the chroot mode.
18959
18960 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18961
18962         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18963         last patch a bit.  Pretty printing
18964
18965 2010-05-31  Petr Baudis <pasky@suse.cz>
18966
18967         [BZ #10085]
18968         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18969         initialization of skip_initgroups_dyn.
18970
18971 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18972
18973         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18974         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18975
18976 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
18977
18978         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
18979
18980 2010-11-11  Andreas Schwab  <schwab@redhat.com>
18981
18982         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
18983         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
18984         (tst-fnmatch-ENV): Set MALLOC_TRACE.
18985         ($(objpfx)tst-fnmatch-mem): New rule.
18986         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
18987         * posix/tst-fnmatch.c (main): Call mtrace.
18988
18989 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
18990
18991         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18992         Support Intel processor model 6 and model 0x2c.
18993
18994 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
18995
18996         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
18997           signed comparison.
18998
18999 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19000
19001         [BZ #12205]
19002         * string/test-strncasecmp.c (check_result): New function.
19003         (do_one_test): Use it.
19004         (check1): New function.
19005         (test_main): Use it.
19006         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19007         Support strcasecmp and strncasecmp.
19008
19009 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19010
19011         [BZ #12194]
19012         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19013         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19014
19015 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19016
19017         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19018         IFUNC support.
19019         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19020         memset-x86-64.
19021         * sysdeps/x86_64/multiarch/bzero.S: New file.
19022         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19023         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19024         * sysdeps/x86_64/multiarch/memset.S: New file.
19025         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19026         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19027         Set bit_Prefer_SSE_for_memop for Intel processors.
19028         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19029         Define.
19030         (index_Prefer_SSE_for_memop): Define.
19031         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19032
19033 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19034
19035         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19036         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19037
19038 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19039
19040         [BZ #12191]
19041         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19042         (__x86_64_raw_data_cache_size_half): Likewise.
19043         (__x86_64_raw_shared_cache_size): Likewise.
19044         (__x86_64_raw_shared_cache_size_half): Likewise.
19045
19046         * sysdeps/x86_64/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         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19051         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19052         and __x86_64_raw_shared_cache_size_half.  Round
19053         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19054         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19055         to multiple of 256 bytes.
19056
19057 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19058
19059         [BZ #12167]
19060         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19061         of inacessible symlinks.  Verify result of symlink before returning it.
19062         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19063         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19064
19065 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19066
19067         * math/math.h (isinf): Fix typo in comment.
19068
19069 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19070
19071         * po/da.po: Update from translation team.
19072
19073 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19074
19075         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19076         is added to the list.
19077
19078 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19079             Ulrich Drepper  <drepper@gmail.com>
19080
19081         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19082         the global list here.  Move code to...
19083         (_dl_add_to_namespace_list): ...here.  New function.
19084         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19085         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19086         * elf/dl-load.c (lose): Don't remove the element from the list.
19087         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19088         (_dl_map_object): Likewise.
19089
19090 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19091
19092         [BZ #12159]
19093         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19094         into all bytes of SSE register.
19095         Patch by Richard Li <richardpku@gmail.com>.
19096
19097 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19098
19099         [BZ #12140]
19100         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19101         perturbing.
19102
19103 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19104
19105         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19106         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19107         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19108         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19110         submachine.
19111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19112
19113 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19114
19115         * include/dlfcn.h (__RTLD_SECURE): Define.
19116         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19117         mode & __RTLD_SECURE instead.
19118         (open_path): Rename preloaded parameter to secure.
19119         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19120         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19121         * elf/dl-deps.c (openaux): Likewise.
19122         * elf/rtld.c (struct map_args): Remove is_preloaded.
19123         (map_doit): Don't use it.
19124         (dl_main): Likewise.
19125         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19126         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19127
19128 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19129
19130         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19131         (sysd-rules-targets): Remove duplicates.
19132         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19133         rtld-%.$o dependency.
19134
19135 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19136
19137         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19138         _dl_map_object do it.
19139
19140 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19141
19142         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19143         fast fma builtins, define the macros in the C99 standard.
19144         (FP_FAST_FMAF): Likewise.
19145         (FP_FAST_FMAL): Likewise.
19146         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19147
19148         * bits/mathdef.h: Update copyright year.
19149         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19150
19151 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19152
19153         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19154         builtins, define the macros in the C99 standard.
19155         (FP_FAST_FMAF): Likewise.
19156         (FP_FAST_FMAL): Likewise.
19157         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19158         multiply/add.
19159         (FP_FAST_FMAF): Likewise.
19160
19161 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19162
19163         [BZ #3268]
19164         * math/libm-test.inc (fma_test): Some new testcases.
19165         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19166         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19167         y and infinite z.  Do multiplication by C already in long double.
19168         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19169         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19170         y and infinite z.  Do bitwise or of inexact bit into u.d.
19171         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19172         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19173         * sysdeps/i386/fpu/s_fma.S: Removed.
19174         * sysdeps/i386/fpu/s_fmal.S: Removed.
19175
19176 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19177
19178         [BZ #3268]
19179         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19180         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19181         computation is not scheduled after fetestexcept.  Fix value
19182         of minimum denormal long double.
19183
19184 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19185
19186         [BZ #3268]
19187         * math/libm-test.inc (fma_test): Add some more tests.
19188         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19189         correctly.
19190
19191 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19192
19193         * scripts/data/localplt-s390-linux-gnu.data: New file.
19194         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19195
19196 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19197
19198         [BZ #3268]
19199         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19200         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19201         instead of dbl-64.
19202         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19203         inlines.
19204         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19205         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19206         if one of x and y is very large and the other is subnormal.
19207         * sysdeps/s390/fpu/s_fmaf.c: New file.
19208         * sysdeps/s390/fpu/s_fma.c: New file.
19209         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19210         * sysdeps/powerpc/fpu/s_fma.S: New file.
19211         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19212         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19213         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19214
19215 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19216
19217         [BZ #3268]
19218         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19219         fma tests.
19220         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19221         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19222         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19223         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19224         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19225         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19226         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19227
19228 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19229
19230         [BZ #12078]
19231         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19232         * posix/bug-regex31.input: Add test case.
19233
19234 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19235
19236         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19237         * posix/bug-regex31.input: New file.
19238
19239         [BZ #12078]
19240         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19241         (parse_sub_exp): Fix last change, use postorder.
19242
19243         * posix/bug-regex31.c: New file.
19244         * posix/Makefile: Add rules to build and run bug-regex31.
19245
19246         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19247
19248         [BZ #12078]
19249         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19250
19251         [BZ #12108]
19252         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19253         to have entries in sys_siglist.
19254
19255         [BZ #12093]
19256         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19257         be NULL.
19258
19259 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19260
19261         [BZ #3268]
19262         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19263         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19264         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19265         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19266         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19267         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19268         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19269         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19270         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19271         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19272         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19273         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19274         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19275         * math/ftestexcept.c (fetestexcept): Likewise.
19276         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19277         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19278         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19279         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19280         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19281         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19282         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19283
19284 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19285
19286         [BZ #12107]
19287         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19288         newline.
19289
19290 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19291
19292         * string/bug-strstr1.c: New file.
19293         * string/Makefile: Add rules to build and run bug-strstr1.
19294
19295 2010-10-05  Eric Blake  <eblake@redhat.com>
19296
19297         [BZ #12092]
19298         * string/str-two-way.h (two_way_long_needle): Always clear memory
19299         when skipping input due to the shift table.
19300
19301 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19302
19303         [BZ #12005]
19304         * malloc/mcheck.c: Handle large requests.
19305
19306         [BZ #12077]
19307         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19308         for strncmp and strncasecmp.
19309         * string/stratcliff.c: Add tests for strcmp and strncmp.
19310         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19311
19312 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19313
19314         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19315         __set_fpscr.
19316
19317 2010-09-30  Andreas Jaeger  <aj@suse.de>
19318
19319         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19320         (CGROUP_SUPER_MAGIC): Define.
19321         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19322         Handle btrfs and cgroup file systems.
19323         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19324         Likewise.
19325
19326 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19327
19328         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19329         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19330
19331 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19332
19333         [BZ #12067]
19334         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19335         trying to locate the ELF header.
19336
19337 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19338
19339         [BZ #11611]
19340         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19341         Mask out sign-bit copies when constructing f_fsid.
19342
19343 2010-09-24  Petr Baudis <pasky@suse.cz>
19344
19345         * debug/stack_chk_fail_local.c: Add missing licence exception.
19346         * debug/warning-nop.c: Likewise.
19347
19348 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19349
19350         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19351         implementing getdents64 using getdents syscall, set d_type if
19352         __ASSUME_GETDENTS32_D_TYPE.
19353
19354 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19355
19356         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19357         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19358
19359 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19360
19361         [BZ #12037]
19362         * posix/unistd.h: Undo change of feature selection for ftruncate from
19363         2010-01-11.
19364
19365 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19366
19367         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19368         detection.
19369
19370 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19371
19372         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19373         fanotify_mark.
19374         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19375
19376 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19377
19378         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19379         variables after CHECK_SP call.
19380         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19381
19382 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19383             Ulrich Drepper  <drepper@redhat.com>
19384
19385         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19386         re-relocationg ld.so.
19387         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19388         _dl_init_paths call.
19389         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19390         here anymore.
19391
19392 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19393
19394         * resolv/res_init.c (__res_vinit): Count the default server we added.
19395
19396 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19397             Ulrich Drepper  <drepper@redhat.com>
19398
19399         [BZ #11968]
19400         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19401         (____longjmp_chk): Use %ebx for saving value across system call.
19402         Add unwind info.
19403
19404 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19405
19406         * manual/Makefile: Don't mix pattern rules with normal rules.
19407
19408 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19409
19410         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19411         operation.
19412         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19413         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19414         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19415         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19416         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19417         Likewise.
19418
19419 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19420
19421         [BZ #11979]
19422         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19423         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19424
19425 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19426
19427         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19428         * sysdeps/x86_64/addmul_1.S: Likewise.
19429         * sysdeps/x86_64/lshift.S: Likewise.
19430         * sysdeps/x86_64/mul_1.S: Likewise.
19431         * sysdeps/x86_64/rshift.S: Likewise.
19432         * sysdeps/x86_64/sub_n.S: Likewise.
19433         * sysdeps/x86_64/submul_1.S: Likewise.
19434
19435 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19436
19437         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19438         Define __sched_param instead of SCHED_* and sched_param when
19439         <bits/sched.h> is included with __need_schedparam defined.
19440         * bits/sched.h [__need_schedparam]
19441         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19442         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19443         (__defined_schedparam): Define to 1.
19444         (__sched_param): New structure, identical to sched_param.
19445         (__need_schedparam): Undefine.
19446
19447 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19448
19449         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19450         (epoll_create1): Declare.
19451
19452         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19453
19454 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19455
19456         [BZ #7066]
19457         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19458         shifting retval into place.
19459
19460 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19461
19462         * nis/rpcsvc/nis.h: Update copyright notice.
19463         * nis/rpcsvc/nis.x: Likewise.
19464         * nis/rpcsvc/nis_callback.h: Likewise.
19465         * nis/rpcsvc/nis_callback.x: Likewise.
19466         * nis/rpcsvc/nis_object.x: Likewise.
19467         * nis/rpcsvc/nis_tags.h: Likewise.
19468         * nis/rpcsvc/yp.h: Likewise.
19469         * nis/rpcsvc/yp.x: Likewise.
19470         * nis/rpcsvc/ypupd.h: Likewise.
19471         * nis/yp_xdr.c: Likewise.
19472         * nis/ypupdate_xdr.c: Likewise.
19473
19474         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19475         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19476         (pmap_getport): Use __libc_rpc_getport.
19477         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19478         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19479         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19480
19481 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19482
19483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19484         fanotify_mark.
19485
19486 2010-08-27  Roland McGrath  <roland@redhat.com>
19487
19488         * sysdeps/i386/i686/multiarch/Makefile
19489         (CFLAGS-varshift.c): New variable.
19490
19491 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19492
19493         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19494         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19495
19496         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19497
19498         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19499
19500 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19501
19502         * sysdeps/x86_64/strlen.S: Unroll the loop.
19503         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19504         strlen-sse2 strlen-sse2-bsf.
19505         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19506         __strlen_no_bsf if bit_Slow_BSF is set.
19507         (__strlen_sse42): Removed.
19508         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19509         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19510
19511 2010-08-25  Roland McGrath  <roland@redhat.com>
19512
19513         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19514         * sysdeps/x86_64/multiarch/varshift.c: New file.
19515         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19516         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19517         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19518         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19519
19520 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19521
19522         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19523         strlen-sse2 strlen-sse2-bsf.
19524         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19525         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19526         (__strlen_sse2): Removed.
19527         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19528         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19529         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19530         bit_Slow_BSF for Atom.
19531         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19532         (index_Slow_BSF): Define.
19533         (HAS_SLOW_BSF): Define.
19534
19535 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19536
19537         [BZ #10851]
19538         * resolv/res_init.c (__res_vinit): When no server address at all
19539         is given default to loopback.
19540
19541 2010-08-24  Roland McGrath  <roland@redhat.com>
19542
19543         * configure.in: Remove config-name.h generation.
19544         * configure: Regenerated.
19545         * config-name.in: File removed.
19546         * scripts/config-uname.sh: New file.
19547         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19548         ($(objdir)config-name.h): New target.
19549
19550         * sunrpc/rpc_parse.h: Avoid nested comment.
19551
19552 2010-08-24  Richard Henderson  <rth@redhat.com>
19553             Ulrich Drepper  <drepper@redhat.com>
19554             H.J. Lu  <hongjiu.lu@intel.com>
19555
19556         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19557         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19558         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19559         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19560         _mm_alignr_epi8 with _mm_loadu_si128.
19561         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19562         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19563         (__m128i_shift_right): Removed.
19564         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19565         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19566         * sysdeps/x86_64/multiarch/varshift.h: New file.
19567         * sysdeps/x86_64/multiarch/varshift.S: New file.
19568
19569 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19570
19571         * configure.in: Move assembler checks to before sysdep dir checking.
19572
19573 2010-08-20  Petr Baudis  <pasky@suse.cz>
19574
19575         * LICENSES: Sync the sunrpc license.
19576
19577 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19578
19579         * sunrpc/auth_des.c: Update copyright notice once again.
19580         * sunrpc/auth_none.c: Likewise.
19581         * sunrpc/auth_unix.c: Likewise.
19582         * sunrpc/authdes_prot.c: Likewise.
19583         * sunrpc/authuxprot.c: Likewise.
19584         * sunrpc/bindrsvprt.c: Likewise.
19585         * sunrpc/clnt_gen.c: Likewise.
19586         * sunrpc/clnt_perr.c: Likewise.
19587         * sunrpc/clnt_raw.c: Likewise.
19588         * sunrpc/clnt_simp.c: Likewise.
19589         * sunrpc/clnt_tcp.c: Likewise.
19590         * sunrpc/clnt_udp.c: Likewise.
19591         * sunrpc/clnt_unix.c: Likewise.
19592         * sunrpc/des_crypt.c: Likewise.
19593         * sunrpc/des_soft.c: Likewise.
19594         * sunrpc/get_myaddr.c: Likewise.
19595         * sunrpc/getrpcport.c: Likewise.
19596         * sunrpc/key_call.c: Likewise.
19597         * sunrpc/key_prot.c: Likewise.
19598         * sunrpc/openchild.c: Likewise.
19599         * sunrpc/pm_getmaps.c: Likewise.
19600         * sunrpc/pm_getport.c: Likewise.
19601         * sunrpc/pmap_clnt.c: Likewise.
19602         * sunrpc/pmap_prot.c: Likewise.
19603         * sunrpc/pmap_prot2.c: Likewise.
19604         * sunrpc/pmap_rmt.c: Likewise.
19605         * sunrpc/rpc/auth.h: Likewise.
19606         * sunrpc/rpc/auth_unix.h: Likewise.
19607         * sunrpc/rpc/clnt.h: Likewise.
19608         * sunrpc/rpc/des_crypt.h: Likewise.
19609         * sunrpc/rpc/key_prot.h: Likewise.
19610         * sunrpc/rpc/netdb.h: Likewise.
19611         * sunrpc/rpc/pmap_clnt.h: Likewise.
19612         * sunrpc/rpc/pmap_prot.h: Likewise.
19613         * sunrpc/rpc/pmap_rmt.h: Likewise.
19614         * sunrpc/rpc/rpc.h: Likewise.
19615         * sunrpc/rpc/rpc_des.h: Likewise.
19616         * sunrpc/rpc/rpc_msg.h: Likewise.
19617         * sunrpc/rpc/svc.h: Likewise.
19618         * sunrpc/rpc/svc_auth.h: Likewise.
19619         * sunrpc/rpc/types.h: Likewise.
19620         * sunrpc/rpc/xdr.h: Likewise.
19621         * sunrpc/rpc_clntout.c: Likewise.
19622         * sunrpc/rpc_cmsg.c: Likewise.
19623         * sunrpc/rpc_common.c: Likewise.
19624         * sunrpc/rpc_cout.c: Likewise.
19625         * sunrpc/rpc_dtable.c: Likewise.
19626         * sunrpc/rpc_hout.c: Likewise.
19627         * sunrpc/rpc_main.c: Likewise.
19628         * sunrpc/rpc_parse.c: Likewise.
19629         * sunrpc/rpc_parse.h: Likewise.
19630         * sunrpc/rpc_prot.c: Likewise.
19631         * sunrpc/rpc_sample.c: Likewise.
19632         * sunrpc/rpc_scan.c: Likewise.
19633         * sunrpc/rpc_scan.h: Likewise.
19634         * sunrpc/rpc_svcout.c: Likewise.
19635         * sunrpc/rpc_tblout.c: Likewise.
19636         * sunrpc/rpc_util.c: Likewise.
19637         * sunrpc/rpc_util.h: Likewise.
19638         * sunrpc/rpcinfo.c: Likewise.
19639         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19640         * sunrpc/rpcsvc/key_prot.x: Likewise.
19641         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19642         * sunrpc/rpcsvc/mount.x: Likewise.
19643         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19644         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19645         * sunrpc/rpcsvc/rex.x: Likewise.
19646         * sunrpc/rpcsvc/rstat.x: Likewise.
19647         * sunrpc/rpcsvc/rusers.x: Likewise.
19648         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19649         * sunrpc/rpcsvc/spray.x: Likewise.
19650         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19651         * sunrpc/rtime.c: Likewise.
19652         * sunrpc/svc.c: Likewise.
19653         * sunrpc/svc_auth.c: Likewise.
19654         * sunrpc/svc_authux.c: Likewise.
19655         * sunrpc/svc_raw.c: Likewise.
19656         * sunrpc/svc_run.c: Likewise.
19657         * sunrpc/svc_simple.c: Likewise.
19658         * sunrpc/svc_tcp.c: Likewise.
19659         * sunrpc/svc_udp.c: Likewise.
19660         * sunrpc/svc_unix.c: Likewise.
19661         * sunrpc/svcauth_des.c: Likewise.
19662         * sunrpc/xcrypt.c: Likewise.
19663         * sunrpc/xdr.c: Likewise.
19664         * sunrpc/xdr_array.c: Likewise.
19665         * sunrpc/xdr_float.c: Likewise.
19666         * sunrpc/xdr_mem.c: Likewise.
19667         * sunrpc/xdr_rec.c: Likewise.
19668         * sunrpc/xdr_ref.c: Likewise.
19669         * sunrpc/xdr_sizeof.c: Likewise.
19670         * sunrpc/xdr_stdio.c: Likewise.
19671
19672         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19673         handling.
19674
19675 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19676
19677         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19678
19679 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19680
19681         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19682         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19683         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19684         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19685         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19686         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19687         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19688         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19689         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19690         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19691         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19692         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19693         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19694         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19695
19696 2010-07-26  Anton Blanchard  <anton@samba.org>
19697
19698         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19699         * malloc/arena.c (heap_trim): Likewise.
19700
19701 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19702
19703         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19704         here.  Not...
19705         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19706         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19707
19708 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19709
19710         * sysdeps/i386/elf/Makefile: New file.
19711
19712 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19713
19714         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19715         from fanotify_init.
19716         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19717         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19718
19719 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19720
19721         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19722         of strncasecmp_l.
19723         * sysdeps/multiarch/strcmp.S: Likewise.
19724
19725 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19726
19727         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19728         strncase_l-nonascii.
19729         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19730         Add strncase_l-ssse3.
19731         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19732         * sysdeps/x86_64/strcmp.S: Likewise.
19733         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19734         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19735         * sysdeps/x86_64/strncase.S: New file.
19736         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19737         * sysdeps/x86_64/strncase_l.S: New file.
19738         * string/Makefile (strop-tests): Add strncasecmp.
19739         * string/test-strncasecmp.c: New file.
19740
19741         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19742         warning.
19743
19744         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19745         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19746
19747 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19748
19749         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19750
19751 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19752
19753         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19754         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19755         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19756
19757 2010-05-01  Alan Modra  <amodra@gmail.com>
19758
19759         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19760         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19761         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19762         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19763         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19764         tidying.  Don't tail-call __sigjmp_save for static lib.
19765         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19766         save location.
19767         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19768         (CALL_MCOUNT): Add eh info, and nop after bl.
19769         (TAIL_CALL_SYSCALL_ERROR): New macro.
19770         (PSEUDO_RET): Use it.
19771         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19772         Correct save location of integer regs and cr.
19773         (_dl_profile_resolve): Correct cr save location.  Delete nops
19774         after bl when SHARED.  Reduce cfi size a little by better
19775         placement of cfi directives.
19776         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19777         make a stack frame.  Instead use parm save area as a temp.
19778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19779         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19781         Don't make a stack frame for parent, use parm save area.
19782         Increase child stack frame to 112 bytes.  Don't save unused reg,
19783         and adjust reg usage.  Set up cfi on error recovery and
19784         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19786         (__makecontext): Add dummy nop after jump to exit.
19787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19788         Use correct parm save area and cr save, reduce stack frame.
19789         Correct cfi for possible PSEUDO_RET frame setup.
19790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19791         Branch to local label emitted by PSEUDO_RET rather than
19792         __syscall_error.
19793
19794 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19795
19796         [BZ #11904]
19797         * locale/programs/locale.c (print_assignment): New function.
19798         (show_locale_vars): Use it.
19799
19800 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19801
19802         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19803         field.
19804         (struct statfs64): Likewise.
19805         (_STATFS_F_FLAGS): Define.
19806         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19807         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19808         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19809         (ST_VALID): Define locally.
19810         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19811         __statvfs_getflags, use the provided value.
19812         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19813         __ASSUME_STATFS_F_FLAGS.
19814
19815         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19816
19817         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19818         Add sys/fanotify.h.
19819         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19820         fanotify_mask for GLIBC_2.13.
19821         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19822         fanotify_init and fanotify_mark.
19823         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19824         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19825
19826         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19827         Add prlimit.
19828         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19829         prlimit64 for GLIBC_2.13.
19830         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19831         prlimit64.
19832         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19833         syscall.
19834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19835         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19836         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19837         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19838         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19839         add prlimit alias.
19840         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19841
19842         [BZ #11903]
19843         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19844         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19845
19846         * nss/Makefile: Add rules to build and run tst-nss-test1.
19847         * shlib-versions: Add entry for libnss_test1.
19848         * nss/nss_test1.c: New file.
19849         * nss/tst-nss-test1.c: New file.
19850
19851         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19852         (__nss_configure_lookup): Set appropriate entry in
19853         __nss_configure_lookup to true.
19854         * nss/nsswitch.h: Define enum with indeces of databases in
19855         databases and __nss_database_custom arrays.  Declare
19856         __nss_database_custom.
19857         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19858         to avoid using nscd when custom rules are installed.
19859         * nss/getXXbyYY_r.c: Likewise.
19860         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19861
19862         * nss/nss_files/files-parse.c: Whitespace fixes.
19863
19864 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19865
19866         [BZ #11883]
19867         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19868         * posix/fnmatch_loop.c: Likewise.
19869
19870 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19871
19872         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19873         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19874         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19875         * Versions.def [GLIBC_2.13]: Add.
19876
19877 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19878
19879         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19880         Also fail if tpwd after pwuid call is NULL.
19881
19882 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19883
19884         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19885         when converting to ms.
19886
19887 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19888
19889         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19890         EOPNOTSUPP errors with ENOTTY.
19891         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19892         EOPNOTSUPP errors with ENOTTY.
19893
19894 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19895
19896         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19897         Add strcasecmp_l-ssse3.
19898         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19899         strcasecmp.
19900         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19901         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19902         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19903
19904 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19905
19906         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19907
19908         * string/Makefile (strop-tests): Add strcasecmp.
19909         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19910         strcasecmp_l-nonascii.
19911         (gen-as-const-headers): Add locale-defines.sym.
19912         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19913         * sysdeps/x86_64/strcasecmp.S: New file.
19914         * sysdeps/x86_64/strcasecmp_l.S: New file.
19915         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19916         * sysdeps/x86_64/locale-defines.sym: New file.
19917         * string/test-strcasecmp.c: New file.
19918
19919         * string/test-strcasestr.c: Test both ends of the range of characters.
19920         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19921
19922 2010-07-29  Roland McGrath  <roland@redhat.com>
19923
19924         [BZ #11856]
19925         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19926
19927 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19928
19929         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19930         for ld.so.
19931
19932 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19933
19934         * manual/memory.texi (Malloc Tunable Parameters): Document
19935         M_PERTURB.
19936
19937 2010-07-26  Roland McGrath  <roland@redhat.com>
19938
19939         [BZ #11840]
19940         * configure.in (-fgnu89-inline check): Set and substitute
19941         gnu89_inline, not libc_cv_gnu89_inline.
19942         * configure: Regenerated.
19943         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19944
19945 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19946
19947         * string/test-strnlen.c: New file.
19948         * string/Makefile (strop-tests): Add strnlen.
19949         * string/tester.c (test_strnlen): Add a few more test cases.
19950         * string/tst-strlen.c: Better error reporting.
19951
19952         * sysdeps/x86_64/strnlen.S: New file.
19953
19954 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19955
19956         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19957         lower-latency instructions.
19958
19959 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19960
19961         * string/test-strcasestr.c: New file.
19962         * string/test-strstr.c: New file.
19963         * string/Makefile (strop-tests): Add strstr and strcasestr.
19964         * string/str-two-way.h: Don't undefine MAX.
19965         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19966
19967 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19968
19969         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19970         strcasestr-nonascii.
19971         (CFLAGS-strcasestr-nonascii.c): Define.
19972         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19973         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19974         Remove unused attribute.
19975
19976 2010-07-20  Roland McGrath  <roland@redhat.com>
19977
19978         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
19979         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
19980         ld.so.cache was broken.  With it, there is no way to disable dsocaps
19981         like LD_HWCAP_MASK can disable hwcaps.
19982
19983 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19984
19985         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
19986
19987 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
19988
19989         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
19990         call in strcasestr.
19991         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
19992         __strcasestr_sse42_nonascii.
19993         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
19994         strcasestr-nonascii.c.
19995         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
19996
19997 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
19998
19999         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20000         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20001         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20002         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20003
20004 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20005
20006         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20007         fcntl.
20008
20009 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20010
20011         [BZ #11577]
20012         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20013         dl_signal_cerror.
20014
20015 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20016
20017         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20018         _PC_PIPE_BUF using F_GETPIPE_SZ.
20019
20020 2010-07-05  Roland McGrath  <roland@redhat.com>
20021
20022         * manual/arith.texi (Rounding Functions): Fix rint description
20023         implicit in round description.
20024
20025 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20026
20027         * elf/Makefile: Fix linking for a few tests to make recent linker
20028         happy.
20029
20030 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20031
20032         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20033         $(common-objpfx)libc_nonshared.a.
20034
20035 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20036
20037         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20038         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20039         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20040         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20041         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20042         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20043         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20044         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20059         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20060         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20061         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20062         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20063         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20064         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20065         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20066         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20067         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20068         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20069         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20070         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20085
20086 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20087
20088         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20089         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20090         * string/memmove.c (memmove): Renamed to ...
20091         (MEMMOVE): ...this.  Default to memmove.
20092         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20093         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20094         (END_CHK): Define.
20095         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20096         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20097         mempcpy-ssse3-back memmove-ssse3-back.
20098         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20099         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20100         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20101         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20102         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20103         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20104         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20105         * sysdeps/x86_64/multiarch/memmove.c: New file.
20106         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20107         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20108         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20109         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20110         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20111         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20112         Define.
20113         (index_Fast_Copy_Backward): Define.
20114         (HAS_ARCH_FEATURE): Define.
20115         (HAS_FAST_REP_STRING): Define.
20116         (HAS_FAST_COPY_BACKWARD): Define.
20117
20118 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20119
20120         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20121         Restore proper fallback handling.
20122
20123 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20124
20125         [BZ #11701]
20126         * posix/group_member.c (__group_member): Correct checking loop.
20127
20128         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20129         OOM in getpwuid_r correctly.  Return error number when the caller
20130         should return, otherwise -1.
20131         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20132         call returning > 0 value.
20133         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20134
20135 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20136
20137         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20138         libc_nonshared.a from targets in modules-names.
20139
20140 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20141
20142         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20143         requires it.
20144
20145 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20146
20147         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20148         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20149         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20150         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20151
20152 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20153
20154         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20155
20156 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20157
20158         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20159         and F_GETPIPE_SZ.
20160         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20161         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20162         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20163         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20164         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20165         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20166
20167 2010-06-14  Roland McGrath  <roland@redhat.com>
20168
20169         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20170
20171 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20172
20173         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20174         __REDIRECT followed by __THROW.
20175         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20176         * posix/getopt.h (getopt): Likewise.
20177
20178 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20179
20180         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20181         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20182         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20183         in AT_FLAGS.
20184         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20185         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20186
20187 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20188
20189         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20190
20191 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20192
20193         [BZ #11640]
20194         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20195         Properly check family and model.
20196
20197 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20198
20199         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20200
20201 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20202
20203         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20204
20205 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20206
20207         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20208         symbol reference.
20209
20210 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20211
20212         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20213         symbol reference.
20214
20215 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20216
20217         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20218         and internal_recvmmsg.
20219         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20220         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20221         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20222         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20223
20224         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20225         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20226         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20227
20228 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20229
20230         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20231
20232 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20233
20234         POWER7 optimizations.
20235         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20236         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20237
20238 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20239
20240         * version.h: Update for 2.13 development version.
20241
20242 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20243
20244         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20245         exceptions.  Return 0.
20246
20247 2010-05-07  Roland McGrath  <roland@redhat.com>
20248
20249         * elf/ldconfig.c (main): Add a const.
20250
20251 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20252
20253         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20254         (args_options): Add no-idn option.
20255         (ahosts_keys_int): Add idn_flags to ai_flags.
20256         (parse_option): Handle 'i' option to clear idn_flags.
20257
20258         * malloc/malloc.c (_int_free): Possible race in the most recently
20259         added check.  Only act on the data if no current modification
20260         happened.
20261
20262 See ChangeLog.17 for earlier changes.