Don't call feclearexcept in gamma function tests.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2
3         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
4         (lgamma_test): Likewise.
5         (tgamma_test): Likewise.
6
7 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8
9         [BZ #14700]
10         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
11         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
12
13 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14
15         * NEWS: Mention BZ #14716.
16         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
17         when removing AVAILABLE1_USES_J macro.
18
19 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
20
21         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
22         (__bswap_64): __uint64_t for unsigned 64-bit int.
23
24 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
25
26         * include/string.h (memmem): Declare libc hidden alias.
27         * string/memmem.c (memmem): Define libc hidden alias.
28         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
29         __read, __close instead of open, read, close.
30
31 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
32
33         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
34         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
35         global and hidden.
36         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
37         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
38         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
39         Likewise.
40         (__rawmemchr_sse2): Likewise.
41         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
42         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
43         (__strchr_sse2): Likewise.
44         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
45         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
46         (__strcasecmp_sse2): Likewise.
47         (__strncasecmp_sse2): Likewise.
48         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
49         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
50         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
51         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
52         (__strrchr_sse2): Likewise.
53         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
54         ifunc-impl-list.c.
55         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
58         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
59         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
60         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
61         * sysdeps/x86_64/multiarch/memset.S: Likewise.
62         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
63         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
64         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
65         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
66         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
67         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
68         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
69         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
70         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
71         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
72         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
73         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
74         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
75         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
76         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
77         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
78         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
79         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
80         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
81         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
82         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
83         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
84         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
85
86         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
87         global and hidden.
88         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
89         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
90         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
91         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
92         Likewise.
93         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
94         Likewise.
95         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
96         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
97         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
98         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
99         ifunc-impl-list.c.
100         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
101         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
102         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
103         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
104         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
105         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
106         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
107         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
108         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
109         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
110         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
111         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
112         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
113         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
114         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
115         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
116         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
117         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
118         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
119         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
120         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
121         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
122         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
123         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
124         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
125         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
126         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
127         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
128         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
129         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
130         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
131         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
132         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
133         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
134         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
135         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
136         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
137         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
138         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
139         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
140         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
141
142         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
143         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
144         * include/ifunc-impl-list.h: New file.
145         * misc/ifunc-impl-list.c: Likewise.
146         * misc/Makefile (routines): Add ifunc-impl-list.
147         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
148         * string/test-string.h: Include <ifunc-impl-list.h>.
149         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
150         impl_array): New variables.
151         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
152         are defined.
153         (test_init): Call __libc_ifunc_impl_list to initialize
154         func_list if TEST_IFUNC and TEST_NAME are defined.
155
156         * string/Makefile (strop-tests): Add bcopy and bzero.
157         * string/test-bcopy.c: New file.
158         * string/test-bzero.c: Likewise.
159         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
160         defined.
161         * string/test-memset.c: Support bzero test if TEST_BZERO is
162         defined.
163         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
164         __libc_memmove.
165         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
166         __libc_memset.
167         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
168         of memset.
169
170 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
171
172         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
173         * configure: Regenerated.
174
175         * Makeconfig (+link-static-before-libc): Don't include
176         $(link-static-libc).
177
178         * libio/libio.h (_IO_pos_t): Remove.
179
180 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
181
182         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
183         McGrath.
184
185 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
186
187         * crypt/crypt-entry.c: Include fips-private.h.
188         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
189         * crypt/md5c-test.c (main): Tolerate disabled MD5.
190         * sysdeps/unix/sysv/linux/fips-private.h: New file.
191         * sysdeps/generic/fips-private.h: New file, dummy fallback.
192
193 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
194
195         * crypt/crypt-private.h: Include stdbool.h.
196         (_ufc_setup_salt_r): Return bool.
197         * crypt/crypt-entry.c: Include errno.h.
198         (__crypt_r): Return NULL with EINVAL for bad salt.
199         * crypt/crypt_util.c (bad_for_salt): New.
200         (_ufc_setup_salt_r): Check that salt is long enough and within
201         the specified alphabet.
202         * crypt/badsalttest.c: New file.
203         * crypt/Makefile (tests): Add it.
204         ($(objpfx)badsalttest): New.
205
206 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
207
208         * NEWS: Add entry for BZ #14602.
209
210 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
211
212         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
213         type-generic.
214         * math/libm-test.inc: Update comment listing what functions and
215         macros are tested.
216         (isgreater_test): New function.
217         (isgreaterequal_test): Likewise.
218         (isless_test): Likewise.
219         (islessequal_test): Likewise.
220         (islessgreater_test): Likewise.
221         (isunordered_test): Likewise.
222         (main): Call the new functions.
223
224 2012-10-09  Roland McGrath  <roland@hack.frob.com>
225
226         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
227         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
228         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
229         * sysdeps/i386/configure: Regenerated.
230         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
231         * sysdeps/mach/configure: Regenerated.
232         * sysdeps/mach/hurd/configure: Regenerated.
233         * sysdeps/powerpc/configure: Regenerated.
234         * sysdeps/powerpc/powerpc32/configure: Regenerated.
235         * sysdeps/powerpc/powerpc64/configure: Regenerated.
236         * sysdeps/s390/s390-32/configure: Regenerated.
237         * sysdeps/s390/s390-64/configure: Regenerated.
238         * sysdeps/sh/configure: Regenerated.
239         * sysdeps/sparc/configure: Regenerated.
240         * sysdeps/unix/sysv/linux/configure: Regenerated.
241         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
242         * sysdeps/x86_64/configure: Regenerated.
243
244         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
245         defined.  Don't check if MAP is NULL.
246
247 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
248
249         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
250         (_G_stat64): Likewise.
251         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
252         (_G_stat64): Likewise.
253         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
254         instead of struct _G_stat64.
255         * libio/fileops.c (mmap_remap_check): Likewise.
256         (decide_maybe_mmap): Likewise.
257         (_IO_new_file_seekoff): Likewise.
258         (_IO_file_stat): Likewise.
259         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
260         _G_off64_t.
261         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
262         instead of struct _G_stat64.
263         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
264
265 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
266
267         [BZ #14602]
268         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
269         Replace with ...
270         (CHECK_EOL): New macro.
271         (two_way_short_needle): Check beginning of haystack for EOL.  Use
272         CHECK_EOL.
273         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
274         Replace with CHECK_EOL.
275         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
276         Replace with CHECK_EOL.
277
278 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
279
280         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
281         type-generic.
282         * math/libm-test.inc: Update comment listing what functions and
283         macros are tested.
284         (finite_test): New function.
285         (isinf_test): Likewise.
286         (isnan_test): Likewise.
287         (fpclassify_test): Test subnormal input.
288         (isfinite_test): Likewise.
289         (isnormal_test): Likewise.
290         (main): Call the new functions.
291
292 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
293
294         [BZ #14660]
295         * Makerules (%.dynsym): Force C locale when running
296         $(OBJDUMP) --dynamic-syms.
297
298 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
299
300         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
301         <stdint.h>.
302
303 2012-10-06  David S. Miller  <davem@davemloft.net>
304
305         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
306         upper 32-bits of the length value in %o2 since we use branch-on-register
307         tests which consider the entire 64-bit register.
308
309 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
310
311         * string/test-strstr.c (check2): Add a test for page boundary.
312
313 2012-10-05  David S. Miller  <davem@davemloft.net>
314
315         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
316         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
317         file.
318         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
319         sysdep_routines.
320         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
321         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
322         and bzero when HWCAP_SPARC_CRYPTO is present.
323
324 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
325
326         [BZ #14602]
327         * string/test-strstr.c (check2): New function.
328         (test_main): Call check2.
329
330         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
331         and bug-strchr1.
332         * string/bug-strcasestr1.c (do_test): Moved to ...
333         * string/test-strcasestr.c (check1): Here.  New function.
334         (do_one_test): Break out result checking code into ...
335         (check_result): This.  New function.
336         (do_one_test): Call check_result.
337         (test_main): Call check1.
338         * string/bug-strchr1.c (do_test): Moved to ...
339         * string/test-strchr.c (check1): Here.  New function.
340         (do_one_test): Break out result checking code into ...
341         (check_result): This.  New function.
342         (do_one_test): Call check_result.
343         (test_main): Call check1.
344         * string/bug-strstr1.c (main): Moved to ...
345         * string/test-strchr.c (check1): Here.  New function.
346         (do_one_test): Break out result checking code into ...
347         (check_result): This.  New function.
348         (do_one_test): Call check_result.
349         (test_main): Call check1.
350         * string/bug-strcasestr1.c: Removed.
351         * string/bug-strchr1.c: Likewise.
352         * string/bug-strstr1.c: Likewise.
353
354         * elf/Makefile (dl-routines): Add hwcaps.
355         * elf/dl-support.c (_dl_important_hwcaps): Removed.
356         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
357         (_dl_important_hwcaps): Moved to ...
358         * elf/dl-hwcaps.c: Here.  New file.
359         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
360
361         [BZ #14557]
362         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
363         if IS_IN_rtld isn't defined.
364
365         * elf/dl-support.c (_dl_sysinfo_map): New.
366         Include "get-dynamic-info.h" and "setup-vdso.h".
367         (_dl_non_dynamic_init): Call setup_vdso.
368         * elf/dynamic-link.h: Don't include <assert.h>.
369         (elf_get_dynamic_info): Moved to ...
370         * elf/get-dynamic-info.h: Here.  New file.
371         * elf/dynamic-link.h: Include "get-dynamic-info.h".
372         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
373         * elf/setup-vdso.h: Here.  New file.
374         * elf/rtld.c: Include "setup-vdso.h".
375         (dl_main): Call setup_vdso.
376
377 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
378
379         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
380         creal in comment listing functions tested.  List finite, isinf,
381         isnan, isless, islessequal, isgreater, isgreaterequal,
382         islessgreater, isunordered, lgamma_r and pow10 as functions and
383         macros not tested.  Mention which functions not tested are aliases
384         for other functions.  Fix typo.  Note that signs of NaNs are not
385         tested.
386
387         * scripts/config.guess: Update from config.git.
388         * scripts/config.sub: Likewise.
389
390 2012-10-04  Roland McGrath  <roland@hack.frob.com>
391
392         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
393         * misc/madvise.c (madvise): Renamed to __madvise.
394         Make madvise a weak alias.
395         * include/sys/mman.h: Declare __madvise.
396         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
397         * sysdeps/unix/syscalls.list
398         (madvise): Make __madvise the strong name, and madvise a weak alias.
399         * sysdeps/unix/sysv/linux/syscalls.list
400         (madvise, mmap): Remove redundant entries.
401         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
402         * malloc/malloc.c (mtrim): Likewise.
403         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
404
405 2012-10-03  Roland McGrath  <roland@hack.frob.com>
406
407         * sysdeps/mach/hurd/dl-cache.c: File removed.
408         * config.h.in (USE_LDCONFIG): New #undef.
409         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
410         * configure: Regenerated.
411         * elf/Makefile (dl-routines): Add dl-cache only under
412         [$(use-ldconfig) = yes].
413         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
414         cache on [USE_LDCONFIG].
415         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
416         [USE_LDCONFIG].
417         * elf/rtld.c (dl_main): Likewise.
418
419 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
420
421         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
422         _SC_LEVEL4_CACHE_LINESIZE.
423
424 2012-10-03  Roland McGrath  <roland@hack.frob.com>
425
426         * sysdeps/unix/bsd/confstr.h: File removed.
427
428 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
429
430         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
431         sys/sdt-config.h.
432
433 2012-10-02  Roland McGrath  <roland@hack.frob.com>
434
435         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
436         Make 'mapoff' field ElfW(Off) rather than off_t.
437
438 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
439
440         * nscd/Makefile: Remove nscd-cflags and all its users.
441         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
442         (CFLAGS-nonlib): Add compiler flags for nscd modules.
443
444         [BZ #10631]
445         * malloc.c (malloc_printerr): Clarify error message.
446
447 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
448
449         [BZ #14648]
450         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
451         Set bit_FMA_Usable if FMA is supported.
452         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
453         macro.
454         (bit_FMA4_Usable): Updated.
455         (index_FMA_Usable): New macro.
456         (CPUID_FMA): Likewise
457         (HAS_FMA): Defined with bit_FMA_Usable.
458
459 2012-10-01  Roland McGrath  <roland@hack.frob.com>
460
461         * bits/types.h (__swblk_t): Type removed.
462         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
463         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
464         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
465         (__SWBLK_T_TYPE): Likewise.
466         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
467         (__SWBLK_T_TYPE): Likewise.
468         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
469         (__SWBLK_T_TYPE): Likewise.
470         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
471         (__SWBLK_T_TYPE): Likewise.
472
473 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
474             Honza Horak <hhorak@redhat.com>
475
476         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
477         (xdr_mapname): Use YPMAXMAP as maxsize.
478         (xdr_peername): Use YPMAXPEER as maxsize.
479         (xdr_keydat): Use YPAXRECORD as maxsize.
480         (xdr_valdat): Use YPMAXRECORD as maxsize.
481
482 2012-10-01  Roland McGrath  <roland@hack.frob.com>
483
484         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
485
486         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
487         * csu/init-first.c: ... here.
488         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
489         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
490         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
491         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
492         * sysdeps/i386/init-first.c: File removed.
493         * sysdeps/sh/init-first.c: File removed.
494
495 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
496
497         [BZ #14645]
498         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
499         if x * y might underflow to zero and z is zero.
500         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
501         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
502         * math/libm-test.inc (min_subnorm_value): New variable.
503         (fma_test): Add more tests.
504         (fma_test_towardzero): Likewise.
505         (fma_test_downward): Likewise
506         (fma_test_upward): Likewise.
507         (initialize): Set min_subnorm_value.
508
509 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
510
511         [BZ #14638]
512         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
513         0 + 0.
514         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
515         mode for addition resulting in exact zero.
516         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
517         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
518         exact 0 + 0.
519         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
520         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
521         * math/libm-test.inc (fma_test): Add more tests.
522         (fma_test_towardzero): New function.
523         (fma_test_downward): Likewise.
524         (fma_test_upward): Likewise.
525         (main): Call the new functions.
526
527 2012-09-28  David S. Miller  <davem@davemloft.net>
528
529         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
530
531 2012-09-28  Roland McGrath  <roland@hack.frob.com>
532
533         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
534         instead of SIGALRM.
535
536         * sysdeps/gnu/_G_config.h: Moved to ...
537         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
538         * sysdeps/mach/hurd/_G_config.h: Moved to ...
539         * sysdeps/generic/_G_config.h: ... here.
540
541         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
542
543         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
544
545         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
546         Conditionalize target on [libnss_test1.so-version].
547
548         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
549
550         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
551         (elfobjdir): Move out of conditionals.
552
553         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
554         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
555         (__nss_lookup_function): Conditionalize label remove_from_tree on
556         [!DO_STATIC_NSS || SHARED], matching its only use.
557
558 2012-09-28  David S. Miller  <davem@davemloft.net>
559
560         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
561         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
562         file.
563         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
564         sysdep_routines.
565         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
566         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
567         when HWCAP_SPARC_CRYPTO is present.
568
569 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
570
571         * io/tst-mknodat.c: Create a FIFO instead of a socket.
572
573 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
574
575         [BZ #6530]
576         * stdio-common/vfprintf.c (process_string_arg): Revert
577         2000-07-22 change.
578
579 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
580
581         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
582         for testcase.
583         * stdio-common/tst-sprintf.c: Include <locale.h>
584         (main): Test sprintf's handling of incomplete multibyte
585         characters.
586
587 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
588
589         * elf/dl-runtime.c (VERSYMIDX): Removed.
590         * elf/dl-version.c (VERSYMIDX): Likewise.
591         * elf/do-rel.h (VERSYMIDX): Likewise.
592         (VALIDX): Likewise.
593         * elf/dynamic-link.h (VERSYMIDX): Likewise.
594         * elf/rtld.c (VALIDX): Likewise.
595         (ADDRIDX): Likewise.
596         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
597         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
598         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
599         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
600         (VALIDX): Likewise.
601         (ADDRIDX): Likewise.
602
603 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
604
605         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
606
607 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
608
609         [BZ #11438]
610         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
611         to global scope.
612         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
613         addresses are in the same scope as 192.0.2/24.
614         * posix/gai.conf: Document new scope table defaults.
615
616 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
617
618         [BZ #5298]
619         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
620         for ftell.  Compute offsets from write pointers instead.
621         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
622
623 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
624
625         [BZ #14543]
626         * libio/Makefile (tests): New test case tst-fseek.
627         * libio/tst-fseek.c: New test case to verify that fseek/ftell
628         combination works in wide mode.
629         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
630         state when the external buffer state changes.
631
632 2012-09-27  David S. Miller  <davem@davemloft.net>
633
634         [BZ #14376]
635         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
636         pass reloc->r_addend in as the 'high' argument to
637         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
638
639         * sysdeps/sparc/fpu/libm-test-ulps: Update.
640
641 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
642
643         * rt/tst-aio2.c: Include <pthread.h>.
644         * rt/tst-aio3.c: Likewise.
645
646 2012-09-27  Steve Ellcey  <sellcey@mips.com>
647
648         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
649
650 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
651
652         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
653         contents on [SHARED].
654
655 2012-09-26  Marek Polacek  <polacek@redhat.com>
656
657         [BZ #14530]
658         [BZ #13741]
659         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
660         for C++ and GCC <4.3 as well as for non GCC compilers.
661
662 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
663
664         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
665
666 2012-09-25  Roland McGrath  <roland@hack.frob.com>
667
668         * Makefile.in (all, install): Declare with .PHONY.
669         Reported by Michael Hope <michael.hope@linaro.org>.
670
671 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
672
673         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
674         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
675         system header.
676         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
677         Likewise.
678         (sydep_routines): Add the new and the internal functions.
679         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
680         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
682         (GLIBC_2.17): Add the new function.
683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
684         (GLIBC_2.17): Likewise.
685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
686         (GLIBC_2.17): Likewise.
687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
688         (GLIBC_2.17): Likewise.
689         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
690
691 2012-09-25  Alan Modra  <amodra@gmail.com>
692
693         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
694         Add release barrier before setting once_control to say
695         initialisation is done.  Add hints on lwarx.  Use macro in
696         place of isync.
697         (clear_once_control): Add release barrier.
698
699 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
700
701         [BZ #13629]
702         * math/s_clog.c (__clog): Handle more values close to |z| = 1
703         specially.
704         * math/s_clog10.c (__clog10): Likewise.
705         * math/s_clog10f.c (__clog10f): Likewise.
706         * math/s_clog10l.c (__clog10l): Likewise.
707         * math/s_clogf.c (__clogf): Likewise.
708         * math/s_clogl.c (__clogl): Likewise.
709         * math/Makefile (libm-calls): Add x2y2m1.
710         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
711         (__x2y2m1): Likewise.
712         (__x2y2m1l): Likewise.
713         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
714         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
715         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
716         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
717         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
718         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
719         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
720         * sysdeps/i386/fpu/libm-test-ulps: Update.
721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
722
723         [BZ #14621]
724         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
725         int as type of variable DEPTH.
726         (glob): Use size_t instead of int as type of variables NEWCOUNT
727         and OLD_PATHC.
728
729 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
730
731         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
732         Add s_sincosf-sse2.
733         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
734         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
735         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
736         macros for using routine as __sincosf_ia32.
737         Use macro for function declaration and weak_alias.
738         * sysdeps/i386/fpu/libm-test-ulps: Update.
739
740         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
741         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
742
743         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
744         subnormal argument.
745         * math/s_cexpf.c (__cexpf): Likewise.
746         * math/s_csinf.c (__csinf): Likewise.
747         * math/s_csinhf.c (__csinhf): Likewise.
748         * math/s_ctanf.c (__ctanf): Likewise.
749         * math/s_ctanhf.c (__ctanhf): Likewise.
750         * math/s_ccosh.c (__ccoshf): Likewise.
751         * math/s_cexp.c (__cexpl): Likewise.
752         * math/s_csin.c (__csin): Likewise.
753         * math/s_csinh.c (__csinh): Likewise.
754         * math/s_ctan.c (__ctan): Likewise.
755         * math/s_ctanh.c (ctanh): Likewise.
756         * math/s_ccoshl.c (__ccoshl): Likewise.
757         * math/s_cexpl.c (__cexpl): Likewise.
758         * math/s_csinl.c (__csinl): Likewise.
759         * math/s_csinhl.c (__csinhl): Likewise.
760         * math/s_ctanl.c (__ctanl): Likewise.
761         * math/s_ctanhl.c (__ctanhl): Likewise.
762
763 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
764
765         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
766         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
767         (_IO_off_t): Define to __off_t, not _G_off_t.
768         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
769         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
770         (_IO_wint_t): Define to wint_t, not _G_wint_t.
771         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
772         type of __dummy and __dummy2 fields.
773         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
774         (_G_ssize_t): Likewise.
775         (_G_off_t): Likewise.
776         (_G_pid_t): Likewise.
777         (_G_uid_t): Likewise.
778         (_G_wchar_t): Likewise.
779         (_G_wint_t): Likewise.
780         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
781         (_G_ssize_t): Likewise.
782         (_G_off_t): Likewise.
783         (_G_pid_t): Likewise.
784         (_G_uid_t): Likewise.
785         (_G_wchar_t): Likewise.
786         (_G_wint_t): Likewise.
787         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
788         (_G_ssize_t): Likewise.
789         (_G_off_t): Likewise.
790         (_G_pid_t): Likewise.
791         (_G_uid_t): Likewise.
792         (_G_wchar_t): Likewise.
793         (_G_wint_t): Likewise.
794
795 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
796
797         * malloc/arena.c: Include malloc-sysdep.h.
798         (shrink_heap): Use check_may_shrink_heap to decide if madvise
799         is sufficient to shrink the heap or an unmap is needed.
800         * sysdeps/generic/malloc-sysdep.h: New file.  Define
801         new function check_may_shrink_heap.
802         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
803         new function check_may_shrink_heap.
804
805 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
806
807         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
808         comments.
809
810 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
811
812         * catgets/test-gencat.sh: Add "set -e".
813         * elf/tst-pathopt.sh: Likewise.
814         * grp/tst_fgetgrent.sh: Likewise.
815         * iconvdata/run-iconv-test.sh: Likewise.
816         * intl/tst-gettext.sh: Likewise.
817         * intl/tst-gettext2.sh: Likewise.
818         * intl/tst-gettext4.sh: Likewise.
819         * intl/tst-gettext6.sh: Likewise.
820         * intl/tst-translit.sh: Likewise.
821         * io/ftwtest-sh: Likewise.
822         * libio/test-freopen.sh: Likewise.
823         * malloc/tst-mtrace.sh: Likewise.
824         * posix/globtest.sh: Likewise.
825         * posix/tst-getconf.sh: Likewise.
826         * posix/wordexp-tst.sh: Likewise.
827         * stdio-common/tst-printf.sh: Likewise.
828         * stdio-common/tst-unbputc.sh: Likewise.
829         * stdlib/tst-fmtmsg.sh: Likewise.
830         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
831         * catgets/Makefile: Do not specify -e option when running
832         testsuite shell scripts.
833         * elf/Makefile: Likewise.
834         * grp/Makefile: Likewise.
835         * iconvdata/Makefile: Likewise.
836         * intl/Makefile: Likewise.
837         * io/Makefile: Likewise.
838         * libio/Makefile: Likewise.
839         * malloc/Makefile: Likewise.
840         * posix/Makefile: Likewise.
841         * stdio-common/Makefile: Likewise.
842         * stdlib/Makefile: Likewise.
843         * sysdeps/x86_64/Makefile: Likewise.
844
845         * io/ftwtest-sh: Add copyright header.
846         * posix/globtest.sh: Likewise.
847         * posix/tst-getconf.sh: Likewise.
848         * posix/wordexp-tst.sh: Likewise.
849         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
850
851 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
852
853         [BZ #13679]
854         * Makeconfig (+link): Defined as $(+link-static) if
855         $(build-shared) isn't yes.
856         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
857         isn't yes.
858         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
859
860         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
861
862         [BZ #14562]
863         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
864         new chunk size with MALLOC_ALIGN_MASK.
865
866 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
867
868         [BZ #5044]
869         * stdio-common/printf_fphex.c: Include <stdbool.h> and
870         <rounding-mode.h>.
871         (__printf_fphex): Determine rounding using get_rounding_mode and
872         round_away.
873         * stdio-common/tst-printf-round.c (struct hex_test): New
874         structure.
875         (hex_tests): New variable.
876         (test_hex_in_one_mode): New function.
877         (do_test): Also run tests for hex float output.
878
879 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
880
881         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
882         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
883         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
884         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
885         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
886         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
887         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
888         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
889
890 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
891
892         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
893         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
894         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
895         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
896
897 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
898
899         [BZ #14579]
900         * elf/rtld.c (dl_main): Limit the check for self loading to normal
901         mode only.
902         * elf/tst-rtld-load-self.sh: New test.
903         * elf/Makefile: Run it.
904
905 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
906
907         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
908         (tst-writev-ENV): Remove.
909         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
910
911 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
912
913         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
914
915 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
916
917         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
918         unconditional.
919         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
920         Likewise.
921         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
922         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
923         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
924         Likewise.
925
926 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
927
928         [BZ #14587]
929         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
930         * config.make.in (have-cpp-asm-debuginfo): Removed.
931         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
932         * configure: Regenerated.
933
934 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
935
936         [BZ #5044]
937         * stdio-common/printf_fp.c: Include <stdbool.h> and
938         <rounding-mode.h>.
939         (___printf_fp): Determine rounding using get_rounding_mode and
940         round_away.
941         * stdio-common/tst-printf-round.c: New file.
942         * stdio-common/Makefile (tests): Add tst-printf-round.
943         (link-libm): New variable.
944         ($(objpfx)tst-printf-round): Depend in $(link-libm).
945
946 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
947
948         [BZ #14576]
949         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
950         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
951         Likewise.
952         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
953         Likewise.
954
955 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
956
957         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
958         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
959         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
960         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
961
962 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
963
964         [BZ #14518]
965         * include/rounding-mode.h: New file.
966         * sysdeps/generic/get-rounding-mode.h: Likewise.
967         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
968         * stdlib/strtod_l.c: Include <rounding-mode.h>.
969         (MAX_VALUE): New macro.
970         (MIN_VALUE): Likewise.
971         (overflow_value): New function.
972         (underflow_value): Likewise.
973         (round_and_return): Use overflow_value and underflow_value to
974         determine return values in overflow and underflow cases.  Use
975         round_away to determine rounding depending on rounding mode.
976         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
977         determine return values in overflow and underflow cases.
978         * stdlib/tst-strtod-round.c: Include <fenv.h>.
979         (struct test_results): New structure.
980         (struct test): Use struct test_results to store expected results
981         for all rounding modes.
982         (TEST): Include expected results for all rounding modes.
983         (test_in_one_mode): New function.
984         (do_test): Use test_in_one_mode to compute and check results.
985         Check results for all rounding modes.
986         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
987         $(link-libm).
988
989 2012-12-09  Allan McRae  <allan@archlinux.org>
990
991         * sysdeps/i386/fpu/libm-test-ulps: Update
992
993 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
994
995         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
996         (_G_int32_t): Likewise.
997         (_G_uint16_t): Likewise.
998         (_G_uint32_t): Likewise.
999         (_G_HAVE_BOOL): Likewise.
1000         (_G_HAVE_ATEXIT): Likewise.
1001         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1002         (_G_HAVE_IO_FILE_OPEN): Likewise.
1003         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1004         (_G_int32_t): Likewise.
1005         (_G_uint16_t): Likewise.
1006         (_G_uint32_t): Likewise.
1007         (_G_HAVE_BOOL): Likewise.
1008         (_G_HAVE_ATEXIT): Likewise.
1009         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1010         (_G_HAVE_IO_FILE_OPEN): Likewise.
1011         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1012         (_G_int32_t): Likewise.
1013         (_G_uint16_t): Likewise.
1014         (_G_uint32_t): Likewise.
1015         (_G_HAVE_BOOL): Likewise.
1016         (_G_HAVE_ATEXIT): Likewise.
1017         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1018         (_G_HAVE_IO_FILE_OPEN): Likewise.
1019
1020 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1021
1022         * csu/libc-tls.c: Update copyright years.
1023
1024 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1025
1026         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1027         [!_G_USING_THUNKS]: Remove conditional code.
1028         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1029         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1030
1031         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1032         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1033         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1034         (_G_VTABLE_LABEL_PREFIX): Likewise.
1035         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1036         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1037         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1038         (_G_VTABLE_LABEL_PREFIX): Likewise.
1039         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1040         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1041         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1042         (_G_VTABLE_LABEL_PREFIX): Likewise.
1043         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1044
1045 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1046
1047         * libio/Makefile: Include ../Makeconfig before tests.
1048         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1049         only if $(build-shared) is yes.
1050
1051         * iconv/gconv_db.c: Update copyright years.
1052
1053 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1054
1055         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1056         unwind info if defined PIC. Fix special cases description.
1057         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1058
1059         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1060         DP_HI_MASK entry.
1061         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1062
1063 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1064
1065         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1066
1067         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1068         is NULL.
1069
1070         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1071         (LDLIBS-tst-chk4): This.
1072         (LDFLAGS-tst-chk5): Renamed to ...
1073         (LDLIBS-tst-chk5): This.
1074         (LDFLAGS-tst-chk6): Renamed to ...
1075         (LDLIBS-tst-chk6): This.
1076         (LDFLAGS-tst-lfschk4): Renamed to ...
1077         (LDLIBS-tst-lfschk4): This.
1078         (LDFLAGS-tst-lfschk5): Renamed to ...
1079         (LDLIBS-tst-lfschk5): This.
1080         (LDFLAGS-tst-lfschk6): Renamed to ...
1081         (LDLIBS-tst-lfschk6): This.
1082
1083         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1084         on $(common-objpfx)soversions.mk.
1085
1086 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1087
1088         [BZ #10014]
1089         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1090         example host name.
1091
1092 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1093
1094         * malloc/arena.c (arena_get_retry): New function that gets
1095         another arena for the caller to try its request on.
1096         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1097         current arena cannot fulfill the request.
1098         (__libc_memalign): Likewise.
1099         (__libc_memalign): Likewise.
1100         (__libc_pvalloc): Likewise.
1101         (__libc_calloc): Likewise.
1102
1103 2012-09-05  John Tobey  <john.tobey@gmail.com>
1104
1105         [BZ #13542]
1106         * manual/arith.texi (Operations on Complex): Fix description
1107         of carg branch cut.
1108
1109 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1110
1111         [BZ #10014]
1112         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1113         host name.
1114
1115         [BZ #10038]
1116         * manual/memory.texi (Memory): Make order of menu items match
1117         order of sections.
1118
1119 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1120
1121         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1122         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1123         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1124
1125 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1126
1127         * csu/libc-tls.c (static_dtv): Renamed to ...
1128         (_dl_static_dtv): This.  Make it global.
1129         (_dl_initial_dtv): Removed.
1130         (__libc_setup_tls): Updated.
1131         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1132         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1133         DL_INITIAL_DTV.
1134
1135 2012-09-06  Petr Machata  <pmachata@redhat.com>
1136
1137         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1138         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1139         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1140         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1141
1142 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1143
1144         [BZ #14545]
1145         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1146         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1147         freeing dtv[-1].
1148
1149 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1150
1151         [BZ #14544]
1152         * Makeconfig (link-static-before-libc): Replace $(+prector)
1153         with $(+prectorT).
1154         (link-static-after-libc): Replace $(+postctor) with
1155         $(+postctorT).
1156         (link-bounded): Replace $(+prector)/$(+postctor) with
1157         $(+prectorT)/$(+postctorT).
1158         (+prectorT): New macro.
1159         (+postctorT): Likewise.
1160
1161 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1162
1163         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1164         (round_str): Handle values above the maximum for IBM long double
1165         as inexact.
1166         * stdlib/tst-strtod-round.c (tests): Regenerated.
1167
1168 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1169
1170         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1171         assembler flag.
1172         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1173         zarch_nohighgprs around the zarch optimized routines.
1174         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1175         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1176         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1177         for zarch.
1178
1179 2012-09-05  David S. Miller  <davem@davemloft.net>
1180
1181         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1182
1183         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1184         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1185         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1186         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1187         entries.
1188
1189 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1190
1191         * malloc/arena.c: Fold copyright years.
1192         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1193
1194 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1195
1196         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1197
1198 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1199
1200         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1201
1202 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1203
1204         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1205         change internal state upon failure.
1206
1207 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1208
1209         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1210         * malloc/memusage.c (mmap): Likewise.
1211         (mmap64, mremap): Likewise.  Adjust name in comment.
1212
1213 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1214
1215         * libio/fileops.c: Fix typos in comments.
1216         * libio/oldfileops.c: Likewise.
1217         * libio/wfileops.c: Likewise.
1218
1219 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1220
1221         [BZ #1349]
1222         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1223         (tst-malloc-usable-ENV): Set environment for test case.
1224         * malloc/hooks.c (malloc_check_get_size): New function to get
1225         requested size.
1226         * malloc/malloc.c (musable): Use malloc_check_get_size.
1227         * malloc/tst-malloc-usable.c: New test case.
1228
1229 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1230
1231         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1232
1233 2012-09-05  Allan McRae  <allan@archlinux.org>
1234
1235         [BZ #13966]
1236         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1237         determine header location.
1238         * configure: Regenerated.
1239
1240 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1241
1242         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1243         float format.
1244         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1245         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1246         format.
1247         (test): Regenerate.
1248
1249 2012-09-04  David S. Miller  <davem@davemloft.net>
1250
1251         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1252         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1253         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1254
1255 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1256
1257         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1258         failures.
1259
1260         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1261
1262 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1263
1264         [BZ #9914]
1265         * libio/iogetdelim.c: Include <limits.h>.
1266         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1267         + len + 1 would overflow.
1268
1269 2012-09-03  Andreas Jaeger  <aj@suse.de>
1270
1271         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1272         * sysdeps/i386/fpu/libm-test-ulps: Update.
1273
1274 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1275
1276         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1277         Add s_sinf-sse2, s_conf-sse2.
1278
1279         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1280         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1281         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1282         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1283
1284         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1285         for using routine as __sinf_ia32.
1286         Use macro for function declaration and weak_alias.
1287         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1288         for using routine as __cosf_ia32.
1289         Use macro for function declaration and weak_alias.
1290
1291         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1292         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1293
1294         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1295         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1296         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1297
1298         * math/libm-test.inc (cos_test): Add more test cases.
1299         (sin_test): Likewise.
1300         (sincos_test): Likewise.
1301
1302 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1303
1304         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1305         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1306         hidden.
1307         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1308
1309 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1310
1311         [BZ #14538]
1312         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1313         first element of the GOT.
1314         (elf_machine_load_address): Return the difference between
1315         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1316
1317 2012-09-01  Allan McRae  <allan@archlinux.org>
1318
1319         [BZ #13412]
1320         * configure.in (AWK): Require gawk version 3.0 or later.
1321         * configure: Regenerated.
1322
1323 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1324
1325         * sysdeps/unix/sysv/linux/kernel-features.h
1326         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1327         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1328         [__NR_clock_getres]: Make code unconditional.
1329         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1330         (clock_getcpuclockid): Remove code left unreachable by removal of
1331         conditionals.
1332         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1333         code unconditional.
1334         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1335         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1336         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1337         Make code unconditional.
1338         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1339         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1340         * sysdeps/unix/sysv/linux/clock_settime.c
1341         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1342         conditional code.
1343         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1344         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1345
1346 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1347
1348         [BZ #14476]
1349         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1350         scripts/test-installation.pl.
1351
1352         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1353         and $ld_so_version if it is set.
1354
1355 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1356
1357         [BZ #14516]
1358         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1359         failure if reading from procfs failed.
1360         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1361
1362 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1363
1364         * sysdeps/unix/sysv/linux/kernel-features.h
1365         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1366         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1367         Remove conditional code.
1368         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1369         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1370         Remove conditional code.
1371         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1372         * sysdeps/unix/sysv/linux/i386/fxstat.c
1373         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1374         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1375         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1376         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1377         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1378         * sysdeps/unix/sysv/linux/i386/lxstat.c
1379         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1380         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1381         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1382         Remove conditional code.
1383         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1384         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1385         Remove conditional code.
1386         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1387         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1388         <kernel-features.h>.
1389         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1390         Remove.
1391         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1392         Remove conditional code.
1393         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1394         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1395         Remove conditional.
1396
1397 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1398
1399         [BZ #5400]
1400         * NEWS: Add fixed bug number.
1401
1402 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1403
1404         [BZ #14519]
1405         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1406         underflowing exponent in case of negative sign.
1407         * stdlib/tst-strtod-round-data: Add more tests.
1408         * stdlib/tst-strtod-round.c (tests): Regenerated.
1409
1410         [BZ #3479]
1411         * stdlib/strtod_l.c (NDIG): Remove.
1412         (HEXNDIG): Likewise.
1413         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1414         smallest representable value.
1415         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1416         lie within an exact representation of 1/2 ulp of the result.
1417         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1418         unconditionally.
1419         (TENS_P9_IDX): Define unconditionally.
1420         (TENS_P9_SIZE): Likewise.
1421         (TENS_P10_IDX): Likewise.
1422         (TENS_P10_SIZE): Likewise.
1423         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1424         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1425         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1426         entries for 10^2^13 and 10^2^14.
1427         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1428         (TENS_P13_IDX): Define.
1429         (TENS_P13_SIZE): Likewise.
1430         (TENS_P14_IDX): Likewise.
1431         (TENS_P14_SIZE): Likewise.
1432         (_fpioconst_pow10): Change array size to
1433         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1434         unconditional.
1435         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1436         1024]: Add entries for 10^2^13 and 10^2^14.
1437         [LAST_POW10 > _LAST_POW10]: Remove #error.
1438         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1439         (_fpioconst_pow10): Change array size to
1440         FPIOCONST_POW10_ARRAY_SIZE.
1441         * stdlib/gen-fpioconst.c: New file.
1442         * stdlib/gen-tst-strtod-round.c: Likewise.
1443         * stdlib/tst-strtod-round-data: Likewise.
1444         * stdlib/tst-strtod-round.c: Likewise.
1445         * stdlib/Makefile (tests): Add tst-strtod-round.
1446
1447         [BZ #14459]
1448         * stdlib/strtod_l.c: Include <stdint.h>.
1449         (NDEBUG): Do not define.
1450         (round_and_return): Change EXPONENT parameter to type intmax_t.
1451         Rearrange calculations to avoid internal overflow possibilities.
1452         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1453         Rearrange calculations to avoid internal overflow possibilities.
1454         Assert that number fits inside MPNSIZE limbs.
1455         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1456         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1457         calculations and add assertions to avoid internal overflow
1458         possibilities.  Add casts to avoid signed/unsigned operations.
1459         * stdlib/tst-strtod-overflow.c: New file.
1460         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1461
1462 2012-08-25  Marek Polacek  <polacek@redhat.com>
1463
1464         * time/time.h: Fix some typos in comments.
1465
1466 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1467
1468         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1469         * posix/tst-rfc3484-2.c: Likewise.
1470         * posix/tst-rfc3484-3.c: Likewise.
1471
1472 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1473
1474         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1475         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1476
1477 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1478
1479         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1480         #include of fxstatat64.c.
1481
1482 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1483
1484         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1485         * shadow/getspent_r.c: Likewise.
1486         * shadow/getspnam.c: Likewise.
1487         * shadow/getspnam_r.c: Likewise.
1488         * gshadow/getsgent.c: Likewise.
1489         * gshadow/getsgent_r.c: Likewise.
1490         * gshadow/getsgnam.c: Likewise.
1491         * gshadow/getsgnam_r.c: Likewise.
1492         * inet/getnetbyad.c: Likewise.
1493         * inet/getnetbyad_r.c: Likewise.
1494         * inet/getnetbynm.c: Likewise.
1495         * inet/getnetbynm_r.c: Likewise.
1496         * inet/getnetent.c: Likewise.
1497         * inet/getnetent_r.c: Likewise.
1498         * inet/getproto.c: Likewise.
1499         * inet/getproto_r.c: Likewise.
1500         * inet/getprtent.c: Likewise.
1501         * inet/getprtent_r.c: Likewise.
1502         * inet/getprtname.c: Likewise.
1503         * inet/getprtname_r.c: Likewise.
1504         * inet/getrpcbyname.c: Likewise.
1505         * inet/getrpcbyname_r.c: Likewise.
1506         * inet/getrpcbynumber.c: Likewise.
1507         * inet/getrpcbynumber_r.c: Likewise.
1508         * inet/getrpcent.c: Likewise.
1509         * inet/getrpcent_r.c: Likewise.
1510         * inet/getaliasent.c: Likewise.
1511         * inet/getaliasent_r.c: Likewise.
1512         * inet/getaliasname.c: Likewise.
1513         * inet/getaliasname_r.c: Likewise.
1514         * nscd/getgrgid_r.c: Likewise.
1515         * nscd/getgrnam_r.c: Likewise.
1516         * nscd/gethstbyad_r.c: Likewise.
1517         * nscd/gethstbynm3_r.c: Likewise.
1518         * nscd/getpwnam_r.c: Likewise.
1519         * nscd/getpwuid_r.c: Likewise.
1520         * nscd/getsrvbynm_r.c: Likewise.
1521         * nscd/getsrvbypt_r.c: Likewise.
1522         * nscd/gai.c: Likewise.
1523
1524         * configure.in (build_nscd): New substituted variable, set
1525         by --disable-build-nscd and defaults to $use_nscd.
1526         * configure: Regenerated.
1527         * config.make.in (build-nscd): New substituted variable.
1528         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1529         Change conditional to require [$(build-nscd) = yes] as well.
1530         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1531
1532         [BZ# 13696]
1533         * configure.in (use_nscd): New substituted variable, set by
1534         --disable-nscd.  If enabled, define USE_NSCD.
1535         * configure: Regenerated.
1536         * config.h.in: Add USE_NSCD.
1537         * config.make.in (use-nscd): New substituted variable.
1538         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1539         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1540         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1541         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1542         (CFLAGS-getgrnam_r.c): Likewise.
1543         (CFLAGS-initgroups.c): Likewise.
1544         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1545         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1546         Variables removed.
1547         * inet/getnetgrent_r.c
1548         (nscd_setnetgrent): New function, broken out of ...
1549         (setnetgrent): ... here.  Call it.
1550         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1551         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1552         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1553         * nscd/Makefile (routines, aux): Move definitions after include of
1554         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1555         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1556         Conditionalize on [USE_NSCD].
1557         (is_nscd, nscd_init_cb): Likewise.
1558         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1559         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1560         * nss/nss_db/db-init.c: Likewise.
1561         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1562         [USE_NSCD].
1563         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1564         (make_request): Use it.
1565         (cache_valid_p): New function.
1566         (__check_pf): Use it.
1567         * NEWS: Add item for --disable-nscd.
1568
1569 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1570
1571         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1572         to support sed >= 4.2.1-20-ga9bf076.
1573         * configure: Regenerated.
1574
1575 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1576
1577         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1578         Conditionalize whole body on [IREL].
1579
1580 2012-08-22  Jeff Law <law@redhat.com>
1581
1582         [BZ #14505]
1583         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1584         if the family is PF_UNSPEC.
1585
1586 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1587
1588         * Makerules (lib-version): Rename from V.
1589         (install-lib-nosubdir): Change V to lib-version.
1590
1591 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1592
1593         [BZ #14252]
1594         * powerpc32/power6/wcschr.c: New file.
1595         * powerpc32/power6/wcscpy.c: New file.
1596         * powerpc32/power6/wcsrchr.c: New file.
1597         * powerpc64/power6/wcschr.c: New file.
1598         * powerpc64/power6/wcscpy.c: New file.
1599         * powerpc64/power6/wcsrchr.c: New file.
1600
1601 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1602
1603         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1604         (two_way_short_needle): Use it.
1605         * string/strstr.c (AVAILABLE1_USES_J): Define.
1606         * string/strcasestr.c: Likewise.
1607
1608         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1609         array references.
1610         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1611
1612         [BZ #11607]
1613         * NEWS: Add an entry.
1614         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1615         define their defaults.
1616         (two_way_short_needle): Detect end-of-string on-the-fly.
1617         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1618         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1619         * string/bug-strcasestr1.c: New test.
1620         * string/Makefile: Run it.
1621
1622 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1623
1624         [BZ #11607]
1625         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1626         the first character.
1627
1628 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1629
1630         * csu/elf-init.c (__libc_csu_irel): Function removed.
1631         * csu/libc-start.c (apply_irel): New function.
1632         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1633
1634 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * sysdeps/unix/sysv/linux/kernel-features.h
1637         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1638         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1639         <kernel-features.h>.
1640         [__NR_fadvise64_64]: Make code unconditional.
1641         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1642         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1643         !__NR_fadvise64_64)]: Likewise.
1644         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1645         !__NR_fadvise64_64))]: Likewise.
1646         [__NR_fadvise64]: Make code unconditional.
1647         [!__NR_fadvise64]: Remove conditional code.
1648         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1649         <kernel-features.h>.
1650         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1651         unconditional.
1652         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1653         conditional code.
1654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1655         not include <kernel-features.h>.
1656         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1657         unconditional.
1658         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1659         conditional code.
1660         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1661         include <kernel-features.h>.
1662         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1663         unconditional.
1664         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1665         conditional code.
1666
1667 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1668
1669         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1670         slight instruction rearrangements per scrollpipe analysis.
1671         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1672
1673 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1674
1675         * manual/syslog.texi (syslog; vsyslog, closelog):
1676         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1677         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1678
1679         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1680         DSOCAPS to match condition on defining it.
1681
1682 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1683
1684         * sysdeps/unix/sysv/linux/kernel-features.h
1685         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1687         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1688         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1690         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1691         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1693         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1694         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1695
1696         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1697         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1698
1699         * sysdeps/unix/sysv/linux/kernel-features.h
1700         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1701         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1702         unconditional.
1703         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1704         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1705         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1706         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1707         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1708         Make code unconditional.
1709         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1710         (__mmap64) [!__NR_mmap2]: Likewise.
1711         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1712         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1713         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1714         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1715         [__NR_mmap2]: Make code unconditional.
1716         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1717         (__mmap64) [!__NR_mmap2]: Likewise.
1718
1719 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1720
1721         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1722
1723 2012-08-18  Andreas Jaeger  <aj@suse.de>
1724
1725         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1726
1727 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1728
1729         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1730         * include/unistd.h (__have_sock_cloexec): Likewise.
1731         (__have_pipe2): Likewise.
1732         (__have_dup3): Likewise.
1733
1734 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1735
1736         [BZ #9685]
1737         * include/unistd.h (__have_pipe2): Change define into an extern int.
1738         (__have_dup3): Likewise.
1739         * socket/have_sock_cloexec.c: Include fcntl.h.
1740         (__have_pipe2): New variable.
1741         (__have_dup3): Likewise.
1742
1743 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1744
1745         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1746
1747 2012-08-17  Marek Polacek  <polacek@redhat.com>
1748
1749         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1750         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1751
1752 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1753
1754         * configure.in: Add AC_SUBST for sysheaders.
1755         * configure: Regenerated.
1756         * config.make.in (sysheaders): New substituted variable.
1757
1758         * sysdeps/unix/mkfifo.c: Moved ...
1759         * sysdeps/posix/mkfifo.c: ... here.
1760         * sysdeps/unix/mkfifoat.c: Moved ...
1761         * sysdeps/posix/mkfifoat.c: ... here.
1762
1763         * sysdeps/unix/utime.c: Moved ...
1764         * sysdeps/posix/utime.c: ... here.
1765
1766         * sysdeps/unix/time.c: Moved ...
1767         * sysdeps/posix/time.c: ... here.
1768         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
1769         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
1770
1771         * sysdeps/unix/nice.c: Moved ...
1772         * sysdeps/posix/nice.c: ... here.
1773
1774         * sysdeps/unix/alarm.c: Moved ...
1775         * sysdeps/posix/alarm.c: ... here.
1776
1777         * intl/Makefile ($(codeset_mo)): Depend on the input file.
1778
1779 2012-08-17  Jeff Law <law@redhat.com>
1780
1781         * intl/Makefile (codeset_mo): New variable.
1782         ($(codeset_mo)): New target.
1783         (tst-codeset.out): Depend on that.  Remove explicit rule.
1784         (tst-gettext3.out, tst-gettext5.out): Likewise.
1785         (LOCPATH-ENV, tst-codeset-ENV): New variables.
1786         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
1787         * intl/tst-codeset.sh: Remove.
1788         * intl/tst-gettext3.sh: Likewise.
1789         * intl/tst-gettext5.sh: Likewise.
1790
1791 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1792
1793         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
1794         * sysdeps/unix/syscalls.list: ... here.
1795
1796         * sysdeps/posix/getaddrinfo.c
1797         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
1798         (gaiconf_init, gaiconf_reload): Use them.
1799         [!_STATBUF_ST_NSEC]
1800         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
1801         Define using time_t rather than struct timespec.
1802
1803         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
1804         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
1805         Macros removed.
1806         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
1807         [!NO_THREADS].
1808         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
1809         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
1810         Likewise.
1811
1812         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
1813         __libc_cleanup_push argument.
1814
1815         * bits/param.h: New file.
1816         * misc/sys/param.h: New file.
1817         * include/sys/param.h: New file.
1818         * misc/Makefile (headers): Add bits/param.h.
1819         * sysdeps/generic/sys/param.h: File removed.
1820         * sysdeps/unix/sysv/linux/bits/param.h: New file.
1821         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
1822         * sysdeps/mach/hurd/bits/param.h: New file.
1823         * sysdeps/mach/hurd/sys/param.h: New file.
1824
1825         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
1826         last change.
1827
1828         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
1829         [_IO_MTSAFE_IO].
1830         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
1831         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
1832         New macros.
1833
1834         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
1835         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
1836         rather than -D_IO_MTSAFE_IO conditionally.
1837         * stdio-common/Makefile (CPPFLAGS): Likewise.
1838         * wcsmbs/Makefile (CPPFLAGS): Likewise.
1839         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
1840         Use $(libio-mtsafe).
1841         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
1842         of -D_IO_MTSAFE_IO.
1843         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
1844         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
1845         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
1846         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
1847         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
1848         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
1849         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
1850         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
1851         (CFLAGS-fread_u_chk.c): Likewise.
1852         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
1853         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
1854         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
1855         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
1856         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
1857         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
1858         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
1859         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
1860         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
1861
1862         * libio/Makefile: Test [$(libc-reentrant) = yes]
1863         instead of [$(filter %REENTRANT, $(defines)) nonempty].
1864
1865         * Makeconfig
1866         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
1867         * sysdeps/pthread/configure: File removed.
1868         * sysdeps/pthread/Makeconfig: New file.
1869         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
1870         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
1871
1872 2012-08-16  Gary Benson  <gbenson@redhat.com>
1873
1874         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
1875         unmapping the first object in a namespace.
1876
1877 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1878
1879         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
1880         (__internal_setnetgrent): ... this.  Add internal_function to
1881         definition.  Add libc_hidden_def.
1882         (setnetgrent): Update caller.
1883         (internal_endnetgrent): Renamed to ...
1884         (__internal_endnetgrent): ... this.  Add internal_function to
1885         definition.  Add libc_hidden_def.
1886         (endnetgrent): Update caller.
1887         (internal_getnetgrent_r): Renamed to ...
1888         (__internal_getnetgrent_r): ... this.  Add internal_function to
1889         definition.  Add libc_hidden_def.
1890         (__getnetgrent_r): Update caller.
1891         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
1892
1893 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1894
1895         * stdlib/longlong.h: Update from GCC.
1896
1897 2012-08-16  Roland McGrath  <roland@hack.frob.com>
1898
1899         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
1900         on _QL, which is set by umul_ppmm but never used.
1901         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
1902         variables, which are set by GMP macros but never used.
1903         * stdio-common/_itowa.c (_itowa): Likewise.
1904         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
1905         * stdlib/mod_1.c (mpn_mod_1): Likewise.
1906
1907 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
1908
1909         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
1910         struct La_sh_regs is not constant.
1911         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
1912         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
1913         and struct La_sparc64_regs are not constant.
1914
1915 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
1916
1917         * sysdeps/unix/sysv/linux/kernel-features.h
1918         (__ASSUME_POSIX_TIMERS): Remove.
1919         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1920         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1921         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
1922         Make code unconditional.
1923         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1924         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
1925         Make code unconditional.
1926         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1927         * sysdeps/unix/sysv/linux/clock_nanosleep.c
1928         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
1929         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1930         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
1931         Make code unconditional.
1932         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
1933         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
1934         (__libc_missing_posix_timers): Remove.
1935
1936 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1937
1938         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
1939         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
1940
1941         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
1942
1943         * elf/dl-sym.c: Include <stdlib.h>.
1944
1945         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
1946         constants, which avoids warnings in 32-bit builds.
1947
1948         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
1949         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
1950
1951         * misc/lseek.c: File moved to ...
1952         * io/lseek.c: ... here.
1953
1954         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
1955
1956         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
1957         shifting LEN more than 31 bits at once.
1958
1959 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1960
1961         [BZ #14195]
1962         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
1963         segmentation fault for a case of two empty input strings.
1964         * string/test-strncasecmp.c (check1): Renamed to...
1965         (bz12205): ...this.
1966         (bz14195): Add new testcase for two empty input strings and N > 0.
1967         (test_main): Call new testcase, adapt for renamed function.
1968
1969 2012-08-15  Andreas Jaeger  <aj@suse.de>
1970
1971         [BZ #14090]
1972         * crypt/md5test2.c: New test, based on test supplied by Serge
1973         Belyshev <belyshev@depni.sinp.msu.ru>.
1974         * crypt/Makefile (xtests): Add md5test-giant..
1975         * crypt/Makefile ($(objpfx)md5test-giant): Add.
1976
1977 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1978
1979         [BZ #14090]
1980         * crypt/md5.c (md5_process_block): Don't assume the buffer
1981         length is less than 2**32.
1982         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
1983         length is less than 2**64.
1984
1985 2012-08-15  Roland McGrath  <roland@hack.frob.com>
1986
1987         * string/str-two-way.h: Include <sys/param.h>.
1988         (MAX): Macro removed.
1989
1990         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
1991         Move #define and #undef of memmove to just before and after
1992         including <string.h>.
1993
1994         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
1995         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
1996         and after including <string.h>.  Move declarations of
1997         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
1998         to before #include "string/memmove.c".
1999
2000         * include/dirent.h: Declare __getdirentries.
2001
2002         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2003         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2004
2005 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2006
2007         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2008         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2009         * sysdeps/i386/configure: Regenerated.
2010         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2011         STABS_CURRENT_FILE, and STABS_FUN.
2012         (END): Remove call to STABS_FUN_END.
2013         (STABS_CURRENT_FILE1): Delete.
2014         (STABS_CURRENT_FILE): Likewise.
2015         (STABS_FUN): Likewise.
2016         (STABS_FUN_END): Likewise.
2017         (STABS_FUN2): Likewise.
2018         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2019         * sysdeps/x86_64/configure: Regenerated.
2020
2021 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2022
2023         * elf/dl-open.c: Include <atomic.h>.
2024         * elf/dl-lookup.c: Likewise.
2025
2026 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2027
2028         * sysdeps/unix/sysv/linux/kernel-features.h
2029         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2030         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2031         unconditionally.
2032         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2033         unconditionally.
2034         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2035         condition on __ASSUME_CLONE_THREAD_FLAGS.
2036
2037 2012-08-14  Andreas Jaeger  <aj@suse.de>
2038
2039         * sysdeps/i386/fpu/libm-test-ulps: Update.
2040
2041 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2042
2043         * include/atomic.h (atomic_exchange_and_add): Split into ...
2044         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2045         New atomic macros.
2046
2047 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2048
2049         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2050
2051 2012-08-13  Jeff Law <law@redhat.com>
2052
2053         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2054         null byte in the output string.
2055
2056 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2057
2058         * sysdeps/unix/sysv/linux/kernel-features.h
2059         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2060         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2061         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2062         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2063         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2064         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2065         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2066
2067 2012-08-09  Jeff Law <law@redhat.com>
2068
2069         [BZ #13939]
2070         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2071         When avoid_arena is set, don't retry in the that arena.  Pick the
2072         next one, whatever it might be.
2073         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2074         (arena_lock): Pass in new parameter to arena_get2.
2075         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2076         arena_get2.
2077         (__libc_malloc): Unify retrying after main arena failure with
2078         __libc_memalign version.
2079         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2080
2081 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2082
2083         [BZ #14166]
2084         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2085         to __redirect_strstr.
2086         (__strstr_sse42): Use typeof __redirect_strstr.
2087         (__strstr_ia32): Likewise.
2088         (__libc_strstr): New prototype.
2089         (strstr): Renamed to ...
2090         (__libc_strstr): This.
2091         (strstr): New strong alias of __libc_strstr.
2092         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2093         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2094         __redirect_time.
2095         Include <time.h>.
2096         (__libc_time): New prototype.
2097         (time_ifunc): Replace time with __libc_time.
2098         (time): New strong alias and hidden definition of __libc_time.
2099         (__GI_time): Remove strong alias.
2100         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2101         Include <stddef.h>.
2102         (memmove): Redefined to __redirect_memmove.
2103         (__memmove_sse2): Use typeof __redirect_memmove.
2104         (__memmove_ssse3): Likewise.
2105         (__memmove_ssse3_back): Likewise.
2106         (__libc_memmove): New prototype.
2107         (memmove): Renamed to ...
2108         (__libc_memmove): This.
2109         (memmove): New strong alias of __libc_memmove.
2110
2111 2012-08-08  Mark Salter  <msalter@redhat.com>
2112
2113         * elf/elf.h
2114         (R_MN10300_TLS_GD): Define.
2115         (R_MN10300_TLS_LD): Likewise.
2116         (R_MN10300_TLS_LDO): Likewise.
2117         (R_MN10300_TLS_GOTIE): Likewise.
2118         (R_MN10300_TLS_IE): Likewise.
2119         (R_MN10300_TLS_LE): Likewise.
2120         (R_MN10300_TLS_DTPMOD): Likewise.
2121         (R_MN10300_TLS_DTPOFF): Likewise.
2122         (R_MN10300_TLS_TPOFF): Likewise.
2123         (R_MN10300_SYM_DIFF): Likewise.
2124         (R_MN10300_ALIGN): Likewise.
2125         (R_MN10300_NUM): Update.
2126
2127 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2128
2129         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2130         Remove.
2131
2132 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2133
2134         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2135
2136         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2137         sysdeps/unix -> sysdeps/posix move.
2138         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2139
2140 2012-08-07      Allan McRae     <allan@archlinux.org>
2141
2142         [BZ #14303]
2143         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2144         (SUNOS_CPP): Likewise.
2145         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2146         not found.
2147         (open_input): Call CPP using execvp.
2148
2149 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2150
2151         * sysdeps/unix/sysv/linux/kernel-features.h
2152         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2153         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2154         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2155         (__ASSUME_WAITID_SYSCALL): Likewise.
2156         * sysdeps/unix/sysv/linux/dl-execstack.c
2157         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2158         code unconditional.
2159         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2160         conditional code.
2161         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2162         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2163         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2164         code.
2165         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2166         unconditional.
2167         [__ASSUME_WAITID_SYSCALL]: Likewise.
2168         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2169
2170 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2171
2172         * sysdeps/unix/closedir.c: Renamed to ...
2173         * sysdeps/posix/closedir.c: ... here.
2174         * sysdeps/unix/dirfd.c: Renamed to ...
2175         * sysdeps/posix/dirfd.c: ... here.
2176         * sysdeps/unix/dirstream.h: Renamed to ...
2177         * sysdeps/posix/dirstream.h: ... here.
2178         * sysdeps/unix/fdopendir.c: Renamed to ...
2179         * sysdeps/posix/fdopendir.c: ... here.
2180         * sysdeps/unix/opendir.c: Renamed to ...
2181         * sysdeps/posix/opendir.c: ... here.
2182         * sysdeps/unix/readdir.c: Renamed to ...
2183         * sysdeps/posix/readdir.c: ... here.
2184         * sysdeps/unix/readdir_r.c: Renamed to ...
2185         * sysdeps/posix/readdir_r.c: ... here.
2186         * sysdeps/unix/rewinddir.c: Renamed to ...
2187         * sysdeps/posix/rewinddir.c: ... here.
2188         * sysdeps/unix/seekdir.c: Renamed to ...
2189         * sysdeps/posix/seekdir.c: ... here.
2190         * sysdeps/unix/telldir.c: Renamed to ...
2191         * sysdeps/posix/telldir.c: ... here.
2192         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2193         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2194         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2195         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2196
2197         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2198         * bits/fcntl.h: ... here.
2199
2200         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2201         not 0.
2202         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2203         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2204         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2205         (struct flock): Move l_start, l_len to the beginning.
2206         Use __pid_t for l_pid.
2207         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2208         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2209         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2210         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2211         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2212         [__USE_LARGEFILE64] (struct flock64): New type.
2213         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2214
2215         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2216         * bits/dirent.h: ... here.
2217
2218         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2219         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2220
2221 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2222
2223         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2224         Change from 2.6.0 to 2.6.16.
2225         * sysdeps/unix/sysv/linux/configure: Regenerated.
2226         * sysdeps/unix/sysv/linux/kernel-features.h
2227         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2228         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2229         version.
2230         (__ASSUME_UTIMES): Likewise.
2231         (__ASSUME_CLONE_STOPPED): Remove.
2232         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2233         architectures, not kernel version.
2234         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2235         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2236         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2237         (__ASSUME_WAITID_SYSCALL): Likewise.
2238         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2239         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2240         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2241         refer to older versions.
2242
2243 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2244
2245         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2246         Define alphasort64 as an alias.
2247         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2248         Define versionsort64 as an alias.
2249         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2250         Define scandir64 as an alias.
2251         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2252         Define scandirat64 as an alias.
2253         * dirent/alphasort64.c (alphasort64):
2254         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2255         * dirent/versionsort64.c: Likewise.
2256         * dirent/scandir64.c: Likewise.
2257         * dirent/scandirat64.c: Likewise.
2258         * sysdeps/wordsize-64/alphasort.c: File removed.
2259         * sysdeps/wordsize-64/alphasort64.c: File removed.
2260         * sysdeps/wordsize-64/scandir.c: File removed.
2261         * sysdeps/wordsize-64/scandir64.c: File removed.
2262         * sysdeps/wordsize-64/scandirat.c: File removed.
2263         * sysdeps/wordsize-64/scandirat64.c: File removed.
2264         * sysdeps/wordsize-64/versionsort.c: File removed.
2265         * sysdeps/wordsize-64/versionsort64.c: File removed.
2266         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2267         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2268         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2269         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2270         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2271         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2272         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2273         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2274
2275         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2276         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2277         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2278         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2279         [defined __arch64__ || defined __sparcv9]
2280         (__INO_T_MATCHES_INO64_T): New macro.
2281         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2282         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2283         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2284         * sysdeps/unix/sysv/linux/bits/dirent.h
2285         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2286         (_DIRENT_MATCHES_DIRENT64): New macro.
2287
2288         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2289         Define lockf64 as an alias.
2290         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2291         Define fseeko64 as an alias.
2292         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2293         Define ftello64 as an alias.
2294         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2295         Define _IO_fgetpos64 and fgetpos64 as aliases.
2296         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2297         Define _IO_fsetpos64 and fsetpos64 as aliases.
2298         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2299         Conditionalize body on this.
2300         * libio/fseeko64.c: Likewise.
2301         * libio/ftello64.c: Likewise.
2302         * libio/iofgetpos64.c: Likewise.
2303         * libio/iofsetpos64.c: Likewise.
2304         * sysdeps/wordsize-64/lockf.c: File removed.
2305         * sysdeps/wordsize-64/lockf64.c: File removed.
2306         * sysdeps/wordsize-64/fseeko.c: File removed.
2307         * sysdeps/wordsize-64/fseeko64.c: File removed.
2308         * sysdeps/wordsize-64/ftello.c: File removed.
2309         * sysdeps/wordsize-64/ftello64.c: File removed.
2310         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2311         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2312         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2313         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2314         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2315         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2316         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2317         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2318         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2319         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2320         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2321         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2322         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2323         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2324
2325         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2326         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2327         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2328         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2329         [defined __arch64__ || defined __sparcv9]
2330         (__OFF_T_MATCHES_OFF64_T): New macro.
2331         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2332         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2333         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2334         (__OFF_T_MATCHES_OFF64_T): New macro.
2335
2336 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2337
2338         * stdlib/secure-getenv.c (__secure_getenv): Replace
2339         GLIBC_2_16 with GLIBC_2_17.
2340
2341 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2342
2343         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2344         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2345
2346 2012-08-03  David S. Miller  <davem@davemloft.net>
2347
2348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2349
2350 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2351
2352         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2353         Remove.
2354         (__ASSUME_CORRECT_SI_PID): Likewise.
2355         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2356         (__ASSUME_TMPFS_NAME): Likewise.
2357         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2358         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2359         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2360         (HAVE_AUX_SECURE): Make definition unconditional.
2361         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2362         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2363
2364 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2365
2366         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2367         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2368         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2369         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2370         __eloop_threshold instead of SYMLOOP_MAX.
2371
2372         * sysdeps/generic/eloop-threshold.h: New file.
2373         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2374         of MAXSYMLINKS.
2375         * elf/chroot_canon.c (chroot_canon): Likewise.
2376
2377 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2378
2379         [BZ #13717]
2380         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2381         Change to 2.6.0 everywhere.
2382         * sysdeps/unix/sysv/linux/configure: Regenerated.
2383         * sysdeps/unix/sysv/linux/kernel-features.h
2384         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2385         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2386         kernel versions.
2387         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2388         (__ASSUME_FUTEX_REQUEUE): Remove.
2389         (__ASSUME_STATFS64): Define unconditionally.
2390         (__ASSUME_AT_SECURE): Likewise.
2391         (__ASSUME_CORRECT_SI_PID): Likewise.
2392         (__ASSUME_TGKILL): Define without depending on kernel version for
2393         i386.
2394         (__ASSUME_UTIMES): Likewise.
2395         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2396         kernel version.
2397         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2398         (__ASSUME_TMPFS_NAME): Likewise.
2399         * README: Update reference to Linux kernel versions.
2400
2401 2012-08-02  Marek Polacek  <polacek@redhat.com>
2402
2403         [BZ# 14150]
2404         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2405         libc_cv_asm_type_prefix with %.
2406         * configure: Regenerated.
2407         * include/libc-symbols.h: Remove comment about
2408         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2409         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2410         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2411         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2412         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2413         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2414         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2415         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2416         * elf/tst-unique2mod1.c: Likewise.
2417         * elf/tst-unique1mod2.c: Likewise.
2418         * elf/tst-unique1mod1.c: Likewise.
2419         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2420         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2421         Replace ASM_TYPE_DIRECTIVE with .type.
2422         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2423         * sysdeps/i386/sysdep.h: Likewise.
2424         * sysdeps/x86_64/sysdep.h: Likewise.
2425         * sysdeps/sh/sysdep.h: Likewise.
2426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2427         Do not define ASM_TYPE_DIRECTIVE.
2428         * sysdeps/powerpc/sysdep.h: Likewise.
2429         * sysdeps/powerpc/powerpc32/sysdep.h:
2430         Replace ASM_TYPE_DIRECTIVE with .type.
2431         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2432         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2433         * sysdeps/i386/fpu/e_powf.S: Likewise.
2434         * sysdeps/i386/fpu/e_expl.S: Likewise.
2435         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2436         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2437         * sysdeps/i386/fpu/e_pow.S: Likewise.
2438         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2439         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2440         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2441         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2442         * sysdeps/i386/fpu/e_log2.S: Likewise.
2443         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2444         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2445         * sysdeps/i386/fpu/e_powl.S: Likewise.
2446         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2447         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2448         * sysdeps/i386/fpu/e_logl.S: Likewise.
2449         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2450         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2451         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2452         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2453         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2454         * sysdeps/i386/fpu/e_log.S: Likewise.
2455         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2456         * sysdeps/i386/fpu/e_logf.S: Likewise.
2457         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2458         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2459         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2460         * sysdeps/i386/fpu/e_log10.S: Likewise.
2461         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2462         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2463         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2464         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2465         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2466         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2467         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2468         * sysdeps/i386/i686/strtok.S: Likewise.
2469         * sysdeps/i386/i386-mcount.S: Likewise.
2470         * sysdeps/i386/strtok.S: Likewise.
2471         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2472         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2473         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2474         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2475         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2476         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2477         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2478         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2479         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2480         * sysdeps/x86_64/_mcount.S: Likewise.
2481         * sysdeps/x86_64/strtok.S: Likewise.
2482         * sysdeps/sh/_mcount.S: Likewise.
2483
2484 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2485
2486         * libio/iofopen.c: Include <fcntl.h>.
2487         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2488         (_IO_fopen64, fopen64): Define as aliases.
2489         * libio/iofopen64.c: Include <fcntl.h>.
2490         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2491         Conditionalize body on this.
2492         * sysdeps/wordsize-64/iofopen.c: File removed.
2493         * sysdeps/wordsize-64/iofopen64.c: File removed.
2494
2495 2012-08-01  Marek Polacek  <polacek@redhat.com>
2496
2497         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2498         Use dlfcn directly instead of a variable.
2499         (binfmt-subdir): Do not define.
2500         (dlfcn): Likewise.
2501
2502 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2503
2504         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2505         Remove all definitions.
2506         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2507         <kernel-features.h>.
2508         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2509         (miss_F_GETOWN_EX): Remove all definitions.
2510         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2511         macro definition.
2512         [!__ASSUME_FCNTL64]: Remove conditional code.
2513         [__ASSUME_FCNTL64]: Make code unconditional.
2514         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2515         <kernel-features.h>.
2516         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2517         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2518         (lockf64) [__NR_fcntl64]: Make code unconditional.
2519         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2520
2521         * sysdeps/unix/sysv/linux/kernel-features.h
2522         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2523         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2524         Make code unconditional.
2525         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2526         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2528         [__NR_vfork]: Make code unconditional.
2529         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2530         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2532         [__NR_vfork]: Make code unconditional.
2533         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2534         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2535
2536 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2537
2538         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2539         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2540
2541         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2542         Define mkstemp64 as an alias.
2543         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2544         Define mkstemps64 as an alias.
2545         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2546         Define mkostemp64 as an alias.
2547         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2548         Define mkostemps64 as an alias.
2549         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2550         Conditionalize body on this.
2551         * misc/mkostemp64.c: Likewise.
2552         * misc/mkostemps64.c: Likewise.
2553         * misc/mkstemps64.c: Likewise.
2554         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2555         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2556         * sysdeps/wordsize-64/mkostemp.c: File removed.
2557         * sysdeps/wordsize-64/mkstemp.c: File removed.
2558         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2559         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2560         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2561         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2562
2563         [BZ #14138]
2564         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2565         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2566         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2567         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2568
2569         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2570         compat_symbol macros from <shlib-compat.h> rather than the underlying
2571         default_symbol_version and symbol_version macros, so that DEFAULT
2572         lines in shlib-versions are respected.
2573         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2574
2575 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2576
2577         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2578         Declare with warn_unused_result.
2579         (setgid, setregid, setegid, setresgid): Likewise.
2580         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2581         Likewise.
2582         * WUR-REPORT: Remove set*id functions.
2583
2584 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2585
2586         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2587
2588 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2589
2590         * include/sys/socket.h (__libc_accept, __libc_accept4):
2591         Add attribute_hidden.
2592         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2593
2594         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2595         use of PTR_MANGLE.
2596         * inet/getnetgrent_r.c (setup): Likewise.
2597
2598         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2599
2600 2012-07-31  David S. Miller  <davem@davemloft.net>
2601
2602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2603
2604 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2605
2606         [BZ #13629]
2607         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2608         value between 1.0 and 2.0 and smaller part has absolute value less
2609         than 1.0.
2610         * math/s_clog10.c (__clog10): Likewise.
2611         * math/s_clog10f.c (__clog10f): Likewise.
2612         * math/s_clog10l.c (__clog10l): Likewise.
2613         * math/s_clogf.c (__clogf): Likewise.
2614         * math/s_clogl.c (__clogl): Likewise.
2615         * math/libm-test.inc (clog_test): Add more tests.
2616         (clog10_test): Likewise.
2617         * sysdeps/i386/fpu/libm-test-ulps: Update.
2618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2619
2620 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2621
2622         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2623         Exit with zero in case no suitable GID is found, and write a
2624         message to standard error.
2625
2626 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2627
2628         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2629         rather than to 1.
2630         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2631         (MAXPATHLEN): Removed.
2632         (NOGROUP, NODEV): New macros.
2633         (setbit, clrbit, isset, isclr): New macros.
2634         (howmany, roundup, powerof2): New macros.
2635         (DEV_BSIZE): New macro.
2636
2637         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2638         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2639
2640         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2641         definition on [!__NO_LONG_DOUBLE_MATH].
2642
2643         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2644         PTR_MANGLE and PTR_DEMANGLE.
2645
2646         * socket/accept4.c (accept4): Rename to __libc_accept4.
2647         Define accept4 as a weak alias.
2648
2649         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2650         on [_DIRENT_HAVE_D_TYPE].
2651         * io/ftw.c (ftw_dir): Likewise.
2652
2653         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2654
2655         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2656
2657         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2658         Use the BSD numbers rather than the arbitrary ones we had.
2659         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2660         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2661         (SIGXCPU, SIGXFSZ): New macros.
2662         (_NSIG): Now 32.
2663
2664         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2665         initializer on [_LIBC_REENTRANT].
2666
2667         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2668         definitions inside [_POSIX_MAPPED_FILES].
2669
2670         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2671
2672         * dirent/opendir.c: Include <fcntl.h>.
2673
2674         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2675         (__libc_getspecific): Likewise.
2676         (__libc_key_create): Likewise.
2677
2678         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2679         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2680         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2681         (tmpfile64): Define as alias.
2682         * sysdeps/wordsize-64/tmpfile.c: File removed.
2683         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2684         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2685         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2686
2687         * stdio-common/vfscanf.c: Include <stdbool.h>.
2688         * nss/makedb.c: Likewise.
2689         * stdio-common/_i18n_number.h: Likewise.
2690         * argp/argp-help.c: Likewise.
2691         * posix/wordexp.c: Likewise.
2692         * sysdeps/posix/spawni.c: Likewise.
2693         * nss/nss_files/files-initgroups.c: Likewise.
2694         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2695         * nss/nss_files/files-initgroups.c: Likewise.
2696         * nss/nss_db/db-netgrp.c: Likewise.
2697         * nss/nss_db/db-initgroups.c: Likewise.
2698         * io/fchmodat.c: Include <sys/stat.h>.
2699
2700         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2701         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2702
2703         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2704         [HAVE_MMAP].
2705
2706         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2707         Add multiple inclusion protection.
2708
2709 2012-07-27  David S. Miller  <davem@davemloft.net>
2710
2711         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2712
2713 2012-07-27  Gary Benson  <gbenson@redhat.com>
2714
2715         [BZ #14298]
2716         * elf/rtld.c: Include <stap-probe.h>.
2717         (dl_main): Added static probes "init_start" and "init_complete".
2718         * elf/dl-load.c: Include <stap-probe.h>.
2719         (lose): Take new parameter "nsid".
2720         Added static probe "map_failed".
2721         (_dl_map_object_from_fd): Pass namespace id to lose.
2722         Added static probe "map_start".
2723         (open_verify): Pass namespace id to lose.
2724         * elf/dl-open.c: Include <stap-probe.h>.
2725         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2726         and "reloc_complete".
2727         * elf/dl-close.c: Include <stap-probe.h>.
2728         (_dl_close_worker): Added static probes "unmap_start" and
2729         "unmap_complete".
2730         * elf/rtld-debugger-interface.txt: New file documenting the above.
2731
2732 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2733
2734         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2735         rather than a string variable.
2736         * sunrpc/rpc_main.c (h_output): Likewise.
2737         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2738
2739 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2740
2741         * inet/check_native.c: New file.
2742
2743 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2744
2745         [BZ #13629]
2746         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2747         if larger part has absolute value 1.0.
2748         * math/s_clog10.c (__clog10): Likewise.
2749         * math/s_clog10f.c (__clog10f): Likewise.
2750         * math/s_clog10l.c (__clog10l): Likewise.
2751         * math/s_clogf.c (__clogf): Likewise.
2752         * math/s_clogl.c (__clogl): Likewise.
2753         * math/libm-test.inc (clog_test): Add more tests.
2754         (clog10_test): Likewise.
2755         * sysdeps/i386/fpu/libm-test-ulps: Update.
2756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2757
2758         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2759         (pltexit): Likewise.
2760         (La_regs): Likewise.
2761         (La_retval): Likewise.
2762         (int_retval): Likewise.
2763         Update #error for removed macros to refer only to definitions in
2764         tst-audit.h.
2765         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
2766         macro.
2767         (pltexit): Likewise.
2768         (La_regs): Likewise.
2769         (La_retval): Likewise.
2770         (int_retval): Likewise.
2771         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
2772         macro.
2773         (pltexit): Likewise.
2774         (La_regs): Likewise.
2775         (La_retval): Likewise.
2776         (int_retval): Likewise.
2777         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
2778         macro.
2779         (pltexit): Likewise.
2780         (La_regs): Likewise.
2781         (La_retval): Likewise.
2782         (int_retval): Likewise.
2783         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
2784         macro.
2785         (pltexit): Likewise.
2786         (La_regs): Likewise.
2787         (La_retval): Likewise.
2788         (int_retval): Likewise.
2789         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
2790         macro.
2791         (pltexit): Likewise.
2792         (La_regs): Likewise.
2793         (La_retval): Likewise.
2794         (int_retval): Likewise.
2795         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
2796         macro.
2797         (pltexit): Likewise.
2798         (La_regs): Likewise.
2799         (La_retval): Likewise.
2800         (int_retval): Likewise.
2801         * sysdeps/generic/tst-audit.h: Update comment to refer only to
2802         macro definitions in tst-audit.h.
2803         * sysdeps/i386/tst-audit.h: New file.
2804         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
2805         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
2806         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
2807         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
2808         * sysdeps/sh/tst-audit.h: Likewise.
2809         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
2810         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
2811         * sysdeps/x86_64/tst-audit.h: Likewise.
2812
2813 2012-07-26  Andreas Jaeger  <aj@suse.de>
2814
2815         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
2816         ptrace.
2817
2818         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
2819         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
2820         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
2821         PTRACE_O_MASK.
2822         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
2823         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
2824         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
2825
2826         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
2827         value.
2828
2829         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
2830         _sigsys.
2831         (si_call_addr, si_syscall, si_arch): Define new macro.
2832         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
2833         _sigsys.
2834         (si_call_addr, si_syscall, si_arch): Define new marcro.
2835         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
2836         _sigsys.
2837         (si_call_addr, si_syscall, si_arch): Define new macro.
2838         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
2839         _sigsys.
2840         (si_call_addr, si_syscall, si_arch): Define new macro.
2841
2842 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
2843
2844         [BZ #13717]
2845         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2846         Change to 2.4.21 where previously 2.4.1.
2847         * sysdeps/unix/sysv/linux/configure: Regenerated.
2848         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
2849         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
2850         Linux kernel version.
2851         (__ASSUME_STD_AUXV): Remove.
2852         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
2853         kernel version.
2854         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
2855         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
2856         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
2857         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
2858         (__ASSUME_NETLINK_SUPPORT): Likewise.
2859         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
2860         (__no_netlink_support): Remove conditional definition.
2861         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
2862         Remove.
2863         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2864         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
2865         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
2866         (if_nameindex_ioctl): Remove.
2867         (if_nameindex_netlink): Do not handle __no_netlink_support.
2868         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2869         code.
2870         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
2871         Remove conditional code.
2872         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
2873         code.
2874         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
2875         unconditional.
2876         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
2877         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
2878         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
2879         Remove.
2880         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2881         [!__ASSUME_STD_AUXV]: Remove conditional code.
2882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
2883         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
2884         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
2885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
2886         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
2887         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2888         code.
2889         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2891         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
2892         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2893         conditional code.
2894         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
2895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2896         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
2897         code.
2898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2899         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
2900         conditional code.
2901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2902         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2903         code unconditional.
2904         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2905         conditional code.
2906         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2907         unconditional.
2908         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2909         conditional code.
2910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2911         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2912         unconditional.
2913         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2914         conditional code.
2915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2916         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2917         code unconditional.
2918         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2919         conditional code.
2920         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2921         unconditional.
2922         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2923         conditional code.
2924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2925         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
2926         code unconditional.
2927         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2928         conditional code.
2929         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
2930         unconditional.
2931         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
2932         conditional code.
2933
2934 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2935
2936         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
2937         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
2938         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2939         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
2940         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2941         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2942         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2943         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
2944         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2945         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2946         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2947         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2948         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
2949         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2950         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2951         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
2952         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
2953         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
2954         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
2955         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
2956         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
2957         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2958         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2959
2960 2012-07-25  Florian Weimer  <fweimer@redhat.com>
2961
2962         * Versions.def: Add GLIBC_2.17.
2963         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
2964         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
2965         Introduce __libc_secure_getenv.
2966         * stdlib/Versions (2.17): Add secure_getenv
2967         (GLIBC_PRIVATE): Add __libc_secure_getenv.
2968         * stdlib/secure-getenv.c: Rename __secure_getenv to
2969         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
2970         symbol __secure_getenv for GLIBC_2.0.
2971         * stdlib/tst-secure-getenv.c: New.
2972         * stdlib/Makefile (tests): Add testcase.
2973         * manual/startup.texi (Environment Access): Document
2974         secure_getenv.
2975         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
2976         __libc_secure_getenv.
2977         * inet/ruserpass.c (ruserpass): Likewise.
2978         * malloc/mtrace.c (mtrace): Likewise.
2979         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
2980         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
2981         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
2982         * sysdeps/posix/tempname.c: Likewise.  Evaluate
2983         HAVE_SECURE_GETENV.
2984         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
2985         __secure_getenv to __libc_secure_getenv.
2986         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
2987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2988         Likewise.
2989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2990         Likewise.
2991         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
2992         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
2993         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2994         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
2995         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
2996         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2997         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
2998
2999 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3000
3001         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3002         (struct La_i86_retval): Likewise.
3003         (struct La_x86_64_regs): Likewise.
3004         (struct La_x86_64_retval): Likewise.
3005         (struct La_x32_regs): Likewise.
3006         (struct La_x32_retval): Likewise.
3007         (struct La_ppc32_regs): Likewise.
3008         (struct La_ppc32_retval): Likewise.
3009         (struct La_ppc64_regs): Likewise.
3010         (struct La_ppc64_retval): Likewise.
3011         (struct La_sh_regs): Likewise.
3012         (struct La_sh_retval): Likewise.
3013         (struct La_s390_32_regs): Likewise.
3014         (struct La_s390_32_retval): Likewise.
3015         (struct La_s390_64_regs): Likewise.
3016         (struct La_s390_64_retval): Likewise.
3017         (struct La_sparc32_regs): Likewise.
3018         (struct La_sparc32_retval): Likewise.
3019         (struct La_sparc64_regs): Likewise.
3020         (struct La_sparc64_retval): Likewise.
3021         (struct audit_ifaces): Remove architecture-specific pltenter and
3022         pltexit members.
3023         * sysdeps/i386/ldsodefs.h: New file.
3024         * sysdeps/powerpc/ldsodefs.h: Likewise.
3025         * sysdeps/s390/ldsodefs.h: Likewise.
3026         * sysdeps/sh/ldsodefs.h: Likewise.
3027         * sysdeps/sparc/ldsodefs.h: Likewise.
3028         * sysdeps/x86_64/ldsodefs.h: Likewise.
3029
3030 2012-07-25  Marek Polacek  <polacek@redhat.com>
3031
3032         [BZ #6808]
3033         * math/libm-test.inc (yn_test): Add another test.
3034         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3035         to ERANGE when the result is +-Inf.
3036         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3037         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3038         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3039         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3040
3041 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3042
3043         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3044         equal to 0.
3045         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3046         clock_t.
3047         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3048
3049 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3050
3051         * configure.in <sysdeps resolving>: Correct printing
3052         Implies_before.
3053         * configure: Regenerate.
3054
3055 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3056
3057         * math/w_ilogb.c: Include <limits.h>.
3058         * math/w_ilogbl.c: Likewise.
3059
3060 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3061
3062         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3063         va_copy.  Document allowing for unavailable va_copy only as
3064         pre-C99 compatibility.
3065         * manual/string.texi (Copying and Concatenation): Use va_copy
3066         instead of __va_copy in concat example.
3067
3068 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3069
3070         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3071         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3072         it if not null.
3073
3074         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3075         with O_NOLINK passed to __file_name_lookup.
3076
3077         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3078         with O_NOLINK passed to __file_name_lookup.
3079
3080         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3081         negative N or less than NGIDS.
3082
3083         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3084         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3085         enough.  Use memcpy instead of strncpy.
3086
3087 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3088
3089         * elf/Makefile (check-data): Remove.
3090         (localplt.data): New vpath directive.
3091         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3092         instead of $(check-data).
3093         * scripts/data/localplt-generic.data: Move to ...
3094         * sysdeps/generic/localplt.data: ... here.
3095         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3096         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3097         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3099         ... here.
3100         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3102         ... here.
3103         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3104         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3105         ... here.
3106         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3108         ... here.
3109         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3110         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3111         ... here.
3112         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3113         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3114         ... here.
3115
3116 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3117
3118         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3119         PPC32 and PPC64 files.
3120         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3121         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3122
3123 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3124
3125         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3126         __makecontext_ret to ...
3127         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3128         ... here and call exit if uc_link is NULL.  New file.
3129         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3130         __makecontext_ret.S.
3131         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3132         __makecontext_ret to ...
3133         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3134         ... here and call exit if uc_link is NULL.  New file.
3135         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3136         __makecontext_ret.S.
3137
3138 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3139
3140         * elf/elf.h (R_390_IRELATIVE): New definition.
3141         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3142         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3143         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3144         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3145         (elf_machine_lazy_rel): Likewise.
3146         * sysdeps/s390/dl-irel.h: New file.
3147         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3148         * sysdeps/s390/s390-64/memset.S: New asm code.
3149         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3150         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3151         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3152         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3153         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3154         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3155         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3156         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3157         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3158         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3159         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3160         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3161         * sysdeps/s390/s390-32/memset.S: New asm code.
3162         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3163
3164 2012-07-17  Marek Polacek  <polacek@redhat.com>
3165
3166         [BZ #14349]
3167         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3168         * sysdeps/s390/s390-64/configure.in: Likewise.
3169         * sysdeps/sparc/configure.in: Likewise.
3170         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3171         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3172         * sysdeps/i386/configure.in: Likewise.
3173         * sysdeps/x86_64/configure.in: Likewise.
3174         * sysdeps/sh/configure.in: Likewise.
3175         * sysdeps/s390/s390-32/configure: Regenerated.
3176         * sysdeps/s390/s390-64/configure: Likewise.
3177         * sysdeps/x86_64/configure: Likewise.
3178         * sysdeps/sh/configure: Likewise.
3179         * sysdeps/powerpc/powerpc64/configure: Likewise.
3180         * sysdeps/powerpc/powerpc32/configure: Likewise.
3181         * sysdeps/sparc/configure: Likwise.
3182         * sysdeps/i386/configure: Likewise.
3183
3184         * elf/dl-open.c: Comment fixes.
3185
3186 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3187
3188         * Makefile [CXX] (check-data): Remove.
3189         [CXX] (c++-types.data): New vpath directive.
3190         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3191         vpath.  Do not allow for C++ type data being missing.
3192         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3193         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3194         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3195         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3196         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3197         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3198         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3200         ... here.
3201         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3203         ... here.
3204         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3205         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3206         ... here.
3207         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3208         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3209         ... here.
3210         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3211         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3212         ... here.
3213         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3214         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3215         ... here.
3216         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3217         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3218         ... here.
3219         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3221
3222         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3223         definitions to architecture-specific files.
3224         (TLS_IE): Likewise.
3225         (TLS_LD): Likewise.
3226         (TLS_GD): Likewise.
3227         * sysdeps/i386/tls-macros.h: New file.
3228         * sysdeps/powerpc/tls-macros.h: Likewise.
3229         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3230         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3231         * sysdeps/sh/tls-macros.h: Likewise.
3232         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3233         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3234         * sysdeps/x86_64/tls-macros.h: Likewise.
3235
3236 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3237
3238         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3239         zero value for regular exit case.
3240
3241         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3242         (__start_context): Preserve zero value for regular exit case.
3243
3244 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3245             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3246
3247         * manual/setjmp.texi (setcontext): Clarify normal process
3248         termination when uc_link is the null pointer.
3249         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3250         exit call.
3251
3252 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3253
3254         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3255         preprocessor.  Test for each exception mask separately.
3256
3257 2012-07-16  Andreas Jaeger  <aj@suse.de>
3258
3259         * po/ru.po: Update from translation team.
3260
3261 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3262
3263         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3264         equal to 0.
3265         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3266         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3267         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3268         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3269         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3270
3271 2012-07-13  Andreas Jaeger  <aj@suse.de>
3272
3273         * po/fr.po: Update from translation team.
3274
3275 2012-07-12  Marek Polacek  <polacek@redhat.com>
3276
3277         [BZ #14173]
3278         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3279         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3280         loop condition.
3281
3282 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3283
3284         [BZ #13717]
3285         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3286         Change to 2.4.1 where previously 2.4.0.
3287         * sysdeps/unix/sysv/linux/configure: Regenerated.
3288         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3289         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3290         version.
3291         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3292         (__ASSUME_AT_CLKTCK): Remove.
3293         (__ASSUME_AT_PAGESIZE): Likewise.
3294         (__ASSUME_AT_XID): Likewise.
3295         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3296         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3297         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3298         unconditionally.
3299         (HAVE_AUX_PAGESIZE): Likewise.
3300         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3301         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3302         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3303
3304 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3305
3306         [BZ #14307]
3307         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3308         the temporary buffer used to invoke __gethostbyname2_r,
3309         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3310         host_data / struct gaih_addrtuple.
3311         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3312         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3313         header file nss/nsswitch.h.
3314         * nss/nsswitch.h (global scope): Add definition of implementation
3315         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3316         resolv/nss_dns/dns-host.c).
3317
3318 2012-07-11  Andreas Jaeger  <aj@suse.de>
3319
3320         * po/fr.po: Update from translation team.
3321
3322         * po/sv.po: Update from translation team
3323         * po/fr.po: Another update from translation team.
3324
3325 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3326
3327         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3328         for subnormals or multiply small sinh result by itself.
3329         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3330         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3331
3332 2012-07-11  David S. Miller  <davem@davemloft.net>
3333
3334         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3335
3336 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3337
3338         [BZ #14347]
3339         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3340         (INTERNAL_MARK): Shift it here.
3341
3342 2012-07-10  Marek Polacek  <polacek@redhat.com>
3343
3344         [BZ #14151]
3345         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3346         libc_cv_asm_global_directive with .globl.
3347         * configure: Regenerated.
3348         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3349         with .globl.
3350         * sysdeps/i386/configure: Regenerated.
3351         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3352         with .globl.
3353         * sysdeps/x86_64/configure: Regenerated.
3354         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3355         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3356         * elf/tst-unique2mod2.c: Likewise.
3357         * elf/tst-unique2mod1.c: Likewise.
3358         * elf/tst-unique1mod2.c: Likewise.
3359         * elf/tst-unique1mod1.c: Likewise.
3360         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3361         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3362         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3363         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3364         * sysdeps/mach/sysdep.h: Likewise.
3365         * sysdeps/i386/sysdep.h: Likewise.
3366         * sysdeps/i386/i386-mcount.S: Likewise.
3367         * sysdeps/x86_64/_mcount.S: Likewise.
3368         * sysdeps/x86_64/sysdep.h: Likewise.
3369         * sysdeps/sh/_mcount.S: Likewise.
3370         * sysdeps/sh/sysdep.h: Likewise.
3371         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3372         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3373         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3374         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3375         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3376         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3377         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3378         * locale/localeinfo.h: Likewise.
3379         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3380         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3381
3382 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3383
3384         [BZ #14336]
3385         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3386         system".
3387         * manual/message.texi (The Uniforum approach): Likewise.
3388         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3389         (glibc iconv Implementation): Likewise.
3390
3391 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3392
3393         [BZ #14337]
3394         * math/s_clog.c (__clog): Avoid scaling a value down where that
3395         could result in underflow.
3396         * math/s_clog10.c (__clog10): Likewise.
3397         * math/s_clog10f.c (__clog10f): Likewise.
3398         * math/s_clog10l.c (__clog10l): Likewise.
3399         * math/s_clogf.c (__clogf): Likewise.
3400         * math/s_clogl.c (__clogl): Likewise.
3401         * math/libm-test.inc (clog_test): Add more tests.
3402         (clog10_test): Likewise.
3403         * sysdeps/i386/fpu/libm-test-ulps: Update.
3404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3405
3406 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3407
3408         [BZ #14283]
3409         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3410         by 7 not 8 to examine high bit of fractional part.
3411
3412         [BZ #14042]
3413         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3414         for call to __mcount_internal.
3415         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3416         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3417         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3418
3419 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3420
3421         [BZ #14154]
3422         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3423         approximation for values within 0x1p-13f of an odd multiple of
3424         pi/4.
3425         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3426         exception.  Add more tests.
3427         * sysdeps/i386/fpu/libm-test-ulps: Update.
3428
3429         [BZ #6778]
3430         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3431         inputs and return -1 for them.  Do not check for +Inf in case not
3432         reachable for +Inf.
3433         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3434         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3435         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3436         and return -1 for them.  Do not check for +Inf in case not
3437         reachable for +Inf.
3438         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3439         define.
3440         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3441         and return -1 for them.  Do not check for +Inf in case not
3442         reachable for +Inf.
3443         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3444         spurious underflow.
3445         * sysdeps/i386/fpu/libm-test-ulps: Update.
3446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3447
3448 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3449
3450         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3451
3452 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3453
3454         [BZ #14157]
3455         [BZ #14331]
3456         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3457         could result in spurious underflow.  Scale down values above
3458         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3459         * math/s_csqrtf.c (__csqrtf): Likewise.
3460         * math/s_csqrtl.c (__csqrtl): Likewise.
3461         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3462         spurious underflow.
3463         * sysdeps/i386/fpu/libm-test-ulps: Update.
3464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3465
3466 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3467
3468         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3469         xopen-msg.sed.
3470         * catgets/xopen-msg.awk: New file.
3471         * catgets/xopen-msg.sed: Removed.
3472
3473         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3474         po2text.sed.
3475         * intl/po2test.awk: New file.
3476         * intl/po2test.sed: Removed.
3477
3478 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3479
3480         [BZ #14328]
3481         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3482         or multiply small sinh result by itself.
3483         * math/s_ctanf.c (__ctanf): Likewise.
3484         * math/s_ctanh.c (__ctanh): Likewise.
3485         * math/s_ctanhf.c (__ctanhf): Likewise.
3486         * math/s_ctanhl.c (__ctanhl): Likewise.
3487         * math/s_ctanl.c (__ctanl): Likewise.
3488         * math/libm-test.inc (ctan_test_tonearest): New function.
3489         (ctan_test_towardzero): Likewise.
3490         (ctan_test_downward): Likewise.
3491         (ctan_test_upward): Likewise.
3492         (ctanh_test_tonearest): Likewise.
3493         (ctanh_test_towardzero): Likewise.
3494         (ctanh_test_downward): Likewise.
3495         (ctanh_test_upward): Likewise.
3496         (main): Call these new functions.
3497         * sysdeps/i386/fpu/libm-test-ulps: Update.
3498         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3499
3500 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3501
3502         * .gitignore: Delete /ports entry.
3503
3504 2012-07-03  Andreas Jaeger  <aj@suse.de>
3505
3506         * po/bg.po: Update from translation team.
3507         * po/cs.po: Likewise.
3508         * po/de.po: Likewise.
3509         * po/hr.po: Likewise.
3510         * po/nl.pl: Likewise.
3511         * po/pl.po: Likewise.
3512         * po/vi.po: Likewise.
3513
3514 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3515
3516         * Makeconfig [!+link] (+link-before-libc): New variable.
3517         [!+link] (+link-after-libc): Likewise.
3518         [!+link] (+link-tests): Likewise.
3519         [!+link] (+link): Define in terms of $(+link-before-libc) and
3520         $(+link-after-libc).
3521         [!+link-static] (+link-static-before-libc): New variable.
3522         [!+link-static] (+link-static-after-libc): Likewise.
3523         [!+link-static] (+link-static-tests): Likewise.
3524         [!+link-static] (+link-static): Define in terms of
3525         $(+link-static-before-libc) and $(+link-static-after-libc).
3526         [build-shared] (link-libc-before-gnulib): New variable.
3527         [build-shared] (link-libc-tests): Likewise.
3528         [build-shared] (link-libc): Define in terms of
3529         $(link-libc-before-gnulib).
3530         [!build-shared] (link-libc-tests): New variable.
3531         (link-libc-static-tests): New variable.
3532         [!gnulib] (gnulib-arch): New variable.
3533         [!gnulib] (gnulib-tests): Likewise.
3534         [!gnulib] (static-gnulib-arch): Likewise.
3535         [!gnulib] (static-gnulib-tests): Likewise.
3536         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3537         Define with "=" instead of ":=".
3538         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3539         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3540         * Rules (binaries-all-notests): New variable.
3541         (binaries-all-tests): Likewise.
3542         (binaries-static-notests): Likewise.
3543         (binaries-static-tests): Likewise.
3544         (binaries-all): Define using $(binaries-all-notests) and
3545         $(binaries-all-tests).
3546         (binaries-static): Define using $(binaries-static-notests) and
3547         $(binaries-static-tests).
3548         (binaries-shared-tests): New variable.
3549         (binaries-shared-notests): Likewise.
3550         (binaries-shared): Remove variable.
3551         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3552         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3553         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3554         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3555         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3556         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3557         * elf/Makefile (sln-modules): New variable.
3558         (extra-objs): Add $(sln-modules:=.o).
3559         (ldconfig-modules): Add static-stubs.
3560         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3561         * elf/static-stubs.c: New file.
3562
3563         [BZ #14283]
3564         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3565         by 7 not 8 to examine high bit of fractional part.  Use volatile
3566         variables when splitting into final array of floats if
3567         __FLT_EVAL_METHOD__ != 0.
3568         * math/libm-test.inc (cos_test): Add another test.
3569         (sin_test): Likewise.
3570         * sysdeps/i386/fpu/libm-test-ulps: Update.
3571
3572         [BZ #14273]
3573         * math/libm-test.inc (cosh_test): Add more tests.
3574
3575         * version.h (RELEASE): Set to "development".
3576         (VERSION): Set to "2.16.90".
3577
3578 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3579
3580         * NEWS: Update copyright. Remove last-updated date.
3581         Mention math library bug fixes and timezone data changes.
3582         * README: Mention GNU/Hurd, x32, and HPPA support status.
3583
3584 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3585
3586         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3587
3588 2012-06-27  Andreas Jaeger  <aj@suse.de>
3589
3590         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3591
3592 2012-06-25  Andreas Jaeger  <aj@suse.de>
3593
3594         * sysdeps/s390/fpu/libm-test-ulps: Update.
3595
3596 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3597             Thomas Schwinge  <thomas@codesourcery.com>
3598
3599         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3600         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3601         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3602         fanotify_mark.
3603
3604 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3605
3606         * sysdeps/mach/start.c: Remove file.
3607         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3608         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3609         * sysdeps/sh/init-first.c: Likewise.
3610
3611         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3612         registers for frame unwinding purposes, add CFI directives.
3613         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3614         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3615         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3616         Likewise.
3617
3618         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3619         __fortify_fail returning.
3620         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3621
3622         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3623         sysdeps/sh/____longjmp_chk.S.
3624         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3625         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3626         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3627         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3628
3629         * sysdeps/sh/abort-instr.h: New file.
3630         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3631         process in case exit returns.
3632
3633         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3634         initialize the GOT register before use.
3635
3636         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3637         calculation of ARGC > 4.
3638
3639         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3640         meaningful names to some local labels.
3641
3642 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3643             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3644
3645         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3646         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3647         (__arch_compare_and_exchange_val_16_acq): Likewise.
3648         (__arch_compare_and_exchange_val_32_acq): Likewise.
3649         (atomic_exchange_and_add): Fix gUSA sequence.
3650         (atomic_add): Likewise.
3651         (atomic_add_negative): Likewise.
3652         (atomic_add_zero): Likewise.
3653         (atomic_bit_test_set): Likewise.
3654
3655 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3656
3657         [BZ #13579]
3658         * include/link.h (struct link_map): Add l_free_initfini.
3659         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3660         l_initfini.
3661         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3662         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3663         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3664         set.
3665
3666 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3667
3668         * configure.in: Use AC_LANG_SOURCE.
3669         * configure: Regenerate.
3670
3671 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3672
3673         * configure.in (libc_cv_localstatedir): New substituted variable.
3674         * configure: Regenerated.
3675         * config.make.in (localstatedir): New variable, substituted from
3676         libc_cv_localstatedir.
3677         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3678         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3679         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3680         * sysdeps/gnu/configure: Regenerated.
3681
3682 2012-06-21  Jeff Law  <law@redhat.com>
3683
3684         [BZ #14277]
3685         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3686         free.  Simplify list management for _LIBC case.
3687
3688 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3689
3690         [BZ #14273]
3691         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3692         Clear sign bit of 64-bit integer value before comparing against
3693         overflow value.
3694
3695         * sysdeps/mach/configure: Regenerated.
3696
3697 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3698
3699         [BZ #14278]
3700         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3701
3702 2012-06-21  Jeff Law  <law@redhat.com>
3703
3704         [BZ #13882]
3705         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3706         uint16_t for elements in the "seen" array to avoid char overflows.
3707         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3708         * elf/dl-open.c (dl_open_worker): Likewise.
3709
3710 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3711
3712         * scripts/list-sources.sh: Scan PORTS for translations.
3713         * po/libc.pot: Regenerated.
3714
3715 2012-06-21  Andreas Jaeger  <aj@suse.de>
3716
3717         [BZ #12194]
3718         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3719         warning.
3720         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3721         * bits/byteswap-16.h (__bswap_16): Likewise.
3722         * bits/byteswap.h (__bswap_constant_16): Likewise.
3723
3724 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3725
3726         [BZ #14117]
3727         * sysdeps/i386/fpu_control.h: Removed.
3728         * sysdeps/x86_64/fpu_control.h: Moved to ...
3729         * sysdeps/x86/fpu_control.h: Here.
3730
3731         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3732         (_FPU_SETCW): Likewise.
3733
3734 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3735
3736         [BZ #14117]
3737         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3738         * sysdeps/x86/fpu/bits/mathinline.h: This.
3739         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3740
3741         [BZ #14050]
3742         [BZ #14117]
3743         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3744         functions if __x86_64__ is defined.
3745
3746 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3747
3748         * string/endian.h: Add !__ASSEMBLER__ condition for including
3749         conversion interfaces.
3750
3751 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3752
3753         [BZ #14241]
3754         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3755         of ABS(x) in calculating zero to negative powers other than odd
3756         integers.
3757         * math/libm-test.inc (pow_test): Add more tests.
3758
3759 2012-06-15  Andreas Jaeger  <aj@suse.de>
3760
3761         * manual/contrib.texi (Contributors): Update entry of Liubov
3762         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3763         Machado Filho.
3764
3765 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
3766
3767         * string/string.h: Add __wur to GNU version of strerror_r.
3768
3769 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3770
3771         [BZ #14229]
3772         * string/Makefile (tests): Add tst-strtok_r.
3773         * string/tst-strtok_r.c: New file.
3774         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
3775         RAX_LP/RDX_LP on SAVE_PTR.
3776
3777 2012-06-14  Roland McGrath  <roland@hack.frob.com>
3778
3779         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
3780
3781 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
3782
3783         * libm_test.inc (csqrt_test): Allow more spurious underflow
3784         exceptions.
3785         (j0_test): Likewise.
3786         (j1_test): Likewise.
3787         (y0_test): Likewise.
3788         (y1_test): Likewise.
3789
3790 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
3791
3792         * po/Makefile (libc.pot): Use UTF-8 charset.
3793
3794 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3795
3796         [BZ #14210]
3797         Suppress sign-conversion warning from FD_SET.
3798         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
3799         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
3800         not unsigned long int.
3801         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
3802
3803 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3804
3805         [BZ #14050]
3806         [BZ #14117]
3807         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
3808         __extern_always_inline instead of __extern_inline.
3809         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
3810         (__signbit): Likewise.
3811         (__signbitl): Support C++ namespace.
3812         (lrintf): New inline function.
3813         (lrint): Likewise.
3814         (llrintf): Likewise.
3815         (llrint): Likewise.
3816         (fmaxf): Likewise.
3817         (fmax): Likewise.
3818         (fminf): Likewise.
3819         (fmin): Likewise.
3820         (rint): Likewise.
3821         (rintf): Likewise.
3822         (ceil): Likewise.
3823         (ceilf): Likewise.
3824         (floor): Likewise.
3825         (floorf): Likewise.
3826         (nearbyint): Likewise.
3827         (nearbyintf): Likewise.
3828
3829 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
3830
3831         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
3832         non-default versions.
3833
3834 2012-06-11  Roland McGrath  <roland@hack.frob.com>
3835
3836         [BZ #14218]
3837         * manual/argp.texi (Argp): Reword argp_parse description slightly.
3838
3839 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
3840
3841         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
3842         (FE_UPWARD, FE_DOWNWARD): Don't define.
3843         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
3844         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3845
3846         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
3847         reading it.
3848         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3849         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3850
3851 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3852
3853         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3854         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
3855         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
3856         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
3857
3858 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
3859
3860         [BZ #14117]
3861         * sysdeps/i386/fpu/bits/fenv.h: Removed.
3862         * sysdeps/i386/fpu/Implies: New file.
3863         * sysdeps/x86_64/fpu/Implies: Likewise.
3864         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
3865         * sysdeps/x86/fpu/bits/fenv.h: This.
3866
3867         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
3868         __SSE_MATH__.
3869
3870 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3871
3872         [BZ #14134]
3873         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
3874         character 0xffff that matches the last element of the
3875         conversion table.
3876
3877 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3878
3879         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
3880         fmodl commit.
3881
3882 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3883
3884         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
3885         values higher than 25.6283.
3886
3887 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3888
3889         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
3890         subnormal exponent extraction and add some __builtin_expect.
3891         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
3892         Fix for subnormal mantissa calculation.
3893
3894 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
3895
3896         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
3897         cpu2 is -1 and errno is not ENOSYS.
3898
3899 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3900
3901         [BZ #14117]
3902         * sysdeps/i386/i486/bits/string.h: Renamed to ...
3903         * sysdeps/x86/bits/string.h: This.
3904         * sysdeps/x86_64/bits/string.h: Removed.
3905
3906         * sysdeps/i386/i486/bits/string.h: Define inline functions only
3907         if not compiling for x86-64, but compiling for >= i486.
3908
3909         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
3910         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
3911
3912         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
3913         New macro from Linux kernel 3.4.0.
3914         (FP_XSTATE_MAGIC2): Likewise.
3915         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3916         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
3917         (struct _fpx_sw_bytes): New struct.
3918         (struct _xsave_hdr): Likewise.
3919         (struct _ymmh_state): Likewise.
3920         (struct _xstate): Likewise.
3921
3922         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
3923         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
3924         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
3925         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
3926         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
3927         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
3928
3929         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
3930         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
3931         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
3932         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
3933         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
3934         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
3935
3936 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3937
3938         [BZ #13743]
3939         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
3940         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
3941         (sysdep_headers): Include sys/platform/ppc.h.
3942         * sysdeps/powerpc/test-gettimebase.c: Test for
3943         __ppc_get_timebase() to catch future ISA opcode/insn changes.
3944         * manual/Makefile (appendices): Include platform.texi.
3945         * manual/contrib.texi (Contributors): Update @node pointers.
3946         * manual/maint.texi (Maintenance): Likewise.
3947         (Platform): New node.
3948         * manual/platform.texi: New file.  Document the new features.
3949
3950 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3951             Jakub Jelinek  <jakub@redhat.com>
3952
3953         [BZ #14188]
3954         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
3955         where __builtin_expect is unavailable.
3956
3957 2012-06-03  David S. Miller  <davem@davemloft.net>
3958
3959         * stdlib/longlong.h: Updated from GCC.
3960
3961 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
3962
3963         [BZ #14042]
3964         * sysdeps/powerpc/powerpc32/mcount.c: New file.
3965         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
3966         __mcount_internal.
3967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
3968         (GLIBC_2.16): Likewise.
3969
3970 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3971
3972         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
3973
3974 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
3975
3976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
3977         (default-abi): New variable.
3978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
3979         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
3980         variable.
3981         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
3982         Likewise.
3983         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
3984         Likewise.
3985         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
3986         Likewise.
3987
3988         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
3989         definition.  Document in comment.
3990
3991 2012-06-01  David S. Miller  <davem@davemloft.net>
3992
3993         * stdlib/longlong.h: Updated from GCC.
3994
3995 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
3996
3997         [BZ #14117]
3998         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
3999         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4000         sys/debugreg.h sys/io.h here.
4001         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4002         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4003         sys/io.h.
4004         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4005         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4006         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4007         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4008         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4009         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4010
4011         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4012         Define only if __x86_64__ is defined.
4013
4014 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4015
4016         [BZ #14048]
4017         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4018         Use int64_t for variable i.
4019         * math/libm-test.inc (fmod_test): Add more tests.
4020
4021         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4022         z computation is not scheduled after fetestexcept.
4023         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4024         Use math_force_eval instead of asm to ensure calculation scheduled
4025         before exception test.
4026         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4027         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4028
4029 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4030
4031         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4032         computation is not scheduled after fetestexcept.
4033
4034 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4035
4036         [BZ #14117]
4037         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4038         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4039
4040 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4041
4042         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4043         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4044
4045 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4046
4047         [BZ #14117]
4048         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4049         <bits/wordsize.h>.
4050         (__WCHAR_MIN): Support __WORDSIZE == 64.
4051         (__WCHAR_MAX): Likewise.
4052
4053         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4054         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4055
4056         [BZ #14183]
4057         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4058         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4059
4060         [BZ #14117]
4061         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4062         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4063
4064         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4065         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4066
4067         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4068         Defined to 1 if __x86_64__ isn't defined.
4069         (_STAT_VER_LINUX_OLD): New.
4070         (st_atime): Remove duplicate.
4071         (st_mtime): Likewise.
4072         (st_ctime): Likewise.
4073
4074 2012-05-31  David S. Miller  <davem@davemloft.net>
4075
4076         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4077         entries.
4078
4079 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4080
4081         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4082         gen-libm-test.pl.
4083
4084         [BZ #14132]
4085         * elf/dl-reloc.c: Include <_itoa.h>.
4086         (_dl_reloc_bad_type): Remove use of INTUSE.
4087         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4088         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4089         * stdio-common/psiginfo.c (psiginfo): Likewise.
4090         * stdio-common/psignal.c (psignal): Likewise.
4091         * string/strsignal.c (strsignal): Likewise.
4092         * include/signal.h (_sys_siglist): Declare hidden proto.
4093         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4094         INTVARDEF with libc_hidden_data_def.
4095         * stdio-common/itoa-udigits.c: Likewise.
4096         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4097         (_itoa_lower_digits_internal): Remove declaration.
4098         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4099         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4100         (_sys_sigabbrev_internal): Remove aliases.
4101         (_sys_siglist): Define hidden alias.
4102
4103 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4104
4105         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4106         bits/sysctl.h.
4107
4108 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4109
4110         [BZ #14117]
4111         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4112         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4113
4114         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4115         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4116         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4117         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4118         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4119         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4120
4121         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4122         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4123         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4124
4125         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4126         with __addr.
4127         (insw): Likewise.
4128         (insl): Likewise.
4129         (outsb): Likewise.
4130         (outsw): Likewise.
4131         (outsl): Likewise.
4132
4133         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4134         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4135         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4136
4137         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4138         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4139         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4140         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4141         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4142         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4143
4144         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4145         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4146
4147         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4148         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4149
4150         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4151         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4152         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4153
4154         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4155         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4156         to ...
4157         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4158
4159         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4160         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4161         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4162
4163         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4164         for x86-64.
4165         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4166
4167 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4168
4169         * math/math.h (M_El): Use two more decimal places.
4170         (M_LOG2El): Likewise.
4171         (M_LOG10El): Likewise.
4172         (M_LN2l): Likewise.
4173         (M_LN10l): Likewise.
4174         (M_PIl): Likewise.
4175         (M_PI_2l): Likewise.
4176         (M_PI_4l): Likewise.
4177         (M_1_PIl): Likewise.
4178         (M_2_PIl): Likewise.
4179         (M_2_SQRTPIl): Likewise.
4180         (M_SQRT2l): Likewise.
4181         (M_SQRT1_2l): Likewise.
4182
4183 2012-05-31  David S. Miller  <davem@davemloft.net>
4184
4185         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4186         values between float registers.
4187         * sysdeps/sparc/sparc64/memset.S: Likewise.
4188         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4189
4190 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4191
4192         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4193         -D_FORTIFY_SOURCE=1.
4194         (CPPFLAGS-tst-longjmp_chk.c): Define.
4195         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4196         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4197         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4198         CFLAGS-tst-wchar-h.c.
4199
4200 2012-05-31  Marek Polacek  <polacek@redhat.com>
4201
4202         [BZ #14132]
4203         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4204         __endmntent_internal): Remove declaration.
4205         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4206         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4207         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4208
4209 2012-05-30  David S. Miller  <davem@davemloft.net>
4210
4211         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4212         (___Q_simulate_exceptions): Use real FP ops rather than writing
4213         into the %fsr.
4214         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4215         Likewise.
4216
4217 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4218
4219         [BZ #14117]
4220         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4221         * sysdeps/x86/bits/xtitypes.h: This.
4222
4223         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4224         * sysdeps/x86/bits/wordsize.h: This.
4225
4226         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4227         * sysdeps/x86/bits/huge_vall.h: This.
4228
4229         * sysdeps/i386/bits/select.h: Removed.
4230         * sysdeps/x86_64/bits/select.h: Renamed to ...
4231         * sysdeps/x86/bits/select.h: This.
4232
4233         * sysdeps/i386/bits/setjmp.h: Removed.
4234         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4235         * sysdeps/x86/bits/setjmp.h: This.
4236
4237         * sysdeps/i386/bits/mathdef.h: Removed.
4238         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4239         * sysdeps/x86/bits/mathdef.h: This.
4240
4241 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4242
4243         [BZ #14132]
4244         * include/sys/socket.h (__connect_internal)
4245         (__libc_sa_len_internal): Remove declaration.
4246         (__connect, __libc_sa_len): Declare hidden_proto.
4247         (SA_LEN): Remove use of INTUSE.
4248         * socket/connect.c: Add libc_hidden_def.
4249         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4250         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4251         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4252         alias.
4253         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4254         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4255         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4256         of adding _internal alias.
4257
4258 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4259
4260         [BZ #14117]
4261         * sysdeps/i386/bits/link.h: Removed.
4262         * sysdeps/i386/bits/linkmap.h: Likewise.
4263         * sysdeps/x86_64/bits/link.h: Renamed to ...
4264         * sysdeps/x86/bits/link.h: This.
4265         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4266         * sysdeps/x86/bits/linkmap.h: This.
4267
4268         * sysdeps/i386/bits/endian.h: Removed.
4269         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4270         * sysdeps/x86/bits/endian.h: This.
4271
4272         * sysdeps/i386/bits/byteswap.h: Removed.
4273         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4274         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4275         * sysdeps/x86/bits/byteswap.h: This.
4276         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4277         * sysdeps/x86/bits/byteswap-16.h: This.
4278         * sysdeps/i386/Implies: Add x86.
4279         * sysdeps/x86_64/Implies: Likewise.
4280
4281 2012-05-30  David S. Miller  <davem@davemloft.net>
4282
4283         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4284         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4285         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4286         (FP_TRAPPING_EXCEPTIONS): Define.
4287         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4288         (FP_TRAPPING_EXCEPTIONS): Define.
4289         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4290         subnormals only when inexact has been signalled or underflow
4291         exceptions are enabled.
4292         (_FP_PACK_CANONICAL): Likewise.
4293
4294 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4295
4296         [BZ #14183]
4297         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4298         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4299
4300 2012-05-30  Richard Henderson  <rth@twiddle.net>
4301
4302         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4303         with #ifndef NOT_IN_libc.
4304
4305         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4306         marked to avoid plt entry.
4307
4308 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4309
4310         [BZ #14112]
4311         * Makeconfig (default-abi): New macro.
4312         (abi-includes): Likewise.
4313         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4314         $(abi-$(default-abi)-lib-soname) for soname if defined.
4315         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4316         abi-variants.
4317         * Makefile (installed-stubs): Likewise.
4318         * include/stubs-biarch.h: Removed.
4319         * scripts/lib-names.awk: Only handle one library at a time.
4320         * scripts/soversions.awk: Remove WORDSIZE support.
4321         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4322         entries.
4323         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4324         Removed.
4325         (syscall-list-default-condition): Likewise.
4326         (syscall-list-default-condition): Likewise.
4327         (syscall-list-includes): Likewise.
4328         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4329         syscall-list-* with abi-*.  Handle undefined abi-variants.
4330         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4331         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4332         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4333         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4334         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4335         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4336         Removed.
4337         (syscall-list-32-options): Likewise.
4338         (syscall-list-32-condition): Likewise.
4339         (syscall-list-64-options): Likewise.
4340         (syscall-list-64-condition): Likewise.
4341         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4342         macro.
4343         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4344         Renamed to ...
4345         (abi-*): This.
4346         (abi-64-ld-soname): New macro.
4347         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4348         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4349         Renamed to ...
4350         (abi-*): This.
4351         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4352         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4353
4354 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4355
4356         * sysdeps/unix/sysv/linux/kernel-features.h
4357         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4358         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4359         include <kernel-features.h>.
4360         [!__NR_ftruncate64]: Remove conditional code.
4361         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4362         [__NR_ftruncate64]: Make code unconditional.
4363         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4364         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4365         include <kernel-features.h>.
4366         [!__NR_ftruncate64]: Remove conditional code.
4367         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4368         [__NR_ftruncate64]: Make code unconditional.
4369         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4371         include <kernel-features.h>.
4372         [!__NR_ftruncate64]: Remove conditional code.
4373         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4374         [__NR_ftruncate64]: Make code unconditional.
4375         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4377         include <kernel-features.h>.
4378         [!__NR_ftruncate64]: Remove conditional code.
4379         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4380         [__NR_ftruncate64]: Make code unconditional.
4381         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4382
4383         * configure.in (libc_cv_fpie): Weaken to a compile test using
4384         LIBC_TRY_CC_OPTION.
4385         * configure: Regenerated.
4386
4387 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4388
4389         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4390         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4391         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4392         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4393         Refreshed.
4394         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4395         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4397         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4398         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4399         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4400         Refreshed.
4401
4402 2012-05-27  David S. Miller  <davem@davemloft.net>
4403
4404         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4405         (___Q_zero): New.
4406         (__Q_simulate_exceptions): Return void.  Change to simulate
4407         exceptions by writing into the %fsr.
4408         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4409         (__Qp_handle_exceptions): Likewise.
4410         (numbers): Delete.
4411         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4412         __Qp_handle_exceptions.
4413         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4414         __Qp_handle_exceptions.
4415         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4416         as unused and give dummy FP_RND_NEAREST initializer.
4417         (FP_INHIBIT_RESULTS): Define.
4418         (___Q_simulate_exceptions): Update declaration.
4419         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4420         formatting.
4421         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4422         as unused and give dummy FP_RND_NEAREST initializer.
4423         (__Qp_handle_exceptions): Update declaration.
4424         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4425         formatting.
4426
4427 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4428
4429         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4430         the temporary FPU control word.
4431         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4432         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4433         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4434         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4435         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4436         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4437         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4438         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4439         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4440         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4441         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4442
4443 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4444
4445         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4446         fields.
4447
4448 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4449
4450         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4451         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4452         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4453         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4454         Likewise.
4455         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4456         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4457         Likewise.
4458
4459 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4460
4461         * po/h.po: Update from translation team.
4462
4463 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4464
4465         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4466
4467         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4468         handling of denormals.
4469         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4470         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4471         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4472         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4473         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4474         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4475         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4476         Likewise.
4477
4478 2012-05-26  Marek Polacek  <polacek@redhat.com>
4479
4480         [BZ #14152]
4481         * math/libm-test.inc (fma_test): Don't always expect underflow
4482         exception.
4483
4484 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4485
4486         [BZ #12416]
4487         * elf/tst-execstack.c: Include stackinfo.h.
4488         (do_test): Adjust test case to ensure that pthread_getattr_np
4489         behaviour remains the same after marking stack executable.
4490
4491 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4492
4493         * sysdeps/unix/sysv/linux/kernel-features.h
4494         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4495         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4496         kernel-features.h.
4497         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4498         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4499         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4500         kernel-features.h.
4501         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4502         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4503
4504 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4505
4506         * configure.in: Define the default includes to being none.
4507         * configure: Regenerated.
4508
4509 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4510
4511         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4512         * sysdeps/x86_64/setjmp.S: Likewise.
4513         * sysdeps/i386/bsd-setjmp.S: Likewise.
4514         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4515         * sysdeps/i386/setjmp.S: Likewise.
4516         * sysdeps/i386/__longjmp.S: Likewise.
4517         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4518         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4519
4520         * include/stap-probe.h: New file.
4521         * configure.in: Handle --enable-systemtap.
4522         * configure: Regenerated.
4523         * config.h.in (USE_STAP_PROBE): New #undef.
4524         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4525         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4526         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4527
4528 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4529
4530         [BZ #13717]
4531         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4532         to 2.4.0 where earlier.
4533         * sysdeps/unix/sysv/linux/configure: Regenerated.
4534         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
4543         [__ASSUME_32BITUIDS]: Make code unconditional.
4544         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4545         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4546         <kernel-features.h>.
4547         [__ASSUME_32BITUIDS]: Make code unconditional.
4548         [!__ASSUME_32BITUIDS]: Remove conditional code.
4549         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4550         <kernel-features.h>.
4551         [__ASSUME_32BITUIDS]: Make code unconditional.
4552         [!__ASSUME_32BITUIDS]: Remove conditional code.
4553         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4554         <kernel-features.h>.
4555         [__ASSUME_32BITUIDS]: Make code unconditional.
4556         [!__ASSUME_32BITUIDS]: Remove conditional code.
4557         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4558         <kernel-features.h>.
4559         [__ASSUME_32BITUIDS]: Make code unconditional.
4560         [!__ASSUME_32BITUIDS]: Remove conditional code.
4561         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4562         <kernel-features.h>.
4563         [__ASSUME_32BITUIDS]: Make code unconditional.
4564         [!__ASSUME_32BITUIDS]: Remove conditional code.
4565         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4566         <kernel-features.h>.
4567         [__ASSUME_32BITUIDS]: Make code unconditional.
4568         [!__ASSUME_32BITUIDS]: Remove conditional code.
4569         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4570         <kernel-features.h>.
4571         [__ASSUME_32BITUIDS]: Make code unconditional.
4572         [!__ASSUME_32BITUIDS]: Remove conditional code.
4573         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4574         <kernel-features.h>.
4575         [__ASSUME_32BITUIDS]: Make code unconditional.
4576         [!__ASSUME_32BITUIDS]: Remove conditional code.
4577         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4578         <kernel-features.h>.
4579         [__ASSUME_32BITUIDS]: Make code unconditional.
4580         [!__ASSUME_32BITUIDS]: Remove conditional code.
4581         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4582         <kernel-features.h>.
4583         [__ASSUME_32BITUIDS]: Make code unconditional.
4584         [!__ASSUME_32BITUIDS]: Remove conditional code.
4585         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4586         <kernel-features.h>.
4587         [__NR_setresgid] (__setresgid): Do not declare.
4588         [__ASSUME_32BITUIDS]: Make code unconditional.
4589         [!__ASSUME_32BITUIDS]: Remove conditional code.
4590         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4591         <kernel-features.h>.
4592         [__NR_setresuid] (__setresuid): Do not declare.
4593         [__ASSUME_32BITUIDS]: Make code unconditional.
4594         [!__ASSUME_32BITUIDS]: Remove conditional code.
4595         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4596         <kernel-features.h>.
4597         [__ASSUME_32BITUIDS]: Make code unconditional.
4598         [!__ASSUME_32BITUIDS]: Remove conditional code.
4599         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4600         <kernel-features.h>.
4601         [__ASSUME_32BITUIDS]: Make code unconditional.
4602         [!__ASSUME_32BITUIDS]: Remove conditional code.
4603         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4604         <kernel-features.h>.
4605         [__ASSUME_32BITUIDS]: Make code unconditional.
4606         [!__ASSUME_32BITUIDS]: Remove conditional code.
4607         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4608         <kernel-features.h>.
4609         [__ASSUME_32BITUIDS]: Make code unconditional.
4610         [!__ASSUME_32BITUIDS]: Remove conditional code.
4611         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4612         <kernel-features.h>.
4613         [__ASSUME_32BITUIDS]: Make code unconditional.
4614         [!__ASSUME_32BITUIDS]: Remove conditional code.
4615         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4616         <kernel-features.h>.
4617         [__ASSUME_32BITUIDS]: Make code unconditional.
4618         [!__ASSUME_32BITUIDS]: Remove conditional code.
4619         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4620         <kernel-features.h>.
4621         [__ASSUME_32BITUIDS]: Make code unconditional.
4622         [!__ASSUME_32BITUIDS]: Remove conditional code.
4623         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4624         <kernel-features.h>.
4625         [__ASSUME_32BITUIDS]: Make code unconditional.
4626         [!__ASSUME_32BITUIDS]: Remove conditional code.
4627         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4628         <kernel-features.h>.
4629         [__ASSUME_32BITUIDS]: Make code unconditional.
4630         [!__ASSUME_32BITUIDS]: Remove conditional code.
4631         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4632         <kernel-features.h>.
4633         [__ASSUME_32BITUIDS]: Make code unconditional.
4634         [!__ASSUME_32BITUIDS]: Remove conditional code.
4635         * sysdeps/unix/sysv/linux/kernel-features.h
4636         (__ASSUME_SETRESUID_SYSCALL): Remove.
4637         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4638         (__ASSUME_32BITUIDS): Likewise.
4639         (__ASSUME_LDT_WORKS): Likewise.
4640         (__ASSUME_O_DIRECTORY): Likewise.
4641         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4642         architecture but not kernel version.
4643         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4644         (__ASSUME_MMAP2_SYSCALL): Likewise.
4645         (__ASSUME_STAT64_SYSCALL): Likewise.
4646         (__ASSUME_IPC64): Likewise.
4647         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4648         <kernel-features.h>.
4649         [__ASSUME_32BITUIDS]: Make code unconditional.
4650         [!__ASSUME_32BITUIDS]: Remove conditional code.
4651         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4652         <kernel-features.h>.
4653         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4654         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4655         132096]: Remove conditional code.
4656         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4657         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4658         <kernel-features.h>.
4659         [__ASSUME_32BITUIDS]: Make code unconditional.
4660         [!__ASSUME_32BITUIDS]: Remove conditional code.
4661         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4662         <kernel-features.h>.
4663         [__ASSUME_32BITUIDS]: Make code unconditional.
4664         [!__ASSUME_32BITUIDS]: Remove conditional code.
4665         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4666         <kernel-features.h>.
4667         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4668         unconditional.
4669         (__setresgid): Do not declare.
4670         [__ASSUME_32BITUIDS]: Make code unconditional.
4671         [!__ASSUME_32BITUIDS]: Remove conditional code.
4672         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4673         <kernel-features.h>.
4674         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4675         unconditional.
4676         (__setresuid): Do not declare.
4677         [__ASSUME_32BITUIDS]: Make code unconditional.
4678         [!__ASSUME_32BITUIDS]: Remove conditional code.
4679         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4680         <kernel-features.h>.
4681         [__ASSUME_32BITUIDS]: Make code unconditional.
4682         [!__ASSUME_32BITUIDS]: Remove conditional code.
4683         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4684         <kernel-features.h>.
4685         [__ASSUME_32BITUIDS]: Make code unconditional.
4686         [!__ASSUME_32BITUIDS]: Remove conditional code.
4687
4688 2012-05-25  Richard Henderson  <rth@twiddle.net>
4689
4690         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4691         dl_hwcap to ifunc resolver.
4692         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4693         elf_ifunc_invoke.
4694         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4695         dl_hwcap to ifunc resolver.
4696         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4697
4698 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4699
4700         [BZ #14153]
4701         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4702         for |x| <= 2**-26, not 2**-57.
4703         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4704         exception.
4705
4706 2012-05-24  Jeff Law  <law@redhat.com>
4707
4708         * stdio-common/Makefile (tests): Add bug25.
4709         * stdio-common/bug25.c: New test.
4710
4711 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         [BZ #13576]
4714         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4715         multiple of MALLOC_ALIGNMENT in size.
4716         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4717
4718 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4719
4720         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4721         Require >= 256.
4722         (FILENAME_MAX): Use macro-int-constant.
4723         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4724         (_IOFBF): Use macro-int-constant.
4725         (_IOLBF): Likewise.
4726         (_IONBF): Likewise.
4727         (SEEK_CUR): Likewise.
4728         (SEEK_END): Likewise.
4729         (SEEK_SET): Likewise.
4730         (TMP_MAX): Likewise.
4731         (EOF): Use macro-int-constant.  Require < 0.
4732         (NULL): Use macro-constant.  Require == 0.
4733         (stdin): Require type to be FILE *.
4734         (stdout): Likewise.
4735         (stderr): Likewise.
4736         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4737         macro-int-constant.
4738         (EXIT_SUCCESS): Likewise.
4739         (NULL): Use macro-constant.  Require == 0.
4740         (RAND_MAX): Use macro-int-constant.
4741         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4742         [C99-based standards] (strtof): Require function.
4743         [C99-based standards] (strtold): Likewise.
4744         [C99-based standards] (strtoll): Likewise.
4745         [C99-based standards] (strtoull): Likewise.
4746         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4747         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4748         [ISO || ISO99 || ISO11] (math.h): Likewise.
4749         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4750         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4751         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4752
4753 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4754
4755         [BZ #14132]
4756         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4757         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4758         * intl/dgettext.c (DCGETTEXT): Likewise.
4759         * intl/gettext.c (DCGETTEXT): Likewise.
4760         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4761         * posix/regex_internal.h (gettext): Likewise.
4762         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4763         Remove declaration.
4764         * include/argz.h (__argz_count_internal)
4765         (__argz_stringify_internal): Remove declaration.
4766         (__argz_count, __argz_stringify): Declare hidden proto.
4767         * intl/dcgettext.c: Remove use of INTDEF.
4768         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
4769         * string/argz-stringify.c: Likewise.
4770         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4771         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4772         Declare hidden proto.
4773         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
4774         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
4775         Declare hidden proto.
4776         * include/stdio.h (__asprintf_internal): Don't declare.
4777         (__asprintf): Don't define as macro.  Declare hidden proto.
4778         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
4779         (__fsetlocking): Declare hidden proto.
4780         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
4781         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
4782         hidden proto.
4783         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
4784         (_IO_setlinebuf): Remove use of INTUSE.
4785         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
4786         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
4787         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
4788         Remove declaration.
4789         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
4790         (_IO_do_flush): Remove use of INTUSE.
4791         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
4792         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
4793         (_IO_adjust_column, _IO_least_wmarker)
4794         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
4795         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
4796         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
4797         (_IO_default_doallocate, _IO_wdefault_doallocate)
4798         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
4799         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
4800         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
4801         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
4802         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
4803         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
4804         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
4805         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
4806         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
4807         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
4808         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
4809         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
4810         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
4811         proto.
4812         (_IO_flush_all_internal, _IO_adjust_column_internal)
4813         (_IO_default_uflow_internal, _IO_default_finish_internal)
4814         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
4815         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
4816         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
4817         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
4818         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
4819         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
4820         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
4821         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
4822         (_IO_file_close_internal, _IO_file_close_it_internal)
4823         (_IO_file_underflow_internal, _IO_file_overflow_internal)
4824         (_IO_file_init_internal, _IO_file_attach_internal)
4825         (_IO_file_fopen_internal, _IO_file_read_internal)
4826         (_IO_file_sync_internal, _IO_file_seek_internal)
4827         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
4828         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
4829         (_IO_str_underflow_internal, _IO_str_overflow_internal)
4830         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
4831         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
4832         (_IO_list_all_internal, _IO_link_in_internal)
4833         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
4834         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
4835         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
4836         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
4837         (_IO_do_write_internal, _IO_padn_internal)
4838         (_IO_getline_info_internal, _IO_getline_internal)
4839         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
4840         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
4841         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
4842         (_IO_vfscanf_internal, _IO_vfprintf_internal)
4843         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
4844         (_IO_init_internal, _IO_un_link_internal): Don't declare.
4845         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
4846         with libc_hidden_ver, remove use of INTUSE.
4847         * libio/genops.c: Likewise.
4848         * libio/freopen.c: Likewise.
4849         * libio/freopen64.c: Likewise.
4850         * libio/iofclose.c: Likewise.
4851         * libio/iofdopen.c: Likewise.
4852         * libio/iofflush.c: Likewise.
4853         * libio/iofflush_u.c: Likewise.
4854         * libio/iofgets.c: Likewise.
4855         * libio/iofgets_u.c: Likewise.
4856         * libio/iofopen.c: Likewise.
4857         * libio/iofopncook.c: Likewise.
4858         * libio/iofread.c: Likewise.
4859         * libio/iofread_u.c: Likewise.
4860         * libio/ioftell.c: Likewise.
4861         * libio/iofwrite.c: Likewise.
4862         * libio/iogetline.c: Likewise.
4863         * libio/iogets.c: Likewise.
4864         * libio/iogetwline.c: Likewise.
4865         * libio/iopadn.c: Likewise.
4866         * libio/iopopen.c: Likewise.
4867         * libio/ioseekoff.c: Likewise.
4868         * libio/ioseekpos.c: Likewise.
4869         * libio/iosetbuffer.c: Likewise.
4870         * libio/iosetvbuf.c: Likewise.
4871         * libio/ioungetc.c: Likewise.
4872         * libio/ioungetwc.c: Likewise.
4873         * libio/iovdprintf.c: Likewise.
4874         * libio/iovsprintf.c: Likewise.
4875         * libio/iovsscanf.c: Likewise.
4876         * libio/memstream.c: Likewise.
4877         * libio/obprintf.c: Likewise.
4878         * libio/oldfileops.c: Likewise.
4879         * libio/oldiofclose.c: Likewise.
4880         * libio/oldiofdopen.c: Likewise.
4881         * libio/oldiofopen.c: Likewise.
4882         * libio/oldiopopen.c: Likewise.
4883         * libio/oldstdfiles.c: Likewise.
4884         * libio/putc.c: Likewise.
4885         * libio/setbuf.c: Likewise.
4886         * libio/setlinebuf.c: Likewise.
4887         * libio/stdfiles.c: Likewise.
4888         * libio/strops.c: Likewise.
4889         * libio/vasprintf.c: Likewise.
4890         * libio/vscanf.c: Likewise.
4891         * libio/vsnprintf.c: Likewise.
4892         * libio/vswprintf.c: Likewise.
4893         * libio/wfiledoalloc.c: Likewise.
4894         * libio/wfileops.c: Likewise.
4895         * libio/wgenops.c: Likewise.
4896         * libio/wmemstream.c: Likewise.
4897         * libio/wstrops.c: Likewise.
4898         * libio/__fpurge.c: Likewise.
4899         * libio/__fsetlocking.c: Likewise.
4900         * assert/assert.c: Likewise.
4901         * debug/fgets_chk.c: Likewise.
4902         * debug/fgets_u_chk.c: Likewise.
4903         * debug/fread_chk.c: Likewise.
4904         * debug/fread_u_chk.c: Likewise.
4905         * debug/gets_chk.c: Likewise.
4906         * debug/obprintf_chk.c: Likewise.
4907         * debug/vasprintf_chk.c: Likewise.
4908         * debug/vdprintf_chk.c: Likewise.
4909         * debug/vsnprintf_chk.c: Likewise.
4910         * debug/vsprintf_chk.c: Likewise.
4911         * malloc/mtrace.c: Likewise.
4912         * misc/error.c: Likewise.
4913         * misc/syslog.c: Likewise.
4914         * stdio-common/asprintf.c: Likewise.
4915         * stdio-common/fxprintf.c: Likewise.
4916         * stdio-common/getw.c: Likewise.
4917         * stdio-common/isoc99_fscanf.c: Likewise.
4918         * stdio-common/isoc99_scanf.c: Likewise.
4919         * stdio-common/isoc99_vfscanf.c: Likewise.
4920         * stdio-common/isoc99_vscanf.c: Likewise.
4921         * stdio-common/isoc99_vsscanf.c: Likewise.
4922         * stdio-common/printf-prs.c: Likewise.
4923         * stdio-common/printf_fp.c: Likewise.
4924         * stdio-common/printf_fphex.c: Likewise.
4925         * stdio-common/printf_size.c: Likewise.
4926         * stdio-common/putw.c: Likewise.
4927         * stdio-common/scanf.c: Likewise.
4928         * stdio-common/sprintf.c: Likewise.
4929         * stdio-common/tmpfile.c: Likewise.
4930         * stdio-common/vfprintf.c: Likewise.
4931         * stdio-common/vfscanf.c: Likewise.
4932         * stdlib/strfmon_l.c: Likewise.
4933         * sunrpc/openchild.c: Likewise.
4934         * sunrpc/xdr_stdio.c: Likewise.
4935         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
4936         * sysdeps/mach/hurd/tmpfile.c: Likewise.
4937
4938 2012-05-24  Roland McGrath  <roland@hack.frob.com>
4939
4940         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4941
4942         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
4943         in the third column, to generate for the shared library an IFUNC
4944         that uses _dl_vdso_vsym.
4945         * Makerules (COMPILE.c, compile-stdin.c): New variables.
4946         * Makeconfig (object-suffixes-noshared): New variable.
4947
4948         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
4949         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
4950         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
4951         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
4952
4953         [BZ #14132]
4954         * include/sys/time.h (__gettimeofday): Remove macro.
4955         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
4956         * time/gettimeofday.c (__gettimeofday): Remove #undef.
4957         Remove INTDEF.
4958         (__gettimeofday): Add libc_hidden_def.
4959         (gettimeofday): Add libc_hidden_weak.
4960         * sysdeps/mach/gettimeofday.c: Likewise.
4961         * sysdeps/posix/gettimeofday.c: Likewise.
4962         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
4963         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
4964         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
4965         (__gettimeofday_internal): Remove strong_alias.
4966         (__gettimeofday): Add libc_hidden_def.
4967         (gettimeofday): Add libc_hidden_weak.
4968         * sysdeps/unix/syscalls.list (gettimeofday):
4969         Remove __gettimeofday_internal alias.
4970
4971 2012-05-24  Daniel Jacobowitz  <drow@false.org>
4972             H.J. Lu  <hongjiu.lu@intel.com>
4973
4974         [BZ #12495]
4975         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
4976         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
4977         (largebin_index_32_big): New.
4978         (largebin_index): Use it for 16-byte alignment.
4979         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
4980         correction with front_misalign.
4981
4982 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4983
4984         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
4985         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4986         Likewise.
4987         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
4988         Likewise.
4989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
4990         Likewise.
4991         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
4992         Likewise.
4993         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
4994         Likewise.
4995         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
4996         Likewise.
4997         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
4998         Likewise.
4999         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5000         Likewise.
5001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5002         Likewise.
5003         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5004         Likewise.
5005         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5006         Likewise.
5007         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5008         Likewise.
5009
5010         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5011         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5012
5013 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5014
5015         [BZ #10846]
5016         [BZ #14036]
5017         * math/libm-test.inc (exp_test): Add test from bug 14036.
5018         (pow_test): Add test from bug 10846.
5019
5020         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5021         and other flags.
5022         (special_function): Do not include flags in test name.
5023         (parse_args): Likewise.
5024         * sysdeps/i386/fpu/libm-test-ulps: Update.
5025         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5026         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5027         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5029
5030         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5031         exceptions.
5032         * math/libm-test.inc ("Philosophy"): Update comment about
5033         exception testing.
5034         (UNDERFLOW_EXCEPTION): New macro.
5035         (UNDERFLOW_EXCEPTION_OK): Likewise.
5036         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5037         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5038         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5039         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5040         (INVALID_EXCEPTION_OK): Update value.
5041         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5042         (OVERFLOW_EXCEPTION_OK): Likewise.
5043         (IGNORE_ZERO_INF_SIGN): Likewise.
5044         (test_exceptions): Handle underflow exceptions.
5045         (acos_test): Update for underflow exception expectations.
5046         (cexp_test): Likewise.
5047         (clog_test): Likewise.
5048         (clog10_test): Likewise.
5049         (csqrt_test): Likewise.
5050         (ctan_test): Likewise.
5051         (ctanh_test): Likewise.
5052         (exp_test): Likewise.
5053         (exp10_test): Likewise.
5054         (exp2_test): Likewise.
5055         (expm1_test): Likewise.
5056         (fma_test): Likewise.
5057         (j0_test): Likewise.
5058         (jn_test): Likewise.
5059         (nexttoward_test): Likewise.
5060         (pow_test): Likewise.
5061         (scalbn_test): Likewise.
5062         (scalbln_test): Likewise.
5063         (tan_test): Likewise.
5064         (y1_test): Likewise.
5065         * sysdeps/i386/fpu/libm-test-ulps: Update.
5066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5067
5068 2012-05-23  David S. Miller  <davem@davemloft.net>
5069
5070         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5071         (__libc_sigaction): Remove unused local variables.
5072
5073 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5074
5075         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5076
5077 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5078
5079         mktime: avoid signed integer overflow
5080         * time/mktime.c (__mktime_internal): Do not mishandle the case
5081         where diff == INT_MIN.
5082
5083         mktime: simplify computation of average
5084         * time/mktime.c (ranged_convert): Use new time_t_avg function
5085         instead of rolling our own (probably-slower) code.
5086
5087         mktime: do not assume signed right shift propagates sign bit
5088         * time/mktime.c (isdst_differ): New static function.
5089         (__mktime_internal): No need to normalize tm_isdst now.
5090         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5091         tm_isdst values.
5092
5093         mktime: merge another wrapv change from gnulib
5094         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5095         from some compilers.
5096
5097         mktime: remove incorrect attempt at unusual arithmetics
5098         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5099         The code didn't really work on such machines anyway.
5100         (TYPE_MINIMUM): Assume two's complement.
5101         (twos_complement_arithmetic): Verify that long_int and time_t
5102         are two's complement (or unsigned, in the latter case).
5103
5104         mktime: check signed shifts on long_int and time_t, too
5105         * time/mktime.c (SHR): Check that shifts work as desired
5106         on the types long_int and time_t too, as SHR is used on
5107         such types.
5108
5109         mktime: do not assume 'long' is wide enough
5110         * time/mktime.c (verify): Move decl up.
5111         (long_int): New type.
5112         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5113         to remove assumption in the code that 'long' is wide enough to
5114         store year values.  This assumption is not true on x32 and on
5115         some non-glibc platforms.
5116
5117         mktime: merge wrapv change from gnulib
5118         * time/mktime.c (WRAPV): New macro.
5119         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5120         (guess_time_tm, __mktime_internal): Do not assume that signed
5121         integer overflow wraps around; modern compilers generate code
5122         where this assumption is no longer valid.
5123
5124 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5125
5126         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5127         Replace "jmp L(pseudo_end)" with "ret".
5128         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5129         Likewise.
5130
5131 2012-05-23  Andreas Jaeger  <aj@suse.de>
5132
5133         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5134         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5135
5136 2012-05-23  Andreas Jaeger  <aj@suse.de>
5137             Maximilian Attems  <max@stro.at>
5138
5139         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5140         New macros.
5141
5142 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5143
5144         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5145         code so that pseudo_end is just ret and the stack pointer is
5146         correct also for static library in error case.
5147
5148 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5149
5150         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5151         move to syscalls.list.
5152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5156
5157         * manual/install.texi (Running make install): Do not mention Linux
5158         kernel version for which pt_chown is not needed.
5159         (Linux): Do not mention problems with nscd with 2.0 kernels.
5160         * INSTALL: Regenerated.
5161
5162 2012-05-23  Andreas Jaeger  <aj@suse.de>
5163
5164         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5165         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5166         macro.
5167         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5168         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5169         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5170         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5171         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5172         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5173         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5174         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5175         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5176         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5177         * sysdeps/unix/sysv/linux/bits/in.h
5178         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5179
5180 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5181
5182         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5183         (PREPARE_VERSION): Just use assert instead, it will be elided
5184         under [NDEBUG] anyway.
5185
5186 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5187
5188         * sysdeps/unix/sysv/linux/Makefile: Include
5189         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5190         (sysdep_routines): Remove sysctl.
5191         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5192         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5193         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5194         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5195         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5196
5197 2012-05-22  Andreas Jaeger  <aj@suse.de>
5198
5199         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5200         that pseudo_end is just ret and the stack pointer is correct also
5201         for static library in error case.
5202
5203 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5204
5205         [BZ #14122]
5206         * nss/nsswitch.c (defconfig_entries): New variable.
5207         (__nss_database_lookup): Don't leak defconfig entries.
5208         (nss_parse_service_list): Don't leak on error paths.
5209         (free_database_entries): New function.
5210         (free_defconfig): New function.
5211         (free_mem): Move common code to free_database_entries.
5212
5213 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5214
5215         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5216         Add arch_prctl.
5217         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5218
5219         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5220         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5221         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5222         New macro.
5223         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5224         (INTERNAL_SYSCALL_TYPES): Likewise.
5225         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5226         (LOAD_REGS_TYPES_[1-6]): Likewise.
5227         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5228         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5229
5230 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5231
5232         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5233         copysignl for GLIBC_2_0.
5234         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5235         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5236         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5237         logbl for GLIBC_2_0.
5238         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5239         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5240
5241 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5242
5243         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5244         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5245
5246         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5247         Use "neg %eax".
5248
5249         * time/mktime.c: Update copyright years.
5250
5251 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5252
5253         mktime: merge comment-quoting-style change from gnulib
5254         * time/mktime.c: Quote 'like this' in comments.
5255         The GNU coding standards suggest that we no longer quote `like this',
5256         as "`" and "'" are typically rendered asymmetrically nowadays.
5257         The typical gnulib style is to quote 'like this' when quoting
5258         code, and "like this" when quoting English.
5259
5260         * time/mktime.c (compile-command): Add "-I.".
5261
5262         mktime: merge mktime-internal.h change from gnulib
5263         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5264
5265         mktime: merge time_r change from gnulib
5266         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5267
5268         mktime: merge DEBUG change from gnulib
5269         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5270         case system <time.h> has a #define.
5271
5272         mktime: merge <sys/types.h> change from gnulib
5273         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5274         since <time.t> is now guaranteed to define time_t.
5275
5276         mktime: merge HAVE_CONFIG_H change from gnulib
5277         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5278
5279 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5280
5281         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5282         Use "neg %eax".
5283
5284         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5285         __rlim_t cast.
5286         (struct rusage): Use anonymous union to pad each field to
5287         __syscall_slong_t.
5288
5289 2012-05-21  David S. Miller  <davem@davemloft.net>
5290
5291         * Makefules (o-iterator): Remove .s cases.
5292         (compile-command.s): Delete.
5293         (COMPILE.s): Delete.
5294         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5295
5296 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5297
5298         * configure.in (libc_cv_predef_stack_protector): Only consider
5299         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5300         * configure: Regenerated.
5301
5302 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5303
5304         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5305         New macro.  Use R*LP on int and pointer.
5306         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5307         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5308         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5309         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5310
5311         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5312         [__WORDSIZE_TIME64_COMPAT32] instead of
5313         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5314         (struct utmp): Likewise.
5315         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5316         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5317         Renamed to ...
5318         (__WORDSIZE_TIME64_COMPAT32): This.
5319         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5320         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5321         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5322         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5323         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5324         (__WORDSIZE_TIME64_COMPAT32): New macro.
5325
5326 2012-05-21  Andreas Jaeger  <aj@suse.de>
5327
5328         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5329         only if [SHARED]. Add prototype for __wcschr_ia32.
5330
5331 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5332
5333         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5334         of %rbp unmolested in the jmp_buf while mangling the low bits.
5335         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5336         unmolested high bits of %rbp while demangling the low bits.
5337         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5338
5339 2012-05-21  Andreas Jaeger  <aj@suse.de>
5340
5341         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5342         * sunrpc/svc_simple.c: Use it for registerrpc.
5343         * sunrpc/xcrypt.c: Use it for passwd2des.
5344
5345         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5346
5347 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5348
5349         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5350         Don't define if [__SYSCALL_WORDSIZE != 32].
5351         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5352         New macro.
5353
5354 2012-05-21  Bruno Haible  <bruno@clisp.org>
5355             Andreas Jaeger  <aj@suse.de>
5356
5357         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5358         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5359         inptr and inend for must_buffer_ch.
5360         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5361         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5362         * stdio-common/Makefile (tests): Remove bug15.
5363         (bug15-ENV): Remove macro.
5364         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5365         anymore.
5366
5367 2012-05-19  Andreas Jaeger  <aj@suse.de>
5368             Roland McGrath  <roland@hack.frob.com>
5369
5370         * manual/contrib.texi: Completely rewritten. It contains now an
5371         alphabetical list of contributors and their contributions.
5372
5373 2012-05-21  Richard Henderson  <rth@twiddle.net>
5374
5375         * misc/getauxval.c (__getauxval): Use unsigned long int.
5376         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5377         (getauxval): Use unsigned long int.
5378
5379 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5380
5381         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5382
5383 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5384
5385         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5386         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5387         __alignof__ (long double).
5388
5389 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5390
5391         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5392
5393 2012-05-20  Richard Henderson  <rth@twiddle.net>
5394
5395         * misc/getauxval.c: New file.
5396         * misc/sys/auxv.h: New file.
5397         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5398         (routines): Add getauxval.
5399         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5400         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5401         * elf/dl-sysdep.c (_dl_auxv): Remove.
5402         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5403         * elf/dl-support.c (_dl_auxv): New variable.
5404         (_dl_aux_init): Initialize it.
5405         * manual/startup.texi (Auxiliary Vector): New node.
5406         * sysdeps/generic/bits/hwcap.h: New file.
5407         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5408         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5409         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5410         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5411         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5412         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5414         Update.
5415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5416         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5417         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5418         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5419         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5420         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5421         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5422         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5423
5424 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5425
5426         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5427
5428 2012-05-19  David S. Miller  <davem@davemloft.net>
5429
5430         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5431
5432 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5433
5434         [BZ #14123]
5435         * math/s_ccosh.c: Include <float.h>
5436         (__ccosh): Avoid internal overflow calculating sinh and cosh
5437         values before multiplying by sin and cos values.
5438         * math/s_ccoshf.c: Likewise.
5439         * math/s_ccoshl.c: Likewise.
5440         * math/s_csin.c: Likewise.
5441         * math/s_csinf.c: Likewise.
5442         * math/s_csinl.c: Likewise.
5443         * math/s_csinh.c: Likewise.
5444         * math/s_csinhf.c: Likewise.
5445         * math/s_csinhl.c: Likewise.
5446         * math/libm-test.inc (ccos_test): Add more tests.
5447         (ccosh_test): Likewise.
5448         (csin_test): Likewise.
5449         (csinh_test): Likewise.
5450         * sysdeps/i386/fpu/libm-test-ulps: Update.
5451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5452
5453 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5454
5455         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5456         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5457
5458         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5459
5460 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5461
5462         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5463         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5464         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5465         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5466         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5467         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5468         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5469         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5470         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5471         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5472         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5473         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5474         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5475         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5476         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5477         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5478         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5479         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5480         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5481         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5482         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5483         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5484         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5485         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5486         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5487         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5488         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5489         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5490         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5491         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5492         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5493
5494 2012-05-18  Andreas Jaeger  <aj@suse.de>
5495
5496         * csu/.gitignore: Delete.
5497
5498 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5499
5500         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5501         (timex): Use __syscall_slong_t.
5502
5503 2012-05-18  Andreas Jaeger  <aj@suse.de>
5504             Carlos O'Donell  <carlos_odonell@mentor.com>
5505
5506         * manual/install.texi (Configuring and compiling): Update
5507         description about files modified in the source directory.
5508         * INSTALL: Regenerated.
5509
5510 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5511
5512         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5513         value.  Use "or" to set return value to -1.
5514         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5515         negate return value.
5516
5517 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5518
5519         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5520         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5521         failure if the compiler has Graphite support disabled.
5522         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5523         Likewise.
5524         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5525         CFLAGS-memmove.c): Likewise.
5526         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5527         Likewise.
5528
5529 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5530
5531         * sysdeps/x86_64/x32/_itoa.h: New file.
5532
5533         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5534         getdents system call only if kernel and user dirents have the
5535         same d_ino and d_off.
5536
5537         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5538         LLONG_MAX != LONG_MAX.
5539         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5540         (_fitoa_word): Likewise.
5541
5542         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5543         years.
5544         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5545         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5546         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5547
5548         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5549         include <bits/wordsize.h>.  Check __x86_64__ instead of
5550         __WORDSIZE.
5551         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5552         if __x86_64__ is defined.  Use anonymous union on fpstate.
5553
5554         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5555         anonymous union.
5556
5557 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5558
5559         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5560         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5561         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5562         Refer to _rtld_local_ro instead of _rtld_global_ro.
5563         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5564         Likewise.
5565         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5566         Likewise.
5567         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5568         Likewise.
5569         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5570         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5571         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5572
5573         * sysdeps/powerpc/powerpc32/dl-machine.c
5574         (__elf_machine_runtime_setup) [PROF]: Don't reference
5575         _dl_prof_resolve.
5576
5577 2012-05-18  Andreas Jaeger  <aj@suse.de>
5578
5579         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5580         function only available for GCCs before 3.4 since GCC 3.4
5581         introduced a builtin.
5582         (lrint): Likewise.
5583         (llrintf): Likewise.
5584         (llrint): Likewise.
5585         (fmaxf): Likewise.
5586         (fmax): Likewise.
5587         (fminf): Likewise.
5588         (fmin): Likewise.
5589         (rint): Likewise.
5590         (rintf): Likewise.
5591         (nearbyint): Likewise.
5592         (nearbyintf): Likewise.
5593         (ceil): Likewise.
5594         (ceilf): Likewise.
5595         (floor): Likewise.
5596         (floorf): Likewise.
5597
5598 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5599
5600         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5601         on both fields and cast pointer to __syscall_ulong_t.
5602
5603         * bits/types.h (__fsword_t): New type.
5604         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5605         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5606         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5607         (__FSWORD_T_TYPE): Likewise.
5608         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5609         (__FSWORD_T_TYPE): Likewise.
5610         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5611         (__FSWORD_T_TYPE): Likewise.
5612         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5613         (__FSWORD_T_TYPE): Likewise.
5614         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5615         __SWORD_TYPE with __fsword_t.
5616         (statfs64): Likewise.
5617
5618 2012-05-17  David S. Miller  <davem@davemloft.net>
5619
5620         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5621
5622 2012-05-17  Andreas Jaeger  <aj@suse.de>
5623
5624         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5625         warning.
5626
5627 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5628
5629         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5630
5631 2012-05-17  Andreas Jaeger  <aj@suse.de>
5632
5633         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5634         when it is used.
5635
5636 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5637
5638         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5639
5640 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5641
5642         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5643         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5644
5645 2012-05-17  Andreas Jaeger  <aj@suse.de>
5646             Carlos O'Donell  <carlos_odonell@mentor.com>
5647
5648         [BZ #14059]
5649         * sysdeps/x86_64/multiarch/init-arch.h
5650         (bit_YMM_Usable): Rename to...
5651         (bit_AVX_Usable): ... this.
5652         (bit_FMA4_Usable): New macro.
5653         (bit_XMM_state): New macro.
5654         (bit_YMM_state): New macro.
5655         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5656         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5657         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5658         (CPUID_OSXSAVE): New macro.
5659         (CPUID_AVX): New macro.
5660         (CPUID_FMA4): New macro.
5661         (index_YMM_Usable): Rename to...
5662         (index_AVX_Usable): ... this.
5663         (HAS_AVX): Use HAS_ARCH_FEATURE.
5664         (HAS_FMA4): Likewise.
5665         (HAS_YMM_USABLE): Remove.
5666         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5667         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5668         are present.
5669         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5670         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5671         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5672         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5673         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5674
5675 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5676
5677         * math/libm-test.c: Support platforms without multiple rounding modes.
5678         * math/bug-nextafter.c: Support platforms without FP exceptions.
5679         * math/bug-nexttoward.c: Likewise.
5680         * math/test-fenv.c: Likewise.
5681         * math/test-misc.c: Likewise.
5682         * stdlib/bug-getcontext.c: Likewise.
5683
5684 2012-05-17  Andreas Jaeger  <aj@suse.de>
5685
5686         * manual/examples/search.c (critter_cmp): Change signature to
5687         avoid warnings.
5688         * manual/string.texi (Collation Functions): Likewise.
5689
5690 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5691
5692         * bits/types.h: Fold copyright years.
5693         * bits/typesizes.h: Likewise.
5694         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5695         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5696         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5697         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5698         * time/time.h: Likewise.
5699
5700 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5701
5702         [BZ #208]
5703         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5704         in instead of returning them.  Return void.
5705         (__libc_mallinfo): Accumulate over all arenas.
5706         (__malloc_stats): Adjust for change in int_mallinfo interface.
5707
5708 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5709
5710         [BZ #10375]
5711         * configure.in (NM): Add AC_CHECK_TOOL for it.
5712         (libc_extra_cflags): New substituted variable.
5713         Check for -fstack-protector being used implicitly.
5714         * configure: Regenerated.
5715         * config.make.in (config-extra-cflags): New variable,
5716         gets @libc_extra_cflags@.
5717         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5718
5719         [BZ #10375]
5720         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5721         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5722         * configure: Regenerated.
5723         * config.make.in (CPPUNDEFS): New substituted variable.
5724         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5725         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5726         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5727
5728 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5729
5730         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5731         (mq_attr): Use __syscall_slong_t.
5732
5733 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5734
5735         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5736         Check __x86_64__ instead of __WORDSIZE.
5737         (_STAT_VER_LINUX): Likewise.
5738         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5739         __syscall_ulong_t and __syscall_slong_t.
5740         (stat64): Likewise.
5741
5742 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5743
5744         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5745
5746 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5747
5748         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5749
5750 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5751
5752         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5753         __syscall_ulong_t.
5754
5755         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5756         include <bits/wordsize.h>.  Check __x86_64__ instead of
5757         __WORDSIZE.
5758         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5759         defined.
5760         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5761
5762         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5763         include <bits/wordsize.h>.  Check __x86_64__ instead of
5764         __WORDSIZE.
5765         (user_regs_struct): Use "__extension__ unsigned long long"
5766         instead of "unsigned long" if __x86_64__ is defined.
5767         (user): Likewise.  Pad after pointer field if __ILP32__ is
5768         defined.
5769
5770 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
5771
5772         * configure.in (makeinfo): Require version 4.5 or later.  Allow
5773         versions 5 to 9.
5774         * configure: Regenerated.
5775         * manual/install.texi (texinfo): Increase version requirement to
5776         4.5 or later.
5777         * INSTALL: Regenerated.
5778
5779         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
5780
5781 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5782
5783         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
5784
5785         * sysdeps/x86_64/x32/ffs.c: New file.
5786
5787         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
5788         __syscall_ulong_t.
5789         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
5790         defined.  Use __syscall_ulong_t.
5791         (shminfo): Use __syscall_ulong_t.
5792         (shm_info): Likewise.
5793
5794         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
5795         __syscall_ulong_t.
5796
5797         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
5798         <bits/wordsize.h>.
5799         (msgqnum_t): Use __syscall_ulong_t.
5800         (msglen_t): Likewise.
5801         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
5802         __syscall_ulong_t.
5803
5804         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
5805         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5806
5807         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
5808
5809         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
5810         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
5811
5812         * sysvipc/sys/msg.h (msgbuf): Replace long int with
5813         __syscall_slong_t.
5814
5815         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
5816         include <bits/wordsize.h>.  Check __x86_64__ instead of
5817         __WORDSIZE.
5818
5819         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
5820         "unsigned long long int" if __x86_64__ is defined.
5821         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
5822
5823         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
5824         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5825         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
5826
5827         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
5828         <stdint.h>.
5829         (GET_PC): Cast to uintptr_t first.
5830         (GET_FRAME): Likewise.
5831         (GET_STACK): Likewise.
5832
5833         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
5834         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
5835         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
5836         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
5837         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
5838         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
5839         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
5840         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
5841         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5842         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
5843         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
5844         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
5845         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
5846         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
5847         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
5848         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
5849         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
5850         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
5851         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
5852         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
5853         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
5854         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
5855         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
5856         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
5857         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
5858         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
5859         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
5860         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
5861         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
5862
5863 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
5864
5865         * Makerules (+depfiles): Also collect depfiles from .oS in
5866         $(extra-objs).
5867         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
5868         .oS, $(libnldbl-routines)).
5869
5870         * Makerules (native-compile-mkdep-flags): Define.
5871         * sunrpc/Makefile (extra-objs): Add $(addprefix
5872         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
5873         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
5874         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
5875         calling $(make-target-directory).
5876
5877 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5878
5879         * bits/types.h (__snseconds_t): Removed.
5880         * time/time.h (struct timespec): Replace __snseconds_t with
5881         __syscall_slong_t.
5882         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
5883         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
5884         Likewise.
5885         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5886         (__SNSECONDS_T_TYPE): Likewise.
5887         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5888         (__SNSECONDS_T_TYPE): Likewise.
5889         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5890         (__SNSECONDS_T_TYPE): Likewise.
5891
5892 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5893
5894         * sysdeps/mach/hurd/bits/typesizes.h
5895         (__SYSCALL_SLONG_TYPE): New macro.
5896         (__SYSCALL_ULONG_TYPE): Likewise.
5897
5898 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5899
5900         * bits/types.h (__syscall_slong_t): New type.
5901         (__syscall_ulong_t): Likewise.
5902
5903         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
5904         (__SYSCALL_ULONG_TYPE): Likewise.
5905         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5906         (__SYSCALL_SLONG_TYPE): Likewise.
5907         (__SYSCALL_ULONG_TYPE): Likewise.
5908         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5909         (__SYSCALL_SLONG_TYPE): Likewise.
5910         (__SYSCALL_ULONG_TYPE): Likewise.
5911         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5912         (__SYSCALL_SLONG_TYPE): Likewise.
5913         (__SYSCALL_ULONG_TYPE): Likewise.
5914
5915 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5916
5917         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
5918         Add sigaltstack-offsets.sym.
5919         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5920         <sigaltstack-offsets.h>.
5921         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
5922         longjmp_msg pointer.
5923         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
5924         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
5925         signal stack.
5926         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
5927
5928 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5929
5930         * elf/stackguard-macros.h: Remove file.
5931         * sysdeps/generic/stackguard-macros.h: New file.
5932         * sysdeps/i386/stackguard-macros.h: Likewise.
5933         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
5934         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
5935         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
5936         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
5937         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
5938         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
5939         * sysdeps/x86_64/stackguard-macros.h: Likewise.
5940         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
5941         <elf/stackguard-macros.h>.
5942
5943         [BZ #14109]
5944         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
5945         __aligned__ in attribute.
5946         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
5947         (gregset_t): Likewise.
5948
5949 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5950
5951         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
5952         * sysdeps/x86_64/64/Implies-after: Here.  New file.
5953         * sysdeps/x86_64/x32/Implies-after: New file.
5954
5955 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5956
5957         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
5958         and access return value for _dl_profile_fixup.  Use R10_LP to
5959         load frame size.
5960
5961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5962
5963         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
5964
5965 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5966
5967         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
5968         * sysdeps/x86_64/x32/sysdep.h: New file.
5969
5970 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5971
5972         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
5973         * sysdeps/x86_64/setjmp.S: Likewise.
5974
5975 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5976
5977         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
5978         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
5979         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
5980         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
5981         remove unused global constant.
5982
5983 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
5984
5985         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
5986         include of <not-cancel.h>.
5987
5988 2012-05-15  Roland McGrath  <roland@hack.frob.com>
5989
5990         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
5991
5992 2012-05-15  Jeff Law  <law@redhat.com>
5993             Andreas Jaeger  <aj@suse.de>
5994
5995         [BZ #13594]
5996         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
5997         out from...
5998         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
5999         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6000         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6001         code changing __hst_map_handle.map.
6002
6003 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6004
6005         * configure.in (sysnames): Look for Implies-before and Implies-after
6006         files.
6007         * configure: Regenerated.
6008
6009 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6010
6011         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6012         8-byte data alignment with LP_SIZE alignment.
6013
6014 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6015
6016         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6017         into R10_LP.
6018
6019 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6020
6021         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6022
6023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6024
6025         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6026         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6027         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6028         Likewise.
6029         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6030
6031 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6032
6033         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6034         (stackinfo_sub_sp): Likewise.
6035
6036 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6037
6038         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6039         RAX_LP.
6040
6041 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6042
6043         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6044         into R*_LP.
6045
6046 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6047
6048         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6049         sizes into R*_LP.
6050
6051 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6052
6053         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6054
6055 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6056
6057         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6058         into R11_LP and load __x86_64_shared_cache_size_half into
6059         R8_LP.
6060
6061 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6062
6063         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6064         R8_LP.
6065
6066 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6067
6068         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6069         logb for POWER7.
6070         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6071         logbf for POWER7.
6072         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6073         logbl for POWER7.
6074         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6075         powerpc32/power7/fpu/s_logb.c via #include.
6076         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6077         powerpc32/power7/fpu/s_logbf.c via #include.
6078         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6079         powerpc32/power7/fpu/s_logbl.c via #include.
6080
6081 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6082
6083         * README.libm: Remove file.
6084
6085 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6086
6087         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6088         count for x32.  Use R*_LP and omit operand-size suffix.
6089
6090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6091
6092         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6093         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6094         * sysdeps/x86_64/x32/shlib-versions: New file.
6095
6096 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6097
6098         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6099         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6100         Use _dl_fatal_printf instead.
6101
6102 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6103
6104         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6105         set if not set by the user.  Do not allow for being unset.
6106         * sysdeps/unix/sysv/linux/configure: Regenerated.
6107
6108 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6109
6110         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6111         the `q' suffix from lea and replace .quad with ASM_ADDR.
6112
6113 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6114
6115         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6116         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6117         instead of $17.
6118         (PTR_DEMANGLE): Likewise.
6119
6120 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6121
6122         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6123         (LP_OP): Likewise.
6124         (ASM_ADDR): Likewise.
6125         (RAX_LP): Likewise.
6126         (RBP_LP): Likewise.
6127         (RBX_LP): Likewise.
6128         (RCX_LP): Likewise.
6129         (RDI_LP): Likewise.
6130         (RSI_LP): Likewise.
6131         (RSP_LP): Likewise.
6132         (R8_LP): Likewise.
6133         (R9_LP): Likewise.
6134         (R10_LP): Likewise.
6135         (R10_LP): Likewise.
6136         (R11_LP): Likewise.
6137         (R12_LP): Likewise.
6138         (R13_LP): Likewise.
6139         (R14_LP): Likewise.
6140         (R15_LP): Likewise.
6141
6142 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6143
6144         * sysdeps/x86_64/x32/dl-machine.h: New file.
6145
6146 2012-05-14  Andreas Jaeger  <aj@suse.de>
6147
6148         * manual/Makefile (subdir): Remove export of subdir.
6149         (all): Remove target.
6150         (.PHONY): Remove all from list.
6151         (mkinstalldirs): Remove.
6152         (.PHONY): Remove installdirs from list.
6153         ($(inst_infodir)/libc.info): Use make-target-directory.
6154         (installdirs): Remove.
6155         (subdir_%): Remove.
6156         (glibc-targets): Remove.
6157         (lib): Remove.
6158         (stubs): Remove.
6159         ($(objpfx)stubs ../po/manual.pot): Remove.
6160         ($(objpfx)stamp%): Remove.
6161         (make-target-directory): Remove.
6162         (subdir_install): Remove.
6163         (routines): Remove.
6164         (aux): Remove.
6165         (sources): Remove.
6166         (objects): Remove.
6167         (headers): Remove.
6168
6169         [BZ #13750]
6170         * manual/.gitignore: Remove, it's not needed anymore.
6171         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6172         all files in it.
6173         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6174         directory.
6175         (texis): Renamed to $(objpfx)texis.
6176         (texis-path): New, contains path to generated files.
6177         (chapters.%): Use texis-path for complete path, add extra argument
6178         libc-texinfo.sh.
6179         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6180         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6181         (summary,texi, stamp-summary): Use complete path of
6182         files. Generate files in build dir.
6183         (dir-add.texi): Build in build dir.
6184         (libm-err.texi,stamp-libm-err): Likewise.
6185         (version.texi, stamp-version): Likewise.
6186         (.%c.texi): Likewise.
6187         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6188         (mostlyclean): Remove target.
6189         (realclean): Remove target.
6190         (generated): Add new variable with contents from mostlyclean and
6191         realclean, remove entries duplicated in common-mostlyclean, add
6192         stamp-libm-err and stamp-version.
6193         (generated-dirs): Add libc directory.
6194         ($(inst_infodir)/libc.info): Install files from build dir.
6195
6196         * manual/install.texi (Configuring and compiling): Adjust since
6197         the info files are not part of the tar ball anymore.
6198
6199 2012-05-14  Andreas Jaeger  <aj@suse.de>
6200
6201         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6202         variable.
6203
6204 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6205
6206         [BZ #13717]
6207         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6208         to 2.2.0 where earlier.
6209         * sysdeps/unix/sysv/linux/configure: Regenerated.
6210         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6211         Remove conditional code.
6212         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6213         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6214         Remove conditional code.
6215         [!__NR_lchown]: Likewise.
6216         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6217         [__NR_lchown]: Likewise.
6218         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6219         comment referencing __ASSUME_LCHOWN_SYSCALL.
6220         * sysdeps/unix/sysv/linux/i386/sigaction.c
6221         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6222         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6223         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6224         Remove conditional code.
6225         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6226         (__protocol_available): Remove #if 0 code.
6227         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6228         conditional code.
6229         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6230         * sysdeps/unix/sysv/linux/kernel-features.h
6231         (__ASSUME_GETCWD_SYSCALL): Don't define.
6232         (__ASSUME_REALTIME_SIGNALS): Likewise.
6233         (__ASSUME_PREAD_SYSCALL): Likewise.
6234         (__ASSUME_PWRITE_SYSCALL): Likewise.
6235         (__ASSUME_POLL_SYSCALL): Likewise.
6236         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6237         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6238         non-SPARC.
6239         (__ASSUME_SIOCGIFNAME): Don't define.
6240         (__ASSUME_MSG_NOSIGNAL): Likewise.
6241         (__ASSUME_SENDFILE): Define unconditionally.
6242         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6243         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6244         conditional code.
6245         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6246         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6247         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6248         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6249         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6250         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6251         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6253         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6254         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6256         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6257         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6259         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6260         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6262         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6263         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6265         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6266         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6268         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6269         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6271         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6272         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6274         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6275         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6276         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6277         Remove conditional code.
6278         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6279         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6280         Remove conditional code.
6281         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6282         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6283         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6284         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6285         Remove conditional code.
6286         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6287         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6288         Remove conditional code.
6289         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6290         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6291         Remove conditional code.
6292         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6293         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6294         Remove conditional code.
6295         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6296         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6297         Remove conditional code.
6298         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6299         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6300         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6301         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6302         * sysdeps/unix/sysv/linux/sigaction.c
6303         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6304         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6305         * sysdeps/unix/sysv/linux/sigpending.c
6306         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6307         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6308         * sysdeps/unix/sysv/linux/sigprocmask.c
6309         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6310         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6311         * sysdeps/unix/sysv/linux/sigsuspend.c
6312         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6313         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6314         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6315         (__libc_missing_rt_sigs): Remove.
6316         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6317         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6318         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6319         Remove conditional code.
6320         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6321         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6322         return 1.
6323         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6324         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6325         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6326         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6327
6328 2012-05-14  Andreas Jaeger  <aj@suse.de>
6329
6330         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6331         it's not used in glibc.
6332         (__coshm1): Likewise.
6333         (__acosh1p): Likewise.
6334         (__sgn): Likewise.
6335
6336         * manual/string.texi (Copying and Concatenation): Add missing
6337         variable in concat example.
6338         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6339
6340 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6341
6342         [BZ #14103]
6343         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6344         __builtin_clzl with __builtin_clzll.
6345
6346 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6347
6348         [BZ #14104]
6349         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6350         libc_freeres_ptr.
6351
6352 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6353
6354         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6355         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6356         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6357         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6358
6359 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6360
6361         * NEWS: Update ia64 info.
6362
6363 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6364
6365         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6366         used as bcopy.
6367
6368 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6369
6370         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6371         * sysdeps/unix/syscalls.list (dup3): Likewise.
6372         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6373         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6374
6375 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6376
6377         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6378         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6379
6380 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6381
6382         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6383         thread pointer.
6384         (TLS_IE): Use mov/add instead of movq/addq to load thread
6385         pointer.
6386         (TLS_GD_PREFIX): New.
6387         (TLS_GD): Use it.
6388
6389 2012-05-11  David S. Miller  <davem@davemloft.net>
6390
6391         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6392         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6393         (_FPU_SETCW): Likewise.
6394
6395 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6396
6397         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6398         is 32-byte aligned.
6399
6400 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6401
6402         [BZ #11837]
6403         * iconvdata/gb18030.c: Update tables.
6404         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6405         characters specially.
6406         (BODY for TO_LOOP): Add encoding of missing ranges.
6407
6408 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6409
6410         [BZ #13673]
6411         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6412         * sysdeps/mach/hurd/dup3.c: Likewise.
6413         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6414         * sysdeps/powerpc/memmove.c:: Likewise.
6415
6416 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6417
6418         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6419         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6420
6421 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6422
6423         * elf/elf.h (R_X86_64_RELATIVE64): New.
6424         (R_X86_64_NUM): Updated.
6425         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6426         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6427         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6428         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6429         tst-quad1pie tst-quad2pie
6430         (modules-names): Add tst-quadmod1 tst-quadmod2.
6431         ($(objpfx)tst-quad1): New dependency.
6432         ($(objpfx)tst-quad2): Likewise.
6433         ($(objpfx)tst-quad1pie): Likewise.
6434         ($(objpfx)tst-quad2pie): Likewise.
6435         * sysdeps/x86_64/tst-quad1.c: New file.
6436         * sysdeps/x86_64/tst-quad1pie.c: New file.
6437         * sysdeps/x86_64/tst-quad2.c: Likewise.
6438         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6439         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6440         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6441         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6442         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6443
6444 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6445
6446         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6447         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6448         * streams/stropts.h (t_scalar_t): Define type.
6449
6450         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6451         (_PATH_PRESERVE): Set to "/var/lib".
6452         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6453
6454         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6455         instead of int.
6456
6457         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6458         if __dir_mkfile succeeded.
6459
6460         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6461         checking for _hurd_dtablesize.  Unlock it right after having
6462         finished _hurd_dtable allocation.
6463
6464 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6465
6466         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6467         * sysdeps/mach/hurd/configure: Regenerated.
6468         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6469         special-casing to...
6470         * sysdeps/gnu/configure.in: ... this new file.
6471         * sysdeps/unix/sysv/linux/configure: Regenerated.
6472         * sysdeps/gnu/configure: New generated file.
6473
6474         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6475         for Linux: use nsec instead of usec, as well as:
6476         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6477         members of type struct timespec.
6478         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6479         New macros.
6480         (struct stat64): Likewise.
6481         (_STATBUF_ST_NSEC): New macro.
6482         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6483
6484         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6485         __strtoul_internal rather than strtoul.
6486
6487 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6488
6489         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6490         and reject them.
6491
6492 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6493
6494         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6495         which preserves existing values.
6496         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6497
6498 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6499
6500         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6501         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6502         greater than FD_SETSIZE.
6503
6504 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6505
6506         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6507         allocated, call __vm_protect to finish enabling the existing space, and
6508         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6509         allocate the remainder.
6510
6511 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6512
6513         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6514         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6515
6516 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6517
6518         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6519         sysdeps/mach/hurd/readlink.c.
6520
6521         * posix/tst-sysconf.c (posix_options): Only use
6522         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6523         _POSIX_SYNCHRONIZED_IO when they are defined
6524         * sysdeps/mach/hurd/bits/posix_opt.h:
6525         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6526         (_XOPEN_REALTIME): Undefine macro.
6527         (_XOPEN_REALTIME_THREADS): Undefine macro.
6528         (_XOPEN_SHM): Undefine macro.
6529         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6530         macro to -1.
6531         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6532         macro to -1.
6533         (_POSIX_ASYNC_IO): Undefine macro.
6534         (_POSIX_PRIORITIZED_IO): Undefine macro.
6535         (_POSIX_SPIN_LOCKS): Define macro to -1.
6536
6537         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6538         SA_NODEFER, SA_RESETHAND.
6539         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6540         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6541         F_DUPFD_CLOEXEC.
6542
6543 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6544
6545         * elf/Makefile (pldd-modules): Define unconditionally.
6546
6547 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6548
6549         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6550
6551 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6552
6553         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6554         Return ENOENT when name is empty.
6555         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6556
6557 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6558
6559         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6560
6561         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6562
6563 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6564
6565         Fix mlock in all cases except non-readable pages.
6566         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6567         instead of VM_PROT_ALL as parameter to __vm_wire function.
6568
6569         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6570         (__mkdir): When path is `/', just fail with EEXIST.
6571         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6572
6573 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6574
6575         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6576         <sys/uio.h> (for writev).
6577         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6578         and <sys/param.h> (for MIN).
6579
6580 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6581
6582         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6583         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6584         if interrupted.
6585
6586 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6587
6588         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6589         Depend on against $(link-rpcuserlibs).
6590
6591 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6592
6593         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6594         (__libc_stack_end): Do not use attribute_relro.
6595         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6596         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6597         to libthread-provided value.
6598         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6599         attribute_relro.
6600
6601 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6602
6603         [BZ #3748]
6604         * bits/libc-lock.h (__libc_once_get): New macro.
6605         * sysdeps/mach/bits/libc-lock.h: Likewise.
6606         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6607         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6608         instead of using implementation details.
6609
6610         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6611         * libio/freopen.c: Likewise.
6612         * libio/freopen64.c: Likewise.
6613         * misc/syslog.c: Likewise.
6614         * nscd/connections.c: Likewise.
6615         * nscd/netgroupcache.c: Likewise.
6616         * sysdeps/posix/getcwd.c: Likewise.
6617
6618 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6619
6620         * math/w_ilogbf.c: Add #include <limits.h>.
6621
6622 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6623
6624         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6625         path instead of returning without unlocking.
6626
6627         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6628         immediate-write ioctls.
6629         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6630
6631 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6632
6633         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6634         __builtin_frame_address instead of making assumptions about the
6635         location of the return address relative to DATA.  Force early load of
6636         the return address.
6637         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6638         __builtin_frame_address.
6639
6640         dup3 for GNU Hurd.
6641         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6642         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6643         implement dup3 and do some further code clean-ups.
6644         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6645         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6646
6647 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6648
6649         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6650
6651         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6652         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6653         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6654         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6655         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6656         d->port.lock.
6657
6658         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6659         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6660         when handler == SIG_ERR, not when handler != SIG_ERR.
6661
6662 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6663
6664         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6665         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6666         definitions.
6667
6668         accept4 for GNU Hurd.
6669         * include/sys/socket.h (__libc_accept4): New prototype.
6670         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6671         to implement __libc_accept4.
6672         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6673         __libc_accept4.
6674         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6675
6676         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6677         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6678         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6679         signal-defines.sym.
6680
6681 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6682
6683         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6684
6685 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6686
6687         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6688         assertion on O_CLOEXEC flag.
6689         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6690         * hurd/intern-fd.c: Likewise.
6691         * hurd/port2fd.c: Likewise.
6692
6693 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6694
6695         [BZ #3906]
6696         * bits/in.h (IPV6_PKTINFO): Define new macro.
6697         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6698
6699 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6700
6701         [BZ #13954]
6702         [BZ #13955]
6703         [BZ #13956]
6704         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6705         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6706         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6707         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6708         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6709         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6710         * math/libm-test.inc (logb_test) : Additional logb tests.
6711
6712 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6713             Andreas Jaeger  <aj@suse.de>
6714
6715         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6716         * configure: Regenerated.
6717         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6718         * config.make.in (link-obsolete-rpc): New substituted variable.
6719         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6720         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6721         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6722         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6723         so that libc.a contains the symbols.
6724         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6725         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6726         * sunrpc/auth_none.c: Likewise.
6727         * sunrpc/auth_unix.c: Likewise.
6728         * sunrpc/authdes_prot.c: Likewise.
6729         * sunrpc/authuxprot.c: Likewise.
6730         * sunrpc/clnt_gen.c: Likewise.
6731         * sunrpc/clnt_perr.c: Likewise.
6732         * sunrpc/clnt_raw.c: Likewise.
6733         * sunrpc/clnt_simp.c: Likewise.
6734         * sunrpc/clnt_tcp.c: Likewise.
6735         * sunrpc/clnt_udp.c: Likewise.
6736         * sunrpc/clnt_unix.c: Likewise.
6737         * sunrpc/des_crypt.c: Likewise.
6738         * sunrpc/des_soft.c: Likewise.
6739         * sunrpc/get_myaddr.c: Likewise.
6740         * sunrpc/key_call.c: Likewise.
6741         * sunrpc/key_prot.c: Likewise.
6742         * sunrpc/netname.c: Likewise.
6743         * sunrpc/pm_getmaps.c: Likewise.
6744         * sunrpc/pm_getport.c: Likewise.
6745         * sunrpc/pmap_clnt.c: Likewise.
6746         * sunrpc/pmap_prot.c: Likewise.
6747         * sunrpc/pmap_prot2.c: Likewise.
6748         * sunrpc/pmap_rmt.c: Likewise.
6749         * sunrpc/publickey.c: Likewise.
6750         * sunrpc/rpc_cmsg.c: Likewise.
6751         * sunrpc/rpc_common.c: Likewise.
6752         * sunrpc/rpc_dtable.c: Likewise.
6753         * sunrpc/rpc_prot.c: Likewise.
6754         * sunrpc/rpc_thread.c: Likewise.
6755         * sunrpc/rtime.c: Likewise.
6756         * sunrpc/svc.c: Likewise.
6757         * sunrpc/svc_auth.c: Likewise.
6758         * sunrpc/svc_raw.c: Likewise.
6759         * sunrpc/svc_run.c: Likewise.
6760         * sunrpc/svc_tcp.c: Likewise.
6761         * sunrpc/svc_udp.c: Likewise.
6762         * sunrpc/svc_unix.c: Likewise.
6763         * sunrpc/svcauth_des.c: Likewise.
6764         * sunrpc/xcrypt.c: Likewise.
6765         * sunrpc/xdr.c: Likewise.
6766         * sunrpc/xdr_array.c: Likewise.
6767         * sunrpc/xdr_float.c: Likewise.
6768         * sunrpc/xdr_intXX_t.c: Likewise.
6769         * sunrpc/xdr_mem.c: Likewise.
6770         * sunrpc/xdr_rec.c: Likewise.
6771         * sunrpc/xdr_ref.c: Likewise.
6772         * sunrpc/xdr_sizeof.c: Likewise.
6773         * sunrpc/xdr_stdio.c: Likewise.
6774
6775 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6776
6777         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
6778         change.  Update copyright years.
6779
6780 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6781
6782         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
6783
6784 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6785             Joseph Myers  <joseph@codesourcery.com>
6786             Paul Pluzhnikov  <ppluzhnikov@google.com>
6787
6788         [BZ #14012]
6789         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
6790         requiring rpcgen.
6791         [cross-compiling] (extra-libs): Likewise.
6792         [cross-compiling] (extra-libs-others): Likewise.
6793         [cross-compiling] (librpcsvc-routines): Likewise.
6794         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
6795         [cross-compiling] (omit-deps): Likewise.
6796         (sunrpc-CPPFLAGS): New variable.
6797         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
6798         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
6799         (cross-rpcgen-objs): New variable.
6800         (extra-objs): Append $(cross-rpcgen-objs).
6801         ($(cross-rpcgen-objs)): New rule.
6802         ($(objpfx)cross-rpcgen): Likewise.
6803         (rpcgen-cmd): Define to use $(built-program-file).  Expand
6804         comment.
6805         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
6806         ($(objpfx)x%.stmp): Likewise.
6807         * sunrpc/proto.h [IS_IN_build] (_): Define.
6808         [IS_IN_build] (_libc_intl_domainname): Likewise.
6809
6810 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6811
6812         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
6813         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
6814         and R_X86_64_TPOFF64.
6815
6816 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
6817
6818         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
6819         sysdeps/unix/sysv/syscalls.list.
6820         (stime): Likewise.
6821         (utime): Likewise.
6822         * sysdeps/unix/sysv/syscalls.list: Remove file.
6823
6824 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6825
6826         [BZ #3440]
6827         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
6828         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
6829         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
6830         (__LC_IDENTIFICATION): Make these macros useful in #if
6831         expressions, as required by C99.
6832
6833 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
6834
6835         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
6836         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
6837         after this.
6838
6839 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6840
6841         * stdlib/longlong.h: Updated from GCC.
6842
6843 2012-05-09  Andreas Jaeger  <aj@suse.de>
6844
6845         * nscd/nscd.c (run_modes): Make named enum, reorder so that
6846         default is first entry.
6847         (run_mode): Set type.
6848         (main): Remove informal message about syslog.
6849         (options): Fix typo.
6850
6851         [BZ #14053]
6852         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
6853         to asm.
6854         (lrint): Likewise.
6855         (llrintf): Likewise.
6856         (llrint): Likewise.
6857         (rint): Likewise.
6858         (rintf): Likewise.
6859         (nearbyint): Likewise.
6860         (nearbyintf): Likewise.
6861
6862 2012-05-09  Andreas Jaeger  <aj@suse.de>
6863             Pedro Alves  <palves@redhat.com>
6864
6865         * nscd/nscd.c (run_mode): Use enum.
6866         (main): Cleanup coding style issue.
6867
6868 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
6869             Andreas Jaeger  <aj@suse.de>
6870
6871         * nscd/nscd.c (go_background): Replaced with...
6872         (run_mode): ... this.
6873         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
6874         (options): Add -F --foreground.
6875         (main): Implement it.
6876         (parse_opt): Parse it.
6877
6878 2012-05-09  Andreas Jaeger  <aj@suse.de>
6879
6880         [BZ #14083]
6881         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
6882         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
6883         -Wconversion warning.
6884         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
6885         Likewise.
6886
6887 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
6888
6889         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
6890         == 0.
6891         (LC_ALL): Use macro-int-constant.
6892         (LC_COLLATE): Likewise.
6893         (LC_CTYPE): Likewise.
6894         (LC_MESSAGES): Likewise.
6895         (LC_MONETARY): Likewise.
6896         (LC_NUMERIC): Likewise.
6897         (LC_TIME): Likewise.
6898         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
6899         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6900         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6901         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
6902         Specify type.
6903         [C99-based standards] (float_t): Expect type.
6904         [C99-based standards] (double_t): Expect type.
6905         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
6906         type.
6907         [C99-based standards] (HUGE_VALL): Likewise.
6908         [C99-based standards] (INFINITY): Likewise.
6909         [C99-based standards] (NAN): Likewise.
6910         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
6911         [C99-based standards] (FP_NAN): Likewise.
6912         [C99-based standards] (FP_NORMAL): Likewise.
6913         [C99-based standards] (FP_SUBNORMAL): Likewise.
6914         [C99-based standards] (FP_ZERO): Likewise.
6915         [C99-based standards] (FP_FAST_FMA): Use
6916         optional-macro-int-constant.  Specify type.  Require == 1.
6917         [C99-based standards] (FP_FAST_FMAF): Likewise.
6918         [C99-based standards] (FP_FAST_FMAL): Likewise.
6919         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
6920         [C99-based standards] (FP_ILOGBNAN): Likewise.
6921         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
6922         Specify type.
6923         [C99-based standards] (MATH_ERREXCEPT): Likewise.
6924         [C99-based standards] (math_errhandling): Specify type.
6925         [ISO99 || ISO11] (signgam): Do not allow.
6926         [non-C99-based standards] (copysignf): Do not allow.
6927         [non-C99-based standards] (exp2f): Likewise.
6928         [non-C99-based standards] (log2f): Likewise.
6929         [non-C99-based standards] (modff): Allow.
6930         [non-C99-based standards] (erff): Do not allow.
6931         [non-C99-based standards] (erfcf): Likewise.
6932         [non-C99-based standards] (gammaf): Likewise.
6933         [non-C99-based standards] (hypotf): Likewise.
6934         [non-C99-based standards] (j0f): Likewise.
6935         [non-C99-based standards] (j1f): Likewise.
6936         [non-C99-based standards] (jnf): Likewise.
6937         [non-C99-based standards] (lgammaf): Likewise.
6938         [non-C99-based standards] (tgammaf): Likewise.
6939         [non-C99-based standards] (y0f): Likewise.
6940         [non-C99-based standards] (y1f): Likewise.
6941         [non-C99-based standards] (ynf): Likewise.
6942         [non-C99-based standards] (isnanf): Likewise.
6943         [non-C99-based standards] (acoshf): Likewise.
6944         [non-C99-based standards] (asinhf): Likewise.
6945         [non-C99-based standards] (atanhf): Likewise.
6946         [non-C99-based standards] (cbrtf): Likewise.
6947         [non-C99-based standards] (expm1f): Likewise.
6948         [non-C99-based standards] (ilogbf): Likewise.
6949         [non-C99-based standards] (log1pf): Likewise.
6950         [non-C99-based standards] (logbf): Likewise.
6951         [non-C99-based standards] (nextafterf): Likewise.
6952         [non-C99-based standards] (remainderf): Likewise.
6953         [non-C99-based standards] (rintf): Likewise.
6954         [non-C99-based standards] (scalbf): Likewise.
6955         [non-C99-based standards] (copysignl): Likewise.
6956         [non-C99-based standards] (exp2l): Likewise.
6957         [non-C99-based standards] (log2l): Likewise.
6958         [non-C99-based standards] (modfl): Allow.
6959         [non-C99-based standards] (erfl): Do not allow.
6960         [non-C99-based standards] (erfcl): Likewise.
6961         [non-C99-based standards] (gammal): Likewise.
6962         [non-C99-based standards] (hypotl): Likewise.
6963         [non-C99-based standards] (j0l): Likewise.
6964         [non-C99-based standards] (j1l): Likewise.
6965         [non-C99-based standards] (jnl): Likewise.
6966         [non-C99-based standards] (lgammal): Likewise.
6967         [non-C99-based standards] (tgammal): Likewise.
6968         [non-C99-based standards] (y0l): Likewise.
6969         [non-C99-based standards] (y1l): Likewise.
6970         [non-C99-based standards] (ynl): Likewise.
6971         [non-C99-based standards] (isnanl): Likewise.
6972         [non-C99-based standards] (acoshl): Likewise.
6973         [non-C99-based standards] (asinhl): Likewise.
6974         [non-C99-based standards] (atanhl): Likewise.
6975         [non-C99-based standards] (cbrtl): Likewise.
6976         [non-C99-based standards] (expm1l): Likewise.
6977         [non-C99-based standards] (ilogbl): Likewise.
6978         [non-C99-based standards] (log1pl): Likewise.
6979         [non-C99-based standards] (logbl): Likewise.
6980         [non-C99-based standards] (nextafterl): Likewise.
6981         [non-C99-based standards] (remainderl): Likewise.
6982         [non-C99-based standards] (rintl): Likewise.
6983         [non-C99-based standards] (scalbl): Likewise.
6984         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6985         [non-C99-based standards] (FP_*): Do not allow.
6986         [C99-based standards] (FP_*): Change to
6987         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
6988         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6989         allow.
6990         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
6991         (SIG_ERR): Likewise.
6992         [X/Open-based standards] (SIG_HOLD): Likewise.
6993         (SIG_IGN): Likewise.
6994         (SIGABRT): Use macro-int-constant.  Specify type.  Require
6995         positive value.
6996         (SIGFPE): Likewise.
6997         (SIGILL): Likewise.
6998         (SIGINT): Likewise.
6999         (SIGSEGV): Likewise.
7000         (SIGTER): Likewise.
7001         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7002         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7003         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7004         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7005         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7006         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7007         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7008         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7009         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7010         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7011         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7012         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7013         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7014         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7015         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7016         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7017         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7018         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7019         [X/Open-based standards] (SIGTRAP): Likewise.
7020         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7021         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7022         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7023         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7024         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7025         allow.
7026
7027 2012-05-08  Ian Wienand  <ianw@vmware.com>
7028
7029         [BZ #14080]
7030         * time/tzset.c (__tzset_parse_tz): Update default rules for
7031         daylight time changes in the Energy Policy Act of 2005.
7032
7033 2012-05-09  Andreas Jaeger  <aj@suse.de>
7034
7035         [BZ #13983]
7036         * elf/ldconfig.c (parse_conf): Change string to make clear that
7037         ldconfig only issued a warning if ld.so.conf does not exist.
7038
7039 2012-05-08  David S. Miller  <davem@davemloft.net>
7040
7041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7042         movxtod instead of popping the value on the stack.
7043
7044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7045
7046 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7047
7048         * config.h.in: Add HAVE_ARM_PCS_VFP.
7049
7050 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7051
7052         [BZ #13979]
7053         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7054         checking but the checks are disabled for any reason.
7055
7056 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7057
7058         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7059         and ELF64_R_TYPE with ELFW(R_TYPE).
7060
7061 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7062
7063         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7064         (ulimit): Likewise.
7065
7066         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7067         (settimeofday): Likewise.
7068
7069 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7070
7071         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7072         a struct th_u2 inside the union, and move tu_block/tu_code into
7073         a new th_u3 union of tu_block/tu_code inside of that.  Move
7074         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7075         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7076         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7077         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7078         (th_stuff): Change to th_u1.tu_stuff.
7079         (th_data): Define.
7080         (th_msg): Change to th_u1.th_u2.tu_data.
7081
7082 2012-05-07  David S. Miller  <davem@davemloft.net>
7083
7084         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7085
7086         [BZ #14074]
7087         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7088         (SETUP_PIC_REG): Use it.
7089         (SETUP_PIC_REG_LEAF): Use it.
7090
7091 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7092
7093         [BZ #13885]
7094         [BZ #13923]
7095         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7096         USE_AS_EXPM1L.
7097         (EXPL_FINITE): Likewise.
7098         (FLDLOG): Likewise.
7099         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7100         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7101         e_expl.S.
7102         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7103         USE_AS_EXPM1L.
7104         (EXPL_FINITE): Likewise.
7105         (FLDLOG): Likewise.
7106         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7107         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7108         e_expl.S.
7109         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7110         test of -max_value argument for long double.
7111         * sysdeps/i386/fpu/libm-test-ulps: Update.
7112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7113
7114 2012-05-06  David S. Miller  <davem@davemloft.net>
7115
7116         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7117         quad soft-float symbols whose references which are compiler
7118         generated.
7119         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7120
7121 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7122
7123         [BZ #13884]
7124         [BZ #13914]
7125         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7126         USE_AS_EXP10L.
7127         (EXPL_FINITE): Likewise.
7128         (FLDLOG): Likewise.
7129         (c0): Likewise.
7130         (c1): Likewise.
7131         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7132         Adjust comments for base varying.
7133         (__expl_finite): Change alias to EXPL_FINITE.
7134         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7135         e_expl.S.
7136         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7137         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7138         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7139         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7140         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7141         USE_AS_EXP10L.
7142         (EXPL_FINITE): Likewise.
7143         (FLDLOG): Likewise.
7144         (c0): Likewise.
7145         (c1): Likewise.
7146         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7147         Adjust comments for base varying.
7148         (__expl_finite): Change alias to EXPL_FINITE.
7149         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7150         tests for bugs.
7151         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7152
7153         [BZ #14064]
7154         * math/libm-test.inc (check_float_internal): Correct ulp
7155         calculation for subnormal expected results.
7156
7157 2012-05-06  Andreas Jaeger  <aj@suse.de>
7158
7159         * Makeconfig (+math-flags): New, set to -frounding-math.
7160         (+cflags): Add +math-flags so that all of glibc gets compiled with
7161         it.
7162
7163         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7164
7165 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7166
7167         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7168         Disable one test.
7169
7170         [BZ #13787]
7171         [BZ #13922]
7172         [BZ #14036]
7173         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7174         (__ieee754_expl): Allow for and saturate large arguments.
7175         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7176         (u_threshold): Likewise.
7177         (__exp): Call __ieee754_exp before checking for overflow and
7178         underflow.
7179         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7180         (u_threshold): Likewise.
7181         (__expf): Call __ieee754_expf before checking for overflow and
7182         underflow.
7183         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7184         (u_threshold): Likewise.
7185         (__expl): Call __ieee754_expl before checking for overflow and
7186         underflow.
7187         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7188         (__ieee754_expl): Allow for and saturate large arguments.
7189         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7190         missing overflow exception on overflow.
7191         (expm1_test): Do not allow missing overflow exception on overflow.
7192
7193         * sysdeps/i386/fpu/e_expl.c: Move to ...
7194         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7195         rather than using inline asm.
7196         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7197         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7198         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7199
7200         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7201         (nice): Likewise.
7202         (poll): Likewise.
7203         (signal): Likewise.
7204         (time): Likewise.
7205         (times): Likewise.
7206
7207 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7208
7209         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7210         sysdeps/unix/common/syscalls.list.
7211         (fchmod): Likewise.
7212         (fchown): Likewise.
7213         (ftruncate): Likewise.
7214         (getrusage): Likewise.
7215         (gettimeofday): Likewise.
7216         (setpgid): Likewise.
7217         (setregid): Likewise.
7218         (setreuid): Likewise.
7219         (sigaction): Likewise.
7220         (truncate): Likewise.
7221         (vhangup): Likewise.
7222         * sysdeps/unix/common/syscalls.list: Remove file.
7223         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7224         * sysdeps/unix/sysv/linux/Implies: Likewise.
7225
7226 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7227
7228         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7230         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7231         Moved to ...
7232         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7233         Here.
7234         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7235         to ...
7236         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7237         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7238         to ...
7239         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7240         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7241         to ...
7242         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7243         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7244         to ...
7245         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7246         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7247         to ...
7248         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7249         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7250         to ...
7251         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7252         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7253         to ...
7254         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7255         Here.
7256         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7257         to ...
7258         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7259         Here.
7260         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7261         to ...
7262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7263         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7264         Moved to ...
7265         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7266         Here.
7267         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7268         to ...
7269         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7270
7271 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7272
7273         * sysdeps/unix/common/bits/dirent.h: Remove file.
7274         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7275
7276         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7277         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7278         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7279         * sysdeps/unix/bsd/isatty.c: Likewise.
7280         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7281         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7282         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7283
7284 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7285
7286         [BZ #13563]
7287         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7288         long double comparison inaccuracies.
7289         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7290         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7291
7292 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7293
7294         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7295         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7296
7297 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7298
7299         [BZ #14049]
7300         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7301         nonzero digits before rounding a hex value.
7302         * stdlib/tst-strtod.c (tests): Add another test.
7303
7304 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7305
7306         * sysdeps/s390/fpu/libm-test-ulps: Update.
7307
7308 2012-05-03  Andreas Jaeger  <aj@suse.de>
7309
7310         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7311         does not get optimized out.
7312         (malloc_opt_barrier): New.
7313
7314 2012-05-03  Andreas Jaeger  <aj@suse.de>
7315             Roland McGrath  <roland@hack.frob.com>
7316
7317         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7318         intermediate file deletion.
7319         (generated): Add .symlist files.
7320
7321 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7322
7323         [BZ #13775]
7324         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7325         Redirect under this condition.
7326         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7327         [__USE_GNU] (__dprintf_chk): Not under this condition.
7328         [__USE_GNU] (__vdprintf_chk): Likewise.
7329         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7330         under this condition.
7331         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7332         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7333         [__USE_XOPEN2K8] (vdprintf): Likewise.
7334         [__USE_GNU] (__dprintf_chk): Not under this condition.
7335         [__USE_GNU] (__vdprintf_chk): Likewise.
7336         [__USE_GNU] (dprintf): Likewise.
7337         [__USE_GNU] (vdprintf): Likewise.
7338
7339 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7340
7341         * elf/Makefile (common-generated): Set this instead of generated for
7342         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7343         $(all-built-dso)-derived lists.
7344
7345 2012-05-03  Andreas Jaeger  <aj@suse.de>
7346
7347         * sysdeps/i386/fpu/libm-test-ulps: Update.
7348
7349         * FAQ: Removed.
7350         * FAQ.in: Likewise.
7351         * scripts/gen-FAQ.pl: Likewise.
7352         * manual/install.texi (Installation): Point to online location of
7353         FAQ.
7354         * Makefile (files-for-dist): Remove FAQ.
7355         (FAQ): Remove.
7356
7357 2012-05-02  Allan McRae  <allan@archlinux.org>
7358
7359         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7360         (LDFLAGS-reldepmod5.so): Likewise.
7361         (LDFLAGS-reldep6mod1.so): Likewise.
7362         (LDFLAGS-reldep6mod4.so): Likewise.
7363         (LDFLAGS-reldep8mod3.so): Likewise.
7364         (LDFLAGS-unload4mod1.so): Likewise.
7365         (LDFLAGS-unload4mod2.so): Likewise.
7366         (LDFLAGS-tst-initorder): Likewise.
7367         (LDFLAGS-tst-initordera2.so): Likewise.
7368         (LDFLAGS-tst-initordera3.so): Likewise.
7369         (LDFLAGS-tst-initordera4.so): Likewise.
7370         (LDFLAGS-tst-initorderb2.so): Likewise.
7371         (LDFLAGS-noload): Likewise.
7372         (LDFLAGS-next): Likewise.
7373         (LDFLAGS-order2mod1.so): Likewise.
7374         (LDFLAGS-order2mod2.so): Likewise.
7375         (LDFLAGS-tst-initorder2): Likewise.
7376         (LDFLAGS-tst-initorder2a.so): Likewise.
7377         (LDFLAGS-tst-initorder2b.so): Likewise.
7378         (LDFLAGS-tst-initorder2c.so): Likewise.
7379         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7380
7381 2012-05-02  David S. Miller  <davem@davemloft.net>
7382
7383         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7384
7385 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7386
7387         [BZ #14055]
7388         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7389
7390 2012-05-02  Andreas Jaeger  <aj@suse.de>
7391
7392         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7393         since we manipulate rounding mode.
7394         (CPPFLAGS-test-idouble.c): Likewise.
7395         (CPPFLAGS-test-ifloat.c): Likewise.
7396         (CFLAGS-test-ldouble.c): Likewise.
7397         (CFLAGS-test-double.c): Likewise.
7398         (CFLAGS-test-float.c): Likewise.
7399         (CFLAGS-test-misc.c): Likewise.
7400         (CFLAGS-test-test-fenv.c): Likewise.
7401
7402 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7403
7404         [BZ #2550]
7405         [BZ #2570]
7406         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7407         comparisons to determine direction to adjust input.
7408
7409 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7410
7411         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7412         output to the target.
7413
7414         * scripts/localplt.awk: New file.
7415         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7416         (check-localplt-CFLAGS): Variable removed.
7417         ($(all-built-dso:=.jmprel)): New static pattern rule.
7418         (generated): Add those targets.
7419         (localplt-built-dso): New variable.
7420         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7421
7422         * elf/check-localplt.c: File removed.
7423
7424         * scripts/check-execstack.awk: New file.
7425         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7426         (check-execstack-CFLAGS): Variable removed.
7427         ($(objpfx)check-execstack.h): Target removed.
7428         ($(objpfx)execstack-default): New target.
7429         (generated): Add that instead of check-execstack.h.
7430         ($(all-built-dso:=.phdr)): New static pattern rule.
7431         (generated): Add those targets.
7432         * elf/check-execstack.c: File removed.
7433
7434         * scripts/check-textrel.awk: New file.
7435         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7436         (check-textrel-CFLAGS): Variable removed.
7437         (all-built-dso): Use := to define.o
7438         ($(all-built-dso:=.dyn)): New static pattern rule.
7439         (generated): Add those targets.
7440         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7441         * config.make.in (READELF): New substituted variable.
7442         * elf/check-textrel.c: File removed.
7443
7444 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7445
7446         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7447         allow.
7448         * conform/data/ctype.h-data [C99-based standards] (isblank):
7449         Expect function.
7450         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7451         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7452         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7453         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7454         Specify type.  Require positive value.
7455         (EILSEQ): Likewise.
7456         (ERANGE): Likewise.
7457         [ISO || POSIX] (EILSEQ): Do not expect.
7458         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7459         Specify type.  Require positive value.
7460         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7461         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7462         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7463         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7464         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7465         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7466         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7467         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7468         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7469         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7470         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7471         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7472         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7473         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7474         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7475         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7476         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7477         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7478         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7479         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7480         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7481         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7482         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7483         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7484         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7485         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7486         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7487         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7488         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7489         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7490         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7491         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7492         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7493         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7494         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7495         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7496         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7497         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7498         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7499         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7500         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7501         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7502         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7503         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7504         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7505         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7506         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7507         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7508         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7509         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7510         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7511         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7512         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7513         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7514         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7515         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7516         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7517         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7518         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7519         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7520         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7521         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7522         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7523         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7524         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7525         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7526         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7527         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7528         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7529         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7530         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7531         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7532         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7533         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7534         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7535         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7536         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7537         Require >= 2.
7538         (FLT_ROUNDS): Expect as macro, not constant.
7539         (FLT_MANT_DIG): Use macro-int-constant.
7540         (DBL_MANT_DIG): Likewise.
7541         (LDBL_MANT_DIG): Likewise.
7542         (FLT_DIG): Likewise.
7543         (DBL_DIG): Likewise.
7544         (LDBL_DIG): Likewise.
7545         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7546         (DBL_MIN_EXP): Likewise.
7547         (LDBL_MIN_EXP): Likewise.
7548         (FLT_MAX_EXP): Use macro-int-constant.
7549         (DBL_MAX_EXP): Likewise.
7550         (LDBL_MAX_EXP): Likewise.
7551         (FLT_MAX_10_EXP): Likewise.
7552         (DBL_MAX_10_EXP): Likewise.
7553         (LDBL_MAX_10_EXP): Likewise.
7554         (FLT_MAX): Use macro-constant.
7555         (DBL_MAX): Likewise.
7556         (LDBL_MAX): Likewise.
7557         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7558         (DBL_EPSILON): Likewise.
7559         (LDBL_EPSILON): Likewise.
7560         (FLT_MIN): Likewise.
7561         (DBL_MIN): Likewise.
7562         (LDBL_MIN): Likewise.
7563         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7564         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7565         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7566         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7567         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7568         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7569         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7570         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7571         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7572         [ISO11] (FLT_TRUE_MIN): Likewise.
7573         [ISO11] (LDBL_TRUE_MIN): Likewise.
7574         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7575         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7576         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7577         (SCHAR_MAX): Likewise.
7578         (UCHAR_MAX): Likewise.
7579         (CHAR_MIN): Likewise.
7580         (CHAR_MAX): Likewise.
7581         (MB_LEN_MAX): Use macro-int-constant.
7582         (SHRT_MIN): Use macro-int-constant.  Specify type.
7583         (SHRT_MAX): Likewise.
7584         (USHRT_MAX): Likewise.
7585         (INT_MAX): Likewise.
7586         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7587         bound negative.
7588         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7589         bound with "U".
7590         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7591         bound with "L".
7592         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7593         bound negative.  Suffix upper bound with "L".
7594         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7595         bound with "UL".
7596         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7597         Specify type.
7598         [C99-based standards] (LLONG_MAX): Likewise.
7599         [C99-based standards] (ULLONG_MAX): Likewise.
7600         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7601         == 0.
7602         [ISO11] (max_align_t): Require type.
7603         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7604
7605         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7606         from $CFLAGS, without defining away __attribute__ calls.
7607         (checknamespace): Use $CFLAGS_namespace.
7608
7609         * conform/conformtest.pl (@keywords): Only include C99 keywords
7610         for standards based on C99 or C11.
7611
7612         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7613         Disable tests.
7614         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7615         UNIX98]: Likewise.
7616
7617         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7618         usability of symbols in #if.
7619
7620         * conform/conformtest.pl: If macro or constant types start
7621         "promoted:", expect the symbol to be of the following type
7622         promoted by the integer promotions.
7623
7624         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7625         in one place.  Also handle "macro-constant".
7626
7627         * conform/conformtest.pl: Only accept expected macro values with
7628         "==".  Parse all "macro" lines in one place.
7629         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7630
7631         * conform/conformtest.pl: Handle braced types on "constant" lines
7632         instead of handling "typed-constant".
7633         * conform/data/signal.h-data: Use "constant" instead of
7634         "typed-constant".
7635
7636         * conform/conformtest.pl: Handle "optional-" at start of lines in
7637         one place rather than duplicating several cases.  Handle each
7638         format of "macro" line with initial "optional-".
7639
7640         * conform/conformtest.pl: Only accept expected constant or
7641         optional-constant values with "==".  Parse all "constant" lines in
7642         one place.  Parse all "optional-constant" lines in one place.
7643         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7644         * conform/data/fmtmsg.h-data: Likewise.
7645         * conform/data/netinet/in.h-data: Likewise.
7646         * conform/data/tar.h-data: Likewise.
7647         * conform/data/limits.h-data: Use "==" form on "constant" and
7648         "optional-constant" lines.
7649
7650         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7651         Use -std=c99 for XOPEN2K.
7652         (@knownproblems): Remove.
7653         (newtoken): Don't check %isknown.
7654
7655         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7656         Do not expect macro.
7657         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7658         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7659         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7660         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7661         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7662         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7663         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7664         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7665         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7666         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7667         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7668         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7669         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7670         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7671         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7672         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7673         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7674         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7675         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7676         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7677         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7678         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7679         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7680         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7681         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7682         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7683         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7684         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7685         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7686         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7687         [XPG3] (acosh): Likewise.
7688         [XPG3] (asinh): Likewise.
7689         [XPG3] (atanh): Likewise.
7690         [XPG3] (cbrt): Likewise.
7691         [XPG3] (expm1): Likewise.
7692         [XPG3] (ilogb): Likewise.
7693         [XPG3] (log1p): Likewise.
7694         [XPG3] (logb): Likewise.
7695         [XPG3] (nextafter): Likewise.
7696         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7697         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7698         [XPG3] (remainder): Likewise.
7699         [XPG3] (rint): Likewise.
7700         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7701         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7702         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7703         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7704         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7705         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7706         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7707         [UNIX98 || XOPEN2K] (scalb): Expect.
7708         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7709         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7710         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7711         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7712         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7713         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7714         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7715         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7716         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7717         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7718         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7719         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7720         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7721         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7722         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7723         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7724         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7725         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7726         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7727         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7728         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7729         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7730         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7731         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7732         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7733         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7734         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7735         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7736         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7737         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7738         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7739         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7740         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7741         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7742         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7743         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7744         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7745         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7746         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7747         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7748         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7749         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7750         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7751         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7752         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7753         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7754         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7755         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7756         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7757         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7758         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7759         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7760         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7761         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7762         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7763         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7764         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
7765         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
7766         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
7767         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
7768         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
7769         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
7770         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
7771         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
7772         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
7773         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
7774         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
7775         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
7776         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
7777         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
7778         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
7779         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
7780         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
7781         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
7782         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
7783         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
7784         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
7785         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
7786         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
7787         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
7788         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
7789         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
7790         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
7791         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
7792         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
7793         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
7794         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
7795         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
7796         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
7797         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
7798         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
7799         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
7800         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
7801         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
7802         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
7803         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
7804         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
7805         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
7806         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
7807         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
7808         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
7809         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
7810         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
7811         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
7812         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
7813         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
7814         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
7815         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
7816         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
7817         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
7818         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
7819         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
7820         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
7821         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
7822         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
7823         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
7824         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
7825         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
7826         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
7827         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
7828         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
7829         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
7830         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
7831         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
7832         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
7833         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
7834         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
7835         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
7836         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
7837         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
7838         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
7839         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
7840         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
7841         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
7842         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
7843         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
7844         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
7845
7846         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
7847         _XOPEN_SOURCE_EXTENDED for XPG4.
7848
7849         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
7850
7851         * Makeconfig (localtime): Remove variable.
7852         (inst_localtime-file): Likewise.
7853
7854 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7855
7856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
7857         Update.
7858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7859         Update.
7860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
7861         Update.
7862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
7863         Update.
7864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
7865         Update.
7866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
7867         Update.
7868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7869         Update.
7870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
7871         Update.
7872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7873         Update.
7874
7875 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7876
7877         [BZ #2550]
7878         [BZ #2570]
7879         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
7880         comparisons to determine direction to adjust input.
7881         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7882         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
7883         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
7884         Likewise.
7885         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
7886         Likewise.
7887         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
7888         Likewise.
7889         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7890         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
7891         Likewise.
7892         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
7893         Likewise.
7894         * math/libm-test.inc (nexttoward_test): Add more tests.
7895
7896 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7897
7898         [BZ #14040]
7899         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
7900         in version GLIBC_2.1, not GLIBC_2.0.
7901         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
7902         Likewise.
7903
7904 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
7905
7906         [BZ #13942]
7907         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
7908         (1 - x) * (1 + x).
7909         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7910         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
7911         * math/libm-test.inc (acos_test): Add more tests.
7912         (asin_test): Likewise.
7913         * sysdeps/i386/fpu/libm-test-ulps: Update.
7914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7915
7916         [BZ #14034]
7917         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
7918         of square root.
7919         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
7920         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
7921         * math/libm-test.inc (acos_test_tonearest): New function.
7922         (acos_test_towardzero): Likewise.
7923         (acos_test_downward): Likewise.
7924         (acos_test_upward): Likewise.
7925         (asin_test_tonearest): Likewise.
7926         (asin_test_towardzero): Likewise.
7927         (asin_test_downward): Likewise.
7928         (asin_test_upward): Likewise.
7929         (main): Call the new functions.
7930         * sysdeps/i386/fpu/libm-test-ulps: Update.
7931         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7932
7933         [BZ #13884]
7934         [BZ #13924]
7935         * math/e_exp10.c: Include <float.h>.
7936         (__ieee754_exp10): Handle underflow here rather than multiplying
7937         large negative argument by M_LN10.
7938         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
7939         of __ieee754_expf.
7940         * math/e_exp10l.c: Include <float.h>.
7941         (__ieee754_exp10l): Handle underflow here rather than multiplying
7942         large negative argument by M_LN10l.
7943         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
7944         spurious overflow exception on underflow.
7945
7946 2012-04-29  Marek Polacek  <polacek@redhat.com>
7947
7948         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
7949         (__fortify_function): New macro.
7950         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
7951         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
7952         __extern_always_inline.
7953         * libio/bits/stdio2.h: Likewise.
7954         * libio/bits/stdio.h: Likewise.
7955         * string/string.h: Likewise.
7956         * string/bits/string3.h: Likewise.
7957         * include/stdio.h: Likewise.
7958         * stdlib/bits/stdlib.h: Likewise.
7959         * stdlib/stdlib.h: Likewise.
7960         * rt/bits/mqueue2.h: Likewise.
7961         * rt/mqueue.h: Likewise.
7962         * posix/bits/unistd.h: Likewise.
7963         * posix/unistd.h: Likewise.
7964         * io/bits/poll2.h: Likewise.
7965         * io/bits/fcntl2.h: Likewise.
7966         * io/fcntl.h: Likewise.
7967         * io/sys/poll.h: Likewise.
7968         * misc/bits/syslog.h: Likewise.
7969         * misc/bits/syslog-ldbl.h: Likewise.
7970         * misc/sys/syslog.h: Likewise.
7971         * socket/bits/socket2.h: Likewise.
7972         * socket/sys/socket.h: Likewise.
7973         * debug/tst-chk1.c: Likewise.
7974         * wcsmbs/bits/wchar2.h: Likewise.
7975         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7976         * wcsmbs/wchar.h: Likewise.
7977
7978 2012-04-29  Andreas Jaeger  <aj@suse.de>
7979
7980         * Makerules (tests): Remove enable-check-abi protection.
7981         (check-abi-warn): Remove.
7982         (check-abi-%): Remove check-abi-warn usage.
7983
7984         * configure.in: Remove check-abi configure option.
7985         * configure: Regenerated.
7986         * config.make.in (enable-check-abi): Remove.
7987
7988 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
7989
7990         [BZ #14033]
7991         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
7992         double functions to double *_finite functions.
7993
7994         [BZ #13941]
7995         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
7996         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
7997         LDBL_MIN_EXP.
7998         * stdio-common/Makefile (tests): Add tst-sprintf3.
7999         * stdio-common/tst-sprintf3.c: New file.
8000
8001         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8002         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8003
8004 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8005
8006         * conform/conformtest.pl: Remove duplicate typed-constant
8007         handling.
8008
8009 2012-04-28  David S. Miller  <davem@davemloft.net>
8010
8011         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8012         (check-abi-%): Remove AWK script prerequisite and explicit
8013         abilist directory.
8014         (check-abi): Rewrite to just diff the symlist with the abilist.
8015         (config-tls, config-abi-config): Delete, no longer used.
8016         (update-abi-%): Remove AWK script and explicit abilist directory.
8017         (update-abi): Rewrite to simply compare and conditionally copy the
8018         symlist and the sysdep abilist file.  Remove update-abi-config
8019         checks.
8020         * abilist/ld.abilist: Remove.
8021         * abilist/libBrokenLocale.abilist: Remove.
8022         * abilist/libanl.abilist: Remove.
8023         * abilist/libcrypt.abilist: Remove.
8024         * abilist/libdl.abilist: Remove.
8025         * abilist/librt.abilist: Remove.
8026         * abilist/libthread_db.abilist: Remove.
8027         * abilist/libutil.abilist: Remove.
8028         * scripts/extract-abilist.awk: Remove.
8029         * scripts/merge-abilist.awk: Remove.
8030         * sysdeps/generic/libcidn.abilist: New file.
8031         * sysdeps/generic/libnss_compat.abilist: New file.
8032         * sysdeps/generic/libnss_db.abilist: New file.
8033         * sysdeps/generic/libnss_dns.abilist: New file.
8034         * sysdeps/generic/libnss_files.abilist: New file.
8035         * sysdeps/generic/libnss_hesiod.abilist: New file.
8036         * sysdeps/generic/libnss_nis.abilist: New file.
8037         * sysdeps/generic/libnss_nisplus.abilist: New file.
8038         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8039         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8040         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8041         file.
8042         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8043         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8044         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8045         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8046         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8047         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8048         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8049         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8050         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8051         file.
8052         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8053         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8054         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8055         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8056         file.
8057         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8058         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8059         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8060         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8061         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8062         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8063         file.
8064         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8065         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8066         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8067         file.
8068         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8069         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8070         New file.
8071         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8072         New file.
8073         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8074         New file.
8075         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8076         New file.
8077         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8078         New file.
8079         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8080         New file.
8081         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8082         New file.
8083         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8084         New file.
8085         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8086         New file.
8087         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8088         New file.
8089         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8090         New file.
8091         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8092         New file.
8093         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8094         New file.
8095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8096         file.
8097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8098         New file.
8099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8100         New file.
8101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8102         file.
8103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8104         New file.
8105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8106         New file.
8107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8108         file.
8109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8110         New file.
8111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8112         New file.
8113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8114         New file.
8115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8116         New file.
8117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8118         New file.
8119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8120         New file.
8121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8122         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8123         file.
8124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8125         New file.
8126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8127         file.
8128         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8129         file.
8130         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8131         file.
8132         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8133         file.
8134         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8135         file.
8136         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8137         New file.
8138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8139         file.
8140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8141         file.
8142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8143         New file.
8144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8145         file.
8146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8148         file.
8149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8150         New file.
8151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8152         file.
8153         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8154         file.
8155         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8156         file.
8157         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8158         file.
8159         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8160         file.
8161         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8162         New file.
8163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8164         file.
8165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8166         file.
8167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8168         New file.
8169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8170         file.
8171         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8172         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8173         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8174         file.
8175         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8176         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8177         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8178         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8179         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8180         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8181         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8182         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8183         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8184         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8185         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8186         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8187         file.
8188         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8189         New file.
8190         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8191         file.
8192         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8193         file.
8194         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8195         file.
8196         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8197         file.
8198         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8199         file.
8200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8201         New file.
8202         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8203         New file.
8204         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8205         file.
8206         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8207         New file.
8208         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8209         file.
8210         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8211         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8212         file.
8213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8214         New file.
8215         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8216         file.
8217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8218         file.
8219         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8220         file.
8221         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8222         file.
8223         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8224         file.
8225         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8226         New file.
8227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8228         New file.
8229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8230         file.
8231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8232         New file.
8233         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8234         file.
8235
8236 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8237
8238         * conform/conformtest.pl: Fix typo in handling typed-constant from
8239         allow-header.
8240
8241 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8242
8243         * README: Cut down references to pre-2.6 Linux kernels and
8244         Linuxthreads.  Update lists of configurations in libc and ports
8245         and sort alphabetically.  Say "or newer" with Linux kernel version
8246         requirements.
8247
8248         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8249
8250 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8251
8252         [BZ #887]
8253         * math/libm-test.inc (logb_test_downward): New test to expose
8254         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8255         rounding mode.
8256
8257 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8258
8259         [BZ #14027]
8260         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8261         to be done.
8262         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8263         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8264
8265 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8266
8267         * sysdeps/unix/i386/brk.S: Remove file.
8268         * sysdeps/unix/i386/dl-brk.S: Likewise.
8269         * sysdeps/unix/i386/pipe.S: Likewise.
8270         * sysdeps/unix/i386/sigreturn.S: Likewise.
8271         * sysdeps/unix/i386/syscall.S: Likewise.
8272         * sysdeps/unix/i386/vfork.S: Likewise.
8273         * sysdeps/unix/i386/wait.S: Likewise.
8274
8275         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8276         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8277
8278         * configure.in (arm*-none*): Do not allow without
8279         --enable-hacker-mode.
8280         (netbsd*): Remove case setting base_os.
8281         (386bsd*): Likewise.
8282         (freebsd*): Likewise.
8283         (bsdi*): Likewise.
8284         (osf*): Likewise.
8285         (sunos*): Likewise.
8286         (ultrix*): Likewise.
8287         (newsos*): Likewise.
8288         (dynix*): Likewise.
8289         (*bsd*): Likewise.
8290         (sysv*): Likewise.
8291         (isc*): Likewise.
8292         (esix*): Likewise.
8293         (sco*): Likewise.
8294         (minix*): Likewise.
8295         (irix4*): Likewise.
8296         (irix6*): Likewise.
8297         (solaris[2-9]*): Likewise.
8298         (none): Likewise.
8299         * configure: Regenerated.
8300
8301 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8302
8303         [BZ #11521]
8304         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8305         overflow or cancellation in calculating denominator.
8306         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8307         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8308         down expression to avoid unexpected rounding in newer GCCs.
8309         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8310
8311 2012-04-26  David S. Miller  <davem@davemloft.net>
8312
8313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8314         long-double compat symbols.
8315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8320         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8321         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8322         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8328
8329 2012-04-25  David S. Miller  <davem@davemloft.net>
8330
8331         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8332         HWCAP_* values only after the memory barriers have been defined.
8333         (atomic_full_barrier): Define.
8334         (atomic_read_barrier): Define.
8335         (atomic_write_barrier): Define.
8336
8337 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8338
8339         * shlib-versions: Add libgcc_s version information.
8340         * sysdeps/generic/libgcc_s.h: Remove.
8341         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8342         libgcc_s.h.
8343         * sysdeps/gnu/unwind-resume.c: Likewise.
8344         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8345
8346 2012-04-25  David S. Miller  <davem@davemloft.net>
8347
8348         * sysdeps/unix/sparc/brk.S: Delete.
8349         * sysdeps/unix/sparc/dl-brk.S: Delete.
8350         * sysdeps/unix/sparc/pipe.S: Delete.
8351         * sysdeps/unix/sparc/sysdep.S: Delete.
8352         * sysdeps/unix/sparc/sysdep.h: Delete.
8353         * sysdeps/unix/sparc/vfork.S: Delete.
8354         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8355         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8356         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8357         ret_ERRVAL, r0, r1, MOVE): Define.
8358         (JUMPTARGET): Remove.
8359         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8360         sysdeps/unix/sparc/sysdep.h
8361         (ENTRY, END): Remove.
8362         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8363
8364 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8365
8366         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8367         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8368         -DIS_IN_build.
8369
8370         * timezone/README: Update upstream location and email address for
8371         tzcode and tzdata.
8372         * timezone/zdump.c: Update from tzcode 2012b.
8373         * timezone/zic.c: Likewise.
8374
8375         * configure.in (libc_cv_as_needed): Remove test.
8376         * configure: Regenerated.
8377         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8378         conditional definition.
8379         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8380         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8381         * config.make.in (have-as-needed): Remove variable.
8382
8383 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8384             Paul Pluzhnikov  <ppluzhnikov@google.com>
8385
8386         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8387         strings correctly.
8388
8389 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8390
8391         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8392         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8393         * sysdeps/sh/strlen.S: Likewise.
8394
8395 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8396
8397         * sysdeps/unix/fork.S: Remove file.
8398         * sysdeps/unix/i386/fork.S: Likewise.
8399         * sysdeps/unix/sparc/fork.S: Likewise.
8400
8401         * sysdeps/unix/system.c: Remove file.
8402         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8403
8404         * sysdeps/unix/getegid.S: Remove file.
8405         * sysdeps/unix/geteuid.S: Likewise.
8406
8407 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8408
8409         * scripts/check-localplt.awk: New file.
8410         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8411         of diff.
8412         * scripts/data/localplt-generic.data: Add a comment.
8413
8414         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8415         NODE when __dir_mkfile failed.
8416         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8417         Reported by Ludovic Courtès <ludo@gnu.org>.
8418
8419 2012-04-24  Andreas Jaeger  <aj@suse.de>
8420
8421         * Makerules (common-clean): Also remove gen-as-const-headers
8422         files.
8423
8424 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8425
8426         * Makerules (native-compile): Do not change working directory for
8427         build.  Use $(OUTPUT_OPTION) in command.
8428         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8429
8430 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8431
8432         [BZ #13886]
8433         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8434         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8435         * math/libm-test.inc (floor_test): Add more tests.
8436         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8437
8438 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8439
8440         * sysdeps/unix/getdents.c: Remove file.
8441         * sysdeps/unix/sysv/getdents.c: Likewise.
8442         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8443
8444         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8445         sysdeps/unix/mman/syscalls.list.
8446         (mmap): Likewise.
8447         (mprotect): Likewise.
8448         (msync): Likewise.
8449         (munmap): Likewise.
8450         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8451         * sysdeps/unix/mman/syscalls.list: Remove.
8452         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8453
8454         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8455         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8456         * configure: Regenerated.
8457         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8458         $(libgcc_s_suffix).
8459         * config.make.in (libgcc_s_suffix): Remove variable.
8460
8461 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8462
8463         * sysdeps/unix/sysv/gethostname.c: Move to ...
8464         * sysdeps/posix/gethostname.c: ... here.
8465
8466         * sysdeps/unix/execve.S: Remove file.
8467
8468         * sysdeps/unix/_exit.S: Remove file.
8469
8470 2012-04-23  Andreas Jaeger  <aj@suse.de>
8471
8472         [BZ #13739]
8473         * manual/Makefile: Remove make dist support, there's no
8474         need for a stand-alone documentation tar ball.
8475         (TEXI2DVI): Define always, it's not in Makeconfig.
8476         (dist): Removed.
8477         (tar-it): Removed.
8478         (edition): Removed.
8479         (glibc-doc-$(edition).tar): Removed
8480         (%.Z): Removed.
8481         (%.gz): Removed.
8482         (%.uu): Removed.
8483         (ETAGS): Remove, it's in Makeconfig.
8484         (move-if-change): Remove, it's in Makeconfig.
8485
8486 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8487
8488         [BZ #13970]
8489         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8490         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8491         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8492         (strtod_l, strtof_l, strtold_l): Remove __wur.
8493         It is not necessarily an error to ignore strtol's return value.
8494         One can reliably look at the stored endptr to decide whether
8495         the number had valid syntax.
8496
8497 2012-04-21  Andreas Jaeger  <aj@suse.de>
8498
8499         [BZ #13739]
8500         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8501
8502 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8503
8504         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8505         * sysdeps/unix/sysv/Versions: Remove file.
8506
8507 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8508
8509         [BZ #13927]
8510         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8511
8512 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8513
8514         [BZ #7064]
8515         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8516         version from __vm86.
8517
8518 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8519
8520         * sysdeps/unix/common/lxstat.c: Remove file.
8521         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8522
8523         * sysdeps/unix/sysv/Makefile: Remove file.
8524
8525         * sysdeps/unix/sysv/direct.h: Remove file.
8526
8527         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8528         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8529         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8530         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8531         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8532         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8533         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8534
8535         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8536
8537         * sysdeps/unix/xmknod.c: Remove file.
8538         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8539
8540         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8541
8542         * sysdeps/unix/sysv/i386/time.S: Remove file.
8543
8544         * sysdeps/unix/fxstat.c: Remove file.
8545         * sysdeps/unix/xstat.c: Likewise.
8546         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8547
8548         * sysdeps/unix/sysv/sigaction.c: Remove file.
8549
8550         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8551         (sysdep_headers): Remove variable.
8552         [termio.h not in sysdep_headers] (generated): Likewise.
8553         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8554         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8555         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8556         * sysdeps/unix/sysv/tcflow.c: Likewise.
8557         * sysdeps/unix/sysv/tcflush.c: Likewise.
8558         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8559         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8560         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8561         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8562         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8563
8564         * sysdeps/unix/siglist.c: Remove file.
8565
8566         * sysdeps/unix/getppid.S: Remove file.
8567
8568         * sysdeps/unix/mkdir.c: Remove file.
8569         * sysdeps/unix/rmdir.c: Likewise.
8570
8571 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8572
8573         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8574         ERR_MAX value.
8575         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8576         errlist-compat value.
8577
8578 2012-04-18  David S. Miller  <davem@davemloft.net>
8579
8580         * sysdeps/generic/memcopy.h (reg_char): Delete.
8581         * debug/strcat_chk.c: Use char, not reg_char.
8582         * debug/strcpy_chk.c: Likewise.
8583         * debug/strncat_chk.c: Likewise.
8584         * debug/strncpy_chk.c: Likewise.
8585         * string/memchr.c: Likewise.
8586         * string/memrchr.c: Likewise.
8587         * string/rawmemchr.c: Likewise.
8588         * string/strcat.c: Likewise.
8589         * string/strchr.c: Likewise.
8590         * string/strchrnul.c: Likewise.
8591         * string/strcmp.c: Likewise.
8592         * string/strcpy.c: Likewise.
8593         * string/strncat.c: Likewise.
8594         * string/strncmp.c: Likewise.
8595         * string/strncpy.c: Likewise.
8596
8597 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8598
8599         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8600         __builtin_memcopy is called when src and dest ranges are known to not
8601         overlap.
8602
8603 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8604
8605         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8606         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8607         fwd_align_merge macro call.
8608         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8609         bwd_align_merge macro call.
8610         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8611
8612 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8613
8614         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8615         bwd_align_merge macros.
8616         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8617         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8618         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8619
8620 2012-04-18  David S. Miller  <davem@davemloft.net>
8621
8622         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8623
8624 2012-04-18  Andreas Jaeger  <aj@suse.de>
8625
8626         [BZ# 6794]
8627         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8628         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8629         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8630
8631         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8632         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8633         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8634
8635         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8636         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8637         Adjust for changed ldbl-128 files.
8638
8639         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8640         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8641         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8642
8643 2012-04-17  David S. Miller  <davem@davemloft.net>
8644
8645         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8646
8647 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8648
8649         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8650         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8651         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8652         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8653         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8654         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8655
8656 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8657
8658         [BZ #6794]
8659         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8660         * math/libm-test.inc: Add ilogb errno and exception tests.
8661         * math/w_ilogb.c: New file: ilogb wrapper.
8662         * math/w_ilogbf.c: New file: ilogbf wrapper.
8663         * math/w_ilogbl.c: New file: ilogbl wrapper.
8664         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8665         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8666         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8667         exception being thrown with 0.0 as argument.
8668         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8669         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8670         exception being thrown with 0.0 as argument.
8671         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8672         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8673         exception being thrown with 0.0 as argument.
8674         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8675         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8676         exception being thrown with 0.0 as argument.
8677         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8678         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8679         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8680         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8681         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8682         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8683         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8684         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8685         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8686
8687 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8688
8689         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8690         with altivec.
8691
8692 2012-04-16  Marek Polacek  <polacek@redhat.com>
8693
8694         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8695
8696 2012-04-16  Marek Polacek  <polacek@redhat.com>
8697
8698         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8699         operands of fdivp instruction.
8700
8701 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8702
8703         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8704         * elf/tst-auditmod3b.c: Likewise.
8705         * elf/tst-auditmod4b.c: Likewise.
8706         * elf/tst-auditmod5b.c: Likewise.
8707         * elf/tst-auditmod6b.c: Likewise.
8708         * elf/tst-auditmod6c.c: Likewise.
8709         * elf/tst-auditmod7b.c: Likewise.
8710         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8711         * sysdeps/x86_64/preconfigure.in: Likewise.
8712         * sysdeps/x86_64/preconfigure: Regenerated.
8713
8714 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8715
8716         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8717         __ILP32__.
8718
8719 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8720
8721         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8722         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8723
8724 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8725
8726         [BZ #13973]
8727         * locale/iso-639.def: Fix gl language name. Spotted by
8728         Yaron Shahrabani.
8729
8730 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8731
8732         [BZ #2074]
8733         * libio/libio.h (__io_write_fn): Update comment.
8734
8735 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8736
8737         [BZ #2074]
8738         * stdio.texi (Hook Functions): The user provided writer function
8739         is not allowed to return -1.
8740
8741 2012-04-11  David S. Miller  <davem@davemloft.net>
8742
8743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8744
8745 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8746
8747         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8748         Add a leading slash to rtkaio.
8749
8750 2012-04-11  Jim Meyering  <meyering@redhat.com>
8751
8752         [BZ #11959]
8753         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8754         It is not necessarily an error to ignore fwrite's return
8755         value.  One can reliably use ferror to test for errors after
8756         the fact.
8757
8758 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8759
8760         * bits/types.h (__snseconds_t): New type.
8761         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8762
8763         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8764         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8765         (__SNSECONDS_T_TYPE): Likewise.
8766         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8767         (__SNSECONDS_T_TYPE): Likewise.
8768         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8769         (__SNSECONDS_T_TYPE): Likewise.
8770
8771 2012-04-10  Andreas Jaeger  <aj@suse.de>
8772
8773         [BZ #2636]
8774         * manual/time.texi (Processor Time): Return type of times is
8775         elapsed real time since an arbitrary point in the past.
8776         (CPU Time): Move CLK_TCK from here...
8777         (Processor Time): ...to here.  Correct description.
8778         * manual/conf.texi (Constants for Sysconf): Correct description of
8779         _SC_CLK_TCK.
8780
8781 2012-04-10  David S. Miller  <davem@davemloft.net>
8782
8783         [BZ #13967]
8784         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
8785         where the is a gap between DT_REL(A) and DT_JMPREL.
8786
8787 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8788
8789         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
8790         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8791         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8792
8793 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8794
8795         * elf/dl-support.c (_dl_inhibit_cache): New variable.
8796         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
8797         (dl_main): Handle --inhibit-cache.
8798         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
8799         _dl_inhibit_cache.
8800         * elf/dl-load.c (_dl_map_object): Use it.
8801         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
8802
8803 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8804
8805         [BZ #13872]
8806         * sysdeps/i386/fpu/e_powl.S (p78): New object.
8807         (__ieee754_powl): Saturate large exponents rather than testing for
8808         overflow of y*log2(x).
8809         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8810         * math/libm-test.inc (pow_test): Do not permit spurious overflow
8811         exceptions.
8812
8813         [BZ #11521]
8814         * math/s_ctan.c: Include <float.h>.
8815         (__ctan): Avoid internal overflow or cancellation in calculating
8816         denominator.
8817         * math/s_ctanf.c: Likewise.
8818         * math/s_ctanl.c: Likewise.
8819         * math/s_ctanh.c: Likewise.
8820         * math/s_ctanhf.c: Likewise.
8821         * math/s_ctanhl.c: Likewise.
8822         * math/libm-test.inc (ctan_test): Add more tests.
8823         (ctanh_test): Likewise.
8824         * sysdeps/i386/fpu/libm-test-ulps: Update.
8825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8826
8827 2012-04-09  Andreas Jaeger  <aj@suse.de>
8828
8829         [BZ #6894]
8830         * manual/filesys.texi (Directory Entries): Mention that d_namlen
8831         is an optional BSD extension.
8832
8833         [BZ #10254]
8834         * manual/stdio.texi (Opening Streams): Document additional fopen
8835         parameters.
8836
8837 2012-04-09  Roland McGrath  <roland@hack.frob.com>
8838
8839         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
8840         %eax without telling the compiler.
8841
8842 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
8843
8844         [BZ # 13963]
8845         * manual/install.texi: Use sourceware.org.
8846
8847 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
8848
8849         [BZ #13873]
8850         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
8851         (__ieee754_pow): Generate overflow and underflow using huge*huge
8852         and tiny*tiny rather than just returning constant infinity or zero
8853         for large exponents.
8854         * math/libm-test.inc (pow_test): Require overflow exceptions for
8855         applicable cases of large exponents.
8856
8857         [BZ #706]
8858         * sysdeps/i386/fpu/e_pow.S (p10): New object.
8859         (__ieee754_pow): Use iterative multiplication algorithm only for
8860         integer exponents with absolute value below 1024.  Check for odd
8861         integer exponents when using algorithm for real exponents.
8862         * math/libm-test.inc (pow_test): Add more tests.
8863         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8864
8865 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
8866
8867         [BZ #13705]
8868         * math/libm-test.inc (exp_test): Do not allow overflow exception
8869         on underflow test.
8870
8871 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
8872
8873         [BZ #13705]
8874         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
8875         instead of __kernel_standard_f.
8876
8877 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
8878
8879         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
8880         * sysdeps/x86_64/memset_chk.S: Likewise.
8881
8882 2012-04-08  Andreas Jaeger  <aj@suse.de>
8883
8884         [BZ #10153]
8885         * manual/startup.texi (Environment Access): Describe return value
8886         for putenv and setenv.
8887
8888         [BZ #6895]
8889         * manual/filesys.texi (Directory Entries): Add description for
8890         DT_LNK.
8891
8892         [BZ #6890]
8893         * manual/filesys.texi (Directory Entries): Clarify that it's file
8894         system not operating system in the description of DT_UNKNOWN.
8895
8896         [BZ #6578]
8897         * manual/syslog.texi (closelog): Fix reference, it's openlog.
8898
8899 2012-04-08  Stephen Compall  <s11@member.fsf.org>
8900
8901         [BZ #6649]
8902         * manual/llio.texi (Opening and Closing Files): Add cross
8903         reference to explain mode argument.
8904
8905 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
8906
8907         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
8908         * sysdeps/x86_64/memset_chk.S: Likewise.
8909
8910 2012-04-07  David S. Miller  <davem@davemloft.net>
8911
8912         * elf/elf.h (R_SPARC_WDISP10): Define.
8913         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
8914         R_SPARC_SIZE32.
8915         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8916         R_SPARC_SIZE64 and R_SPARC_H34.
8917
8918 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
8919
8920         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
8921         conditions and remove no longer applicable assertion.
8922
8923 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8924
8925         * bits/byteswap.h: Include <features.h>.
8926         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
8927         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
8928
8929 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
8930
8931         * bits/byteswap.h (__bswap_16): Removed.
8932         Include <bits/byteswap-16.h> to get __bswap_16.
8933         * sysdeps/i386/bits/byteswap.h: Likewise.
8934         * sysdeps/s390/bits/byteswap.h: Likewise.
8935         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8936         * bits/byteswap-16.h: New file.
8937         * sysdeps/i386/bits/byteswap-16.h: Likewise.
8938         * sysdeps/s390/bits/byteswap-16.h: Likewise.
8939         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
8940         * string/Makefile (headers): Add bits/byteswap-16.h.
8941
8942 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8943
8944         [BZ #13895]
8945         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
8946         extra indirection.
8947         * nss/Makefile (tests-static, tests): Add tst-nss-static.
8948         * nss/tst-nss-static.c: New.
8949
8950 2012-04-06  Robert Millan  <rmh@gnu.org>
8951
8952         [BZ #6486]
8953         * manual/llio.texi (File Position Primitive): lseek
8954         refers to WHENCE when it really means OFFSET.
8955
8956 2012-04-06  Andreas Jaeger  <aj@suse.de>
8957
8958         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
8959         strncmp declarations.
8960
8961         * abilist/libc.abilist: Add __poll and __ppoll.
8962
8963 2012-04-05  David S. Miller  <davem@davemloft.net>
8964
8965         * scripts/check-local-headers.sh: Accept a host triplet in the
8966         path matched by the exclude regexp.
8967
8968         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
8969         definition.
8970         * sysdeps/powerpc/powerpc32/dl-machine.h
8971         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
8972         * sysdeps/s390/s390-32/dl-machine.h
8973         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8974         * sysdeps/sparc/sparc32/dl-machine.h
8975         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8976         * sysdeps/sparc/sparc64/dl-machine.h
8977         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
8978
8979         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
8980         lazy binding.
8981         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
8982         undefined symbol errors.
8983
8984         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
8985         DT_NEEDED entries.
8986
8987 2012-04-05  Michael Matz  <matz@suse.de>
8988
8989         [BZ #13592]
8990         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
8991
8992 2012-04-05  Andreas Jaeger  <aj@suse.de>
8993
8994         [BZ #13908]
8995         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
8996         comment.
8997
8998 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
8999
9000         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9001         which ROUND is no valid rounding mode.
9002
9003 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9004
9005         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9006         read again.
9007         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9008
9009 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9010
9011         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9012         an exception using FPU order intentionally.
9013
9014 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9015
9016         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9017         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9018         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9019         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9020
9021 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9022
9023         [BZ #12340]
9024         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9025         EINVAL when BUFLEN is too smal.
9026
9027 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9028
9029         [BZ #13553]
9030         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9031         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9032
9033 2012-04-03  Andreas Jaeger  <aj@suse.de>
9034
9035         [BZ #13938]
9036         * manual/setjmp.texi (System V contexts): Fix sentence.
9037
9038         [BZ #13926]
9039         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9040         New macro for this case.
9041         [!__GNUC__] (__bswap_64): New inline function for this case.
9042         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9043         * bits/byteswap.h: Likewise.
9044         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9045         ull, guard with __GLIBC_HAVE_LONG_LONG.
9046
9047         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9048         __GLIBC_HAVE_LONG_LONG.
9049
9050         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9051         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9052
9053 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9054
9055         [BZ #13691]
9056         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9057         inptr and inend, rather than using last_ch.
9058
9059 2012-04-02  David S. Miller  <davem@davemloft.net>
9060
9061         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9062         * stdio-common/printf-parse.h (read_int): Change return type to
9063         'int', return -1 on INT_MAX overflow.
9064         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9065         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9066         overflows INT_MAX.  Check for overflow of in-format-string precision
9067         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9068         SIZE_MAX not INT_MAX for integer overflow test.
9069         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9070         skip the construct in the format string but do not record anything.
9071         * stdio-common/bug22.c: Adjust to test both width/prevision
9072         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9073         explicitly for proper errno values.
9074
9075 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9076
9077         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9078         CHAR_MAX.
9079         * string/test-strcmp.c [! WIDE]: Likewise.
9080         * time/tst-mktime2.c: Likewise for INT_MAX.
9081         * string/test-string.h: #include <sys/param.h> for MIN.
9082
9083         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9084         * sysdeps/i386/init-first.c (init): Likewise.
9085         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9086         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9087         * sysdeps/sh/init-first.c (init): Likewise.
9088
9089 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9090
9091         * po/ru.po: Update from translation team.
9092         * po/vi.po: Likewise.
9093
9094 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9095
9096         * resolv/nss_dns/dns-host.c: Merge copyright years.
9097
9098 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9099
9100         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9101         Optimize memcpy with prefetch if
9102         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9103         src, dst pointers have unequal 16 byte alignments.
9104
9105 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9106
9107         [BZ #13928]
9108         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9109         from a CNAME entry and return the minimum ttl for the query.
9110         (gaih_getanswer_slice): Likewise.
9111
9112 2012-03-30  Jeff Law  <law@redhat.com>
9113
9114         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9115         due to long keys.
9116         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9117         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9118
9119         * resolv/nss_dns/dns-host.c: Update copyright year.
9120
9121 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9122
9123         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9124         requests to save a system call.  Fix check that all bytes are sent.
9125
9126         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9127         comments for sendmmsg.
9128
9129 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9130
9131         [BZ #13691]
9132         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9133         with only 1 character between 0x0041 and 0x01b0.
9134         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9135         * wcsmbs/tst-mbsnrtowcs.c: New file.
9136
9137 2012-03-29  David S. Miller  <davem@davemloft.net>
9138
9139         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9140         small copies by hand.
9141
9142 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9143
9144         [BZ #13761]
9145         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9146         _nss_compat_initgroups_dyn): Fall back to malloc/free
9147         for large group memberships.
9148
9149 2012-03-28  David S. Miller  <davem@davemloft.net>
9150
9151         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9152         that branches into memcpy.
9153         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9154         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9155         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9156         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9157         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9158         bits.
9159         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9160         implementation too.
9161         * sysdeps/sparc/mempcpy.S: New file.
9162
9163         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9164         the IFUNC routine in the libc case.
9165         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9166
9167         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9168         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9169         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9170         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9171         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9172         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9173         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9174         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9175
9176         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9177         loop to 256 bytes instead of 64 bytes and fix test signedness.
9178
9179         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9180         * sysdeps/sparc/sparc32/Makefile: rather than here...
9181         * sysdeps/sparc/sparc64/Makefile: and here.
9182
9183 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9184
9185         * malloc/mallocbug.c: Avoid warnings about unused variables.
9186
9187 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9188
9189         [BZ #13760]
9190         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9191         in the right place. Discard and retry query if response is
9192         larger than input buffer size.
9193
9194 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9195
9196         [BZ #369]
9197         [BZ #2678]
9198         [BZ #3866]
9199         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9200         x for large integer exponent.
9201         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9202         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9203         sign of result as needed afterwards.
9204         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9205         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9206         result for underflowing pow the same as for overflow.
9207         (__kernel_standard_l): Handle powl overflow and underflow here
9208         rather than calling __kernel_standard.
9209         * math/libm-test.inc (pow_test): Add more tests.
9210
9211         [BZ #3868]
9212         [BZ #13879]
9213         [BZ #13910]
9214         [BZ #13911]
9215         [BZ #13912]
9216         [BZ #13913]
9217         [BZ #13915]
9218         [BZ #13916]
9219         [BZ #13917]
9220         [BZ #13918]
9221         [BZ #13919]
9222         [BZ #13920]
9223         [BZ #13921]
9224         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9225         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9226         (__kernel_standard_l): New function.
9227         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9228         __kernel_standard.
9229         * math/w_acosl.c (__acosl): Likewise.
9230         * math/w_asinl.c (__asinl): Likewise.
9231         * math/w_atan2l.c (__atan2l): Likewise.
9232         * math/w_atanhl.c (__atanhl): Likewise.
9233         * math/w_coshl.c (__coshl): Likewise.
9234         * math/w_exp10l.c (__exp10l): Likewise.
9235         * math/w_exp2l.c (__exp2l): Likewise.
9236         * math/w_fmodl.c (__fmodl): Likewise.
9237         * math/w_hypotl.c (__hypotl): Likewise.
9238         * math/w_j0l.c (__j0l, __y0l): Likewise.
9239         * math/w_j1l.c (__j1l, __y1l): Likewise.
9240         * math/w_jnl.c (__jnl, __ynl): Likewise.
9241         * math/w_lgammal.c (__lgammal): Likewise.
9242         * math/w_log10l.c (__log10l): Likewise.
9243         * math/w_log2l.c (__log2l): Likewise.
9244         * math/w_logl.c (__logl): Likewise.
9245         * math/w_powl.c (__powl): Likewise.
9246         * math/w_remainderl.c (__remainderl): Likewise.
9247         * math/w_scalbl.c (sysv_scalbl): Likewise.
9248         * math/w_sinhl.c (__sinhl): Likewise.
9249         * math/w_sqrtl.c (__sqrtl): Likewise.
9250         * math/w_tgammal.c (__tgammal): Likewise.
9251         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9252         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9253         * math/libm-test.inc (acos_test): Add more tests.
9254         (acosh_test): Likewise.
9255         (asin_test): Likewise.
9256         (atanh_test): Likewise.
9257         (exp_test): Likewise.
9258         (exp10_test): Likewise.
9259         (exp2_test): Likewise.
9260         (expm1_test): Likewise.
9261         (lgamma_test): Likewise.
9262         (log_test): Likewise.
9263         (log10_test): Likewise.
9264         (log1p_test): Likewise.
9265         (log2_test): Likewise.
9266         (pow_test): Do not allow some spurious overflow exceptions.
9267         (sqrt_test): Add more tests.
9268         (tgamma_test): Likewise.
9269         (y0_test): Likewise.
9270         (y1_test): Likewise.
9271         (yn_test): Likewise.
9272
9273 2012-03-27  Anton Blanchard  <anton@samba.org>
9274
9275         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9276         MAP_HUGETLB.
9277         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9278         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9279         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9280
9281 2012-03-27  David S. Miller  <davem@davemloft.net>
9282
9283         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9284
9285         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9286         have-as-vis3 check.
9287
9288 2012-03-27  Andreas Jaeger  <aj@suse.de>
9289
9290         * sysdeps/x86_64/elf/configure.in: Moved to ...
9291         * sysdeps/x86_64/configure.in: ... here.
9292         * sysdeps/x86_64/elf/start.S: Moved to ...
9293         * sysdeps/x86_64/start.S: ... here.
9294         * sysdeps/x86_64/elf/configure: Delete.
9295
9296         * sysdeps/x86_64/configure.in: Merge contents from
9297         sysdeps/i386/configure.in (without i686 check).
9298
9299         * sysdeps/i386/elf/Versions: Merge into ...
9300         * sysdeps/i386/Versions: ... this.
9301         * sysdeps/i386/elf/Versions: Delete file.
9302         * sysdeps/i386/elf/start.S: Moved to ...
9303         * sysdeps/i386/start.S: ...here.
9304         * sysdeps/i386/elf/configure.in: Merge into...
9305         * sysdeps/i386/configure.in: ...here.
9306         * sysdeps/i386/elf/configure.in: Delete file.
9307         * sysdeps/i386/elf/configure: Delete file.
9308
9309         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9310         * debug/backtracesyms.c: ... here.
9311         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9312         * debug/backtracesymsfd.c: ... here.
9313         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9314         * sysdeps/generic/ifunc-sel.h: ... here.
9315
9316         * sysdeps/unix/i386/start.c: Delete file.
9317         * sysdeps/unix/sparc/start.c: Delete file.
9318         * sysdeps/unix/start.c: Delete file.
9319
9320         * sysdeps/sh/elf/configure.in: Moved to ...
9321         * sysdeps/sh/configure.in: ... here.
9322         * sysdeps/sh/elf/start.S: Moved to ...
9323         * sysdeps/sh/start.S: ... here.
9324         * sysdeps/sh/elf/configure: Delete file.
9325
9326         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9327         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9328         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9329         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9330         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9331         * sysdeps/powerpc/powerpc64/start.S: here.
9332         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9333         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9334         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9335         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9336         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9337
9338         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9339         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9340         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9341         * sysdeps/powerpc/powerpc32/start.S: ... here.
9342         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9343         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9344         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9345
9346         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9347         * sysdeps/powerpc/ifunc-sel.h: ... here.
9348         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9349         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9350
9351         * sysdeps/sparc/elf/configure.in: Moved to ...
9352         * sysdeps/sparc/configure.in: ... here.
9353         * sysdeps/sparc/elf/configure: Delete file.
9354         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9355         * sysdeps/sparc/sparc32/start.S: ... here.
9356         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9357         * sysdeps/sparc/sparc64/start.S: ... here.
9358         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9359         * sysdeps/sparc/sparc32/Makefile: ... this.
9360         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9361         * sysdeps/sparc/sparc64/Makefile: ... this.
9362
9363         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9364         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9365         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9366         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9367         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9368         * sysdeps/s390/s390-32/setjmp.S: ... here.
9369         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9370         * sysdeps/s390/s390-32/configure.in: ... here.
9371         * sysdeps/s390/s390-32/elf/configure: Delete file.
9372         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9373         * sysdeps/s390/s390-32/start.S: ... here.
9374
9375         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9376         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9377         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9378         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9379         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9380         * sysdeps/s390/s390-64/setjmp.S: ... here.
9381         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9382         * sysdeps/s390/s390-64/configure.in: ... here
9383         * sysdeps/s390/s390-64/elf/configure: Delete file.
9384         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9385         * sysdeps/s390/s390-64/start.S: ... here.
9386         * sysdeps/s390/s390-64/elf/configure: Delete.
9387
9388         * configure.in: Remove support for elf directories in sysdeps.
9389
9390         * configure: Regenerated.
9391         * sysdeps/i386/configure: Regenerated.
9392         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9393         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9394         * sysdeps/s390/s390-32/configure: Regenerated.
9395         * sysdeps/s390/s390-64/configure: Regenerated.
9396         * sysdeps/sh/configure: Regenerated.
9397         * sysdeps/sparc/configure: Regenerated.
9398         * sysdeps/x86_64/configure: Regenerated.
9399
9400 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9401
9402         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9403
9404         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9405         denormal result into account.
9406
9407 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9408
9409         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9410         Reported by Allan McRae <allan@archlinux.org>.
9411
9412 2012-03-23  Jeff Law  <law@redhat.com>
9413
9414         * nss/getnssent.c (__nss_getent): Fix typo.
9415
9416 2012-03-23  David S. Miller  <davem@davemloft.net>
9417
9418         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9419
9420 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9421
9422         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9423         to pad to uint64_t for each field.
9424         (dl_tls_index): Replace unsigned long with uint64_t.
9425
9426 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9427         Paul Pluzhnikov  <ppluzhnikov@google.com>
9428
9429         [BZ #6528]
9430         * grp/Makefile (otherlibs): Don't set it.
9431         * inet/Makefile (otherlibs): Likewise.
9432         * login/Makefile (otherlibs): Likewise.
9433         * nscd/Makefile (otherlibs): Likewise.
9434         * posix/Makefile (otherlibs): Likewise.
9435         * pwd/Makefile (otherlibs): Likewise.
9436         * rt/Makefile (otherlibs): Likewise.
9437         * sunrpc/Makefile (otherlibs): Likewise.
9438         * nss/Makefile (otherlibs): Likewise.
9439         Add libnss_files to routines and static-only-routines.
9440         ($(objpfx)getent): Remove rule.
9441         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9442         static-only-routines.
9443
9444 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9445
9446         [BZ #13892]
9447         * math/s_cexp.c: Include <float.h>.
9448         (__cexp): Handle exp result overflowing not necessarily
9449         overflowing both real and imaginary parts of result.
9450         * math/s_cexpf.c: Likewise.
9451         * math/s_cexpl.c: Likewise.
9452         * math/libm-test.inc (cexp_test): Add more tests.
9453         * sysdeps/i386/fpu/libm-test-ulps: Update.
9454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9455
9456 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9457
9458         * include/link.h (ELFW): New macro.
9459         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9460         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9461
9462 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9463
9464         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9465         with uint64_t.
9466
9467 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9468
9469         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9470         declaration.
9471         (struct La_x32_retval): Likewise.
9472
9473 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9474
9475         * sysdeps/x86_64/preconfigure.in: New file.
9476         * sysdeps/x86_64/preconfigure: New generated file.
9477
9478 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9479
9480         [BZ #13824]
9481         * math/e_exp2l.c: Include <float.h>.
9482         (__ieee754_exp2l): Handle overflow and underflow cases
9483         separately.  Only pass fractional part of argument to
9484         __ieee754_expl.
9485         * math/libm-test.inc (exp2_test): Add more tests.
9486
9487         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9488         negating x to take absolute value.
9489         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9490         Likewise.
9491         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9492         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9493         Likewise.
9494         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9495         computing low part if x was negated.
9496         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9497
9498 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9499
9500         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9501         la_x32_gnu_pltexit.
9502         (pltexit): Cast int_retval to ptrdiff_t.
9503         * elf/tst-auditmod3b.c: Likewise.
9504         * elf/tst-auditmod4b.c: Likewise.
9505         * elf/tst-auditmod5b.c: Likewise.
9506         * elf/tst-auditmod6b.c: Likewise.
9507         * elf/tst-auditmod6c.c: Likewise.
9508         * elf/tst-auditmod7b.c: Likewise.
9509
9510         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9511         and x32_gnu_pltexit.
9512
9513         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9514         __ELF_NATIVE_CLASS.
9515         (La_x32_regs): New macro.
9516         (La_x32_retval): Likewise.
9517         (la_x32_gnu_pltenter): New function prototype.
9518         (la_x32_gnu_pltexit): Likewise.
9519
9520 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9521
9522         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9523         exponent.
9524
9525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9526
9527         * configure.in (libc_cv_cc_nofma): Check for option to disable
9528         generation of FMA instructions.
9529         * configure: Regenerate.
9530         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9531         * sysdeps/ieee754/dbl-64/Makefile: New file.
9532         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9533         Remove brandred-fma4.
9534         (CFLAGS-brandred-fma4.c): Remove.
9535         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9536         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9537         define.
9538         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9539         define.
9540
9541 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9542
9543         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9544         LLONG_MAX != LONG_MAX.
9545         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9546         (_fitoa_word): Likewise.
9547         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9548         LLONG_MAX != LONG_MAX.
9549         * stdio-common/_itowa.h: Include <_itoa.h>.
9550         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9551         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9552         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9553         only if not defined.
9554         (_ITOA_WORD_TYPE): Likewise.
9555         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9556         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9557
9558 2012-03-21  David S. Miller  <davem@davemloft.net>
9559
9560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9561
9562 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9563
9564         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9565         of x86_64 when setting libc_cv_slibdir, libdir and
9566         libc_cv_localedir.
9567         * sysdeps/unix/sysv/linux/configure: Regenerated.
9568
9569 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9570
9571         * manual/lang.texi (Old Varargs): Remove section.
9572         (How Variadic): Update menu.
9573         (va_start): Do not mention varargs.h.
9574
9575 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9576             Joseph Myers  <joseph@codesourcery.com>
9577
9578         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9579         link test.
9580         * configure: Regenerated.
9581
9582 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9583
9584         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9585         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9586         conformtest.pl
9587
9588 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9589
9590         * NOTES: Remove.
9591         * Makefile (files-for-dist): Remove NOTES.
9592         (NOTES): Remove rule.
9593         * README: Don't refer to NOTES.
9594         * manual/creature.texi: Don't include macros.texi.
9595         * manual/intro.texi (creature.texi): Remove comment referring to
9596         NOTES.
9597
9598         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9599         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9600         * configure: Regenerated.
9601         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9602         LIBC_TRY_CC_OPTION.
9603         (libc_cv_as_i686): Likewise.
9604         (libc_cv_cc_avx): Likewise.
9605         (libc_cv_cc_sse2avx): Likewise.
9606         (libc_cv_cc_fma4): Likewise.
9607         (libc_cv_cc_novzeroupper): Likewise.
9608         * sysdeps/i386/configure: Regenerated.
9609
9610         [BZ #13883]
9611         * sysdeps/i386/fpu/s_cexp.S: Remove.
9612         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9613         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9614         * math/libm-test.inc (cexp_test): Add more tests.
9615         * sysdeps/i386/fpu/libm-test-ulps: Update.
9616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9617
9618 2012-03-21  Allan McRae  <allan@archlinux.org>
9619
9620         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9621
9622 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9623
9624         [BZ #13871]
9625         * math/w_exp2.c: Do not include <float.h>.
9626         (o_threshold, u_threshold): Remove.
9627         (__exp2): Calculate result before checking finiteness and calling
9628         __kernel_standard.
9629         * math/w_exp2f.c: Likewise.
9630         * math/w_exp2l.c: Likewise.
9631         * math/libm-test.inc (exp2_test): Require overflow exception for
9632         1e6 input.
9633
9634         [BZ #3866]
9635         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9636         range of signed 64-bit integers before using fistpll.  Remove
9637         checks for whether integers fit in mantissa bits.
9638         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9639         the range of signed 32-bit integers before using fistpl.  Remove
9640         checks for whether integers fit in mantissa bits.
9641         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9642         (__ieee754_powl): Test for y outside the range of signed 64-bit
9643         integers before using fistpll.  Reduce 64-bit values to 63-bit
9644         ones as needed.
9645         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9646         divide-by-zero is raised for zero to large negative powers.
9647         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9648         (__ieee754_powl): Test for y outside the range of signed 64-bit
9649         integers before using fistpll.  Reduce 64-bit values to 63-bit
9650         ones as needed.
9651         * math/libm-test.inc (pow_test): Add more tests.
9652
9653 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9654
9655         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9656         <stdio-common/_itoa.h>.
9657         * debug/segfault.c: Likewise.
9658         * elf/dl-cache.c: Likewise.
9659         * elf/dl-minimal.c: Likewise.
9660         * elf/dl-misc.c: Likewise.
9661         * elf/dl-sysdep.c: Likewise.
9662         * elf/dl-version.c: Likewise.
9663         * elf/rtld.c: Likewise.
9664         * hurd/hurdsock.c: Likewise.
9665         * hurd/lookup-retry.c: Likewise.
9666         * malloc/malloc.c: Likewise.
9667         * malloc/mtrace.c: Likewise.
9668         * nscd/nscd_getgr_r.c: Likewise.
9669         * nscd/nscd_getpw_r.c: Likewise.
9670         * nscd/nscd_getserv_r.c: Likewise.
9671         * posix/getopt_init.c: Likewise.
9672         * posix/wordexp.c: Likewise.
9673         * stdio-common/_itoa.c: Likewise.
9674         * stdio-common/printf_fphex.c: Likewise.
9675         * stdio-common/vfprintf.c: Likewise.
9676         * string/_strerror.c: Likewise.
9677         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9678         * sysdeps/i386/i686/hp-timing.h: Likewise.
9679         * sysdeps/mach/_strerror.c: Likewise.
9680         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9681         * sysdeps/mach/hurd/sethostid.c: Likewise.
9682         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9683         * sysdeps/mach/xpg-strerror.c: Likewise.
9684         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9685         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9686         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9687         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9688         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9689         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9690         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9691         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9692         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9693         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9694         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9695         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9696         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9697         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9698         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9699         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9700         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9701         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9702         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9703         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9704         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9705
9706         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9707
9708         * stdio-common/_itoa.h: Moved to ...
9709         * sysdeps/generic/_itoa.h: Here.
9710
9711         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9712
9713         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9714         instead of "_itoa.h" and "_itowa.h".
9715         * stdio-common/vfprintf.: Likewise.
9716
9717 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9718
9719         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9720         <bits/wordsize.h>.
9721         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9722         (__signbit): Likwise.
9723         (llrintf): Likwise.
9724         (llrint): Likwise.
9725
9726 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9727
9728         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9729         __WORDSIZE != 64.
9730
9731 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9732
9733         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9734         OVERFLOW_EXCEPTION_OK.
9735         * math/libm-test.inc ("Philosophy"): Update comment about
9736         exception testing.
9737         (OVERFLOW_EXCEPTION): Define.
9738         (OVERFLOW_EXCEPTION_OK): Likewise.
9739         (INVALID_EXCEPTION_OK): Renumber.
9740         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9741         (IGNORE_ZERO_INF_SIGN): Likewise.
9742         (test_exceptions): Handle FE_OVERFLOW.
9743         (exp10_test): Expect overflow exceptions.
9744         (exp2_test): Likewise.
9745         (expm1_test): Likewise.
9746         (nextafter_test): Likewise.
9747         (pow_test): Likewise.
9748         (scalbn_test): Likewise.
9749         (scalbln_test): Likewise.
9750
9751 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9752
9753         * sysdeps/x86_64/bits/atomic.h
9754         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9755         64bit integer.
9756         (atomic_exchange_acq): Likewise.
9757         (__arch_exchange_and_add_body): Likewise.
9758         (__arch_add_body): Likewise.
9759         (atomic_add_negative): Likewise.
9760         (atomic_add_zero): Likewise.
9761
9762 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9763
9764         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
9765         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
9766
9767 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9768
9769         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
9770         Check __x86_64__ instead of __WORDSIZE.
9771
9772 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9773
9774         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
9775
9776 2012-03-19  David S. Miller  <davem@davemloft.net>
9777
9778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9779
9780         * sysdeps/sparc/fpu/fenv_private.h: New file.
9781         * sysdeps/sparc/fpu/math_private.h: Use it.
9782         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
9783         Remove.
9784         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
9785         (libc_feholdexcept_setroundl): Remove.
9786         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
9787         Remove.
9788         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
9789         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
9790
9791 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9792
9793         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
9794         int64_t instead of long int.
9795         (INSERT_WORDS64): Likwise.
9796
9797 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9798
9799         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
9800         _Unwind_GetCFA return to _Unwind_Ptr first.
9801
9802 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
9803
9804         [BZ #13629]
9805         * math/s_clog.c: Include <float.h>.
9806         (__clog): Scale large or subnormal inputs.
9807         * math/s_clogf.c: Likewise.
9808         * math/s_clogl.c: Likewise.
9809         * math/s_clog10.c: Include <float.h>.
9810         (M_LOG10_2): Define.
9811         (__clog10): Scale large or subnormal inputs.
9812         * math/s_clog10f.c: Likewise.
9813         * math/s_clog10l.c: Likewise.
9814         * math/libm-test.inc (clog_test): Add more tests.
9815         (clog10_test): Likewise.
9816         * sysdeps/i386/fpu/libm-test-ulps: Update.
9817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9818
9819         [BZ #11451]
9820         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
9821         x and y.
9822         * math/libm-test.inc (atan2_test): Add another test.
9823
9824         * Makerules (common-objdir-compile): Remove.
9825         * sysdeps/unix/Makefile (config-generated): Do not add
9826         $(unix-generated) to variable.
9827         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
9828         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
9829         Remove rule.
9830         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
9831         Likewise.
9832         [generic bits/local_lim.h] (before-compile): Do not append to
9833         variable.
9834         [generic bits/local_lim.h] (common-generated): Likewise.
9835         [generic sys/param.h] (before-compile): Do not append to variable.
9836         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
9837         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
9838         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
9839         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
9840         include.
9841         [generic sys/param.h] (sys/param.h-includes): Remove variable.
9842         [generic sys/param.h] (sys/param.h-includes): Remove rule.
9843         [generic sys/param.h] ($(addprefix
9844         $(common-objpfx),$(sys/param.h-includes))): Likewise.
9845         [generic sys/param.h] (common-generated): Do not append to
9846         variable.
9847         [generic sys/param.h] (sysdep_headers): Likewise.
9848         [generic bits/errno.h] (before-compile): Do not append to
9849         variable.
9850         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
9851         rule.
9852         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
9853         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
9854         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
9855         [generic bits/errno.h] (common-generated): Do not append to
9856         variable.
9857         [generic bits/ioctls.h] (before-compile): Do not append to
9858         variable.
9859         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
9860         rule.
9861         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
9862         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
9863         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
9864         rule.
9865         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
9866         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
9867         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
9868         [generic bits/ioctls.h] (common-generated): Do not append to
9869         variable.
9870         [generic sys/syscall.h] (syscall.h): Remove variable.
9871         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
9872         rule.
9873         [generic sys/syscall.h] (before-compile): Do not append to
9874         variable.
9875         [generic sys/syscall.h] (common-generated): Likewise.
9876         * sysdeps/unix/errnos-tmpl.c: Remove file.
9877         * sysdeps/unix/errnos.awk: Likewise.
9878         * sysdeps/unix/ioctls-tmpl.c: Likewise.
9879         * sysdeps/unix/ioctls.awk: Likewise.
9880         * sysdeps/unix/mk-local_lim.c: Likewise.
9881         * sysdeps/unix/snarf-ioctls: Likewise.
9882
9883 2012-03-19  Richard Henderson  <rth@twiddle.net>
9884
9885         * sysdeps/i386/fpu/fenv_private.h: New file.
9886         * sysdeps/i386/fpu/math_private.h: Use it.
9887         (math_opt_barrier, math_force_eval): Remove.
9888         (libc_feholdexcept_setround_53bit): Remove.
9889         (libc_feupdateenv_53bit): Remove.
9890         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9891         (math_opt_barrier, math_force_eval): Remove.
9892         (libc_feholdexcept): Remove.
9893         (libc_feholdexcept_setround): Remove.
9894         (libc_fetestexcept, libc_fesetenv): Remove.
9895         (libc_feupdateenv_test): Remove.
9896         (libc_feupdateenv, libc_feholdsetround): Remove.
9897         (libc_feresetround): Remove.
9898
9899         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
9900         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
9901
9902         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
9903         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
9904         (libc_feupdateenv_testl): New.
9905         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
9906         (libc_feupdateenv_testf): New.
9907         (libc_feupdateenv): Use libc_feupdateenv_test.
9908         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
9909         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
9910
9911         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
9912         (libc_feholdsetroundf, libc_feholdsetroundl): New.
9913         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
9914         (libc_feresetround_noex): New.
9915         (libc_feresetround_noexf): New.
9916         (libc_feresetround_noexl): New.
9917         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
9918         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
9919         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
9920         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
9921         SET_RESTORE_ROUND.
9922         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
9923         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
9924         (__cos): Likewise.
9925         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
9926         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
9927         SET_RESTORE_ROUND_NOEX.
9928         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
9929         SET_RESTORE_ROUND_NOEXF.
9930         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
9931         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
9932         (libc_feholdsetroundf): New.
9933         (libc_feresetround, libc_feresetroundf): New.
9934
9935         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
9936         (libc_feholdexcept_setround_53bit): Convert from macro to function.
9937         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
9938
9939         * sysdeps/generic/math_private.h: Include <fenv.h>.
9940         (default_libc_feholdexcept): New.
9941         (default_libc_feholdexcept_setround): New.
9942         (default_libc_fesetenv, default_libc_feupdateenv): New.
9943         (libc_feholdexcept): Only define if undefined.
9944         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
9945         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
9946         (libc_feholdexcept_setroundl): Likewise.
9947         (libc_feholdexcept_setround_53bit): Likewise.
9948         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
9949         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
9950         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
9951         (libc_feupdateenv_53bit): Likewise.
9952         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
9953         (libc_feholdexcept): Convert from macro to inline function.
9954         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
9955         (libc_fesetenv, libc_feupdateenv): Likewise.
9956
9957         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
9958         not previously defined.
9959         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
9960         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
9961         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
9962         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
9963         * sysdeps/ieee754/flt-32/math_private.h: New file.
9964         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
9965         math_private.h below SET_FLOAT_WORD.
9966         (__isnan, __isinf_ns, __finite): Remove.
9967         (__isnanf, __isinf_nsf, __finitef): Remove.
9968
9969 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
9970
9971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9972
9973 2012-03-17  David S. Miller  <davem@davemloft.net>
9974
9975         [BZ #6471]
9976         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
9977         for 2.16.
9978
9979 2012-03-16  David S. Miller  <davem@davemloft.net>
9980
9981         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
9982         warnings.
9983
9984         [BZ #6471]
9985         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
9986         properly.
9987         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
9988         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
9989         sysdep_routines when subdir is sysvipc.
9990         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
9991         __getshmlba helper.
9992
9993         * sysdeps/sparc/fpu/libm-test/ulps: Update.
9994
9995 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9996
9997         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
9998         [__LP64__].
9999
10000 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10001
10002         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10003         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10004         (__lround): Renamed to ...
10005         (__llround): This.  Replace long int with long long int.
10006         Define lround functions as aliases of llround functions.
10007         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10008
10009 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10010
10011         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10012         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10013         adresses to uintptr_t.  Replace "long int" and "unsigned long
10014         int" with "greg_t" on va_arg.
10015
10016 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10017
10018         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10019         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10020
10021         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10022         Move e_machine check before EI_CLASS check.  Handle x32
10023         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10024         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10025         SKIP_EM_IA_64 and include
10026         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10027
10028         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10029         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10030         (add_system_dir): New macro.
10031
10032         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10033         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10034
10035 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10036
10037         [BZ #2551]
10038         [BZ #2552]
10039         [BZ #2553]
10040         [BZ #2554]
10041         [BZ #2562]
10042         [BZ #2563]
10043         [BZ #2565]
10044         [BZ #2566]
10045         [BZ #2576]
10046         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10047         (y0): Likewise.
10048         * math/w_j0f.c (j0f): Likewise.
10049         (y0f): Likewise.
10050         * math/w_j0l.c (__j0l): Likewise.
10051         (__y0l): Likewise.
10052         * math/w_j1.c (j1): Likewise.
10053         (y1): Likewise.
10054         * math/w_j1f.c (j1f): Likewise.
10055         (y1f): Likewise.
10056         * math/w_j1l.c (__j1l): Likewise.
10057         (__y1l): Likewise.
10058         * math/w_jn.c (jn): Likewise.
10059         (yn): Likewise.
10060         * math/w_jnf.c (jnf): Likewise.
10061         (ynf): Likewise.
10062         * math/w_jnl.c (__jnl): Likewise.
10063         (__ynl): Likewise.
10064         * math/libm-test.inc (j0_test): Add more tests.
10065         (j1_test): Likewise.
10066         (jn_test): Likewise.  Add trailing semicolon to existing test.
10067         (y0_test): Likewise.
10068         (y1_test): Likewise.
10069         * sysdeps/i386/fpu/libm-test-ulps: Update.
10070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10071
10072         [BZ #13851]
10073         [BZ #13854]
10074         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10075         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10076         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10077         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10078         (__tanl): Set errno for infinite argument.
10079         * sysdeps/i386/fpu/mptan.c: Remove.
10080         * sysdeps/i386/fpu/s_tan.S: Likewise.
10081         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10082         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10083         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10084         * math/libm-test.inc (tan_test): Add more tests and enable more
10085         tests for double and long double.
10086         * sysdeps/i386/fpu/libm-test-ulps: Update.
10087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10088
10089 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10090
10091         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10092         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10093
10094 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10095
10096         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10097         * configure.in: Use it for both main tree and add-ons.
10098         * configure: Regenerated.
10099
10100 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10101
10102         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10103
10104 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10105
10106         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10107         in comment.
10108
10109         [BZ #13851]
10110         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10111         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10112         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10113         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10114         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10115         infinite argument.
10116         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10117         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10118         != 0 for prec == 2.
10119         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10120         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10121         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10122         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10123         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10124         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10125         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10126         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10127         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10128         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10129         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10130         * math/libm-test.inc (cos_test): Add more tests and enable more
10131         tests for long double.
10132         (sin_test): Likewise.
10133         (sincos_test): Likewise.
10134         * sysdeps/i386/fpu/libm-test-ulps: Update.
10135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10136
10137 2012-03-16  David S. Miller  <davem@davemloft.net>
10138
10139         * sysdeps/sparc/fpu/math_private.h: New file.
10140
10141 2012-03-15  David S. Miller  <davem@davemloft.net>
10142
10143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10144         file.
10145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10147         file.
10148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10149         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10150         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10151         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10152         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10153         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10154         sysdep routines.
10155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10156
10157         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10158         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10159
10160         * sysdeps/sparc/sparc-ifunc.h: New file.
10161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10162         sparc-ifunc.h
10163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10165         Likewise.
10166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10167         Likewise.
10168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10172         Likewise.
10173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10178         Likewise.
10179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10180         Likewise.
10181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10185         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10186         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10187         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10188         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10189         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10190         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10191         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10192         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10193         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10194         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10195         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10196         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10197         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10198         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10199         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10200         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10201         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10202         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10203         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10204         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10205
10206 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10207
10208         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10209         scaling.
10210         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10211
10212 2012-03-15  Andreas Jaeger  <aj@suse.de>
10213
10214         [BZ #13852]
10215         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10216         ieee754/flt-32 implementation for sin, cos and sincos.
10217         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10218         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10219         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10220         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10221         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10222         ieee754/flt-32 implementation for tan.
10223
10224         * math/libm-test.inc (cos_test): Enable some large input tests for
10225         float as well
10226         (sin_test): Likewise.
10227         (sincos_test): Likewise.
10228         (tan_test): Add tests for large input.
10229
10230         * sysdeps/i386/fpu/libm-test-ulps: Update.
10231
10232 2012-03-15  Andreas Jaeger  <aj@suse.de>
10233
10234         [BZ #13658]
10235         * math/libm-test.inc (cos_test): Add more test cases.
10236         (sin_test): Likewise.
10237         (sincos_test): Likewise.
10238
10239 2012-03-15  Andreas Jaeger  <aj@suse.de>
10240
10241         [BZ #13837]
10242         * math/libm-test.inc (cos_test): Add a test case for large input
10243         value.
10244         (sin_test): Likewise.
10245         (sincos_test): Likewise.
10246
10247 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10248         Joseph Myers  <joseph@codesourcery.com>
10249
10250         [BZ #13658]
10251         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10252         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10253         * sysdeps/i386/fpu/branred.c: Likewise.
10254         * sysdeps/i386/fpu/dosincos.c: Likewise.
10255         * sysdeps/i386/fpu/mpa.c: Likewise.
10256         * sysdeps/i386/fpu/s_cos.S: Likewise.
10257         * sysdeps/i386/fpu/s_sin.S: Likewise.
10258         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10259         * sysdeps/i386/fpu/sincos32.c: Likewise.
10260
10261         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10262         Define.
10263         (libc_feupdateenv_53bit): Define.
10264         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10265         Define.
10266         (libc_feupdateenv_53bit): Define.
10267
10268         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10269         53 bit (without extend i386 double precision).
10270
10271         * math/libm-test.inc (sincos_test): Add tests for large input.
10272         (sin): Likewise.
10273         (cos): Likewise.
10274
10275         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10276
10277 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10278
10279         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10280
10281 2012-03-15  David S. Miller  <davem@davemloft.net>
10282
10283         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10284         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10285         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10286         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10287         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10288         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10290         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10291         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10292         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10293         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10294         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10295         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10296         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10297         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10299         file.
10300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10302         file.
10303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10305         file.
10306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10308         file.
10309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10310         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10311         fmin/fmax sysdep routines.
10312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10313
10314 2012-03-14  David S. Miller  <davem@davemloft.net>
10315
10316         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10317         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10318         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10319         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10320         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10321         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10322         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10323         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10324         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10325         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10326         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10327         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10328         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10329         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10330         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10331         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10332         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10333         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10334         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10335         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10336         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10337         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10338         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10339         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10340         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10341         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10342         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10343         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10344         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10345         routines.
10346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10347         file.
10348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10350         file.
10351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10353         file.
10354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10356         file.
10357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10359         file.
10360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10362         file.
10363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10364         file.
10365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10366         file.
10367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10368         file.
10369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10370         New file.
10371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10372         file.
10373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10374         file.
10375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10377         file.
10378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10380         file.
10381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10383         file.
10384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10386         VIS3 routines.
10387
10388         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10389         New file.
10390
10391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10392
10393         * sysdeps/sparc/configure.in: New file.
10394         * sysdeps/sparc/configure: Generate.
10395         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10396         * configure: Regenerate.
10397         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10398         * config.make.in (have-as-vis3): New.
10399         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10400         available use -Av9d instead of -Av9a.
10401         * sysdeps/sparc/sparc64/Makefile: Likewise.
10402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10404         New file.
10405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10406         file.
10407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10408         New file.
10409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10410         file.
10411         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10412         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10413         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10414         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10415         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10416
10417         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10418         fzeros/fnegs to load 0x80000000 into a float register instead of
10419         using the stack.
10420         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10421
10422 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10423
10424         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10425         bits/syscall.h.
10426         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10427         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10428         ($(inst_includedir)/bits/syscall.h): Remove rule.
10429         ($(objpfx)bits/syscall.d): Include instead of
10430         $(objpfx)syscall-list.d.
10431         (generated): Change syscall-list.h and syscall-list.d to
10432         bits/syscall.h and bits/syscall.d.
10433
10434 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10435
10436         [BZ #13846]
10437         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10438
10439 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10440
10441         [BZ #13841]
10442         * math/s_csqrt.c: Include <float.h>.
10443         (__csqrt): Scale large or subnormal inputs.
10444         * math/s_csqrtf.c: Likewise.
10445         * math/s_csqrtl.c: Likewise.
10446         * math/libm-test.inc (csqrt_test): Add more tests.
10447         * sysdeps/i386/fpu/libm-test-ulps: Update.
10448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10449
10450         [BZ #13840]
10451         * math/libm-test.inc (hypot_test): Add more tests.
10452
10453 2012-03-13  David S. Miller  <davem@davemloft.net>
10454
10455         [BZ #13840]
10456         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10457         double-precision for the calculation instead of scaling.
10458
10459 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10460
10461         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10462         manipulate bits before adding and subtracting TWO52[sx].
10463         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10464         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10465         Likewise.
10466         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10467
10468 2012-03-13  David S. Miller  <davem@davemloft.net>
10469
10470         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10471         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10472         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10473         rtld-global-offsets.h
10474         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10475
10476         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10477         large parameters.
10478
10479         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10480
10481         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10482         'err' in the ifdef scope in which it is actually used.
10483
10484         * nss/nss_db/db-init.c: Include string.h
10485
10486 2012-03-12  David S. Miller  <davem@davemloft.net>
10487
10488         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10489         masking out of the most significant byte of random value used.
10490         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10491         Fix coding style in previous change.
10492
10493         * sysdeps/unix/sysv/linux/kernel-features.h
10494         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10495         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10496         expression.
10497         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10498         later.
10499
10500 2012-03-11  David S. Miller  <davem@davemloft.net>
10501
10502         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10503         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10504         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10505         for 'resultvar' otherwise things get truncated on 64-bit.
10506
10507         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10508         Fix masking out of the most significant byte of random value used.
10509
10510         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10511
10512 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10513
10514         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10515
10516 2012-03-09  David S. Miller  <davem@davemloft.net>
10517
10518         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10519         variables with appropriate CPP guards.
10520         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10521         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10522         on resulting framesize and the management of the outregs buffer for pltexit.
10523         Preserve floating point return values across _dl_call_pltexit call.
10524         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10525         framesize and the management of the outregs buffer for pltexit.
10526         Preserve floating point return values across _dl_call_pltexit
10527         call.
10528         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10529         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10530         (print_exit): Fix format string for return register value.
10531
10532 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10533
10534         * sunrpc/Makefile (others): Add rpcgen.
10535         ($(objpfx)rpcgen): Remove special build rule and dependency on
10536         libc.
10537         * sunrpc/rpcgen.c: New file.
10538
10539 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10540
10541         [BZ #13673]
10542         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10543         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10544         * sysdeps/i386/crti.S: Likewise.
10545         * sysdeps/i386/crtn.S: Likewise.
10546         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10547         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10548         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10549         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10550         * sysdeps/sh/crti.S: Likewise.
10551         * sysdeps/sh/crtn.S: Likewise.
10552         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10553
10554         [BZ #13673]
10555         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10556         with URL.
10557         * locale/programs/locfile-kw.gperf: Likewise.
10558         * locale/programs/charmap-kw.h: Regenerated.
10559         * locale/programs/locfile-kw.h: Likewise.
10560
10561         [BZ #13673]
10562         * intl/plural.y: Replace FSF snail mail address with URL.
10563         * intl/plural.c: Regenerated.
10564
10565 2012-03-09  Richard Henderson  <rth@twiddle.net>
10566
10567         * include/math_private.h: Remove file.
10568         * math/math_private.h: Move file ...
10569         * sysdeps/generic/math_private.h: ... here.
10570
10571         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10572         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10573         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10574
10575         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10576         and <math_private.h>.
10577         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10578         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10579         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10580         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10581         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10582         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10583         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10584         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10585         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10586         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10587         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10588         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10589         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10590         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10591         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10592         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10593         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10594         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10595         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10596         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10597         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10598         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10599         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10600         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10601         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10602         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10603         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10604         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10605         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10606         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10607         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10608         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10609         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10610         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10611         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10612         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10613         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10614         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10615         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10616         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10617         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10618         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10619         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10620         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10621         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10622         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10623         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10624         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10625         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10626         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10627         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10628         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10629         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10630         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10631         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10632         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10633         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10634         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10635         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10636         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10637         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10638         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10639         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10640         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10641         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10642         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10643         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10644         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10645         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10646         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10647         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10648         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10649         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10650         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10651         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10652         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10653         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10654         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10655         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10656         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10657         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10658         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10659         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10660         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10661         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10662         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10663         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10664         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10665         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10666         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10667         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10668         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10669         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10670         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10671         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10672         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10673         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10674         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10675         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10676         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10677         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10678         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10679         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10680         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10681         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10682         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10683         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10684         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10685         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10686         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10687         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10688         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10689         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10690         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10691         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10692         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10693         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10694         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10695         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10696         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10697         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10698         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10699         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10700         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10701         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10702         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10703         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10704         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10705         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10706         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10707         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10708         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10709         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10710         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10711         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10712         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10713         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10714         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10715         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10716         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10717         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10718         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10719         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10720         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10721         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10722         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10723         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10724         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10725         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10726         * sysdeps/ieee754/k_standard.c: Likewise.
10727         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10728         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10729         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10730         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10731         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10732         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10733         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10734         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10735         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10736         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10737         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10738         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10739         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10740         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10741         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10742         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10743         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10744         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10745         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10746         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10747         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10748         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10749         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10750         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10751         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10752         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10753         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10754         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10755         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10756         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10757         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10758         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10759         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10760         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10761         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10762         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10763         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10764         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
10765         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
10766         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
10767         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10768         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10769         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
10770         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
10771         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10772         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10773         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
10774         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10775         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
10776         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
10777         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
10778         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
10779         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10780         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
10781         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
10782         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
10783         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
10784         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
10785         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
10786         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
10787         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
10788         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
10789         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
10790         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10791         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10792         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10793         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10794         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10795         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10796         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10797         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10798         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10799         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10800         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10801         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10802         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10803         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
10804         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10805         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10806         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
10807         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
10808         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
10809         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
10810         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
10811         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
10812         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
10813         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
10814         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
10815         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
10816         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
10817         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
10818         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
10819         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
10820         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
10821         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
10822         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
10823         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
10824         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
10825         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
10826         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
10827         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
10828         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
10829         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
10830         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
10831         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
10832         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
10833         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
10834         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
10835         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
10836         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
10837         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
10838         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
10839         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10840         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10841         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10842         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10843         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10844         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10845         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10846         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10847         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10848         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10849         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10850         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10851         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10852         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
10853         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10854         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
10855         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
10856         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
10857         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10858         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10859         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10860         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10861         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
10862         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
10863         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
10864         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10865         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10866         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10867         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10868         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10869         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10870         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10871         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
10872         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10873         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10874         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
10875         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
10876         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
10877         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10878         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10879         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
10880         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10881         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
10882         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
10883         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
10884         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
10885         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
10886         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10887         * sysdeps/ieee754/s_lib_version.c: Likewise.
10888         * sysdeps/ieee754/s_matherr.c: Likewise.
10889         * sysdeps/ieee754/s_signgam.c: Likewise.
10890         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10891         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10892         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10893         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10894         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10895         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10896         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
10897         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
10898         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
10899         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10900         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10901         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10902         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
10903         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10904         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
10905         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10906         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10907         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10908         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10909         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10910         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10911
10912 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10913
10914         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
10915         * sunrpc/rpc_main.c: Likewise.
10916         * sunrpc/rpc_svcout.c: Likewise.
10917
10918 2012-03-09  David S. Miller  <davem@davemloft.net>
10919
10920         * include/math_private.h: New file.
10921
10922 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
10923
10924         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
10925         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
10926         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
10927         from <bits/socket_type.h>.
10928         (enum __socket_type): Don't define here.
10929         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
10930         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10931         bits/socket_type.h.
10932
10933         [BZ #13566]
10934         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
10935         checking __USE_GNU.
10936
10937         * Makerules ($(inst_includedir)/%.h): New rule.
10938         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
10939         (install-others): Remove variable setting.
10940         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
10941
10942 2012-03-08  Richard Henderson  <rth@twiddle.net>
10943
10944         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
10945         from macro to inline function; merge with the
10946         !__LIBC_INTERNAL_MATH_INLINES version.
10947         (__ieee754_sqrtf): Likewise.
10948
10949         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
10950         to inline function.
10951         (__rintf, __floor, __floorf): Likewise.
10952
10953         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
10954         macro to inline function.
10955         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
10956
10957         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
10958         not <math/math_private.h>.
10959
10960 2012-03-08  David S. Miller  <davem@davemloft.net>
10961
10962         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
10963         copyright year.
10964         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10965
10966 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
10967
10968         * resolv/gai_misc.c (handle_requests): Fix struct timespec
10969         normalization.
10970         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
10971         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
10972
10973 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
10974
10975         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
10976         be defined individually, they must be defined as a block.  Define
10977         S for printing a string instead of hidint the different by using a
10978         macro for adding the 'l'.
10979         * stdio-common/tst-fphex-wide.c: Adjust.
10980
10981 2012-03-07  Marek Polacek  <polacek@redhat.com>
10982
10983         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
10984
10985 2012-03-08  Marek Polacek  <polacek@redhat.com>
10986
10987         [BZ #13806]
10988         * stdio-common/Makefile (tests): Add tst-fphex-wide.
10989         * stdio-common/tst-fphex.c: Define a few macros to make the
10990         test reusable.  Use them.
10991         * stdio-common/tst-fphex-wide.c: New file.
10992
10993 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
10994
10995         [BZ #6911]
10996         * manual/macros.texi (gnusystems): New macro.
10997         (nongnusystems): Likewise.
10998         (gnulinuxhurdsystems): Likewise.
10999         (gnuhurdsystems): Likewise..
11000         (gnulinuxsystems): Likewise.
11001         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11002         variants of the GNU system, not "GNU system".
11003         * manual/conf.texi: Likewise.
11004         * manual/errno.texi: Likewise.  Update example of errno macro
11005         expansion.
11006         * manual/filesys.texi: Likewise.
11007         (getumask): Document as specific to GNU/Hurd.
11008         * manual/install.texi: Likewise.  Reword some references to
11009         GNU/Linux.
11010         * manual/intro.texi: Likewise.
11011         * manual/io.texi: Likewise.
11012         (File Name Portability): Detail which constraints are inapplicable
11013         to all GNU systems and which are only inapplicable to GNU/Hurd.
11014         * manual/job.texi: Likewise.
11015         * manual/llio.texi: Likewise.
11016         (O_NOCTTY): Document as present on GNU/Linux.
11017         * manual/maint.texi: Likewise.
11018         * manual/memory.texi: Likewise.
11019         * manual/pattern.texi: Likewise.
11020         * manual/pipe.texi: Likewise.
11021         * manual/process.texi: Likewise.
11022         * manual/resource.texi: Likewise.
11023         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11024         child on GNU/Hurd.
11025         * manual/setjmp.texi: Likewise.
11026         * manual/signal.texi: Likewise.
11027         * manual/startup.texi: Likewise.
11028         * manual/stdio.texi: Likewise.
11029         * manual/terminal.texi: Likewise.
11030         (ONLCR): Document as POSIX.
11031         (OXTABS): Document availability on GNU/Linux as XTABS.
11032         (ONOEOT): Document availability separately from other bits.
11033         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11034         * manual/time.texi: Likewise.
11035         * manual/users.texi: Likewise.
11036         * INSTALL: Regenerated.
11037         * sysdeps/gnu/errlist.c: Regenerated.
11038
11039         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11040         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11041         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11042         puts.
11043         * configure: Regenerated.
11044
11045 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11046
11047         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11048         default includes instead of AC_HEADER_CHECK.
11049         * sysdeps/i386/configure: Regenerated.
11050
11051         [BZ #10716]
11052         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11053         * math/s_cacoshf.c (__cacoshf): Likewise.
11054         * math/s_cacoshl.c (__cacoshl): Likewise.
11055         * math/s_casinh.c (__casinh): Set signs of result from argument.
11056         * math/s_casinhf.c (__casinhf): Likewise.
11057         * math/s_casinhl.c (__casinhl): Likewise.
11058         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11059         (casinh_test): Add more tests.
11060         * sysdeps/i386/fpu/libm-test-ulps: Update.
11061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11062
11063 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11064
11065         * po/zh_TW.po: Update from translation team.
11066
11067         * login/Makefile (distribute): Remove variable.
11068         * catgets/Makefile: Likewise.
11069         * mach/Makefile: Likewise.
11070         * malloc/Makefile: Likewise.
11071         * misc/Makefile: Likewise.
11072         * iconv/Makefile: Likewise.
11073         * nscd/Makefile: Likewise.
11074         * hurd/Makefile: Likewise.
11075         * manual/Makefile: Likewise.
11076         * locale/Makefile: Likewise.
11077         * intl/Makefile: Likewise.
11078         * conform/Makefile: Likewise.
11079         * nss/Makefile: Likewise.
11080         * time/Makefile: Likewise.
11081         * soft-fp/Makefile: Likewise.
11082         * dirent/Makefile: Likewise.
11083         * gmon/Makefile: Likewise.
11084         * po/Makefile: Likewise.
11085         * rt/Makefile: Likewise.
11086         * socket/Makefile: Likewise.
11087         * math/Makefile: Likewise.
11088         * signal/Makefile: Likewise.
11089         * debug/Makefile: Likewise.
11090         * elf/Makefile: Likewise.
11091         * timezone/Makefile: Likewise.
11092         * stdlib/Makefile: Likewise.
11093         * iconvdata/Makefile: Likewise.
11094         * sunrpc/Makefile: Likewise.
11095         * io/Makefile: Likewise.
11096         * argp/Makefile: Likewise.
11097         * inet/Makefile: Likewise.
11098         * hesiod/Makefile: Likewise.
11099         * grp/Makefile: Likewise.
11100         * csu/Makefile: Likewise.
11101         * wctype/Makefile: Likewise.
11102         * crypt/Makefile: Likewise.
11103         * libio/Makefile: Likewise.
11104         * string/Makefile: Likewise.
11105         * nis/Makefile: Likewise.
11106         * resolv/Makefile: Likewise.
11107         * stdio-common/Makefile: Likewise.
11108         * wcsmbs/Makefile: Likewise.
11109         * dlfcn/Makefile: Likewise.
11110         * posix/Makefile: Likewise.
11111
11112         [BZ #6959]
11113         * timezone/Makefile: Don't install timezone files, just the programs
11114         and scripts.
11115
11116 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11117
11118         * nss/databases.def: Add missing gshadow entry.
11119
11120         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11121
11122 2012-03-06  Marek Polacek  <polacek@redhat.com>
11123
11124         [BZ #13726]
11125         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11126         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11127         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11128         * stdio-common/tst-long-dbl-fphex.c: New file.
11129
11130 2012-03-06  David S. Miller  <davem@davemloft.net>
11131
11132         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11133         (set_obp_int): New function.
11134         (get_obp_int): New function.
11135         (__get_clockfreq_via_dev_openprom): Likewise.
11136         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11137         Avoid unused variable warnings on 'val' and use builtin_expect.
11138         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11139         __builtin_expect.
11140         (INLINE_CLONE_SYSCALL): Likewise.
11141
11142 2012-03-05  David S. Miller  <davem@davemloft.net>
11143
11144         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11145
11146 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11147
11148         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11149
11150         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11151         only for |x| >= 40.
11152         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11153
11154 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11155
11156         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11157         Replace gettimeofday with __vdso_gettimeofday.
11158
11159         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11160         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11161         __vdso_clock_gettime and __vdso_getcpu.
11162
11163         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11164         time with __vdso_time.
11165
11166 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11167
11168         * manual/lang.texi (size_t): Note types to which size_t may be
11169         equivalent with the GNU C Library, but do not describe when
11170         differences between them are significant.
11171
11172 2012-03-05  Andreas Jaeger  <aj@suse.de>
11173
11174         * sysdeps/i386/fpu/libm-test-ulps: Update.
11175
11176 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11177
11178         [BZ #3976]
11179         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11180         (__ieee754_pow): Save and restore rounding mode and use
11181         round-to-nearest for main computations.
11182         * math/libm-test.inc (pow_test_tonearest): New function.
11183         (pow_test_towardzero): Likewise.
11184         (pow_test_downward): Likewise.
11185         (pow_test_upward): Likewise.
11186         (main): Call the new functions.
11187         * sysdeps/i386/fpu/libm-test-ulps: Update.
11188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11189
11190         [BZ #3976]
11191         * math/libm-test.inc (cosh_test_tonearest): New function.
11192         (cosh_test_towardzero): Likewise.
11193         (cosh_test_downward): Likewise.
11194         (cosh_test_upward): Likewise.
11195         (sinh_test_tonearest): Likewise.
11196         (sinh_test_towardzero): Likewise.
11197         (sinh_test_downward): Likewise.
11198         (sinh_test_upward): Likewise.
11199         (main): Call the new functions.
11200         * sysdeps/i386/fpu/libm-test-ulps: Update.
11201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11202
11203 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11204
11205         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11206         default stack guard is set in last bytes.
11207         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11208
11209 2012-03-05  Kees Cook  <keescook@chromium.org>
11210
11211         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11212
11213         [BZ #13656]
11214         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11215         possibly allocate from heap instead of stack.
11216         * stdio-common/bug-vfprintf-nargs.c: New file.
11217         * stdio-common/Makefile (tests): Add nargs overflow test.
11218
11219 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11220
11221         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11222
11223 2012-03-03  Marek Polacek  <polacek@redhat.com>
11224
11225         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11226         * math/math_private.h: Likewise.
11227         * stdlib/tst-strtod.c: Likewise.
11228         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11229         * sysdeps/x86_64/bits/atomic.h: Likewise.
11230
11231 2012-03-02  David S. Miller  <davem@davemloft.net>
11232
11233         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11234         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11237         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11238         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11239         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11240         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11241
11242 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11243
11244         [BZ #13792]
11245         * manual/examples/README: New file, says the example source files
11246         can be used under GPL>=2.
11247         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11248         line containing just "*/".
11249         * manual/examples/add.c: Add copyright header (GPL>=2).
11250         * manual/examples/argp-ex1.c: Likewise.
11251         * manual/examples/argp-ex2.c: Likewise.
11252         * manual/examples/argp-ex3.c: Likewise.
11253         * manual/examples/argp-ex4.c: Likewise.
11254         * manual/examples/atexit.c: Likewise.
11255         * manual/examples/db.c: Likewise.
11256         * manual/examples/dir.c: Likewise.
11257         * manual/examples/dir2.c: Likewise.
11258         * manual/examples/execinfo.c: Likewise.
11259         * manual/examples/filecli.c: Likewise.
11260         * manual/examples/filesrv.c: Likewise.
11261         * manual/examples/fmtmsgexpl.c: Likewise.
11262         * manual/examples/genpass.c: Likewise.
11263         * manual/examples/inetcli.c: Likewise.
11264         * manual/examples/inetsrv.c: Likewise.
11265         * manual/examples/isockad.c: Likewise.
11266         * manual/examples/longopt.c: Likewise.
11267         * manual/examples/memopen.c: Likewise.
11268         * manual/examples/memstrm.c: Likewise.
11269         * manual/examples/mkfsock.c: Likewise.
11270         * manual/examples/mkisock.c: Likewise.
11271         * manual/examples/mygetpass.c: Likewise.
11272         * manual/examples/pipe.c: Likewise.
11273         * manual/examples/popen.c: Likewise.
11274         * manual/examples/rprintf.c: Likewise.
11275         * manual/examples/search.c: Likewise.
11276         * manual/examples/select.c: Likewise.
11277         * manual/examples/setjmp.c: Likewise.
11278         * manual/examples/sigh1.c: Likewise.
11279         * manual/examples/sigusr.c: Likewise.
11280         * manual/examples/stpcpy.c: Likewise.
11281         * manual/examples/strdupa.c: Likewise.
11282         * manual/examples/strftim.c: Likewise.
11283         * manual/examples/strncat.c: Likewise.
11284         * manual/examples/subopt.c: Likewise.
11285         * manual/examples/swapcontext.c: Likewise.
11286         * manual/examples/termios.c: Likewise.
11287         * manual/examples/testopt.c: Likewise.
11288         * manual/examples/testpass.c: Likewise.
11289         * manual/examples/timeval_subtract.c: Likewise.
11290
11291         [BZ #13792]
11292         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11293         function to ...
11294         * manual/timeval_subtract.c.texi: ... here, new file.
11295
11296 2012-03-02  David S. Miller  <davem@davemloft.net>
11297
11298         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11299
11300 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11301
11302         [BZ #3976]
11303         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11304         (__sin): Save and restore rounding mode and use round-to-nearest
11305         for all computations.
11306         (__cos): Save and restore rounding mode and use round-to-nearest
11307         for all computations.
11308         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11309         <fenv.h>.
11310         (tan): Save and restore rounding mode and use round-to-nearest for
11311         all computations.
11312         * math/libm-test.inc (cos_test_tonearest): New function.
11313         (cos_test_towardzero): Likewise.
11314         (cos_test_downward): Likewise.
11315         (cos_test_upward): Likewise.
11316         (sin_test_tonearest): Likewise.
11317         (sin_test_towardzero): Likewise.
11318         (sin_test_downward): Likewise.
11319         (sin_test_upward): Likewise.
11320         (tan_test_tonearest): Likewise.
11321         (tan_test_towardzero): Likewise.
11322         (tan_test_downward): Likewise.
11323         (tan_test_upward): Likewise.
11324         (main): Call the new functions.
11325         * sysdeps/i386/fpu/libm-test-ulps: Update.
11326         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11327
11328         [BZ #10135]
11329         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11330         small n, then large n, before computing and testing k+n.
11331         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11332         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11333         Likewise.
11334         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11335         Likewise.
11336         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11337         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11338         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11339         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11340         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11341         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11342         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11343         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11344         * math/libm-test.inc (scalbn_test): Add more tests.
11345         (scalbln_test): Likewise.
11346
11347         * manual/filesys.texi (mode_t): Describe constraints on size and
11348         signedness, not exact equivalence to a particular type.
11349         (ino_t): Likewise.
11350         (ino64_t): Likewise.
11351         (dev_t): Likewise.
11352         (nlink_t): Likewise.
11353         (blkcnt_t): Likewise.
11354         (blkcnt64_t): Likewise.
11355         * manual/llio.texi (off_t): Likewise.
11356
11357         [BZ #3976]
11358         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11359         (__ieee754_exp): Save and restore rounding mode and use
11360         round-to-nearest for all computations.
11361         * math/libm-test.inc (exp_test_tonearest): New function.
11362         (exp_test_towardzero): Likewise.
11363         (exp_test_downward): Likewise.
11364         (exp_test_upward): Likewise.
11365         (main): Call the new functions.
11366         * sysdeps/i386/fpu/libm-test-ulps: Update.
11367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11368
11369 2012-03-01  Chris Demetriou  <cgd@google.com>
11370
11371         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11372         have predictable order.
11373
11374 2012-03-01  David S. Miller  <davem@davemloft.net>
11375
11376         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11377
11378         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11379         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11380         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11381         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11382
11383         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11384         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11385         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11387         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11388         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11389         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11390         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11391         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11392
11393         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11394
11395         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11396         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11397         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11398
11399         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11400         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11401         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11402         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11403         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11404         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11405         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11406         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11407         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11408         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11409         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11410         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11411         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11412         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11413         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11414         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11415         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11416         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11417         * sysdeps/sparc/elf/configure: Regenerated.
11418
11419 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11420
11421         * configure.in (AS, LD): Require binutils 2.20 or later.
11422         * configure: Regenerated.
11423         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11424         as required minimum version.
11425         * INSTALL: Regenerated.
11426
11427         [BZ #2541]
11428         [BZ #4108]
11429         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11430         before squaring exponent.
11431         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11432         bottom long double and 27 bits of top long double before squaring
11433         exponent.
11434         * math/libm-test.inc (erfc_test): Add more tests.
11435         * sysdeps/i386/fpu/libm-test-ulps: Update.
11436         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11438
11439 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11440
11441         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11442         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11443         containing bit-fields.
11444         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11445         * soft-fp/single.h (_FP_UNION_S): Likewise.
11446         * soft-fp/double.h (_FP_UNION_D): Likewise.
11447
11448 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11449
11450         [BZ #13786]
11451         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11452         not include ../strcmp.S.
11453         [USE_AS_STRNCASECMP_L]: Likewise.
11454         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11455         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11456         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11457         (__strncasecmp_l_ia32): Define as alias to
11458         __strncasecmp_l_nonascii.
11459
11460         [BZ #5794]
11461         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11462         * sysdeps/i386/fpu/libm-test-ulps: Update.
11463         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11464
11465         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11466         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11467
11468 2012-02-29  Jeff Law  <law@redhat.com>
11469
11470         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11471         out of bounds read.
11472
11473 2012-02-29  Marek Polacek  <polacek@redhat.com>
11474
11475         [BZ #13706]
11476         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11477         * elf/Makefile: Add rules to run tst-unused-dep.out.
11478
11479 2012-02-28  David S. Miller  <davem@davemloft.net>
11480
11481         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11482         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11483         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11484         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11485         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11486         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11487
11488 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11489
11490         * math/libm-test.inc (llround_test): Move one test from
11491         lround_test.  Use TEST_f_L in moved test.
11492         (lround_test): Move misplaced test to llround_test.  Add testcase
11493         from bug 2561.
11494
11495 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11496
11497         * sysdeps/x86_64/fpu/e_expf.S: New file.
11498         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11499
11500 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11501
11502         [BZ #13637]
11503         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11504         of remain_len that may cause incomplete multi-byte character and
11505         false match.
11506         * posix/bug-regex33.c: New file.
11507         * posix/Makefile (tests): Add bug-regex33.
11508
11509 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11510
11511         * manual/macros.texi: New file.
11512         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11513         * manual/libc.texinfo: Include macros.texi.
11514         * manual/creatute.texi: Likewise.
11515         * manual/install.texi: Likewise.
11516         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11517         @glibcadj{} in references to the GNU C Library.
11518         * manual/charset.texi: Likewise.
11519         * manual/conf.texi: Likewise.
11520         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11521         when not using those macros.
11522         * manual/creature.texi: Likewise.
11523         * manual/crypt.texi: Likewise.
11524         * manual/errno.texi: Likewise.
11525         * manual/filesys.texi: Likewise.
11526         * manual/header.texi: Likewise.
11527         * manual/install.texi: Likewise.
11528         * manual/intro.texi: Likewise.
11529         * manual/io.texi: Likewise.
11530         * manual/job.texi: Likewise.
11531         * manual/lang.texi: Likewise.
11532         * manual/libc.texiinfo: Likewise.
11533         * manual/llio.texi: Likewise.
11534         * manual/locale.texi: Likewise.
11535         * manual/maint.texi: Likewise.
11536         * manual/math.texi: Likewise.
11537         * manual/memory.texi: Likewise.
11538         * manual/message.texi: Likewise.
11539         * manual/nss.texi: Likewise.
11540         * manual/pattern.texi: Likewise.
11541         * manual/process.texi: Likewise.
11542         * manual/resource.texi: Likewise.
11543         * manual/search.texi: Likewise.
11544         * manual/setjmp.texi: Likewise.
11545         * manual/signal.texi: Likewise.
11546         * manual/socket.texi: Likewise.
11547         * manual/startup.texi: Likewise.
11548         * manual/stdio.texi: Likewise.
11549         * manual/string.texi: Likewise.
11550         * manual/sysinfo.texi: Likewise.
11551         * manual/syslog.texi: Likewise.
11552         * manual/terminal.texi: Likewise.
11553         * manual/time.texi: Likewise.
11554         * manual/users.texi: Likewise.
11555         * INSTALL: Regenerated.
11556         * NOTES: Regenerated.
11557         * sysdeps/gnu/errlist.c: Regenerated.
11558
11559 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11560
11561         * include/dirent.h: Include <dirstream.h> before
11562         <dirent/dirent.h>.
11563
11564 2012-02-28  David S. Miller  <davem@davemloft.net>
11565
11566         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11567         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11568         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11569         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11570
11571 2012-02-27  David S. Miller  <davem@davemloft.net>
11572
11573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11575         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11576         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11577
11578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11579         frame pointer instead of stack pointer relative arg slot.
11580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11581         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11582         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11583
11584 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11585
11586         [BZ #3992]
11587         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11588
11589 2012-02-27  David S. Miller  <davem@davemloft.net>
11590
11591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11593         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11595         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11596         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11597         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11598         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11599
11600 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11601
11602         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11603         later.  Allow versions 5-9.
11604         * configure: Regenerated.
11605         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11606         required minimum version and 4.6 as recommended version.  Do not
11607         mention bugs in GCC 2.7 and 2.8.
11608         * INSTALL: Regenerated.
11609
11610 2012-02-27  David S. Miller  <davem@davemloft.net>
11611
11612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11614         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11615         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11616         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11617         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11618         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11619         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11620
11621         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11622         manipulate bits before adding and subtracting TWO112[sx].
11623         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11624
11625 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11626
11627         [BZ #13775]
11628         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11629         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11630         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11631         being in POSIX, because they are in 1003.1-2008.
11632
11633         * rt/tst-aio.c: Include <fcntl.h>.
11634         * rt/tst-aio7.c: Likewise.
11635         * rt/tst-aio64.c: Likewise.
11636
11637         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11638
11639 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11640
11641         * manual/install.texi (--with-headers): Describe headers as
11642         interface headers, not private headers.
11643         (Specific advice for GNU/Linux systems): Describe use of headers
11644         from "make headers_install", not private headers from older
11645         kernels.
11646         * INSTALL: Regenerated.
11647         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11648         Change to 2.6.19.
11649         * sysdeps/unix/sysv/linux/configure: Regenerated.
11650
11651         * manual/llio.texi (fclean): Remove documentation.
11652
11653         * manual/Makefile (libc-texi-generated): New variable.  Include
11654         version.texi.
11655         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11656         $(libc-texi-generated), not duplicated list of files.
11657         (version.texi, stamp-version): New rules.
11658         (realclean): Remove $(libc-texi-generated), not individual files
11659         from that list.  Do not remove dir-add.texinfo.
11660         * manual/libc.texinfo: Comment out uses of edition numbers and
11661         references to printed manual.  Remove last-updated dates.
11662         (EDITION): Comment out.
11663         (ISBN): Likewise.
11664         (VERSION, UPDATED): Remove.
11665         (version.texi): Include.
11666
11667 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11668
11669         * sysdeps/posix/spawni.c: Include <signal.h>.
11670         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11671         * sysdeps/pthread/aio_fsync.c: Likewise.
11672
11673 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11674
11675         * conform/Makefile (tests): Run only when not cross-compiling and
11676         when fast-check is not defined.
11677
11678         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11679         * conform/data/limits.h-data: Fixes for POSIX2008.
11680         * conform/run-conformtest.sh: Run all tests.
11681         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11682         headers.
11683         * include/bits/dlfcn.h: Likewise.
11684         * include/langinfo.h: Likewise.
11685         * include/monetary.h: Likewise.
11686         * include/sys/poll.h: Likewise.
11687
11688         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11689         for __USE_GNU.
11690         * posix/spawn.h: Define __need_sigset_t.
11691         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11692         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11693         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11694         to get sigevent_t only.
11695         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11696         only for __USE_GNU.
11697         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11698         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11699         process_vm_writev only for __USE_GNU.
11700         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11701
11702         * conform/Makefile: For now ignore errors from run-conformtest.
11703         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11704         POSIX to avoid namespace pollution.  Don't prepend headers.
11705         * conform/data/aio.h-data: Fixes for POSIX testing.
11706         * conform/data/fcntl.h-data: Likewise.
11707         * conform/data/glob.h-data: Likewise.
11708         * conform/data/grp.h-data: Likewise.
11709         * conform/data/pthread.h-data: Likewise.
11710         * conform/data/pwd.h-data: Likewise.
11711         * conform/data/signal.h-data: Likewise.
11712         * conform/data/spawn.h-data: Likewise.
11713         * conform/data/stdio.h-data: Likewise.
11714         * conform/data/stdlib.h-data: Likewise.
11715         * conform/data/stropts.h-data: Likewise.
11716         * conform/data/sys/mman.h-data: Likewise.
11717         * conform/data/sys/stat.h-data: Likewise.
11718         * conform/data/sys/types.h-data: Likewise.
11719         * conform/data/sys/wait.h-data: Likewise.
11720         * conform/data/time.h-data: Likewise.
11721         * conform/data/unistd.h-data: Likewise.
11722         * conform/data/utime.h-data: Likewise.
11723
11724         * io/sys/stat.h: fchmod was always in POSIX.
11725         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11726         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11727         * rt/aio.h: Define __need_timespec before including <time.h>.
11728         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11729         struct.  Add forward declaration of pthread_attr_t and use it in
11730         sigevent.
11731         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11732         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11733         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11734         always remove CLK_TCK definition.
11735
11736 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11737
11738         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11739
11740 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11741
11742         * conform/run-conformtest.sh: New file.
11743         * conform/Makefile: Run run-conformtest for tests.
11744         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11745         support.
11746
11747         * conform/data/uchar.h-data: New file.
11748         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11749         * conform/data/arpa/inet.h-data: Likewise.
11750         * conform/data/assert.h-data: Likewise.
11751         * conform/data/complex.h-data: Likewise.
11752         * conform/data/cpio.h-data: Likewise.
11753         * conform/data/ctype.h-data: Likewise.
11754         * conform/data/dirent.h-data: Likewise.
11755         * conform/data/dlfcn.h-data: Likewise.
11756         * conform/data/errno.h-data: Likewise.
11757         * conform/data/fcntl.h-data: Likewise.
11758         * conform/data/float.h-data: Likewise.
11759         * conform/data/fmtmsg.h-data: Likewise.
11760         * conform/data/fnmatch.h-data: Likewise.
11761         * conform/data/ftw.h-data: Likewise.
11762         * conform/data/glob.h-data: Likewise.
11763         * conform/data/grp.h-data: Likewise.
11764         * conform/data/iconv.h-data: Likewise.
11765         * conform/data/inttypes.h-data: Likewise.
11766         * conform/data/langinfo.h-data: Likewise.
11767         * conform/data/libgen.h-data: Likewise.
11768         * conform/data/limits.h-data: Likewise.
11769         * conform/data/locale.h-data: Likewise.
11770         * conform/data/math.h-data: Likewise.
11771         * conform/data/monetary.h-data: Likewise.
11772         * conform/data/mqueue.h-data: Likewise.
11773         * conform/data/ndbm.h-data: Likewise.
11774         * conform/data/net/if.h-data: Likewise.
11775         * conform/data/netdb.h-data: Likewise.
11776         * conform/data/netinet/in.h-data: Likewise.
11777         * conform/data/nl_types.h-data: Likewise.
11778         * conform/data/poll.h-data: Likewise.
11779         * conform/data/pthread.h-data: Likewise.
11780         * conform/data/pwd.h-data: Likewise.
11781         * conform/data/regex.h-data: Likewise.
11782         * conform/data/sched.h-data: Likewise.
11783         * conform/data/search.h-data: Likewise.
11784         * conform/data/semaphore.h-data: Likewise.
11785         * conform/data/setjmp.h-data: Likewise.
11786         * conform/data/signal.h-data: Likewise.
11787         * conform/data/spawn.h-data: Likewise.
11788         * conform/data/stdarg.h-data: Likewise.
11789         * conform/data/stdio.h-data: Likewise.
11790         * conform/data/stdlib.h-data: Likewise.
11791         * conform/data/string.h-data: Likewise.
11792         * conform/data/strings.h-data: Likewise.
11793         * conform/data/stropts.h-data: Likewise.
11794         * conform/data/sys/ipc.h-data: Likewise.
11795         * conform/data/sys/mman.h-data: Likewise.
11796         * conform/data/sys/msg.h-data: Likewise.
11797         * conform/data/sys/resource.h-data: Likewise.
11798         * conform/data/sys/select.h-data: Likewise.
11799         * conform/data/sys/sem.h-data: Likewise.
11800         * conform/data/sys/shm.h-data: Likewise.
11801         * conform/data/sys/socket.h-data: Likewise.
11802         * conform/data/sys/stat.h-data: Likewise.
11803         * conform/data/sys/statvfs.h-data: Likewise.
11804         * conform/data/sys/time.h-data: Likewise.
11805         * conform/data/sys/timeb.h-data: Likewise.
11806         * conform/data/sys/times.h-data: Likewise.
11807         * conform/data/sys/types.h-data: Likewise.
11808         * conform/data/sys/uio.h-data: Likewise.
11809         * conform/data/sys/un.h-data: Likewise.
11810         * conform/data/sys/utsname.h-data: Likewise.
11811         * conform/data/sys/wait.h-data: Likewise.
11812         * conform/data/syslog.h-data: Likewise.
11813         * conform/data/tar.h-data: Likewise.
11814         * conform/data/termios.h-data: Likewise.
11815         * conform/data/utime.h-data: Likewise.
11816         * conform/data/utmpx.h-data: Likewise.
11817         * conform/data/varargs.h-data: Likewise.
11818         * conform/data/wchar.h-data: Likewise.
11819         * conform/data/wctype.h-data: Likewise.
11820         * conform/data/wordexp.h-data: Likewise.
11821
11822         * include/stropts.h: New file.
11823         * include/uchar.h: New file.
11824         * include/aio.h: Changes to allow conformtest.pl to use the headers.
11825         * include/assert.h: Likewise.
11826         * include/ctype.h: Likewise.
11827         * include/dirent.h: Likewise.
11828         * include/dlfcn.h: Likewise.
11829         * include/fcntl.h: Likewise.
11830         * include/fnmatch.h: Likewise.
11831         * include/glob.h: Likewise.
11832         * include/grp.h: Likewise.
11833         * include/libio.h: Likewise.
11834         * include/locale.h: Likewise.
11835         * include/math.h: Likewise.
11836         * include/net/if.h: Likewise.
11837         * include/netdb.h: Likewise.
11838         * include/netinet/in.h: Likewise.
11839         * include/pthread.h: Likewise.
11840         * include/pwd.h: Likewise.
11841         * include/regex.h: Likewise.
11842         * include/sched.h: Likewise.
11843         * include/search.h: Likewise.
11844         * include/setjmp.h: Likewise.
11845         * include/signal.h: Likewise.
11846         * include/stdio.h: Likewise.
11847         * include/stdlib.h: Likewise.
11848         * include/string.h: Likewise.
11849         * include/sys/cdefs.h: Likewise.
11850         * include/sys/mman.h: Likewise.
11851         * include/sys/msg.h: Likewise.
11852         * include/sys/resource.h: Likewise.
11853         * include/sys/select.h: Likewise.
11854         * include/sys/socket.h: Likewise.
11855         * include/sys/stat.h: Likewise.
11856         * include/sys/statvfs.h: Likewise.
11857         * include/sys/time.h: Likewise.
11858         * include/sys/times.h: Likewise.
11859         * include/sys/uio.h: Likewise.
11860         * include/sys/utsname.h: Likewise.
11861         * include/sys/wait.h: Likewise.
11862         * include/termios.h: Likewise.
11863         * include/time.h: Likewise.
11864         * include/ulimit.h: Likewise.
11865         * include/unistd.h: Likewise.
11866         * include/utime.h: Likewise.
11867         * include/wchar.h: Likewise.
11868         * include/wctype.h: Likewise.
11869         * include/wordexp.h: Likewise.
11870
11871         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
11872
11873         * time/time.h: TIME_UTC must be a macro.
11874         Make timespec_get available for ISO C11 only as well.
11875
11876 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
11877
11878         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
11879         Reported by Peng Haitao <penght@cn.fujitsu.com>.
11880
11881 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11882
11883         * configure.in: Use -o not -a in test for unsupported multi-arch.
11884
11885 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11886
11887         * manual/texinfo.tex: Update to version 2012-01-19.16.
11888
11889 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
11890
11891         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
11892
11893 2012-02-24  Roland McGrath  <roland@hack.frob.com>
11894
11895         [BZ #13738]
11896         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
11897         * manual/fdl-1.3.texi: New file.
11898         * manual/fdl-1.1.texi: File removed.
11899
11900         [BZ #13738]
11901         * manual/libc.texinfo (FDL_VERSION): New @set.
11902         Use it for mention of FDL in cover text.
11903         (Documentation License): Use it in @include file name.
11904
11905 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11906             Roland McGrath  <roland@hack.frob.com>
11907
11908         [BZ #5461]
11909         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
11910         not LONG_LONG_MAX and LONG_LONG_MIN.
11911         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
11912         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
11913         name.
11914         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
11915
11916 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11917
11918         [BZ #2547]
11919         [BZ #11365]
11920         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
11921         manipulate bits before adding and subtracting TWO23[sx].
11922         * math/libm-test.inc (nearbyint_test): Add more tests.
11923
11924 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11925
11926         [BZ #2548]
11927         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
11928         bits before adding and subtracting TWO23[sx].
11929         * math/libm-test.inc (rint_test): Add more tests.
11930         (rint_test_tonearest): Likewise.
11931         (rint_test_towardzero): Likewise.
11932         (rint_test_downward): Likewise.
11933         (rint_test_upward: Likewise.
11934
11935 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11936
11937         [BZ #10110]
11938         * include/stdc-predef.h: New file.  Extracted from features.h.
11939         * include/features.h: Include stdc-predef.h.
11940         * Makefile (headers): Add stdc-predef.h.
11941         * CONFORMANCE (Compiler limitations): Update.
11942
11943 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
11944
11945         * manual/libc.texinfo (VERSION, UPDATED): Revert.
11946
11947 2012-02-21  David S. Miller  <davem@davemloft.net>
11948
11949         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
11950         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11951
11952 2012-02-20  David S. Miller  <davem@davemloft.net>
11953
11954         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
11955         using a normal save/restore sequence, rather than allocating a
11956         dummy stack frame just to store a frame pointer and restore.
11957         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11958
11959 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
11960
11961         * manual/install.texi: Fix stray word in line-wrapped comment.
11962
11963 2012-02-20  David S. Miller  <davem@davemloft.net>
11964
11965         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
11966         both binutils and gcc support GOTDATA.
11967
11968         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
11969         "rd %pc" in the PIC register setup sequences.
11970
11971         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
11972         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
11973         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11974         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
11975         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11976         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11977         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11978         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11979         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
11980         (SYSCALL_ERROR_HANDLER): Likewise.
11981         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11982         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11983         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
11984         (SYSCALL_ERROR_HANDLER): Likewise.
11985
11986         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
11987         (HAVE_GCC_GOTDATA): New.
11988         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
11989         relocation support in both binutils and gcc.
11990         * sysdeps/sparc/elf/configure: Regenerate.
11991
11992         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
11993         * sysdeps/sparc/sparc32/elf/configure: Delete.
11994         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
11995         * sysdeps/sparc/sparc64/elf/configure: Delete.
11996         * sysdeps/sparc/elf/configure.in: New file.
11997         * sysdeps/sparc/elf/configure: Generate.
11998
11999         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12000         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12001         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12002         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12003         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12004
12005 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12006
12007         * manual/install.texi: Do not mention specific glibc version
12008         numbers.
12009         * manual/libc.texinfo (VERSION, UPDATED): Update.
12010         (@copying): Use @copyright{} and range of years.
12011
12012 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12013
12014         [BZ #13695]
12015         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12016         [crti.S not in sysdirs] (generated): Do not append.
12017         [crti.S not in sysdirs] (omit-deps): Likewise.
12018         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12019         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12020         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12021         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12022         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12023         Likewise.
12024         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12025         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12026         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12027         * csu/defs.awk: Remove file.
12028         * sysdeps/generic/initfini.c: Likewise.
12029         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12030         variable.
12031         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12032         Likewise.
12033
12034 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12035
12036         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12037         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12038         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12039         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12040         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12041         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12042         <bits/epoll.h>.
12043         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12044         (__EPOLL_PACKED): Define to empty if not defined by
12045         <bits/epoll.h>.
12046         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12047         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12048         bits/epoll.h.
12049
12050 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12051
12052         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12053         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12054         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12055         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12056         <bits/timerfd.h>.
12057         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12058         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12059         bits/timerfd.h.
12060
12061 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12062
12063         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12064         in C locale.
12065         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12066         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12067         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12068         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12069
12070 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12071
12072         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12073         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12074
12075 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12076
12077         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12078         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12079         defined.
12080         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12081         Likewise.
12082         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12083         entry for 2.16.
12084
12085 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12086
12087         * math/w_acos.c: Use non-signaling floating-point comparisons.
12088         * math/w_acosf.c: Likewise.
12089         * math/w_acosh.c: Likewise.
12090         * math/w_acoshf.c: Likewise.
12091         * math/w_acoshl.c: Likewise.
12092         * math/w_acosl.c: Likewise.
12093         * math/w_asin.c: Likewise.
12094         * math/w_asinf.c: Likewise.
12095         * math/w_asinl.c: Likewise.
12096         * math/w_atanh.c: Likewise.
12097         * math/w_atanhf.c: Likewise.
12098         * math/w_atanhl.c: Likewise.
12099         * math/w_exp2.c: Likewise.
12100         * math/w_exp2f.c: Likewise.
12101         * math/w_exp2l.c: Likewise.
12102         * math/w_j0.c: Likewise.
12103         * math/w_j0f.c: Likewise.
12104         * math/w_j0l.c: Likewise.
12105         * math/w_j1.c: Likewise.
12106         * math/w_j1f.c: Likewise.
12107         * math/w_j1l.c: Likewise.
12108         * math/w_jn.c: Likewise.
12109         * math/w_jnf.c: Likewise.
12110         * math/w_log.c: Likewise.
12111         * math/w_log10.c: Likewise.
12112         * math/w_log10f.c: Likewise.
12113         * math/w_log10l.c: Likewise.
12114         * math/w_log2.c: Likewise.
12115         * math/w_log2f.c: Likewise.
12116         * math/w_log2l.c: Likewise.
12117         * math/w_logf.c: Likewise.
12118         * math/w_logl.c: Likewise.
12119         * math/w_sqrt.c: Likewise.
12120         * math/w_sqrtf.c: Likewise.
12121         * math/w_sqrtl.c: Likewise.
12122         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12123         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12124         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12125         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12126         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12127
12128 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12129
12130         [BZ #9739]
12131         * manual/string.texi (strnlen): Use correct parameter name in
12132         equivalent expression.
12133
12134 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12135
12136         [BZ #11174]
12137         * manual/users.texi (seteuid): Consistently use neweuid for
12138         argument name.
12139
12140 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12141
12142         [BZ #13704]
12143         * manual/nss.texi (Services in the NSS configuration): Correct
12144         list of services in example configuration file.
12145
12146 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12147
12148         [BZ #11322]
12149         * manual/arith.texi: Remove statements about negative zero
12150         behaving identically to zero.
12151
12152 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12153
12154         [BZ #5993]
12155         * manual/install.texi: Do not document upgrading from libc5.
12156
12157 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12158
12159         [BZ #4596]
12160         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12161
12162 2012-02-18  David S. Miller  <davem@davemloft.net>
12163
12164         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12165         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12166         %o7 across the call.
12167         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12168         instead.
12169         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12170         SETUP_PIC_REG_LEAF.
12171         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12172         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12173         * sysdeps/sparc/crtn.S: Likewise.
12174
12175 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12176
12177         * aout/Makefile: Remove.
12178
12179 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12180
12181         [BZ #13058]
12182         * manual/examples/argp-ex1.c (main): Format definition in GNU
12183         style.
12184         * manual/examples/argp-ex2.c (main): Likewise.
12185         * manual/examples/argp-ex3.c (main): Likewise.
12186         * manual/examples/argp-ex4.c (main): Likewise.
12187         * manual/examples/longopt.c (main): Use new-style prototype
12188         definition.
12189         * manual/examples/strncat.c (main): Specify return type and use
12190         (void) for arguments.
12191         * manual/examples/subopt.c (main): Use char **argv argument.
12192
12193 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12194
12195         [BZ #5077]
12196         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12197         rounding modes.
12198
12199 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12200
12201         [BZ #6907]
12202         * manual/string.texi (strchr): Change when strchrnul is
12203         recommended.
12204
12205 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12206
12207         [BZ #174]
12208         * manual/locale.texi (setlocale): Document LOCPATH.
12209
12210 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12211
12212         [BZ #10210]
12213         * manual/process.texi (execle): Move @dots{} before last argument.
12214
12215 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12216
12217         [BZ #12047]
12218         * manual/charset.texi (Generic Charset Conversion): Fix typo
12219         (LC_TYPE -> LC_CTYPE).
12220
12221 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12222
12223         [BZ #5805]
12224         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12225         (scalbnf): Likewise.
12226         (scalbnl): Likewise.
12227         (scalbln): Likewise.
12228         (scalblnf): Likewise.
12229         (scalblnl): Likewise.
12230         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12231         (vwarnx): Likewise.
12232         (verr): Likewise.
12233         (verrx): Likewise.
12234         * manual/filesys.texi (telldir): Use braces around return type.
12235         * manual/llio.texi (mmap): Add space after comma.
12236         (mmap64): Likewise.
12237         * manual/math.texi (jn): Use @var{} on parameter names.
12238         (jnf): Likewise.
12239         (jnl): Likewise.
12240         (yn): Likewise.
12241         (ynf): Likewise.
12242         (ynl): Likewise.
12243         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12244         line.
12245         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12246         "...".
12247         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12248         (sched_get_priority_max): Likewise.
12249         * manual/signal.texi (sigvec): Add space after comma.
12250         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12251         names.
12252         (if_indextoname): Likewise.
12253         (if_freenameindex): Likewise.
12254         (sendto): Use ',' instead of '.' in prototype.
12255         * manual/startup.texi (syscall): Use @dots{} instead of literal
12256         "...".
12257         * manual/stdio.texi (__fpending): Separate initial words of
12258         paragraph from @deftypefun line.
12259         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12260         "...".
12261         (vsyslog): Use @var{} on parameter names.
12262         * manual/terminal.texi (stty): Use @var{} on parameter names.
12263         * manual/users.texi (getutmp): Use @var{} on parameter names.
12264         (getutmpx): Likewise.
12265
12266 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12267
12268         [BZ #6884]
12269         * manual/stdio.texi (fopen): Fix typos in description of
12270         ",ccs=STRING".
12271
12272 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12273
12274         [BZ #4026]
12275         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12276         get clock_id definition.
12277
12278 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12279
12280         [BZ #4822]
12281         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12282         (madvise): Cast every argument to void on its own.
12283
12284 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12285
12286         [BZ #9902]
12287         * manual/startup.texi (Exit Status): Fix typo.
12288
12289 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12290
12291         [BZ #10140]
12292         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12293         * manual/examples/argp-ex2.c: Likewise.
12294         * manual/examples/argp-ex3.c: Likewise.
12295
12296 2012-02-16  Richard Henderson  <rth@redhat.com>
12297
12298         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12299         * sysdeps/s390/s390-32/initfini.c: Remove.
12300         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12301         * sysdeps/s390/s390-64/initfini.c: Remove.
12302
12303 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12304
12305         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12306         compiler output for sysdeps/generic/initfini.c.
12307         * sysdeps/sh/elf/initfini.c: Remove file.
12308
12309 2012-02-16  David S. Miller  <davem@davemloft.net>
12310
12311         [BZ #11494]
12312         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12313
12314         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12315         * sysdeps/sparc/crti.S: New file.
12316         * sysdeps/sparc/crtn.S: New file.
12317         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12318         * sysdeps/sparc/sparc64/Makefile: Likewise.
12319
12320 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12321
12322         [BZ #3335]
12323         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12324
12325 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12326
12327         [BZ #4822]
12328         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12329
12330         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12331         (write, read, close): Likewise.
12332         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12333
12334 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12335
12336         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12337         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12338         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12339         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12340         <bits/signalfd.h>.
12341         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12342         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12343         bits/signalfd.h.
12344
12345 2012-02-14  Marek Polacek  <polacek@redhat.com>
12346
12347         * sysdeps/x86_64/crti.S: New file.
12348         * sysdeps/x86_64/crtn.S: New file.
12349         * sysdeps/x86_64/elf/initfini.c: Remove file.
12350
12351 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12352
12353         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12354         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12355         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12356         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12357         <bits/inotify.h>.
12358         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12359         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12360         bits/inotify.h.
12361
12362 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12363
12364         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12365         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12366         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12367         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12368         <bits/eventfd.h>.
12369         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12370         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12371         bits/eventfd.h.
12372
12373 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12374
12375         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12376         __feraiseexcept instead of feraiseexcept.
12377
12378         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12379         nanosleep invocations.
12380         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12381         strings, and add error checking for a nanosleep invocations.
12382
12383 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12384
12385         Replace FSF snail mail address with URLs, as per GNU coding standards.
12386         Most of the snail mail addresses were wrong anyway, and omitting
12387         them makes the source code easier to maintain.  Almost all of the
12388         changes are to license notices and to locale LC_IDENTIFICATION
12389         addresses, except for this one:
12390         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12391         not its snail mail address.
12392
12393 2012-02-09  Richard Henderson  <rth@twiddle.net>
12394
12395         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12396         of kernel-features.h.
12397
12398         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12399
12400 2012-02-08  Marek Polacek  <polacek@redhat.com>
12401
12402         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12403         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12404         * sysdeps/gnu/_G_config.h: Likewise.
12405         * sysdeps/generic/_G_config.h: Likewise.
12406
12407 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12408
12409         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12410         tests.
12411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12412
12413         * sysdeps/powerpc/powerpc32/crti.S: New file.
12414         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12415         * sysdeps/powerpc/powerpc64/crti.S: New file.
12416         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12417
12418         * Makeconfig (have-initfini): Don't set.
12419         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12420         * configure.in (nopic_initfini): Don't substitute.
12421         * config.h.in (HAVE_INITFINI): Don't #undef.
12422         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12423         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12424
12425 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12426
12427         Support crti.S and crtn.S provided directly by architectures.
12428         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12429         [crti.S in sysdirs] (omit-deps): Likewise.
12430         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12431         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12432         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12433         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12434         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12435         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12436         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12437         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12438         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12439         compiler output for sysdeps/generic/initfini.c.
12440         * sysdeps/i386/elf/Makefile: Remove file.
12441         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12442
12443 2012-02-07  Marek Polacek  <polacek@redhat.com>
12444
12445         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12446         * sysdeps/gnu/_G_config.h: Likewise.
12447         * sysdeps/mach/hurd/_G_config.h: Likewise.
12448
12449 2012-02-07  Marek Polacek  <polacek@redhat.com>
12450
12451         * math/Makefile (tests): Add tst-CMPLX2.
12452         * math/tst-CMPLX2.c: New file.
12453
12454 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12455
12456         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12457
12458         * math/libm-test.inc (jn_test): Add missing L suffix.
12459
12460 2012-02-06  Marek Polacek  <polacek@redhat.com>
12461
12462         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12463         * sysdeps/i386/fpu/e_powf.S: Likewise.
12464         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12465         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12466         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12467         * sysdeps/i386/fpu/e_pow.S: Likewise.
12468         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12469         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12470         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12471         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12472         * sysdeps/i386/fpu/e_log2.S: Likewise.
12473         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12474         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12475         * sysdeps/i386/fpu/e_powl.S: Likewise.
12476         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12477         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12478         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12479         * sysdeps/i386/fpu/e_logl.S: Likewise.
12480         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12481         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12482         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12483         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12484         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12485         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12486         * sysdeps/i386/fpu/e_log.S: Likewise.
12487         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12488         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12489         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12490         * sysdeps/i386/fpu/e_logf.S: Likewise.
12491         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12492         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12493         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12494         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12495         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12496         * sysdeps/i386/fpu/e_log10.S: Likewise.
12497         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12498         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12499         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12500         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12501         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12502         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12503         * sysdeps/i386/asm-syntax.h: Likewise.
12504         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12505         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12506         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12507         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12508         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12509         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12510         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12511         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12512         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12513         * sysdeps/powerpc/sysdep.h: Likewise.
12514         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12515         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12516
12517 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12518
12519         [BZ #411]
12520         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12521
12522 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12523
12524         * sysdeps/i386/sysdep.h: Include <features.h>.
12525         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12526         version.
12527
12528 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12529
12530         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12531         Define.
12532         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12533         LOAD_PIC_REG_STR.
12534
12535 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12536
12537         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12538         (SETUP_PIC_REG): Use GET_PC_THUNK.
12539         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12540         macro.
12541
12542 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12543
12544         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12545         for non-PIC compilation.
12546         (SETUP_PIC_REG): Add .p2align directive.
12547         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12548         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12549         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12550         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12551         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12552         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12553         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12554         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12555         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12556         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12557         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12558         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12559         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12560         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12561         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12562         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12563         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12564         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12565         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12566         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12567         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12568         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12569         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12570         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12571         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12572         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12573         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12574         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12575         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12576         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12577         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12578         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12579         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12580         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12581         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12582         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12583         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12584         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12585         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12586         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12587         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12588
12589 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12590
12591         * math/tst-CMPLX.c: Include <stdio.h>.
12592
12593 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12594
12595         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12596         float.
12597         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12598         * sysdeps/sparc/bits/mathdef.h: Likewise.
12599
12600 2012-01-31  Marek Polacek  <polacek@redhat.com>
12601
12602         * libio/libio.h: Don't define _PARAMS.
12603         * locale/programs/config.h: Don't define PARAMS.
12604         * stdlib/strtol_l.c: Likewise.
12605         (__strtol_l): Remove PARAMS from the prototype.
12606
12607 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12608
12609         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12610         names.  Just use the correct names.  Remove unnecessary wrapper
12611         functions.
12612         * malloc/arena.c: Likewise.
12613         * malloc/hooks.c: Likewise.
12614
12615         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12616         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12617         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12618
12619 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12620
12621         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12622         into tail calls.
12623         (update_get_addr): New function.
12624         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12625         GET_ADDR_MODULE parameter.
12626
12627 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12628
12629         * crypt/cert.c: Remove __STDC__ conditionals.
12630         * crypt/crypt-entry.c: Likewise.
12631         * crypt/crypt_util.c: Likewise.
12632         * libio/filedoalloc.c: Likewise.
12633         * libio/fileops.c: Likewise.
12634         * libio/genops.c: Likewise.
12635         * libio/iofclose.c: Likewise.
12636         * libio/iofdopen.c: Likewise.
12637         * libio/iofopen.c: Likewise.
12638         * libio/iofopen64.c: Likewise.
12639         * libio/iogetdelim.c: Likewise.
12640         * libio/iopopen.c: Likewise.
12641         * libio/obprintf.c: Likewise.
12642         * libio/oldfileops.c: Likewise.
12643         * libio/oldiofclose.c: Likewise.
12644         * libio/oldiofdopen.c: Likewise.
12645         * libio/oldiofopen.c: Likewise.
12646         * libio/oldiopopen.c: Likewise.
12647         * libio/wfiledoalloc.c: Likewise.
12648         * libio/wgenops.c: Likewise.
12649         * locale/programs/xmalloc.c: Likewise.
12650         * misc/syslog.c: Likewise.
12651         * stdio-common/xbug.c: Likewise.
12652         * string/memchr.c: Likewise.
12653         * string/memcmp.c: Likewise.
12654         * string/memrchr.c: Likewise.
12655         * string/rawmemchr.c: Likewise.
12656         * sysdeps/posix/getcwd.c: Likewise.
12657         * time/strftime_l.c: Likewise.
12658
12659 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12660
12661         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12662         * config.make.in (config-cflags-sse2avx): Define.
12663         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12664         Fix typo.
12665
12666 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12667
12668         * scripts/config.guess: Update from upstream config git repository.
12669         * scripts/config.sub: Likewise.
12670
12671 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12672
12673         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12674         (EM_NUM): Update.
12675         (R_TILEPRO_*, R_TILEGX_*): New macros.
12676
12677         * scripts/firstversions.awk: Fix bug in version range handling.
12678
12679         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12680
12681         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12682
12683         * include/sys/epoll.h: New file.
12684         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12685         libc_hidden_def.
12686
12687 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12688
12689         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12690         Avoid unnecessary __WORDSIZE == 64 test.
12691         (fmaxf): Use VEX format if possible.
12692         (fmax): Likewise.
12693         (fminf): Likewise.
12694         (fmin): Likewise.
12695
12696         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12697         * math/math_private.h: Remove libc_fegetround* and
12698         libc_fesetround*.
12699         * sysdeps/i386/configure.in: Check for -msse2avx.
12700         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12701         also if SSE2AVX is defined.
12702         Remove libc_fegetround* and libc_fesetround*.
12703         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12704         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12705         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12706         of HAS_YMM_USABLE.
12707         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12708         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12709         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12710         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12711         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12712
12713         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12714
12715 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12716
12717         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12718         size is not set.
12719         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12720
12721 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12722
12723         [BZ #13618]
12724         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12725         relocation.
12726         * Makeconfig (libm): Define.
12727         * elf/Makefile: Add rules to build and run tst-relsort1.
12728         * elf/tst-relsort1.c: New file.
12729         * elf/tst-relsort1mod1.c: New file.
12730         * elf/tst-relsort1mod2.c: New file.
12731
12732 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12733
12734         * math/s_ldexp.c: Remove __STDC__ conditionals.
12735         * math/s_ldexpf.c: Likewise.
12736         * math/s_ldexpl.c: Likewise.
12737         * math/s_nextafter.c: Likewise.
12738         * math/s_nexttowardf.c: Likewise.
12739         * math/s_significand.c: Likewise.
12740         * math/s_significandf.c: Likewise.
12741         * math/s_significandl.c: Likewise.
12742         * math/w_jnl.c: Likewise.
12743         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12744         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12745         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12746         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12747         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12754         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12755         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12760         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12761         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12762         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12763         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12764         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12765         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12766         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12767         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12768         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12769         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12770         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12771         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12772         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12773         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12774         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12775         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12776         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12777         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12778         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12779         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12780         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12781         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12782         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12783         * sysdeps/ieee754/k_standard.c: Likewise.
12784         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12785         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12786         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12787         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12788         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12789         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12790         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12791         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12792         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12793         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12794         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12795         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12796         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12797         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12798         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12799         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12800         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12801         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12802         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12803         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12804         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12805         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12806         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12807         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12808         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12809         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12810         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12811         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12812         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12813         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12814         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12815         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12816         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12817         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12818         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12819         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12820         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12821         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12822         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12823         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12824         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12825         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12826         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12827         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12828         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12829         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12830         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12831         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12832         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12833         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12834         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12835         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12836         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12837         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12838         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12839         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12840         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12841         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12842         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12843         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12844         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12845         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12846         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12847         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12848         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12849         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12850         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12851         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12852         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12853         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12854         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12855         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12856         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12857         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12858         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12859         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12860         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12861         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12862         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12863         * sysdeps/ieee754/s_matherr.c: Likewise.
12864         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12865         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12866         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12867         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12868
12869 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12870
12871         * crypt/md5.h: Remove __STDC__ conditionals.
12872         * libio/libioP.h: Likewise.
12873         * locale/programs/config.h: Likewise.
12874         * sysdeps/generic/sysdep.h: Likewise.
12875         * sysdeps/i386/asm-syntax.h: Likewise.
12876         * sysdeps/s390/asm-syntax.h: Likewise.
12877         * sysdeps/unix/sysdep.h: Likewise.
12878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12880
12881 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
12882
12883         * libio/libio.h: Remove __STDC__ conditionals.
12884         * malloc/obstack.h: Likewise.
12885         * math/complex.h: Likewise.
12886         * math/math.h: Likewise.
12887         * sysdeps/generic/_G_config.h: Likewise.
12888         * sysdeps/gnu/_G_config.h: Likewise.
12889         * sysdeps/mach/hurd/_G_config.h: Likewise.
12890         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12891         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12892         * sysdeps/sparc/bits/mathdef.h: Likewise.
12893
12894 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
12895
12896         [BZ #13583]
12897         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
12898         Clean up HAS_* macros.
12899         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
12900         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
12901         possible.
12902         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
12903         HAS_AVX.
12904         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12905         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12906         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12907         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12908         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12909
12910 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
12911
12912         * elf/tst-unique3.cc (gets): Remove declaration.
12913         * elf/tst-unique3lib.cc (gets): Likewise.
12914         * elf/tst-unique3lib2.cc (gets): Likewise.
12915         * elf/tst-unique4.cc (gets): Likewise.
12916
12917 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
12918
12919         * include/stdio.h: Add C++ protection.  Add gets declarations and
12920         definitions.
12921         * debug/tst-chk1.c: Don't declare gets here.
12922         * stdio-common/tst-gets.c: Likewise.
12923
12924 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12925
12926         * posix/glob: Remove directory.
12927
12928 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
12929
12930         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
12931
12932 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
12933
12934         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
12935         of the non-standard EPFNOSUPPORT.
12936
12937 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12938
12939         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
12940         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
12941         ANYWHERE set to 1 only on KERN_NO_SPACE error.
12942
12943 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
12944
12945         * wcsmbs/uchar.h: Test __STDC_VERSION__.
12946
12947 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
12948
12949         * nscd/aicache.c (addhstaiX): Do not cache negative results of
12950         transient errors.
12951         * nscd/grpcache.c (cache_addgr): Likewise.
12952         * nscd/hstcache.c (cache_addhst): Likewise.
12953         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12954         * nscd/pwdcache.c (cache_addpw): Likewise.
12955         * nscd/servicescache.c (cache_addserv): Likewise.
12956
12957 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
12958
12959         * malloc/malloc.c: Various cleanups.
12960         * malloc/hooks.c: Likewise.
12961
12962         * stdlib/Makefile (tests): Add bug-fmtmsg1.
12963         * stdlib/bug-fmtmsg1.c: New file.
12964
12965         * stdlib/fmtmsg.c (init): Add missing unlock.
12966         Patch by Peng Haitao <penght@cn.fujitsu.com>.
12967
12968 2012-01-12  Marek Polacek  <polacek@redhat.com>
12969
12970         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
12971         and _GNU_SOURCE.
12972
12973 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12974
12975         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
12976         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
12977         macro to ensure uniqueness of label name.
12978         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12979         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12980
12981 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
12982
12983         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
12984
12985         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
12986         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12987         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12988         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
12989
12990 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
12991
12992         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
12993
12994         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
12995         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12996         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12997
12998         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
12999
13000         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13001         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13002         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13003         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13004
13005         * math/bits/math-finite.h: Add ldexp support.
13006
13007 2012-01-10  Marek Polacek  <polacek@redhat.com>
13008
13009         * locale/programs/localedef.h (show_archive_content): Add noreturn
13010         attribute.
13011
13012 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13013
13014         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13015
13016 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13017
13018         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13019
13020         * io/Makefile (headers): Add bits/poll2.h.
13021
13022 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13023
13024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13025         typo #include statement.
13026
13027 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13028
13029         * include/sys/cdefs.h: Define __attribute_alloc_size.
13030         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13031         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13032         * elf/pldd.c: Likewise.
13033         * iconv/iconv_charmap.c: Likewise.
13034         * iconv/iconvconfig.c: Likewise.
13035         * iconv/strtab.c: Likewise.
13036         * locale/programs/locale.c: Likewise.
13037         * locale/programs/localedef.h: Likewise.
13038         * locale/programs/simple-hash.c: Likewise.
13039         * nscd/nscd.h: Likewise.
13040         * nss/makedb.c: Likewise.
13041         * sysdeps/generic/ldconfig.h: Likewise.
13042         * locale/programs/localedef.c: Remove xmalloc prototype.
13043         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13044
13045 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13046
13047         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13048         appropriate.
13049
13050 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13051
13052         * math/Makefile (tests): Add tst-CMPLX.
13053         * math/tst-CMPLX.c: New file.
13054
13055         * math/complex.h (CMPLXL): Fix typo.
13056
13057         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13058         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13059         GLIBC_2.16.
13060         * debug/tst-chk1.c: Add poll and ppoll tests.
13061         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13062         * include/sys/poll.h: Add hidden proto for ppoll.
13063         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13064         * sysdeps/mach/hurd/ppoll.c: Likewise.
13065         * io/ppoll.c: Likewise.
13066         * debug/poll_chk.c: New file.
13067         * debug/ppoll_chk.c: New file.
13068         * include/bits/poll2.h: New file.
13069         * io/bits/poll2.h: New file.
13070
13071         [BZ #1350]
13072         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13073
13074         * configure.in: static is always set to yes.  Remove.
13075         * config.make.in: Don't set build-static.
13076         * Makeconfig: Remove use of build-static.
13077         * dlfcn/Makefile: Likewise.
13078         * elf/Makefile: Likewise.
13079         * math/Makefile: Likewise.
13080         * misc/Makefile: Likewise.
13081         * nptl/Makefile: Likewise.
13082         * sysdeps/mach/hurd/Makefile: Likewise.
13083
13084         * configure.in: PWD_P is not used anymore.
13085         * config.make.in: Remove PWD_P entry.
13086
13087         * configure.in: Remove last remnants of RANLIB.
13088         No need to check for signed size_t anymore.
13089         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13090         and IA-64.
13091         Remove __builtin_expect test because we require at least gcc 3.4.
13092         * aclocal.m4: Likewise.
13093
13094         * wcsmbs/mbrtoc16.c: Implement using towc function.
13095         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13096         * wcsmbs/wcsmbsload.c: Likewise.
13097         * iconv/gconv_simple.c: Likewise.
13098         * iconv/gconv_int.h: Likewise.
13099         * iconv/gconv_builtin.h: Likewise.
13100         * iconv/iconv_prog.c: Remove CHAR16 handling.
13101
13102         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13103
13104         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13105
13106         * configure.in: Remove --with-elf and --enable-bounded options.
13107         Dont set base_machine for ia64.  More non-ELF conditions removed.
13108         Remove testing and setting of leading underscore information.
13109         * config.make.in (build-bounded): Set to no.
13110         * config.h.in: Remove NO_UNDERSCORES entry.
13111         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13112         them.
13113         * csu/start.c: Remove !NO_UNDERSCORE code.
13114         * locale/localeinfo.h: Likewise.
13115         * sysdeps/generic/machine-gmon.h: Likewise.
13116         * sysdeps/generic/sysdep.h: Likewise.
13117         * sysdeps/i386/sysdep.h: Likewise.
13118         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13119         * sysdeps/mach/sysdep.h: Likewise.
13120         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13121         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13122         * sysdeps/sh/sysdep.h: Likewise.
13123         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13124         * sysdeps/unix/i386/sysdep.S: Likewise.
13125         * sysdeps/unix/sparc/start.c: Likewise.
13126         * sysdeps/unix/sparc/sysdep.S: Likewise.
13127         * sysdeps/unix/sparc/sysdep.h: Likewise.
13128         * sysdeps/unix/start.c: Likewise.
13129         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13130         * sysdeps/x86_64/sysdep.h: Likewise.
13131
13132 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13133
13134         [BZ #13553]
13135         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13136         for non-gcc.
13137         * argp/argp-fmtstream.h: Use const instead __const.
13138         * argp/argp.h: Likewise.
13139         * assert/assert.h: Likewise.
13140         * bits/fenv.h: Likewise.
13141         * bits/sched.h: Likewise.
13142         * bits/sigset.h: Likewise.
13143         * bits/sigthread.h: Likewise.
13144         * catgets/nl_types.h: Likewise.
13145         * conform/data/pthread.h-data: Likewise.
13146         * crypt/crypt-private.h: Likewise.
13147         * crypt/crypt.h: Likewise.
13148         * crypt/crypt_util.c: Likewise.
13149         * ctype/ctype.h: Likewise.
13150         * debug/execinfo.h: Likewise.
13151         * debug/mbsnrtowcs_chk.c: Likewise.
13152         * debug/mbsrtowcs_chk.c: Likewise.
13153         * debug/wcsnrtombs_chk.c: Likewise.
13154         * debug/wcsrtombs_chk.c: Likewise.
13155         * debug/wcstombs_chk.c: Likewise.
13156         * dirent/dirent.h: Likewise.
13157         * dlfcn/dlfcn.h: Likewise.
13158         * elf/neededtest4.c: Likewise.
13159         * grp/grp.h: Likewise.
13160         * gshadow/gshadow.h: Likewise.
13161         * iconv/gconv.h: Likewise.
13162         * iconv/gconv_int.h: Likewise.
13163         * iconv/gconv_simple.c: Likewise.
13164         * iconv/iconv.h: Likewise.
13165         * iconv/loop.c: Likewise.
13166         * iconv/skeleton.c: Likewise.
13167         * include/aio.h: Likewise.
13168         * include/aliases.h: Likewise.
13169         * include/argz.h: Likewise.
13170         * include/arpa/inet.h: Likewise.
13171         * include/assert.h: Likewise.
13172         * include/dirent.h: Likewise.
13173         * include/dlfcn.h: Likewise.
13174         * include/execinfo.h: Likewise.
13175         * include/fcntl.h: Likewise.
13176         * include/fenv.h: Likewise.
13177         * include/glob.h: Likewise.
13178         * include/grp.h: Likewise.
13179         * include/libintl.h: Likewise.
13180         * include/mntent.h: Likewise.
13181         * include/netdb.h: Likewise.
13182         * include/pwd.h: Likewise.
13183         * include/rpc/netdb.h: Likewise.
13184         * include/sched.h: Likewise.
13185         * include/search.h: Likewise.
13186         * include/shadow.h: Likewise.
13187         * include/signal.h: Likewise.
13188         * include/stdio.h: Likewise.
13189         * include/stdlib.h: Likewise.
13190         * include/string.h: Likewise.
13191         * include/sys/socket.h: Likewise.
13192         * include/sys/stat.h: Likewise.
13193         * include/sys/statfs.h: Likewise.
13194         * include/sys/statvfs.h: Likewise.
13195         * include/sys/syslog.h: Likewise.
13196         * include/sys/time.h: Likewise.
13197         * include/sys/uio.h: Likewise.
13198         * include/time.h: Likewise.
13199         * include/unistd.h: Likewise.
13200         * include/utmp.h: Likewise.
13201         * include/wchar.h: Likewise.
13202         * include/wctype.h: Likewise.
13203         * inet/aliases.h: Likewise.
13204         * inet/arpa/inet.h: Likewise.
13205         * inet/netinet/ether.h: Likewise.
13206         * inet/netinet/in.h: Likewise.
13207         * intl/libintl.h: Likewise.
13208         * io/bits/fcntl2.h: Likewise.
13209         * io/fcntl.h: Likewise.
13210         * io/ftw.h: Likewise.
13211         * io/sys/poll.h: Likewise.
13212         * io/sys/stat.h: Likewise.
13213         * io/sys/statfs.h: Likewise.
13214         * io/sys/statvfs.h: Likewise.
13215         * io/utime.h: Likewise.
13216         * libio/bits/stdio.h: Likewise.
13217         * libio/bits/stdio2.h: Likewise.
13218         * libio/libio.h: Likewise.
13219         * libio/libioP.h: Likewise.
13220         * libio/stdio.h: Likewise.
13221         * locale/lc-ctype.c: Likewise.
13222         * locale/locale.h: Likewise.
13223         * login/utmp.h: Likewise.
13224         * malloc/arena.c: Likewise.
13225         * malloc/malloc.c: Likewise.
13226         * malloc/malloc.h: Likewise.
13227         * malloc/mcheck.c: Likewise.
13228         * malloc/mtrace.c: Likewise.
13229         * math/bits/mathcalls.h: Likewise.
13230         * math/fenv.h: Likewise.
13231         * math/math_private.h: Likewise.
13232         * misc/bits/error.h: Likewise.
13233         * misc/bits/syslog.h: Likewise.
13234         * misc/err.h: Likewise.
13235         * misc/error.h: Likewise.
13236         * misc/fstab.h: Likewise.
13237         * misc/mntent.h: Likewise.
13238         * misc/regexp.h: Likewise.
13239         * misc/search.h: Likewise.
13240         * misc/sgtty.h: Likewise.
13241         * misc/sys/mman.h: Likewise.
13242         * misc/sys/syslog.h: Likewise.
13243         * misc/sys/uio.h: Likewise.
13244         * misc/sys/xattr.h: Likewise.
13245         * misc/ttyent.h: Likewise.
13246         * nis/rpcsvc/ypclnt.h: Likewise.
13247         * nss/nss.h: Likewise.
13248         * posix/bits/unistd.h: Likewise.
13249         * posix/fnmatch.h: Likewise.
13250         * posix/glob.h: Likewise.
13251         * posix/sched.h: Likewise.
13252         * posix/spawn.h: Likewise.
13253         * posix/sys/wait.h: Likewise.
13254         * posix/unistd.h: Likewise.
13255         * posix/wordexp.h: Likewise.
13256         * pwd/pwd.h: Likewise.
13257         * resolv/netdb.h: Likewise.
13258         * resource/sys/resource.h: Likewise.
13259         * rt/aio.h: Likewise.
13260         * rt/bits/mqueue2.h: Likewise.
13261         * rt/mqueue.h: Likewise.
13262         * shadow/shadow.h: Likewise.
13263         * signal/signal.h: Likewise.
13264         * socket/send.c: Likewise.
13265         * socket/sendto.c: Likewise.
13266         * socket/sys/socket.h: Likewise.
13267         * stdio-common/printf.h: Likewise.
13268         * stdlib/bits/stdlib.h: Likewise.
13269         * stdlib/fmtmsg.h: Likewise.
13270         * stdlib/monetary.h: Likewise.
13271         * stdlib/stdlib.h: Likewise.
13272         * stdlib/ucontext.h: Likewise.
13273         * streams/stropts.h: Likewise.
13274         * string/argz.h: Likewise.
13275         * string/bits/string2.h: Likewise.
13276         * string/string.h: Likewise.
13277         * string/strings.h: Likewise.
13278         * sunrpc/rpc/auth.h: Likewise.
13279         * sunrpc/rpc/auth_des.h: Likewise.
13280         * sunrpc/rpc/clnt.h: Likewise.
13281         * sunrpc/rpc/netdb.h: Likewise.
13282         * sunrpc/rpc/pmap_clnt.h: Likewise.
13283         * sunrpc/rpc/xdr.h: Likewise.
13284         * sysdeps/generic/inttypes.h: Likewise.
13285         * sysdeps/generic/net/if.h: Likewise.
13286         * sysdeps/generic/sys/swap.h: Likewise.
13287         * sysdeps/gnu/net/if.h: Likewise.
13288         * sysdeps/gnu/utmpx.h: Likewise.
13289         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13290         * sysdeps/i386/i486/bits/string.h: Likewise.
13291         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13292         * sysdeps/s390/bits/string.h: Likewise.
13293         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13294         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13295         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13296         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13297         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13298         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13299         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13300         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13301         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13302         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13303         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13304         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13305         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13306         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13307         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13308         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13309         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13310         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13311         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13312         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13313         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13314         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13315         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13316         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13317         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13318         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13319         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13320         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13321         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13322         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13323         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13324         * sysvipc/sys/ipc.h: Likewise.
13325         * sysvipc/sys/msg.h: Likewise.
13326         * sysvipc/sys/sem.h: Likewise.
13327         * sysvipc/sys/shm.h: Likewise.
13328         * termios/termios.h: Likewise.
13329         * time/sys/time.h: Likewise.
13330         * time/time.h: Likewise.
13331         * wcsmbs/bits/wchar2.h: Likewise.
13332         * wcsmbs/uchar.h: Likewise.
13333         * wcsmbs/wchar.h: Likewise.
13334         * wctype/wctype.h: Likewise.
13335
13336         [BZ #13551]
13337         * Makeconfig: Remove all but ELF support including AIX support.
13338         * Makerules: Likewise.
13339         * config.h.in: Likewise.
13340         * config.make.in: Likewise.
13341         * configure: Likewise.
13342         * configure.in: Likewise.
13343         * csu/Makefile: Likewise.
13344         * csu/version.c: Likewise.
13345         * debug/Makefile: Likewise.
13346         * dlfcn/Makefile: Likewise.
13347         * elf/Makefile: Likewise.
13348         * extra-lib.mk: Likewise.
13349         * iconv/Makefile: Likewise.
13350         * include/libc-symbols.h: Likewise.
13351         * include/shlib-compat.h: Likewise.
13352         * resolv/Makefile: Likewise.
13353         * resolv/res_libc.c: Likewise.
13354         * rt/Makefile: Likewise.
13355         * sysdeps/i386/asm-syntax.h: Likewise.
13356         * sysdeps/i386/sysdep.h: Likewise.
13357         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13358         * sysdeps/mach/sysdep.h: Likewise.
13359         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13360         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13361         * sysdeps/s390/asm-syntax.h: Likewise.
13362         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13363         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13364         * sysdeps/sh/sysdep.h: Likewise.
13365         * sysdeps/unix/sparc/sysdep.h: Likewise.
13366         * sysdeps/wordsize-32/divdi3.c: Likewise.
13367         * sysdeps/x86_64/sysdep.h: Likewise.
13368
13369         * argp/Versions: Remove _argp_unlock_xxx.
13370
13371         [BZ #13559]
13372         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13373         * abilist/libBrokenLocale.abilist: Likewise.
13374         * abilist/libanl.abilist: Likewise.
13375         * abilist/libc.abilist: Likewise.
13376         * abilist/libcrypt.abilist: Likewise.
13377         * abilist/libdl.abilist: Likewise.
13378         * abilist/libm.abilist: Likewise.
13379         * abilist/libnsl.abilist: Likewise.
13380         * abilist/libpthread.abilist: Likewise.
13381         * abilist/libresolv.abilist: Likewise.
13382         * abilist/librt.abilist: Likewise.
13383         * abilist/libthread_db.abilist: Likewise.
13384         * abilist/libutil.abilist: Likewise.
13385         * abilist/libnss_db.abilist: New file.
13386
13387         * scripts/abilist.awk: Add support for indirect functions.
13388
13389         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13390
13391         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13392
13393         * shlib-versions: Remove entries for ports architectures.
13394
13395         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13396         files in ports.
13397         * elf/stackguard-macros.h: Remove support for IA-64.
13398         * elf/tst-auditmod1.c: Likewise.
13399         * sysdeps/generic/ldsodefs.h: Likewise.
13400
13401         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13402         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13403         configure files.
13404
13405         [BZ #13552]
13406         * configure.in: Remove --enable-omitfp support.
13407         * FAQ.in: Adjust.
13408         * config.make.in: Likewise.
13409         * Makeconfig: Likewise.
13410         * manual/install.texi: Likewise.
13411
13412         In case anyone cares, the IA-64 architecture could move to ports.
13413         * sysdeps/ia64/*: Removed.
13414         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13415         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13416
13417         [BZ #13555]
13418         * configure.in: Remove entries for unsupported architectures.
13419
13420         [BZ #13533]
13421         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13422         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13423         routines.
13424         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13425         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13426         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13427         fall back to using wcrtomb.
13428         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13429         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13430         renaming.
13431         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13432         * wcsmbs/tst-c16c32-1.c: New file.
13433
13434         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13435         local variable.
13436
13437         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13438
13439         * elf/tst-unique3.cc: Add explicit declaration of gets.
13440         * elf/tst-unique3lib.cc: Likewise.
13441         * elf/tst-unique3lib2.cc: Likewise.
13442         * elf/tst-unique4.cc: Likewise.
13443
13444         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13445
13446 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13447
13448         [BZ #13566]
13449         * assert/assert.h (static_assert): Don't define for C++.
13450         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13451         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13452
13453 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13454
13455         * iconv/loop.c (single loop): Fix assertion in storing of
13456         remaining bytes.
13457
13458         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13459
13460 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13461
13462         * posix/getconf.c: Update copyright year.
13463         * nss/getent.c: Likewise.
13464         * nss/makedb.c: Likewise.
13465         * iconv/iconvconfig.c: Likewise.
13466         * iconv/iconv_prog.c: Likewise.
13467         * elf/ldconfig.c: Likewise.
13468         * elf/pldd.c: Likewise.
13469         * elf/sotruss.ksh: Likewise.
13470         * catgets/gencat.c: Likewise.
13471         * csu/version.c: Likewise.
13472         * elf/ldd.bash.in: Likewise.
13473         * elf/sprof.c (print_version): Likewise.
13474         * locale/programs/locale.c: Likewise.
13475         * locale/programs/localedef.c: Likewise.
13476         * login/programs/pt_chown.c: Likewise.
13477         * nscd/nscd.c (print_version): Likewise.
13478         * debug/xtrace.sh: Likewise.
13479         * malloc/memusage.sh: Likewise.
13480         * malloc/mtrace.pl: Likewise.
13481         * debug/catchsegv.sh: Likewise.
13482
13483 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13484
13485         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13486         pure attribute.
13487
13488 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13489
13490         [BZ #13533]
13491         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13492         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13493         transformations.
13494         * iconv/gconv_int.h: Likewise.
13495         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13496         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13497         from libc for GLIBC_2.16.
13498         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13499         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13500         * wcsmbs/uchar.h: Really define mbstate_t.
13501         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13502         * wcsmbs/c16rtomb.c: New file.
13503         * wcsmbs/mbrtoc16.c: New file.
13504         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13505         for C/POSIX locale.
13506         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13507         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13508
13509         * wcsmbs/wchar.h: Add missing __restrict.
13510
13511 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13512
13513         [BZ #13532]
13514         * time/Makefile (routines): Add timespec_get.
13515         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13516         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13517         timespec for ISO C11.
13518         * time/timespec_get.c: New file.
13519         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13520         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13521
13522         [BZ #13531]
13523         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13524         * stdlib/stdlib.h: Declare aligned_alloc.
13525         * Versions.def: Add GLIBC_2.16 for libc.
13526         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13527
13528         [BZ 13527]
13529         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13530         ISO C11.
13531
13532         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13533         code.
13534
13535         [BZ #13528]
13536         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13537
13538         [BZ #13529]
13539         * assert/assert.h (static_assert): Define.
13540
13541         * version.h: Update for 2.16 development version.
13542
13543         [BZ #13526]
13544         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13545         _ISOC11_SOURCE.
13546
13547         * version.h (RELEASE): Bump for 2.15 release.
13548         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13549
13550         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13551         Patch by Marek Polacek <mpolacek@redhat.com>.
13552
13553         * bits/byteswap.h: Protect long long constants with __extension__.
13554         * sysdeps/i386/bits/byteswap.h: Likewise.
13555         * sysdeps/ia64/bits/byteswap.h: Likewise.
13556         * sysdeps/s390/bits/byteswap.h: Likewise.
13557         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13558
13559 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13560
13561         [BZ #13540]
13562         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13563         destination buffer.
13564         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13565
13566 2011-12-23  Marek Polacek  <polacek@redhat.com>
13567
13568         * elf/dl-addr.c (determine_info): Add inline keyword.
13569         * elf/tst-auditmod4b.c (check_avx): Likewise.
13570         * elf/tst-auditmod6b.c (check_avx): Likewise.
13571         * elf/tst-auditmod6c.c (check_avx): Likewise.
13572         * elf/tst-auditmod7b.c (check_avx): Likewise.
13573
13574 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13575
13576         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13577         !__SSE_MATH__.
13578
13579 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13580
13581         [BZ #13540]
13582         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13583         processing for last bytes.
13584
13585 2011-08-06  Bruno Haible  <bruno@clisp.org>
13586
13587         [BZ #13061]
13588         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13589         U+0385, not to U+1FEE.
13590
13591         [BZ #13062]
13592         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13593         entry for U+00A5 U+0301.
13594
13595 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13596
13597         [BZ #13166]
13598         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13599         buffer for the output is too small.
13600
13601         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13602         optimization.
13603
13604         [BZ #13185]
13605         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13606         SSE flags if possible.
13607
13608 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13609
13610         [BZ #13540]
13611         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13612         processing for last bytes.
13613
13614 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13615
13616         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13617         (syscall-list-default-options, syscall-list-default-condition)
13618         (syscall-list-includes): Define.
13619         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13620         list of ABIs and options and #if conditions for each ABI.  Do not
13621         handle common syscalls between ABIs specially.
13622         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13623         Remove.
13624         (syscall-list-variants, syscall-list-32bit-options)
13625         (syscall-list-32bit-condition, syscall-list-64bit-options)
13626         (syscall-list-64bit-condition): Define.
13627         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13628         (syscall-list-variants, syscall-list-32bit-options)
13629         (syscall-list-32bit-condition, syscall-list-64bit-options)
13630         (syscall-list-64bit-condition): Define.
13631         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13632         Remove.
13633         (syscall-list-variants, syscall-list-32bit-options)
13634         (syscall-list-32bit-condition, syscall-list-64bit-options)
13635         (syscall-list-64bit-condition): Define.
13636         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13637         Remove.
13638         (syscall-list-variants, syscall-list-32bit-options)
13639         (syscall-list-32bit-condition, syscall-list-64bit-options)
13640         (syscall-list-64bit-condition): Define.
13641
13642 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13643
13644         * locale/iso-639.def: Add brx entry.
13645
13646         [BZ #13328]
13647         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13648         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13649
13650         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13651         __feraiseexcept_renamed.
13652
13653 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13654
13655         [BZ #13538]
13656         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13657         EPOLLET with unsigned values.
13658         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13659         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13660
13661         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13662         to large cancellation.
13663         * math/s_cacoshf.c: Likewise.
13664         * math/s_cacoshl.c: Likewise.
13665
13666 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13667
13668         [BZ #13305]
13669         [BZ #12786]
13670         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13671         * math/s_cacoshf.c: Likewise.
13672         * math/s_cacoshl.c: Likewise.
13673
13674 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13675
13676         [BZ #13439]
13677         * iconv/gconv.h: Define __GCONV_SWAP.
13678         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13679         * iconvdata/utf-16.c: Likewise.
13680         * iconvdata/utf-32.c: Likewise.
13681
13682 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13683
13684         [BZ #13524]
13685         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13686         numerator after shifting it by one limb.
13687
13688 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13689
13690         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13691         under [__USE_EXTERN_INLINES].
13692
13693 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13694
13695         [BZ #13446]
13696         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13697
13698 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13699
13700         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13701         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13702         optimized code.
13703         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13704         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13705         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13706         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13707         for strncasecmp/strncasecmp_l compilation.
13708         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13709         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13710
13711 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13712
13713         [BZ #13484]
13714         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13715         of __asm__.
13716
13717 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13718
13719         [BZ #13506]
13720         * time/tzfile.c (__tzfile_read): Check values from file header.
13721
13722 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13723
13724         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13725         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13726         * powerpc/powerpc32/dl-start.S: Likewise.
13727         * powerpc/powerpc32/elf/start.S: Likewise.
13728         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13729         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13730         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13731         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13732         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13733         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13734         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13735         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13736         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13737         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13738         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13739         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13740         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13741         * powerpc/powerpc32/memset.S: Likewise.
13742         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13743         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13744         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13745         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13746         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13747         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13748         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13749         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13750         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13751         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13752         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13753         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13754         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13755
13756 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13757
13758         * math/libm-test.inc: Added more nearbyint tests.
13759         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13760         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13761         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13762         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13763
13764 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
13765
13766         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
13767         FD_CLOEXEC.
13768
13769 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13770
13771         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
13772         Add wcscpy-ssse3 wcscpy-c.
13773         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
13774         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
13775         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
13776         * sysdeps/x86_64/wcschr.S: New file.
13777         * sysdeps/x86_64/wcsrchr.S: New file.
13778         * string/test-strcmp.c: Remove checking of wcscmp function for
13779         wrong alignments.
13780         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
13781         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
13782         wcsrchr-sse2 wcsrchr-c.
13783         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
13784         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
13785         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
13786         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
13787         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
13788         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
13789         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
13790         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
13791         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
13792         * wcsmbc/wcschr.c (WCSCHR): New macro.
13793
13794 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13795
13796         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
13797         * wcsmbs/test-wcsrchr.c: New file.
13798         * string/test-strrchr.c: Add wcsrchr support.
13799         (WIDE): New macro.
13800         * wcsmbs/test-wcscpy.c: New file.
13801         * string/test-strcpy.c: Add wcscpy support.
13802         (WIDE): New macro.
13803
13804 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
13805
13806         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
13807         the inner loop.
13808
13809 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
13810
13811         [BZ #13472]
13812         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
13813
13814 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
13815
13816         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
13817         Minor optimizations.
13818
13819         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
13820         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
13821         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
13822
13823 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
13824
13825         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
13826         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
13827         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
13828         for gcc to avoid warnings.
13829         * inet/Makefile (tests): Add tst-checks.
13830         * inet/tst-checks.c: New file.
13831
13832         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
13833         warning.
13834
13835         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
13836         __wmemcmp_sse2.
13837
13838         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
13839         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
13840
13841         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
13842
13843 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
13844
13845         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
13846         problem.
13847
13848         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
13849
13850 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
13851
13852         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
13853         conditional on GCC version.
13854         (__arch_compare_and_exchange_val_8_acq)
13855         (__arch_compare_and_exchange_val_16_acq)
13856         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
13857         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
13858         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
13859
13860 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
13861
13862         * sysdeps/sh/backtrace.c: New file.
13863
13864 2011-12-02  Andreas Schwab  <schwab@redhat.com>
13865
13866         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
13867         parenthesis.
13868
13869 2011-12-01  Andreas Schwab  <schwab@redhat.com>
13870
13871         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
13872         falling back to utime.
13873
13874 2011-11-30  Andreas Schwab  <schwab@redhat.com>
13875
13876         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
13877         expectations for float.
13878
13879 2011-11-29  Andreas Schwab  <schwab@redhat.com>
13880
13881         * locale/weight.h (findidx): Add parameter len.
13882         * locale/weightwc.h (findidx): Likewise.
13883         * posix/fnmatch_loop.c (FCT): Adjust caller.
13884         * posix/regcomp.c (build_equiv_class): Likewise.
13885         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
13886         * posix/regexec.c (check_node_accept_bytes): Likewise.
13887         * string/strcoll_l.c (STRCOLL): Likewise.
13888         * string/strxfrm_l.c (STRXFRM): Likewise.
13889
13890 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
13891
13892         * Makefile.in: Remove CVSOPT handling.
13893         * configure.in: Remove use of AC_REVISION.
13894         * iconvdata/Makefile (distribute): No need to filter out CVS.
13895         * scripts/list-sources.sh: Remove CVS, subversion and monotone
13896         handling.
13897
13898 2011-11-16  Andreas Schwab  <schwab@redhat.com>
13899
13900         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
13901         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
13902         [USE_AS_STRNCASECMP_L]: Likewise.
13903         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
13904         NO_TLS_DIRECT_SEG_REFS.
13905         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
13906         Fix argument offsets for non-PIC.
13907         [USE_AS_STRNCASECMP_L]: Likewise.
13908         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
13909         NO_TLS_DIRECT_SEG_REFS.
13910
13911 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13912
13913         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
13914         O_CLOEXEC.
13915         * locale/loadlocale.c (_nl_load_locale): Likewise.
13916
13917 2011-11-15  Andreas Schwab  <schwab@redhat.com>
13918
13919         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
13920         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
13921         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
13922         (SYSCALL_GETTIME): Set errno on error.
13923
13924         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
13925         count references to noai6ai_cached.
13926
13927 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
13928
13929         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
13930
13931         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
13932         FD_CLOEXEC for /proc/self/maps.
13933
13934         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
13935         FD_CLOEXEC for /proc/meminfo.
13936
13937         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
13938         gai.conf.
13939
13940         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
13941         FD_CLOEXEC for given file.
13942
13943         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
13944
13945         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
13946         FD_CLOEXEC for /etc/hosts.
13947         (_gethtent): Likewise.
13948
13949         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
13950
13951         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
13952         cancellation and set FD_CLOEXEC for /etc/netgroup.
13953
13954         * nss/nss_files/files-key.c (search): Don't allow cancellation when
13955         reading /etc/publickey.
13956
13957         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
13958         allow cancellation when reading /etc/group.
13959
13960         * nss/nss_files/files-alias.c (internal_setent): Don't allow
13961         cancellation.
13962         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
13963
13964         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
13965         when using data file.
13966
13967         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
13968
13969         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
13970         (write_nis_obj): Use "c" and "e" in fopen.
13971
13972         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
13973
13974         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
13975
13976         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
13977
13978         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
13979
13980         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
13981         locale.alias.
13982
13983         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
13984
13985         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
13986
13987         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
13988
13989         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
13990         file parsing and set FD_CLOEXEC.
13991
13992 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
13993
13994         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
13995
13996 2011-11-14  Andreas Schwab  <schwab@redhat.com>
13997
13998         * malloc/arena.c (arena_get2): Don't call reused_arena when
13999         _int_new_arena failed.
14000
14001 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14002
14003         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14004         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14005         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14006         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14007         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14008         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14009         to compile strcasecmp and strncasecmp.
14010         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14011         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14012
14013         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14014
14015 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14016
14017         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14018         locale-defines.sym to gen-as-const-headers.
14019         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14020         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14021         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14022         to compile strcasecmp and strncasecmp.
14023         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14024         strcasecmp_l and strncasecmp_l.
14025         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14026         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14027         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14028         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14029         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14030         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14031         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14032         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14033         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14034         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14035         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14036
14037 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14038
14039         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14040         result of SYSDEP_GETTIME_CPU to retval.
14041         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14042         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14043
14044         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14045         variable.
14046
14047         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14048         mantissa words.
14049         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14050
14051         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14052         from unused variable.
14053
14054         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14055         DWARF definitions.
14056         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14057         for assembling.
14058
14059         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14060         over namespaces.
14061
14062         * sunrpc/rpc_prot.c (rejected): Fix case value.
14063
14064         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14065         unsigned long long int to avoid warnings in shift.
14066
14067         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14068         of use of trans.
14069         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14070         variable tmp.
14071
14072         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14073         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14074         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14075
14076         * nis/nis_table.c (nis_list): Use variable of correct type for
14077         result of __follow_path call.
14078
14079 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14080
14081         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14082         of math functions ceil, trunc, floor, round, and sqrt, when
14083         avaliable on the platform.
14084         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14085         name clash.
14086         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14087         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14088         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14089
14090 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14091
14092         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14093         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14094
14095 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14096
14097         * include/unistd.h: Fix __readlink return type.
14098         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14099
14100 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14101
14102         * stdlib/ucontext.h: Undo last change for makecontext.
14103
14104 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14105
14106         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14107
14108         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14109         * setjmp/setjmp.h: Mark functions as non-leaf.
14110         * setjmp/bits/setjmp2.h: Likewise.
14111         * stdlib/ucontext.h: Likewise.
14112
14113 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14114
14115         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14116         (reused_arena): Don't check arena limit.
14117         (arena_get2): Atomically check arena limit.
14118
14119 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14120
14121         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14122         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14123
14124         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14125         instructions.
14126
14127 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14128
14129         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14130         handler when locking.
14131
14132         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14133         Fix size of allocated buffer.
14134
14135 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14136
14137         [BZ #10103]
14138         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14139         declarations for long double functions.
14140         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14141
14142         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14143
14144 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14145
14146         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14147         installed.
14148
14149         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14150         is disabled.
14151
14152 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14153
14154         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14155
14156 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14157
14158         * include/alloca.h (stackinfo_alloca_round): Define.
14159         (extend_alloca): Use it.
14160         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14161         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14162         here.
14163
14164         * scripts/check-local-headers.sh: Ignore libaudit.h.
14165
14166         * nscd/Makefile (extra-objs): Make recursively expanded.
14167
14168 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14169
14170         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14171         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14172
14173         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14174         * posix/tst-rfc3484-2.c: Likewise.
14175         * posix/tst-rfc3484-3.c: Likewise.
14176
14177         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14178         process_vm_writev.
14179         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14180         process_vm_writev.
14181         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14182         process_vm_writev from libc using GLIBC_2.15 version.
14183
14184         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14185
14186 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14187
14188         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14189         stack usage.
14190
14191 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14192
14193         [BZ #13367]
14194         * nss/getent.c (initgroups_keys): Show error message in case no group
14195         names are given.
14196
14197         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14198         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14199         __bump_nl_timestamp.
14200         * nscd/connections (nscd_init): When host database is served open
14201         netlink socket and request notification about configuration changes.
14202         (main_loop_poll): Track netlink file descriptor and bump timestamp
14203         in case data becomes available.
14204         (main_loop_epoll): Likewise.
14205         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14206         (database_pers_head): Add extra_data fileds.
14207         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14208         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14209         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14210         Adjust caller.
14211         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14212         in6ai data, call __free_in6ai.
14213         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14214         Add -DHAVE_NETLINK.
14215         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14216         interface information.  Reuse previous data if netlink timestamp
14217         is not changed.
14218         (__bump_nl_timestamp): New function.
14219         (__free_in6ai): New function.
14220
14221 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14222
14223         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14224         close_not_cancel_no_status here.
14225         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14226
14227 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14228
14229         [BZ #13276]
14230         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14231         return value.
14232
14233         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14234         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14235         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14236
14237 2011-07-03  Andreas Jaeger  <aj@suse.de>
14238
14239         [BZ #10709]
14240         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14241         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14242         * math/libm-test.inc (sin_test): Add test case.
14243
14244 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14245
14246         [BZ #13337]
14247         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14248         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14249
14250         * elf/chroot_canon.c (chroot_canon): Cleanups.
14251
14252         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14253
14254         [BZ #13335]
14255         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14256         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14257
14258         * string/test-strchr.c: Make usable for strchrnul testing.
14259         * string/test-strchrnul.c: New file.
14260         * string/Makefile (strop-tests): Add strchrnul.
14261
14262         * po/it.po: Update from translation team.
14263         * po/es.po: Likewise.
14264
14265 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14266
14267         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14268         the three constants needed as parameters.  Drop the others.
14269         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14270         __m128i_strloadu_tolower.
14271         Create and initialize variable zero and use it in all the places
14272         where _mm_setzero_si128 was used.
14273
14274         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14275         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14276         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14277         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14278         anymore.
14279         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14280         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14281         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14282         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14283         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14284         __mpranred, __mptan.
14285         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14286         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14287         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14288         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14289         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14290         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14291         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14292         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14293         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14294
14295 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14296
14297         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14298         redefine if SHARED.
14299         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14300
14301         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14302         wide char related routines to wcsmbs subdir.
14303
14304 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14305
14306         [BZ #13344]
14307         * misc/sys/cdefs.h (__THROWNL): Define.
14308         * posix/unistd.h: Use __THREADNL instead of __THREAD
14309         for memory synchronization functions.
14310
14311 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14312
14313         [BZ #13349]
14314         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14315         doesn't exist.
14316         * manual/stdio.texi (Obstack Streams): Node removed.
14317
14318 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14319
14320         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14321         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14322         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14323
14324         * math/math_private.h (math_force_eval): Allow non-addressable
14325         arguments.
14326         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14327
14328 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14329
14330         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14331         file is not needed.
14332
14333         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14334         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14335         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14336         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14337         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14338         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14339         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14340         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14341         Add AVX variants.
14342         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14343         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14344         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14345         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14346         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14347         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14348         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14349         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14350         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14351         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14352         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14353         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14354         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14355         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14356         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14357         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14358         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14359         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14360         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14361
14362         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14363         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14364
14365         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14366         place.  Use VEX encoding when compiling for AVX.
14367
14368 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14369
14370         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14371         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14372
14373         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14374
14375 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14376
14377         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14378         useless if() expression.
14379         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14380         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14381         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14382         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14383         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14384         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14385         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14386         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14387         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14388         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14389         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14390         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14391         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14392         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14393         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14394         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14395         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14396         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14397         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14398
14399         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14400
14401 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14402
14403         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14404         condition.
14405         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14406
14407 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14408
14409         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14410         .text section.  Avoid duplicate constants.
14411         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14412         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14413         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14414         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14415         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14416         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14417         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14418         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14419         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14420         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14421         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14422         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14423         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14424         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14425         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14426         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14427         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14428         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14429         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14430         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14431         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14432         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14433         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14434         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14435         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14436         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14437         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14438         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14439         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14440         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14441         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14442         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14443         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14444         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14445         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14446         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14447         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14448         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14449         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14450         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14451         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14452         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14453         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14454         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14455         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14456
14457 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14458
14459         * sysdeps/x86_64/dla.h: Move to ...
14460         * sysdeps/x86_64/fpu/dla.h: ...here.
14461         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14462         situations.  Use __builtin_fma only for gcc 4.6 and up.
14463
14464         * config.make.in: Add have-mfma4 entry.
14465         * configure.in: Substitute libc_cv_cc_fma4.
14466         * math/Makefile (dbl-only-routines): Add sincostab.
14467         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14468         Use __sincostab not sincos.
14469         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14470         name is a macro.
14471         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14472         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14473         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14474         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14475         using __copysign.
14476         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14477         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14478         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14479         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14480         and __inv.
14481         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14482         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14483         __copysign.
14484         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14485         define aliases when function name is a macro.
14486         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14487         sysdeps/ieee754/dbl-64/sincos.tbl.
14488         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14489         fma4-enabled routines.
14490         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14491         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14492         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14493         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14494         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14495         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14496         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14497         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14498         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14499         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14500         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14501         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14502         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14503         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14504         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14505         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14506         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14507         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14508         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14509         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14510         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14511         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14512         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14513         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14514         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14515         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14516         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14517         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14518         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14519         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14520
14521         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14522         rename.
14523         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14524         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14525         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14526         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14527         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14528         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14529         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14530         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14531
14532 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14533
14534         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14535
14536 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14537
14538         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14539
14540         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14541         prediction.
14542         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14543
14544         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14545         Remove unused variable magic_bits.
14546         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14547
14548         * string/strnlen.c: Define and use STRNLEN macro.
14549         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14550         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14551         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14552         * wcsmbs/wcslen.c: Define and use WCSLEN.
14553         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14554         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14555         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14556         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14557         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14558         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14559         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14560
14561 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14562
14563         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14564         strnlen-sse2-no-bsf.
14565         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14566         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14567         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14568         Add strnlen support.
14569         (USE_AS_STRNLEN): New macro.
14570         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14571         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14572         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14573         * sysdeps/x86_64/wcslen.S: New file.
14574
14575 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14576
14577         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14578         XMM-moves are used for copying on small sizes.
14579
14580 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14581
14582         * wcsmbs/Makefile (strop-tests): Add wcschr.
14583         * wcsmbs/test-wcschr.c: New file.
14584         * string/test-strchr.c: Update.
14585         Add wcschr support.
14586         (WIDE): New macro.
14587
14588 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14589
14590         * wcsmbs/Makefile (strop-tests): Add wcslen.
14591         * wcsmbs/test-wcslen.c: New file.
14592         * string/test-strlen.c: Update.
14593         Add wcslen support.
14594         (WIDE): New macro.
14595
14596 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14597
14598         * po/it.po: Update from translation team.
14599
14600 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14601
14602         * sysdeps/x86_64/wcscmp.S: Update.
14603         Fix wrong comparison semantics.
14604         wcscmp shall use signed comparison not unsigned.
14605         Don't use substraction to avoid overflow bug.
14606         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14607         * wcsmbc/wcscmp.c: Likewise.
14608         * string/test-strcmp.c: Likewise.
14609         Add new tests to check cases with negative values.
14610
14611 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14612
14613         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14614         * sysdeps/x86_64/dla.h: ...here.  New file.
14615         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14616         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14617         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14618         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14619         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14620         * sysdeps/ieee754/dbl-64/e_sqrt.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-23  Andreas Schwab  <schwab@linux-m68k.org>
14626
14627         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14628         __ynl_finite aliases.
14629
14630 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14631
14632         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14633
14634         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14635         define DLA_FMA.
14636         [DLA_FMA] (EMULV): Use DLA_FMA.
14637         [DLA_FMA] (MUL12): Use EMULV.
14638         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14639         that are not needed.
14640         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14641         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14642         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14643         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14644         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14645         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14646         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14647
14648 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14649
14650         * math/s_nan.c: Undef __nan.
14651         * math/s_nanf.c: Undef __nanf.
14652         * math/s_nanl.c: Undef __nanl.
14653         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14654         "math_private.h".
14655
14656 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14657
14658         * math/s_catan.c: Add branch predictions.
14659         * math/s_catanf.c: Likewise.
14660         * math/s_catanh.c: Likewise.
14661         * math/s_catanhf.c: Likewise.
14662         * math/s_catanhl.c: Likewise.
14663         * math/s_catanl.c: Likewise.
14664         * math/s_cexp.c: Likewise.
14665         * math/s_cexpf.c: Likewise.
14666         * math/s_cexpl.c: Likewise.
14667         * math/s_clog.c: Likewise.
14668         * math/s_clog10.c: Likewise.
14669         * math/s_clog10f.c: Likewise.
14670         * math/s_clog10l.c: Likewise.
14671         * math/s_clogf.c: Likewise.
14672         * math/s_clogl.c: Likewise.
14673         * math/s_csqrt.c: Likewise.
14674         * math/s_csqrtf.c: Likewise.
14675         * math/s_csqrtl.c: Likewise.
14676         * math/s_ctanf.c: Likewise.
14677         * math/s_ctanh.c: Likewise.
14678         * math/s_ctanhf.c: Likewise.
14679         * math/s_ctanhl.c: Likewise.
14680         * math/s_ctanl.c: Likewise.
14681
14682         * math/math_private.h: Define __nan, __nanf, __nanl.
14683         * math/s_cacosh.c: Include <math_private.h>.
14684         * math/s_cacoshl.c: Likewise.
14685         * math/s_casinh.c: Likewise.
14686         * math/s_casinhf.c: Likewise.
14687         * math/s_casinhl.c: Likewise.
14688         * math/s_ccos.c: Rely entire on ccosh.
14689         * math/s_ccosf.c: Rely entire on ccoshf.
14690         * math/s_ccosl.c: Rely entirely on ccoshl.
14691         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14692         Remove tests for FE_INVALID.
14693         * math/s_ccoshf.c: Likewise.
14694         * math/s_ccoshl.c: Likewise.
14695         * math/s_csin.c: Likewise.
14696         * math/s_csinf.c: Likewise.
14697         * math/s_csinh.c Likewise.
14698         * math/s_csinhf.c: Likewise.
14699         * math/s_csinhl.c: Likewise.
14700         * math/s_csinl.c: Likewise.
14701         * math/s_ctan.c: Likewise.
14702         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14703         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14704         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14705
14706 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14707
14708         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14709         compilation problems.
14710
14711         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14712         __builtin_expect.
14713
14714 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14715
14716         * sysdeps/i386/configure.in: Test for -mfma4 option.
14717         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14718         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14719         COMMON_CPUID_INDEX_80000001.
14720         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14721         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14722         use it if FMA3 is not supported.
14723         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14724
14725         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14726         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14727
14728 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14729
14730         [BZ #12892]
14731         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14732         it would create a cycle with a link time dependency.
14733
14734 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14735
14736         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14737         instruction.
14738         * string/Makefile (strop-tests): Add rawmemchr.
14739         * string/test-rawmemchr.c: New file.
14740
14741         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14742         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14743         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14744         when compiling str{,n}casecmp and when AVX is available.  Hook up
14745         new optimized code in initializers.
14746
14747 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14748
14749         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14750         __feraiseexcept instead of feraiseexcept.
14751
14752 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14753
14754         * math/math_private.h: Define defaults for libc_fetestexcept and
14755         libc_feupdateenv.
14756         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14757         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14758         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14759         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14760         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14761         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14762         libc_fetestexcept and libc_feupdateenv.
14763
14764         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
14765         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
14766         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
14767         * sysdeps/x86_64/fpu/math_private.h: Define special version of
14768         libc_feholdexcept_setround.
14769
14770         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
14771         Add s_nearbyint-c and s_nearbyintf-c.
14772         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
14773         nearbyintf inlines.
14774         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
14775         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
14776         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
14777         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
14778
14779         * math/math_private.h: Define defaults for libc_fegetround,
14780         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
14781         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
14782         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
14783         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
14784         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
14785         standard functions.
14786         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14787         Remove comments and hacks for old compiler versions.
14788         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14789         libc_fegetround, libc_fesetround, libc_feholdexcept, and
14790         libc_feholdexceptl.
14791
14792 2011-10-18  Andreas Schwab  <schwab@redhat.com>
14793
14794         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
14795         (__feraiseexcept_renamed): Add __NTH.
14796         (feraiseexcept): Add __NTH.  Rename local variables to fix
14797         namespace violations.
14798
14799 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
14800
14801         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
14802
14803         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
14804
14805         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
14806         recently added interfaces.
14807         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
14808
14809         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
14810         about macro parameter expansion.
14811
14812         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
14813         __NO_MATH_INLINES is defined.  Cleanups.
14814
14815         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
14816         and __floorf is target has SSE4.1.
14817         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
14818         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
14819         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
14820         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
14821
14822         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
14823         name.
14824         (floorf): Likewise.
14825
14826         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
14827
14828 2011-10-17  Andreas Schwab  <schwab@redhat.com>
14829
14830         * misc/sys/cdefs.h: Fix last change.
14831
14832         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
14833         database lookup.
14834
14835 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
14836
14837         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
14838
14839         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
14840         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14841         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14842         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14843         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14844         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
14845         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14846         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14847         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
14848         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
14849         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
14850         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
14851         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
14852         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
14853         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
14854         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
14855         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
14856         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
14857         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
14858         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
14859         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
14860         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
14861
14862         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
14863         ceil, ceilf, floor, floorf.
14864
14865         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
14866         Perform IRELATIVE relocations last.
14867
14868         * elf/do-rel.h: Add another parameter nrelative, replacing the
14869         local variable with the same name.  Change name of the function
14870         to end in Rel or Rela (uppercase).
14871         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
14872         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
14873         elf_dynamic_do_##reloc function.
14874
14875 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14876
14877         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
14878         is sufficient, at least on modern CPUs.
14879
14880         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
14881
14882         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
14883         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
14884
14885         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
14886         __expl_finite.
14887         * math/bits/math-finite.h: Add entries for exp.
14888         * math/e_expl.c: Add __*_finite alias.
14889         * sysdeps/i386/fpu/e_exp.S: Likewise.
14890         * sysdeps/i386/fpu/e_expf.S: Likewise.
14891         * sysdeps/i386/fpu/e_expl.c: Likewise.
14892         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14893         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14894         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14895         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14896         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
14897         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14898         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14899
14900         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
14901         is sufficient, at least on modern CPUs.
14902
14903         * ctype/ctype-info.c (__ctype_init): Define.
14904         * include/ctype.h (__ctype_init): Declare.
14905         (__ctype_b_loc): The variable is always initialized.
14906         (__ctype_toupper_loc): Likewise.
14907         (__ctype_tolower_loc): Likewise.
14908         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
14909         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
14910
14911 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
14912
14913         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
14914
14915         * configure.in: Also look in $cxxmachine/include for C++ system
14916         headers.
14917
14918 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14919
14920         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
14921         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
14922         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
14923         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
14924         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
14925         (USE_AS_WMEMCMP): New macro.
14926         Fixing indents.
14927         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
14928         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
14929         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
14930         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
14931         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14932         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
14933         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
14934         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
14935         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
14936         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
14937         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
14938         (USE_AS_WMEMCMP): New macro.
14939         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
14940         * sysdeps/string/test-memcmp.c: Update.
14941         Fix simple_wmemcmp.
14942         Add new tests.
14943         * wcsmbs/wmemcmp.c: Update.
14944         (WMEMCMP): New macro.
14945         Fix overflow bug.
14946
14947 2011-10-12  Andreas Jaeger  <aj@suse.de>
14948
14949         [BZ #13268]
14950         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
14951
14952 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
14953
14954         * libio/iofwide.c (do_length): Avoid warning.
14955
14956         * ctype/ctype.h (__isctype_f): Add missing __THROW.
14957
14958 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
14959
14960         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
14961
14962         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
14963         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
14964         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
14965         * sysdeps/i386/i686/fpu/e_log.S: New file.
14966         * sysdeps/i386/i686/fpu/e_logf.S: New file.
14967         * sysdeps/i386/i686/fpu/e_logl.S: New file.
14968
14969         * ctype/ctype.h: Add support for inlined isXXX functions when
14970         compiling C++ code.
14971
14972 2011-10-14  Andreas Schwab  <schwab@redhat.com>
14973
14974         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14975
14976         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
14977
14978 2011-10-13  Roland McGrath  <roland@hack.frob.com>
14979
14980         [BZ #13291]
14981         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
14982
14983 2011-10-13  Andreas Schwab  <schwab@redhat.com>
14984
14985         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
14986         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
14987         feraiseexcept.
14988
14989         * sysdeps/x86_64/memrchr.S: Check for zero size.
14990
14991         * string/stratcliff.c: Add memrchr tests.
14992
14993 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14994
14995         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14996         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
14997         rawmemchr-sse2 rawmemchr-sse2-bsf.
14998         * sysdeps/i386/i686/multiarch/memchr.S: New file.
14999         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15000         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15001         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15002         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15003         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15004         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15005         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15006         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15007         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15008         * string/memrchr.c (MEMRCHR): New macro.
15009
15010 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15011
15012         Add integration with gcc's -ffinite-math-only and optimize wrapper
15013         functions in libm.
15014         * Versions.def: Define GLIBC_2.15 version for libm.
15015         * math/Makefile (headers): Add bits/math-finite.h.
15016         * math/bits/math-finite.h: New file.
15017         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15018         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15019         * math/e_acoshl.c: Add __*_finite alias.
15020         * math/e_acosl.c: Likewise.
15021         * math/e_asinl.c: Likewise.
15022         * math/e_atan2l.c: Likewise.
15023         * math/e_atanhl.c: Likewise.
15024         * math/e_coshl.c: Likewise.
15025         * math/e_exp10.c: Likewise.
15026         * math/e_exp10f.c: Likewise.
15027         * math/e_exp10l.c: Likewise.
15028         * math/e_exp2l.c: Likewise.
15029         * math/e_fmodl.c: Likewise.
15030         * math/e_gammal_r.c: Likewise.
15031         * math/e_hypotl.c: Likewise.
15032         * math/e_j0l.c: Likewise.
15033         * math/e_j1l.c: Likewise.
15034         * math/e_jnl.c: Likewise.
15035         * math/e_lgammal_r.c: Likewise.
15036         * math/e_log10l.c: Likewise.
15037         * math/e_log2l.c: Likewise.
15038         * math/e_logl.c: Likewise.
15039         * math/e_powl.c: Likewise.
15040         * math/e_sinhl.c: Likewise.
15041         * math/e_sqrtl.c: Likewise.
15042         * math/e_scalb.c: Completely rewritten and optimized.
15043         * math/e_scalbf.c: Likewise.
15044         * math/e_scalbl.c: Likewise.
15045         * math/w_acos.c: Likewise.
15046         * math/w_acosf.c: Likewise.
15047         * math/w_acosl.c: Likewise.
15048         * math/w_acosh.c: Likewise.
15049         * math/w_acoshf.c: Likewise.
15050         * math/w_acoshl.c: Likewise.
15051         * math/w_asin.c: Likewise.
15052         * math/w_asinf.c: Likewise.
15053         * math/w_asinl.c: Likewise.
15054         * math/w_atan2.c: Likewise.
15055         * math/w_atan2f.c: Likewise.
15056         * math/w_atan2l.c: Likewise.
15057         * math/w_atanh.c: Likewise.
15058         * math/w_atanhf.c: Likewise.
15059         * math/w_atanhl.c: Likewise.
15060         * math/w_exp10.c: Likewise.
15061         * math/w_exp10f.c: Likewise.
15062         * math/w_exp10l.c: Likewise.
15063         * math/w_fmod.c: Likewise.
15064         * math/w_fmodf.c: Likewise.
15065         * math/w_fmodl.c: Likewise.
15066         * math/w_j0.c: Likewise.
15067         * math/w_j0f.c: Likewise.
15068         * math/w_j0l.c: Likewise.
15069         * math/w_j1.c: Likewise.
15070         * math/w_j1f.c: Likewise.
15071         * math/w_j1l.c: Likewise.
15072         * math/w_jn.c: Likewise.
15073         * math/w_jnf.c: Likewise.
15074         * math/w_log.c: Likewise.
15075         * math/w_logf.c: Likewise.
15076         * math/w_logl.c: Likewise.
15077         * math/w_log10.c: Likewise.
15078         * math/w_log10f.c: Likewise.
15079         * math/w_log10l.c: Likewise.
15080         * math/w_log2.c: Likewise.
15081         * math/w_log2f.c: Likewise.
15082         * math/w_log2l.c: Likewise.
15083         * math/w_pow.c: Likewise.
15084         * math/w_powf.c: Likewise.
15085         * math/w_powl.c: Likewise.
15086         * math/w_remainder.c: Likewise.
15087         * math/w_remainderf.c: Likewise.
15088         * math/w_remainderl.c: Likewise.
15089         * math/w_scalb.c: Likewise.
15090         * math/w_scalbf.c: Likewise.
15091         * math/w_scalbl.c: Likewise.
15092         * math/w_sqrt.c: Likewise.
15093         * math/w_sqrtf.c: Likewise.
15094         * math/w_sqrtl.c: Likewise.
15095         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15096         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15097         used.
15098         * math/math_private.h: Declare __kernel_standard_f.
15099         * math/w_cosh.c: Remove cruft and optimize a bit.
15100         * math/w_coshf.c: Likewise.
15101         * math/w_coshl.c: Likewise.
15102         * math/w_exp2.c: Likewise.
15103         * math/w_exp2f.c: Likewise.
15104         * math/w_exp2l.c: Likewise.
15105         * math/w_hypot.c: Likewise.
15106         * math/w_hypotf.c: Likewise.
15107         * math/w_hypotl.c: Likewise.
15108         * math/w_lgamma.c: Likewise.
15109         * math/w_lgamma_r.c: Likewise.
15110         * math/w_lgammaf.c: Likewise.
15111         * math/w_lgammaf_r.c: Likewise.
15112         * math/w_lgammal.c: Likewise.
15113         * math/w_lgammal_r.c: Likewise.
15114         * math/w_sinh.c: Likewise.
15115         * math/w_sinhf.c: Likewise.
15116         * math/w_sinhl.c: Likewise.
15117         * math/w_tgamma.c: Likewise.
15118         * math/w_tgammaf.c: Likewise.
15119         * math/w_tgammal.c: Likewise.
15120         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15121         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15122         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15123         Minor optimizations.  Pretty printing.  Remove cruft.
15124         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15125         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15126         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15127         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15128         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15129         * sysdeps/i386/fpu/e_asin.S: Likewise.
15130         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15131         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15132         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15133         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15134         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15135         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15136         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15137         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15138         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15139         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15140         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15141         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15142         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15143         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15144         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15145         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15146         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15147         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15148         * sysdeps/i386/fpu/e_log.S: Likewise.
15149         * sysdeps/i386/fpu/e_log10.S: Likewise.
15150         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15151         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15152         * sysdeps/i386/fpu/e_log2.S: Likewise.
15153         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15154         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15155         * sysdeps/i386/fpu/e_logf.S: Likewise.
15156         * sysdeps/i386/fpu/e_logl.S: Likewise.
15157         * sysdeps/i386/fpu/e_pow.S: Likewise.
15158         * sysdeps/i386/fpu/e_powf.S: Likewise.
15159         * sysdeps/i386/fpu/e_powl.S: Likewise.
15160         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15161         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15162         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15163         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15164         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15165         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15166         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15167         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15168         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15169         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15170         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15171         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15172         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15173         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15174         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15175         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15176         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15177         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15178         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15179         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15180         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15181         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15182         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15183         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15184         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15185         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15186         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15187         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15188         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15189         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15190         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15191         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15192         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15193         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15194         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15195         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15196         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15197         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15198         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15199         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15200         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15201         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15202         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15203         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15204         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15205         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15206         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15207         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15208         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15209         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15210         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15211         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15212         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15213         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15214         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15215         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15216         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15217         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15218         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15219         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15220         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15221         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15222         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15223         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15224         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15225         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15226         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15227         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15228         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15229         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15230         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15231         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15232         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15233         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15234         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15235         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15236         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15237         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15238         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15239         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15240         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15241         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15242         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15243         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15244         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15245         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15246         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15247         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15248         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15249         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15250         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15251         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15252         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15253         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15254         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15255         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15256         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15257         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15258         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15259         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15260         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15261         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15262         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15263         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15264         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15265         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15266         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15267         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15268         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15269         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15270         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15271         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15272         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15273         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15274         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15275         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15276         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15277         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15278         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15279         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15280         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15281         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15282         (__isnanf): Likewise.
15283         (__isinf_ns): Likewise.
15284         (__isinf_nsf): Likewise.
15285         (__finite): Likewise.
15286         (__finitef): Likewise.
15287         (__ieee754_sqrt): Define as macro.
15288         (__ieee754_sqrtf): Define as macro.
15289         (__ieee754_sqrtl): Define as macro.
15290         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15291         inlined copy.
15292         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15293         __FINITE_MATH_ONLY__ consistent.
15294         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15295
15296 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15297
15298         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15299         of rawmemchr.
15300
15301         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15302
15303 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15304
15305         * po/ja.po: Update from translation team.
15306
15307 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15308
15309         * locale/programs/locarchive.c (prepare_address_space): New function.
15310         (create_archive, enlarge_archive, open_archive): Use it.
15311
15312         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15313         inside [SHARED], where it is used.
15314
15315         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15316
15317         * nss/getent.c (netgroup_keys): Remove unused variable.
15318         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15319
15320 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15321
15322         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15323         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15324         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15325         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15326         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15327         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15328         * math/Makefile (libm-calls): Add s_isinf_ns.
15329         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15330         * math/multc3.c: Likewise.
15331         * math/s_casin.c: Likewise.
15332         * math/s_casinf.c: Likewise.
15333         * math/s_casinl.c: Likewise.
15334         * math/s_ccos.c: Likewise.
15335         * math/s_ccosf.c: Likewise.
15336         * math/s_ccosl.c: Likewise.
15337         * math/s_ctan.c: Likewise.
15338         * math/s_ctanf.c: Likewise.
15339         * math/s_ctanh.c: Likewise.
15340         * math/s_ctanhf.c: Likewise.
15341         * math/s_ctanhl.c: Likewise.
15342         * math/s_ctanl.c: Likewise.
15343         * math/w_fmod.c: Likewise.
15344         * math/w_fmodf.c: Likewise.
15345         * math/w_fmodl.c: Likewise.
15346         * math/w_remainder.c: Likewise.
15347         * math/w_remainderf.c: Likewise.
15348         * math/w_remainderl.c: Likewise.
15349         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15350         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15351         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15352         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15353         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15354         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15355         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15356         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15357
15358         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15359         of the number.
15360         * stdio-common/printf_fphex.c: Likewise.
15361         * stdio-common/printf_size.c: Likewise.
15362
15363         * math/e_exp10.c: Include math_private.h using <...> not "...".
15364         * math/e_exp10f.c: Likewise.
15365         * math/e_exp10l.c: Likewise.
15366         * math/e_exp2l.c: Likewise.
15367         * math/e_j0l.c: Likewise.
15368         * math/e_j1l.c: Likewise.
15369         * math/e_jnl.c: Likewise.
15370         * math/e_lgammal_r.c: Likewise.
15371         * math/e_rem_pio2l.c: Likewise.
15372         * math/e_scalb.c: Likewise.
15373         * math/e_scalbf.c: Likewise.
15374         * math/e_scalbl.c: Likewise.
15375         * math/k_cosl.c: Likewise.
15376         * math/k_sinl.c: Likewise.
15377         * math/k_tanl.c: Likewise.
15378         * math/s_cacoshf.c: Likewise.
15379         * math/s_catan.c: Likewise.
15380         * math/s_catanf.c: Likewise.
15381         * math/s_catanh.c: Likewise.
15382         * math/s_catanhf.c: Likewise.
15383         * math/s_catanhl.c: Likewise.
15384         * math/s_catanl.c: Likewise.
15385         * math/s_ccosh.c: Likewise.
15386         * math/s_ccoshf.c: Likewise.
15387         * math/s_ccoshl.c: Likewise.
15388         * math/s_cexp.c: Likewise.
15389         * math/s_cexpf.c: Likewise.
15390         * math/s_cexpl.c: Likewise.
15391         * math/s_clog.c: Likewise.
15392         * math/s_clog10.c: Likewise.
15393         * math/s_clog10f.c: Likewise.
15394         * math/s_clog10l.c: Likewise.
15395         * math/s_clogf.c: Likewise.
15396         * math/s_clogl.c: Likewise.
15397         * math/s_csin.c: Likewise.
15398         * math/s_csinf.c: Likewise.
15399         * math/s_csinh.c: Likewise.
15400         * math/s_csinhf.c: Likewise.
15401         * math/s_csinhl.c: Likewise.
15402         * math/s_csinl.c: Likewise.
15403         * math/s_csqrt.c: Likewise.
15404         * math/s_csqrtf.c: Likewise.
15405         * math/s_csqrtl.c: Likewise.
15406         * math/s_ctan.c: Likewise.
15407         * math/s_ctanf.c: Likewise.
15408         * math/s_ctanh.c: Likewise.
15409         * math/s_ctanhf.c: Likewise.
15410         * math/s_ctanhl.c: Likewise.
15411         * math/s_ctanl.c: Likewise.
15412         * math/s_ldexp.c: Likewise.
15413         * math/s_ldexpf.c: Likewise.
15414         * math/s_ldexpl.c: Likewise.
15415         * math/s_significand.c: Likewise.
15416         * math/s_significandf.c: Likewise.
15417         * math/s_significandl.c: Likewise.
15418         * math/w_acos.c: Likewise.
15419         * math/w_acosf.c: Likewise.
15420         * math/w_acosh.c: Likewise.
15421         * math/w_acoshf.c: Likewise.
15422         * math/w_acoshl.c: Likewise.
15423         * math/w_acosl.c: Likewise.
15424         * math/w_asin.c: Likewise.
15425         * math/w_asinf.c: Likewise.
15426         * math/w_asinl.c: Likewise.
15427         * math/w_atan2.c: Likewise.
15428         * math/w_atan2f.c: Likewise.
15429         * math/w_atan2l.c: Likewise.
15430         * math/w_atanh.c: Likewise.
15431         * math/w_atanhf.c: Likewise.
15432         * math/w_atanhl.c: Likewise.
15433         * math/w_cosh.c: Likewise.
15434         * math/w_coshf.c: Likewise.
15435         * math/w_coshl.c: Likewise.
15436         * math/w_dremf.c: Likewise.
15437         * math/w_exp10.c: Likewise.
15438         * math/w_exp10f.c: Likewise.
15439         * math/w_exp10l.c: Likewise.
15440         * math/w_exp2.c: Likewise.
15441         * math/w_exp2f.c: Likewise.
15442         * math/w_fmod.c: Likewise.
15443         * math/w_fmodf.c: Likewise.
15444         * math/w_fmodl.c: Likewise.
15445         * math/w_hypot.c: Likewise.
15446         * math/w_hypotf.c: Likewise.
15447         * math/w_hypotl.c: Likewise.
15448         * math/w_j0.c: Likewise.
15449         * math/w_j0f.c: Likewise.
15450         * math/w_j0l.c: Likewise.
15451         * math/w_j1.c: Likewise.
15452         * math/w_j1f.c: Likewise.
15453         * math/w_j1l.c: Likewise.
15454         * math/w_jn.c: Likewise.
15455         * math/w_jnf.c: Likewise.
15456         * math/w_jnl.c: Likewise.
15457         * math/w_lgamma.c: Likewise.
15458         * math/w_lgamma_r.c: Likewise.
15459         * math/w_lgammaf.c: Likewise.
15460         * math/w_lgammaf_r.c: Likewise.
15461         * math/w_lgammal.c: Likewise.
15462         * math/w_lgammal_r.c: Likewise.
15463         * math/w_log.c: Likewise.
15464         * math/w_log10.c: Likewise.
15465         * math/w_log10f.c: Likewise.
15466         * math/w_log10l.c: Likewise.
15467         * math/w_log2.c: Likewise.
15468         * math/w_log2f.c: Likewise.
15469         * math/w_log2l.c: Likewise.
15470         * math/w_logf.c: Likewise.
15471         * math/w_logl.c: Likewise.
15472         * math/w_pow.c: Likewise.
15473         * math/w_powf.c: Likewise.
15474         * math/w_powl.c: Likewise.
15475         * math/w_remainder.c: Likewise.
15476         * math/w_remainderf.c: Likewise.
15477         * math/w_remainderl.c: Likewise.
15478         * math/w_scalb.c: Likewise.
15479         * math/w_scalbf.c: Likewise.
15480         * math/w_scalbl.c: Likewise.
15481         * math/w_sinh.c: Likewise.
15482         * math/w_sinhf.c: Likewise.
15483         * math/w_sinhl.c: Likewise.
15484         * math/w_sqrt.c: Likewise.
15485         * math/w_sqrtf.c: Likewise.
15486         * math/w_sqrtl.c: Likewise.
15487         * math/w_tgamma.c: Likewise.
15488         * math/w_tgammaf.c: Likewise.
15489         * math/w_tgammal.c: Likewise.
15490
15491         * po/ja.po: Update from translation team.
15492
15493 2011-09-29  Andreas Jaeger  <aj@suse.de>
15494
15495         [BZ #13179]
15496         * sunrpc/netname.c (netname2host): Fix logic.
15497
15498         [BZ #6779]
15499         [BZ #6783]
15500         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15501         correctly.
15502         * math/w_remainder.c (__remainder): Likewise.
15503         * math/w_remainderf.c (__remainderf): Likewise.
15504         * math/libm-test.inc (remainder_test): Add test cases.
15505
15506 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15507
15508         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15509         sdiv_qrnnd.
15510
15511 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15512
15513         * string/test-memcmp.c: Avoid unncessary #defines.
15514         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15515
15516 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15517
15518         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15519         Use new sse2 version for core i3 - i7 as it's faster
15520         than sse42 version.
15521         (bit_Prefer_PMINUB_for_stringop): New.
15522         * sysdeps/x86_64/rawmemchr.S: Update.
15523         Replace with faster SSE2 version.
15524         * sysdeps/x86_64/memrchr.S: New file.
15525         * sysdeps/x86_64/memchr.S: Update.
15526         Replace with faster SSE2 version.
15527
15528 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15529
15530         * elf/dl-load.c (lose): Add cast to avoid warning.
15531
15532 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15533
15534         * po/ca.po: Update from translation team.
15535
15536         * inet/getnetgrent_r.c: Hook up nscd.
15537         * nscd/Makefile (routines): Add nscd_netgroup.
15538         (nscd-modules): Add netgroupcache.
15539         (CFLAGS-netgroupcache.c): Define.
15540         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15541         (cache_search): Add const to second parameter.
15542         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15543         INNETGR.
15544         (dbs): Add netgrdb entry.
15545         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15546         (verify_persistent_db): Handle netgrdb.
15547         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15548         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15549         GETFDNETGR.
15550         (netgroup_response_header): Define.
15551         (innetgroup_response_header): Define.
15552         (datahead): Add netgroup_response_header and innetgroup_response_header
15553         elements.
15554         * nscd/nscd.conf: Add entries for netgroup cache.
15555         * nscd/nscd.h (dbtype): Add netgrdb.
15556         (_PATH_NSCD_NETGROUP_DB): Define.
15557         (netgroup_iov_disabled): Declare.
15558         (xmalloc, xcalloc, xrealloc): Move declarations here.
15559         (cache_search): Adjust prototype.
15560         Add netgroup-related prototypes.
15561         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15562         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15563         (__nscd_innetgr): Declare.
15564         * nscd/selinux.c (perms): Use access_vector_t as element type and
15565         add netgroup-related initializers.
15566         * nscd/netgroupcache.c: New file.
15567         * nscd/nscd_netgroup.c: New file.
15568         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15569         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15570         For four parameters use innetgr.
15571         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15572         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15573         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15574         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15575
15576         * nscd/connections.c (register_traced_file): Don't register file
15577         for disabled databases.
15578
15579 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15580
15581         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15582
15583         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15584         from tree and freeing node.
15585
15586 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15587
15588         * nss/nsswitch.c (__nss_database_lookup): Handle
15589         nss_parse_service_list out of memory case.
15590
15591 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15592
15593         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15594         out of memory case.
15595
15596 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15597
15598         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15599         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15600         pass it down.
15601         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15602         elf_machine_rela, elf_machine_lazy_rel.
15603         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15604         (ELF_DYNAMIC_DO_REL): Likewise.
15605         (ELF_DYNAMIC_DO_RELA): Likewise.
15606         (ELF_DYNAMIC_RELOCATE): Likewise.
15607         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15608         to ELF_DYNAMIC_DO_REL.
15609         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15610         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15611         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15612         elf_machine_rela.
15613         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15614         skip_ifunc, don't call ifunc function if non-zero.
15615         (elf_machine_rela): Likewise.
15616         (elf_machine_lazy_rel): Likewise.
15617         (elf_machine_lazy_rela): Likewise.
15618         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15619         (elf_machine_lazy_rel): Likewise.
15620         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15621         Likewise.
15622         (elf_machine_lazy_rel): Likewise.
15623         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15624         Likewise.
15625         (elf_machine_lazy_rel): Likewise.
15626         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15627         (elf_machine_lazy_rel): Likewise.
15628         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15629         (elf_machine_lazy_rel): Likewise.
15630         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15631         (elf_machine_lazy_rel): Likewise.
15632         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15633         (elf_machine_lazy_rel): Likewise.
15634         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15635         (elf_machine_lazy_rel): Likewise.
15636         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15637         (elf_machine_lazy_rel): Likewise.
15638
15639 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15640
15641         * nss/nss_files/files-init.c (_nss_files_init): Use static
15642         initialization for all the *_traced_file variables.
15643
15644 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15645
15646         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15647
15648 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15649
15650         [BZ #13226]
15651         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15652
15653 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15654
15655         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15656         Reread the line before reparsing it.
15657
15658 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15659
15660         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15661
15662 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15663             Maxim Kuvyrkov  <maxim@codesourcery.com>
15664             Joseph Myers  <joseph@codesourcery.com>
15665
15666         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15667         if needed for __stack_chk_guard.
15668
15669 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15670
15671         * sysdeps/posix/spawni.c (script_execute): Always define it.
15672         It will be optimized away if unused.
15673         (maybe_script_execute): New function.
15674         (__spawni): Call it.
15675
15676         * Makerules: Don't include tls.make.
15677         (config-tls): Always set to thread.
15678         * tls.make.c: File removed.
15679
15680 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15681
15682         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15683         * config.make.in (CPPFLAGS-config): New substituted variable.
15684
15685 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15686
15687         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15688
15689         [BZ #13192]
15690         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15691         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15692
15693 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15694
15695         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15696         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15697         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15698         (CALL_FAIL): Likewise.
15699         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15700         (CALL_FAIL): Macro removed.
15701         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15702
15703 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15704
15705         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15706         for __FINITE_MATH_ONLY__ == 1.
15707
15708 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15709
15710         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15711         __ieee754_sqrt instead of sqrt.
15712         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15713         __ieee754_sqrtf instead of sqrtf.
15714         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15715         __floorf instead of floorf.
15716         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15717         __floorf, __truncf instead of floorf, truncf.
15718
15719 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15720
15721         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15722
15723         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15724         __extern_always_inline.
15725         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15726         32-bit.
15727
15728 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15729
15730         * elf/rtld.c (dl_main): Also relocate in dependency order when
15731         doing symbol dependency testing.
15732
15733 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15734
15735         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15736         Always define `refsym'.
15737
15738 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15739
15740         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15741         (__FD_ELT): Renamed from __FDELT.
15742         * misc/bits/select2.h (__FD_ELT): Likewise.
15743         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15744         __FD_MASK instead of __FDELT, __FDMASK.
15745         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15746         Likewise.
15747         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15748         Likewise.
15749
15750         * elf/Makefile (gen-ldd): Fix pattern.
15751
15752         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15753         (init_tls): Likewise.
15754
15755 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15756
15757         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15758
15759 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15760
15761         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15762         `struct cmsghdr *' instead of `void *'.
15763         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15764         Likewise.
15765
15766 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
15767
15768         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
15769         if non-absolute.
15770         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
15771         ldd_rewrite_script.
15772
15773 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
15774
15775         * configure.in: Remove --with-tls option.
15776         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
15777         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
15778         out in case it is missing.
15779         * sysdeps/ia64/elf/configure.in: Likewise.
15780         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
15781         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
15782         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
15783         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
15784         * sysdeps/sh/elf/configure.in: Likewise.
15785         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
15786         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
15787         * sysdeps/x86_64/elf/configure.in: Likewise.
15788         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
15789         * sysdeps/mach/hurd/tls.h: Likewise.
15790
15791         [BZ #13067]
15792         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
15793
15794         [BZ #13090]
15795         * configure.in: Fix use of AC_INIT.
15796
15797         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
15798
15799 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
15800
15801         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
15802         __set_errno.
15803         * malloc/hooks.c: Likewise.
15804
15805         [BZ #11929]
15806         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
15807         variables statically.
15808         (narenas): Initialize.
15809         (list_lock): Initialize.
15810         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
15811         initializtion of main_arena and list_lock.  Small cleanups.
15812         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
15813         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
15814         Add initializers to main_arena and mp_.
15815         (malloc_state): Remove pagesize member.  Change all users to use
15816         GLRO(dl_pagesize).
15817
15818         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
15819         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
15820         is always initialized.
15821
15822         * malloc/malloc.c: Removed unused configurations and dead code.
15823         * malloc/arena.c: Likewise.
15824         * malloc/hooks.c: Likewise.
15825         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
15826
15827         * include/tls.h: Removed.  USE___THREAD must always be defined.
15828         * bits/libc-tsd.h: Don't handle !USE___THREAD.
15829         * elf/dl-libc.c: Likewise.
15830         * elf/dl-tsd.c: Likewise.
15831         * include/errno.h: Likewise.
15832         * include/netdb.h: Likewise.
15833         * include/resolv.h: Likewise.
15834         * inet/herrno-loc.c: Likewise.
15835         * inet/herrno.c: Likewise.
15836         * malloc/arena.c: Likewise.
15837         * malloc/hooks.c: Likewise.
15838         * malloc/malloc.c: Likewise.
15839         * resolv/res-state.c: Likewise.
15840         * resolv/res_libc.c: Likewise.
15841         * sysdeps/i386/dl-machine.h: Likewise.
15842         * sysdeps/ia64/dl-machine.h: Likewise.
15843         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
15844         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
15845         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
15846         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
15847         * sysdeps/sh/dl-machine.h: Likewise.
15848         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
15849         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
15850         * sysdeps/unix/i386/sysdep.S: Likewise.
15851         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15852         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
15853         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
15854         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15855         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
15856         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15857         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
15858         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
15859         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
15860         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15861         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15862         * sysdeps/x86_64/dl-machine.h: Likewise.
15863         * tls.make.c: Likewise.
15864
15865         * configure.in: Remove --with-__thread option.  Make tests for
15866         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
15867         tls_model attribute fail if no support is available.  Remove
15868         USE_IN_LIBIO.
15869         * Makeconfig: Adjust for dropped configure option.  All features are
15870         now mandatory.
15871         * Makerules: Likewise.
15872         * Versions.def: Likewise.
15873         * argp/argp-fmtstream.c: Likewise.
15874         * argp/argp-fmtstream.h: Likewise.
15875         * argp/argp-help.c: Likewise.
15876         * assert/assert.c: Likewise.
15877         * config.h.in: Likewise.
15878         * config.make.in: Likewise.
15879         * configure: Likewise.
15880         * configure.in: Likewise.
15881         * csu/Versions: Likewise.
15882         * csu/init.c: Likewise.
15883         * elf/tst-audit2.c: Likewise.
15884         * elf/tst-tls10.c: Likewise.
15885         * elf/tst-tls10.h: Likewise.
15886         * elf/tst-tls11.c: Likewise.
15887         * elf/tst-tls12.c: Likewise.
15888         * elf/tst-tls14.c: Likewise.
15889         * elf/tst-tlsmod11.c: Likewise.
15890         * elf/tst-tlsmod12.c: Likewise.
15891         * elf/tst-tlsmod13.c: Likewise.
15892         * elf/tst-tlsmod13a.c: Likewise.
15893         * elf/tst-tlsmod14a.c: Likewise.
15894         * elf/tst-tlsmod15b.c: Likewise.
15895         * elf/tst-tlsmod16a.c: Likewise.
15896         * elf/tst-tlsmod16b.c: Likewise.
15897         * elf/tst-tlsmod7.c: Likewise.
15898         * elf/tst-tlsmod8.c: Likewise.
15899         * elf/tst-tlsmod9.c: Likewise.
15900         * gmon/gmon.c: Likewise.
15901         * grp/fgetgrent_r.c: Likewise.
15902         * grp/putgrent.c: Likewise.
15903         * hurd/fopenport.c: Likewise.
15904         * include/libc-symbols.h: Likewise.
15905         * include/tls.h: Likewise.
15906         * intl/gettextP.h: Likewise.
15907         * intl/loadinfo.h: Likewise.
15908         * locale/global-locale.c: Likewise.
15909         * locale/localeinfo.h: Likewise.
15910         * mach/devstream.c: Likewise.
15911         * malloc/arena.c: Likewise.
15912         * malloc/set-freeres.c: Likewise.
15913         * misc/err.c: Likewise.
15914         * misc/getttyent.c: Likewise.
15915         * misc/mntent_r.c: Likewise.
15916         * posix/getopt.c: Likewise.
15917         * posix/wordexp.c: Likewise.
15918         * pwd/fgetpwent_r.c: Likewise.
15919         * resolv/Versions: Likewise.
15920         * resolv/res_hconf.c: Likewise.
15921         * shadow/fgetspent_r.c: Likewise.
15922         * shadow/putspent.c: Likewise.
15923         * stdio-common/printf_fphex.c: Likewise.
15924         * stdio-common/tmpfile.c: Likewise.
15925         * stdlib/abort.c: Likewise.
15926         * stdlib/fmtmsg.c: Likewise.
15927         * sunrpc/auth_unix.c: Likewise.
15928         * sunrpc/clnt_perr.c: Likewise.
15929         * sunrpc/clnt_tcp.c: Likewise.
15930         * sunrpc/clnt_udp.c: Likewise.
15931         * sunrpc/clnt_unix.c: Likewise.
15932         * sunrpc/openchild.c: Likewise.
15933         * sunrpc/svc_simple.c: Likewise.
15934         * sunrpc/svc_tcp.c: Likewise.
15935         * sunrpc/svc_udp.c: Likewise.
15936         * sunrpc/svc_unix.c: Likewise.
15937         * sunrpc/xdr.c: Likewise.
15938         * sunrpc/xdr_array.c: Likewise.
15939         * sunrpc/xdr_rec.c: Likewise.
15940         * sunrpc/xdr_ref.c: Likewise.
15941         * sunrpc/xdr_stdio.c: Likewise.
15942
15943 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15944
15945         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15946
15947 2011-07-03  Andreas Jaeger  <aj@suse.de>
15948
15949         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
15950         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
15951         regenerate with gen-libm-tests.pl.
15952
15953 2010-05-12  Petr Baudis  <pasky@suse.cz>
15954
15955         [BZ #11589]
15956         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15957         around j0() zero points by switching to j1().
15958         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15959         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15960         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15961         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15962
15963 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15964
15965         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
15966         instead of 0.
15967         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
15968         instead of 0.                              .
15969         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15970         Patch in part by Pavel Roskin <proski@gnu.org>.
15971
15972         [BZ #13138]
15973         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
15974         realloc.
15975         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
15976         Free memory block if necessary.
15977
15978         [BZ #12847]
15979         * libio/genops.c (INTDEF): For string streams the _lock pointer can
15980         be NULL.  Don't lock in this case.
15981
15982 2011-09-09  Roland McGrath  <roland@hack.frob.com>
15983
15984         * elf/elf.h (ELFOSABI_GNU): New macro.
15985         (ELFOSABI_LINUX): Define to that.
15986
15987 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
15988
15989         * string/strncat.c (strncat): Undef the symbol in case it has been
15990         defined in bits/string.h.
15991
15992 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
15993
15994         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
15995
15996         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
15997         link map.
15998
15999 2011-08-17  Andreas Jaeger  <aj@suse.de>
16000
16001         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16002
16003 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16004             Ian Lance Taylor  <iant@google.com>
16005
16006         * math/libm-test.inc (lround_test): New testcase.
16007         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16008
16009 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16010
16011         * Makefile: Remove support for automatic cvs check-ins.
16012         * Makerules: Likewise.
16013         * config.make.in: Likewise.
16014         * configure.in: Likewise.
16015         * intl/Makefile: Likewise.
16016         * locale/Makefile: Likewise.
16017         * po/Makefile: Likewise.
16018         * posix/Makefile: Likewise.
16019         * sysdeps/gnu/Makefile: Likewise.
16020         * sysdeps/mach/hurd/Makefile: Likewise.
16021         * sysdeps/sparc/sparc32/Makefile: Likewise.
16022
16023         [BZ #13118]
16024         * posix/Makefile (bug-regex32-ENV): Define.
16025         Patch by John Stanley <jpsinthemix@verizon.net>.
16026
16027         * misc/Makefile (headers): Add bits/select2.h.
16028         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16029         * misc/bits/select2.h: New file.
16030         * include/bits/select2.h: New file.
16031         * debug/Makefile (routines): Add fdelt_chk.
16032         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16033         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16034         FD_ISSET.
16035         * debug/fdelt_chk.c: New file.
16036
16037         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16038         * wcsmbs/test-wmemcmp.c: Likewise.
16039         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16040         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16041
16042 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16043
16044         * string/Makefile (strop-tests): Add memcmp.
16045         * string/test-wmemcmp.c: New file.
16046         * string/test-memcmp.c: Add wmemcmp support.
16047
16048 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16049
16050         [BZ #13153]
16051         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16052         2011-07-19 change.
16053
16054         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16055         garbage value in a __mach_port_mod_refs call in the cases of the
16056         task-self and thread-self ports.
16057
16058 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16059
16060         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16061
16062 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16063
16064         * elf/dl-load.c (lose): Check for non-null L.
16065
16066 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16067
16068         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16069
16070         * elf/dl-libc.c (dlerror_run): Pass back error code from
16071         dl_catch_error.
16072
16073         [BZ #13123]
16074         * elf/dl-load.c (lose): Free l_origin if it is valid.
16075
16076         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16077         names.
16078         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16079         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16080         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16081         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16082         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16083         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16084
16085 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16086
16087         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16088         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16089         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16090         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16091         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16092         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16093         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16094         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16095         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16096         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16097
16098 2011-08-15  Alan Modra  <amodra@gmail.com>
16099
16100         [BZ #13092]
16101         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16102         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16103         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16104         ppc_mcount to static-only-routines.
16105         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16106         __mcount_internal.
16107         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16108         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16109
16110 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16111
16112         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16113         for finite and infinity parameters.
16114
16115 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16116
16117         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16118         and add nop instructions for throughput optimization.
16119         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16120
16121 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16122
16123         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16124         aligned copy for power7 with vector-scalar instructions.
16125         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16126
16127 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16128
16129         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16130         AVX check.
16131
16132 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16133
16134         [BZ #13144]
16135         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16136         last change.
16137
16138 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16139
16140         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16141         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16142         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16143         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16144         clock_gettime.
16145
16146 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16147
16148         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16149         Forgot to demangle the pointer.
16150
16151         * sysdeps/i386/sysdep.h: Define atom_text_section.
16152         * sysdeps/x86_64/sysdep.h: Likewise.
16153         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16154         section with atom_text_section.
16155         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16156         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16157         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16158         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16159         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16160
16161         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16162         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16163         already be defined.  Change to take two parameters and don't assign
16164         result to variable.  Adjust all users.
16165         Define INTERNAL_GETTIME if not already defined.
16166         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16167         call.
16168         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16169         HAVE_CLOCK_GETTIME_VSYSCALL.
16170         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16171
16172         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16173         gettimeofday vsyscall, just use time.
16174
16175 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16176
16177         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16178         <errno.h>.
16179
16180 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16181
16182         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16183         syscall on x86-64.
16184         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16185         syscall.
16186         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16187         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16188         syscall if possible.
16189
16190 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16191
16192         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16193         e_ident.  Don't pass to find_mapsXX.
16194         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16195
16196 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16197
16198         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16199         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16200         * sysdeps/x86_64/multiarch/strchr.S: Update.
16201         Check bit_slow_BSF bit.
16202         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16203         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16204         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16205
16206 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16207
16208         [BZ #13134]
16209         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16210         before glibc 2.15.
16211         (tryshell): Define.
16212         (__spawni): Change last parameter to be flag.  Test
16213         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16214         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16215         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16216         * posix/spawni.c: Likewise.
16217         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16218         * posix/spawnp.c: Likewise.  Change normal version to use
16219         SPAWN_XFLAGS_USE_PATH.
16220         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16221         SPAWN_XFLAGS_TRY_SHELL.
16222
16223         [BZ #13150]
16224         * posix/glob.h: Remove gcc 1.x support.
16225
16226         [BZ #13068]
16227         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16228
16229 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16230
16231         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16232         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16233         strrchr-sse2-bsf
16234         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16235         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16236         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16237         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16238         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16239         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16240
16241 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16242
16243         * sysdeps/x86_64/wcscmp.S: New file.
16244
16245         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16246         wcscmp-c wcscmp-sse2
16247         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16248         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16249         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16250         * wcsmbs/wcscmp.c: Allow renaming.
16251
16252 2011-09-05  David S. Miller  <davem@davemloft.net>
16253
16254         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16255         stack slot, rather than the struct return pointer slot.
16256         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16257         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16258         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16259         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16260
16261 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16262
16263         * po/ja.po: Update from translation team.
16264
16265         [BZ #13144]
16266         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16267         kernel in 64-bit binaries.
16268
16269 2011-09-01  David S. Miller  <davem@davemloft.net>
16270
16271         * elf/elf.h (HWCAP_SPARC_*): Move to..
16272         * sysdeps/sparc/sysdep.h: this new file and add new values.
16273         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16274         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16275         _DL_HWCAP_COUNT to 24.
16276         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16277         entries.
16278         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16279         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16280         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16281         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16282         instead of magic constants.
16283         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16284
16285 2011-08-31  David S. Miller  <davem@davemloft.net>
16286
16287         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16288         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16289         Reimplement to do errno handling inline.
16290         (SYSCALL_ERROR_HANDLER): New macro.
16291         (__SYSCALL_STRING): Do not do errno handling in asm.
16292         (__CLONE_SYSCALL_STRING): Delete.
16293         (__INTERNAL_SYSCALL_STRING): Delete.
16294         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16295         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16296         (PSEUDO): Reimplement to do errno handling inline.
16297         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16298         (SYSCALL_ERROR_HANDLER): New macro.
16299         (__SYSCALL_STRING): Do not do errno handling in asm.
16300         (__CLONE_SYSCALL_STRING): Delete.
16301         (__INTERNAL_SYSCALL_STRING): Delete.
16302         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16303         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16304         i386.
16305         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16306         (inline_syscall*): Add 'err' argument.
16307         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16308         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16309         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16310         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16311
16312         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16313         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16314
16315 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16316
16317         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16318
16319 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16320
16321         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16322         directive.
16323
16324 2011-08-24  David S. Miller  <davem@davemloft.net>
16325
16326         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16327
16328 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16329
16330         * elf/Makefile: Add rules to build and run unload8 test.
16331         * elf/unload8.c: New file.
16332         * elf/unload8mod1.c: New file.
16333         * elf/unload8mod1x.c: New file.
16334         * elf/unload8mod2.c: New file.
16335         * elf/unload8mod3.c: New file.
16336
16337         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16338         it wasn't used.
16339
16340 2011-08-23  David S. Miller  <davem@davemloft.net>
16341
16342         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16343         subtract stack bias.
16344         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16345         %sp not %fp in calculations.
16346         (_JMPBUF_UNWINDS_ADJ): Likewise.
16347
16348         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16349         (aio_suspend): Call it to force an exception region around the
16350         AIO_MISC_WAIT() invocation.
16351
16352 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16353
16354         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16355         backslash.
16356
16357 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16358
16359         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16360         protection macro.
16361         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16362         and <dl-machine.h>.
16363         (Elf64_FuncDesc): Remove.
16364
16365 2011-08-22  David S. Miller  <davem@davemloft.net>
16366
16367         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16368         sigaltstack check, add missing cfi directives.
16369         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16370         missing cfi directives, and sigaltstack handling.
16371
16372 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16373
16374         [BZ #11724]
16375         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16376         object is seen twice.
16377         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16378
16379         * elf/Makefile (distribute): Add tst-initorder2.c.
16380         (tests): Add tst-initorder2.
16381         (modules-names): Add tst-initorder2a tst-initorder2b
16382         tst-initorder2c tst-initorder2d.  Add rules to build them.
16383         ($(objpfx)tst-initorder2.out): New rule.
16384         * elf/tst-initorder2.c: New file.
16385         * elf/tst-initorder2.exp: New file.
16386
16387 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16388
16389         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16390
16391         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16392         dependencies back to end of function.
16393
16394         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16395         $(elfobjdir)/ld.so.
16396
16397 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16398
16399         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16400         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16401         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16402         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16403         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16404         of __vdso_gettimeofday.
16405         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16406         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16407         attribute_hidden.
16408         (_libc_vdso_platform_setup): Remove initialization of
16409         __vdso_gettimeofday and __vdso_time.
16410
16411 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16412
16413         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16414         and fgetc_unlocked.
16415         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16416         getc_unlocked.
16417
16418         * elf/dl-open.c (add_to_global): Report additions to the global scope
16419         for LD_DEBUG=scopes.
16420         (dl_open_worker): Also print scope of newly loaded dependencies.
16421         (_dl_show_scope): Indicate if there is no scope.
16422
16423         [BZ #13114]
16424         * stdio-common/Makefile (tests): Add bug24.
16425         * stdio-common/bug24.c: New file.
16426
16427 2011-08-19  Andreas Jaeger  <aj@suse.de>
16428
16429         [BZ #13114]
16430         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16431         non-existant file when using close-on-exec mode.
16432
16433 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16434
16435         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16436         the very first instruction.
16437
16438         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16439         the CFI state in the end.
16440         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16441         inclusion of dl-trampoline.h.
16442         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16443
16444 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16445
16446         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16447         expectations for long double.
16448
16449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16450         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16451
16452 2011-08-14  David S. Miller  <davem@davemloft.net>
16453
16454         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16455         artificual limit depends upon the system page size.
16456
16457 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16458
16459         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16460         * resolv/Makefile: Define CFLAGS-libresolv.
16461
16462 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16463
16464         * nss/makedb.c (compute_tables): Make variables used in nested
16465         function static.
16466
16467 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16468
16469         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16470         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16471         if buffer was too small.
16472
16473         * elf/pldd.c (main): Attach to all threads in the process.
16474         Rewrite /proc handling to use *at functions.
16475
16476 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16477
16478         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16479         specifies first scope to show.
16480         (dl_open_worker): Update callers.  Move printing scope of new
16481         object to before the relocation.
16482         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16483         * sysdeps/generic/ldsodefs.h: Update declaration.
16484
16485         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16486         string for the scope number.
16487
16488 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16489
16490         * nscd/servicescache.c (cache_addserv): Make sure written is always
16491         initialized.
16492
16493 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16494
16495         * sysdeps/i386/i486/bits/atomic.h
16496         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16497         statement expression, so as to suppress "set but not used" warning.
16498         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16499
16500         * string/strncat.c (STRNCAT): Use prototype definition.
16501
16502         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16503         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16504         -Iprograms here.
16505         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16506         (localedef-modules): Add localedef.
16507         (locale-modules): Add locale.
16508
16509         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16510         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16511         to avoid a warning.
16512
16513 2011-08-14  David S. Miller  <davem@davemloft.net>
16514
16515         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16516         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16517
16518 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16519
16520         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16521         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16522         * elf/rtld.c (dl_main): Set l_name of vDSO.
16523         Call _dl_show_scope when DL_DEBUG_SCOPES.
16524         (process_dl_debug): Recognize scopes flag and also set it for all.
16525         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16526         Declare _dl_show_scope.
16527
16528         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16529         (do_dlopen): Pass caller_dlopen to dl_open.
16530         (__libc_dlopen_mode): Initialize caller_dlopen.
16531
16532         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16533         of libc.  Make tolower call locale-independent.  Optimize a bit by
16534         using isdigit instead of isalnum.
16535         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16536
16537 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16538
16539         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16540         was a dependency or dynamically loaded.
16541
16542 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16543
16544         * intl/l10nflist.c: Allow architecture-specific pop function.
16545         * sysdeps/x86_64/l10nflist.c: New file.
16546
16547         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16548         classification.
16549
16550 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16551
16552         * include/dirent.h: Add libc_hidden_proto for scandirat and
16553         scandirat64.  Don't declare __scandirat64.
16554         * dirent/scandirat.c: Add libc_hidden_def.
16555         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16556         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16557
16558 2011-08-10  David S. Miller  <davem@davemloft.net>
16559
16560         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16561         enum.
16562         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16563         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16564         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16565
16566 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16567
16568         * Versions.def [libc]: Add GLIBC_2.15.
16569         * dirent/Makefile (routines): Add scandirat and scandirat64.
16570         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16571         GLIBC_2.15.
16572         * dirent/dirent.h: Declare scandirat and scandirat64.
16573         * dirent/scandirat.c: New file.
16574         * dirent/scandirat64.c: New file.
16575         * sysdeps/wordsize-64/scandirat.c: New file.
16576         * sysdeps/wordsize-64/scandirat64.c: New file.
16577         * dirent/opendir.c: Define opendirat.
16578         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16579         using scandirat.
16580         * dirent/scandir64.c: Adjust for scandir.c change.
16581         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16582         __scandirat64, and __scandir_cancel_handler.
16583         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16584         additional parameter and use openat instead of open (outside of ld.so).
16585         Add new __opendir as wrapper around __opendirat.
16586         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16587         here without requiring old scandirat implementation.
16588
16589 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16590
16591         * dirent/scandir.c (cancel_handler): Renamed to
16592         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16593         defined.  Adjust users.
16594         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16595         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16596
16597 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16598
16599         * string/test-string.h (IMPL): Use __STRING to expand name and then
16600         stringify it.
16601
16602         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16603         of cleanups.
16604
16605 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16606
16607         * string/Makefile: Update.
16608         (strop-tests): Append strncat.
16609         * string/test-wcscmp.c: New file.
16610         New comprehensive test for wcscmp.
16611         * string/test-strcmp.c: Update.
16612         (WIDE): New define.
16613
16614 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16615
16616         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16617         line.
16618
16619 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16620
16621         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16622         encoding to ACE if AI_IDN.
16623
16624 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16625
16626         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16627         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16628
16629 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16630
16631         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16632         Fix overflow bug in strncat.
16633         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16634
16635         * string/test-strncat.c: Update.
16636         Add new tests for checking overflow bugs.
16637
16638 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16639
16640         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16641         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16642         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16643         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16644         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16645         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16646         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16647         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16648         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16649
16650         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16651         (USE_AS_STRCAT): Define.
16652         Add strcat and strncat support.
16653         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16654
16655 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16656
16657         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16658         __n bigger than INT_MAX+1.
16659         (__strncmp_g): Likewise.
16660
16661 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16662
16663         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16664         * libio/stido.h: Likewise.
16665
16666         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16667         (AF_NFC): Define.
16668         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16669         (AF_NFC): Define.
16670
16671         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16672         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16673         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16674         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16675         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16676
16677         [BZ #13021]
16678         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16679         installed.
16680
16681         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16682         typo.
16683         (_dl_x86_64_save_sse): Likewise.
16684
16685 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16686
16687         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16688         OSXSAVE.
16689         (_dl_x86_64_save_sse): Likewise.
16690
16691         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16692
16693         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16694
16695 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16696
16697         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16698         change.
16699         (_dl_x86_64_save_sse): Use correct AVX check.
16700
16701 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16702
16703         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16704         bug in strncpy/strncat.
16705         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16706
16707 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16708
16709         * string/tester.c (test_strcat): Add tests for different alignments
16710         of source and destination.
16711         (test_strncat): Likewise.
16712
16713 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16714
16715         [BZ #12852]
16716         * posix/glob.c (glob): Check passed in values before using them in
16717         expressions to avoid some overflows.
16718         (glob_in_dir): Likewise.
16719
16720         [BZ #13007]
16721         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16722         check for AVX enablement so that we don't crash with old kernels and
16723         new hardware.
16724         * elf/tst-audit4.c: Add same checks here.
16725         * elf/tst-audit6.c: Likewise.
16726
16727         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16728
16729 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16730
16731         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16732
16733 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16734
16735         * po/cs.po: Update from translation team.
16736         * po/bg.po: Likewise.
16737
16738 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16739
16740         * misc/sys/cdefs.h: Add support for const attribute.
16741         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16742         to gnu_dev_{major,minor,makedev} functions.
16743
16744 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16745
16746         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16747
16748 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16749
16750         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16751         strlen results.
16752
16753 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16754
16755         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16756         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16757         register in order to avoid conflicts with the soft frame pointer
16758         being held in r11 when necessary.
16759         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16760         (INTERNAL_VSYSCALL_NCS): Likewise.
16761
16762 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16763
16764         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
16765         * elf/dl-fini.c (_dl_fini): Adjust caller.
16766         * elf/dl-close.c (_dl_close_worker): Likewise.
16767         * sysdeps/generic/ldsodefs.h: Adjust declaration.
16768
16769 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16770
16771         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
16772         "aux_cache->nlibs < 0".
16773
16774         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
16775         in the reload-count case.
16776
16777 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16778
16779         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16780         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
16781         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
16782         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
16783         * sysdeps/x86_64/multiarch/strcat.S: New file.
16784         * sysdeps/x86_64/multiarch/strncat.S: New file.
16785         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
16786         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
16787         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
16788         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
16789         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
16790         (USE_AS_STRCAT): Define.
16791         Add strcat and strncat support.
16792         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16793         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16794         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
16795         * string/strncat.c: Update.
16796         (USE_AS_STRNCAT): Define.
16797         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16798         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
16799         and i7.
16800         * sysdeps/x86_64/multiarch/init-arch.h
16801         (bit_Prefer_PMINUB_for_stringop): New.
16802         (index_Prefer_PMINUB_for_stringop): Likewise.
16803         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
16804         bit_Prefer_PMINUB_for_stringop.
16805
16806 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16807
16808         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
16809         buffer64.
16810         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
16811         of casting of buffer.
16812         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
16813         buffer32 and buffer64.
16814         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
16815         writes instead of casting of buffer.
16816         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
16817         buffer32.
16818         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
16819         casting of buffer.
16820
16821 2011-07-19  Andreas Schwab  <schwab@redhat.com>
16822
16823         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
16824
16825 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
16826
16827         * nscd/nscd.c (termination_handler): Don't do anything for a database
16828         if it has not yet been initialized.
16829
16830 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16831
16832         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16833
16834 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
16835
16836         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
16837
16838 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
16839
16840         * po/nl.po: Update from translation team.
16841         * po/sv.po: Likewise.
16842
16843 2011-07-16  Roland McGrath  <roland@hack.frob.com>
16844
16845         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
16846         now disallowed by GCC.
16847
16848         * configure.in (use-default-link): Default to yes if a test -shared
16849         link meets our qualifications.
16850         * configure: Regenerated.
16851
16852         * config.make.in (output-format): New variable.
16853         * configure.in: Check for ld --print-output-format support.
16854         * configure: Regenerated.
16855         * Makerules ($(common-objpfx)format.lds)
16856         [$(output-format) != unknown]: Just use $(output-format),
16857         instead of the linker-script munging.
16858
16859 2011-07-14  Roland McGrath  <roland@hack.frob.com>
16860
16861         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
16862         of $(common-objpfx)shlib.lds.
16863         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
16864
16865         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
16866         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
16867
16868         * configure.in (-z relro check): Adjust test code to add a large
16869         writable data section after it.
16870         * configure: Regenerated.
16871
16872 2011-07-11  Roland McGrath  <roland@hack.frob.com>
16873
16874         * configure.in (-z relro check): Fix test code to make the variable
16875         truly const.
16876         * configure: Regenerated.
16877
16878 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
16879
16880         * nscd/nscd.h (struct traced_file): Define.
16881         (struct database_dyn): Remove inotify_descr, reset_res, and filename
16882         elements.  Add traced_files.
16883         (inotify_fd): Declare.
16884         (register_traced_file): Declare.
16885         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
16886         (inotify_fd): Export.
16887         (resolv_conf_descr): Remove.
16888         (nscd_init): Move inotify descriptor creation to main.
16889         Don't register files for notification here.
16890         (register_traced_file): New function.
16891         (invalidate_cache): Don't use reset_res to determine whether to call
16892         res_init, go through the list of registered files.
16893         (main_loop_poll): The inotify descriptors are now stored in the
16894         structures for the traced files.
16895         (main_loop_epoll): Likewise
16896         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
16897         to __nss_disable_nscd.
16898         * nscd/cache.c (prune_cache): There is no single inotify descriptor
16899         for a database anymore.  Check the records for all the registered
16900         files instead.
16901         * nss/Makefile (libnss_files-routines): Add files-init.
16902         (libnss_db-routines): Add db-init.
16903         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
16904         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
16905         * nss/nss_db/db-init.c: New file.
16906         * nss/nss_files/files-init.c: New file.
16907         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
16908         __nss_lookup_function.
16909         (__nss_lookup_function): Call nss_load_library.
16910         (nss_load_all_libraries): New function.
16911         (__nss_disable_nscd): Take parameter with callback function for files
16912         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
16913         used for the cached services.
16914         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
16915         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
16916         options for features to all the files in nscd.
16917
16918         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
16919
16920 2011-07-10  Roland McGrath  <roland@hack.frob.com>
16921
16922         * csu/elf-init.c (__libc_csu_init): Comment typo.
16923
16924 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
16925
16926         * po/pl.po: Update from translation team.
16927         * po/ja.po: Likewise.
16928         * po/ru.po: Likewise.
16929         * po/ko.po: Likewise.
16930         * po/fr.po: Likewise.
16931
16932 2011-07-09  Roland McGrath  <roland@hack.frob.com>
16933
16934         * configure.in (.ctors/.dtors header and trailer check):
16935         Use an empirical test on a built program.
16936         * configure: Regenerated.
16937
16938         * configure.in (-z relro check): Use an empirical test on a built DSO.
16939         Detect, but do not require, on ia64.
16940         * configure: Regenerated.
16941
16942         * configure.in (READELF): Find it with AC_CHECK_TOOL.
16943         Update tests that use readelf to use $READELF instead.
16944         * configure: Regenerated.
16945
16946 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
16947
16948         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
16949         if the result is not used.
16950
16951 2011-07-05  Andreas Jaeger  <aj@suse.de>
16952
16953         [BZ#9696]
16954         * stdlib/tst-strtod.c: Add testcase.
16955
16956 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16957
16958         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
16959         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
16960         The latter has a higher limit.  Take additional parameter to pass to
16961         the new function.
16962         (__pathconf): Pass file to __statfs_link_max.
16963         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
16964         __statfs_link_max.
16965         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
16966         __statfs_link_max.
16967
16968         [BZ #12868]
16969         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
16970         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16971         Handle Lustre.
16972         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
16973         (__statfs_filesize_max): Likewise.
16974         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
16975
16976 2011-07-05  Andreas Jaeger  <aj@suse.de>
16977
16978         * resolv/res_comp.c (dn_skipname): Remove unused variable.
16979
16980 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
16981
16982         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
16983         `status' variable.
16984         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
16985         Likewise.
16986
16987 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16988
16989         * Makefile (strop-tests): Add strncat.
16990         * string/test-strncat.c: New file.
16991
16992 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
16993
16994         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
16995
16996 2011-06-21  Andreas Jaeger  <aj@suse.de>
16997
16998         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
16999         Copy rule from iconvdata/Makefile.
17000
17001 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17002
17003         [BZ #12922]
17004         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17005         but no long options are defined, just return 'W'.
17006
17007 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17008
17009         [BZ #9696]
17010         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17011
17012 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17013
17014         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17015         netgroups to read.
17016         (innetgr): Likewise.
17017
17018 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17019
17020         * config.make.in (install_root): Default to $(DESTDIR).
17021
17022 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17023
17024         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17025
17026 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17027
17028         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17029
17030         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17031         containing directory rather than embedding absolute directory names.
17032
17033         * scripts/check-local-headers.sh: Rewritten using awk.
17034         Match by word, not by line.  Print error messages for matches.
17035         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17036
17037         * Makerules [shlib-lds-flags empty]:
17038         ($(common-objpfx)libc_pic.opts): New target.
17039         ($(common-objpfx)libc_pic.os.clean): New target.
17040         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17041
17042         * config.make.in (OBJCOPY): New variable.
17043         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17044         * configure: Regenerated.
17045
17046         * config.make.in (use-default-link): New variable.
17047         * configure.in (use_default_link): Grok --with-default-link to set it.
17048         * configure: Regenerated.
17049         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17050         (shlib-lds, shlib-lds-flags): Define to empty.
17051
17052         * Makerules (shlib-lds): New variable.
17053         (shlib-lds-flags): New variable.
17054         (build-shlib, build-moduile, build-module-asneeded): Use it.
17055         ($(common-objpfx)libc.so): Use $(shlib-lds).
17056         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17057         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17058
17059         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17060         DT_FLAGS/DT_FLAGS_1 with zero flags.
17061
17062         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17063         linker script munging.
17064
17065 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17066
17067         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17068         as 128-bit value.
17069         * crypt/sha512.c (sha512_process_block): Perform total addition using
17070         128-bit if possible.
17071         (__sha512_finish_ctx): Likewise.
17072         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17073         as 64-bit value.
17074         * crypt/sha256.c (SWAP64): Define.
17075         (sha256_process_block): Perform total addition using 64-bit if
17076         possible.
17077         (__sha256_finish_ctx): Likewise.
17078
17079 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17080
17081         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17082         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17083         * nscd/hstcache.c (cache_addhst): Likewise.
17084         * nscd/grpcache.c (cache_addgr): Likewise.
17085         * nscd/aicache.c (addhstaiX): Likewise
17086         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17087
17088 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17089
17090         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17091         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17092         * nscd/hstcache.c (cache_addhst): Likewise.
17093         * nscd/grpcache.c (cache_addgr): Likewise.
17094         * nscd/aicache.c (addhstaiX): Likewise
17095
17096 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17097
17098         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17099         domain only when needed.
17100
17101 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17102
17103         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17104         is always restored.
17105
17106 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17107
17108         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17109         are re-adding the entry.
17110         * nscd/servicescache.c (cache_addserv): Likewise.
17111
17112 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17113
17114         * sysdeps/generic/dl-irel.h: fix protection against multiple
17115         inclusions.
17116         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17117
17118 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17119
17120         [BZ #12935]
17121         * malloc/memusage.sh: Fix quoting in message.
17122         * debug/xtrace.sh: Likewise.
17123
17124         * configure.in: Remove support for --experimental-malloc option, make
17125         it the default.
17126         * config.make.in: Likewise.
17127         * malloc/Makefile: Likewise.
17128
17129 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17130
17131         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17132         two-byte characters.
17133
17134 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17135
17136         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17137         AC_CACHE_CHECK invocation.
17138         * configure: Regenerated.
17139
17140         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17141
17142 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17143
17144         [BZ #12350]
17145         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17146         bit from old_res_options.
17147
17148         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17149
17150         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17151         value type for setfct.
17152
17153 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17154
17155         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17156         __gettimeofday instead of gettimeofday.
17157
17158 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17159
17160         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17161
17162 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17163
17164         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17165
17166         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17167         info.
17168
17169 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17170
17171         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17172         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17173         strcpy-sse2-unaligned strncpy-sse2-unaligned
17174         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17175         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17176         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17177         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17178         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17179         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17180         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17181         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17182         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17183         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17184         (STRCPY): Support SSE2 and SSSE3 versions.
17185
17186 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17187
17188         [BZ #12874]
17189         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17190         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17191         kernels which artificially limit size of requests.
17192
17193 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17194
17195         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17196         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17197         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17198         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17199         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17200         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17201         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17202         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17203         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17204         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17205         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17206         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17207         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17208         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17209         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17210         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17211         Enable unaligned load optimization for Intel Core i3, i5 and i7
17212         processors.
17213         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17214         Define.
17215         (index_Fast_Unaligned_Load): Define.
17216         (HAS_FAST_UNALIGNED_LOAD): Define.
17217
17218 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17219
17220         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17221
17222 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17223
17224         [BZ #12907]
17225         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17226         until it is clear that the information is realy needed.
17227         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17228
17229 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17230
17231         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17232
17233 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17234
17235         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17236         /sys/devices/system/cpu/online if it is usable.
17237
17238         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17239         reading the information from the /proc filesystem to once a second.
17240
17241 2011-06-21  Andreas Jaeger  <aj@suse.de>
17242
17243         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17244         NULL after inclusion of kernel headers.
17245
17246 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17247
17248         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17249         calls to internal_setent.
17250
17251         [BZ #12885]
17252         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17253         addresses using gethostbyname4_r ignore IPv4 addresses.
17254
17255         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17256         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17257
17258         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17259
17260 2011-06-20  David S. Miller  <davem@davemloft.net>
17261
17262         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17263         inclusions.
17264         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17265
17266         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17267         (elf_irel): Use it.
17268         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17269         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17270         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17271         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17272         * sysdeps/x86_64/dl-irel.h: Likewise.
17273
17274         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17275         * elf/dl-sym.c: Likewise.
17276
17277 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17278
17279         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17280         need to dereference resplen2.
17281
17282 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17283
17284         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17285
17286 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17287
17288         * Makeconfig: Define vardbdir and inst_vardbdir.
17289         * nss/Makefile: Add rules to install db-Makefile.
17290
17291         * nss/nss_db/db-XXX.c: Cleanup.
17292
17293         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17294         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17295         GLIBC_PRIVATE.
17296         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17297         * nss/makedb.c: Implement -g option to specify that value strings
17298         are generated and should not be added to table iterated over for
17299         get*ent calls.
17300         * nss/nss_db/db-initgroups.c: New file.
17301
17302         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17303         interface.
17304
17305         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17306         (internal_getgrouplist): Adjust to name change.
17307         Update use_initgroups_entry if this is not the first call.
17308         * nss/databases.def: Add initgroups entry.
17309
17310         * nss/makedb.c (compute_tables): Check result of multiple hash table
17311         sizes to minimize maximum chain length.
17312
17313 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17314
17315         * Versions.def: Add entry for libnss_db.
17316         * shlib-versions: Likewise.
17317         * nss/Makefile: Add rules to build libnss_db.
17318         * nss/Versions: Add libnss_db information.  Organize libnss_files
17319         entries better.
17320         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17321         makedb progra.  Some minor improvements to generate smaller files.
17322         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17323         here from...
17324         * nss/makedb.c: ...here.
17325         Improve database format to be smaller and require less memory at
17326         runtime.
17327         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17328         db anymore.
17329         * nss/nss_db/db-netgrp.c: Likewise.
17330         * nss/nss_db/db-open.c: Likewise.
17331         * nss/nss_files/flies-XXX.x: Adjust comments.
17332         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17333         * nss/nss_files/files-grp.c: Likewise.
17334         * nss/nss_files/files-hosts.c: Likewise.
17335         * nss/nss_files/files-network.c: Likewise.
17336         * nss/nss_files/files-proto.c: Likewise.
17337         * nss/nss_files/files-pwd.c: Likewise.
17338         * nss/nss_files/files-rpc.c: Likewise.
17339         * nss/nss_files/files-service.c: Likewise.
17340         * nss/nss_files/files-sgrp.c: Likewise.
17341         * nss/nss_files/files-spwd.c: Likewise.
17342         * nss/nss_db/db-alias.c: Removed.
17343         * nss/nss_db/dummy-db.h: Removed.
17344
17345 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17346
17347         * nss/makedb.c: Rewritten to not use database library.
17348         * nss/Makefile: Update to build new makedb program.
17349
17350 2011-06-14  Andreas Jaeger  <aj@suse.de>
17351
17352         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17353         memset declaration.
17354
17355 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17356
17357         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17358         tmpbuf.
17359
17360 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17361
17362         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17363         * elf/Makefile ($(objpfx)ld.so): Likewise.
17364
17365         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17366         Don't list ld.so twice in dependencies.
17367
17368         * posix/bug-regex31.c: Include <stdlib.h>.
17369
17370         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17371
17372         * nis/nss_compat/compat-spwd.c
17373         (getspent_next_nss_netgr): Remove unused variable.
17374         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17375
17376         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17377         nonmembers" output to use the right array.
17378
17379         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17380
17381         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17382
17383         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17384         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17385         * catgets/gencat.c (read_input_file): Likewise.
17386         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17387
17388         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17389         variable definition inside #if's controlling its use.
17390
17391         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17392
17393         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17394
17395         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17396
17397         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17398         unreachable code.
17399
17400         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17401
17402         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17403         * configure: Regenerated.
17404
17405         * Makerules: Revert last change.
17406         * elf/Makefile: Likewise.
17407
17408 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17409
17410         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17411         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17412         (reloc-link): Likewise.
17413
17414 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17415
17416         * elf/Makefile: Add rules to build pldd.
17417         * elf/pldd.c: New file.
17418         * elf/pldd-xx.c: New file.
17419
17420 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17421
17422         * version.h: Update for 2.15 development version.
17423
17424 2011-06-07  David S. Miller  <davem@davemloft.net>
17425
17426         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17427         ifuncs.
17428         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17429         elf_machine_lazy_rel): Likewise.
17430         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17431         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17432         elf_machine_lazy_rel): Likewise.
17433         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17434         dl_hwcap via passed in argument.
17435         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17436         Likewise.
17437
17438 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17439
17440         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17441
17442 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17443
17444         [BZ #12849]
17445         * manual/fdl-1.1.texi: New file, verbatim from:
17446         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17447         * manual/lgpl-2.1.texi: New file, verbatim from:
17448         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17449         * manual/Makefile (licenses): New variable, list those new file names.
17450         (texis): Use it.
17451         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17452
17453         * manual/fdl.texi: File removed.
17454         * manual/lesser.texi: File removed.
17455         * manual/libc.texinfo (Copying, Documentation License):
17456         Use new @include file names, put @appendix directive before @include.
17457
17458 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17459
17460         [BZ #12841]
17461         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17462         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17463         (mq_open): Add __NTH.
17464
17465 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17466
17467         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17468         Assume Intel Core i3/i5/i7 processor if AVX is available.
17469
17470 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17471
17472         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17473         typo.
17474
17475 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17476
17477         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17478         memory.  Use alloca_account.  Fix memory leak when retrying.
17479
17480 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17481
17482         * version.h (RELEASE): Bump for 2.14 release.
17483         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17484
17485         * config.make.in (RANLIB): Remove entry.
17486
17487 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17488
17489         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17490         (libc.pot): Work around missing support for .ksh extension in xgettext.
17491
17492         [BZ #12684]
17493         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17494         if both request failed.
17495         (send_dg): In case of server errors clear resplen or *resplen2.
17496
17497         [BZ #12454]
17498         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17499         when there are multiple maps.
17500         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17501         (_dl_fini): Remove test here.
17502
17503         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17504
17505 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17506
17507         [BZ #12350]
17508         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17509         bit from old_res_options.
17510         (gaih_inet): Likewise.
17511
17512         [BZ #11099]
17513         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17514         as signed.
17515
17516         * resolv/res_init.c (res_setoptions): Make the code more compact.
17517
17518         [BZ #11558]
17519         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17520         set RES_USEVC.
17521
17522         [BZ #11634]
17523         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17524
17525         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17526
17527         [BZ #11781]
17528         * malloc/malloc.h: Declare malloc hook variables as volatile.
17529
17530         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17531         in last patch.
17532
17533         [BZ #11799]
17534         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17535         raise in the comment.
17536         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17537         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17538         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17539
17540 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17541
17542         [BZ #12811]
17543         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17544         grow the buffers more if it already has to be sufficient.
17545         (build_wcs_upper_buffer): Likewise.
17546         * posix/regexec.c (check_matching): Likewise.
17547         (clean_state_log_if_needed): Likewise.
17548         (extend_buffers): Don't enlarge buffers beyond size of the input
17549         buffer.
17550         Patches mostly by Emil Wojak <emil@wojak.eu>.
17551         * posix/bug-regex32.c: New file.
17552         * posix/Makefile (tests): Add bug-regex32.
17553
17554         * locale/findlocale.c (_nl_find_locale): Return right away if
17555         _nl_explode_name failed.
17556         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17557
17558         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17559
17560         * debug/xtrace.sh: Unify messages.
17561         * malloc/memusage.sh: Likewise.
17562
17563         [BZ #12813]
17564         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17565         time symbol from vDSO.  Substitute with vsyscall if not available.
17566         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17567         __vdso_time.
17568
17569         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17570         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17571         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17572         Add sendmmsg and internal_sendmmsg.
17573         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17574         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17575         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17576
17577         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17578         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17579         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17580
17581 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17582
17583         [BZ #12813]
17584         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17585         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17586         available.
17587         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17588         __vdso_getcpu.
17589
17590         [BZ #12814]
17591         * iconvdata/Makefile (tests): Add bug-iconv9.
17592         * iconvdata/bug-iconv9.c: New file.
17593
17594 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17595
17596         [BZ #12814]
17597         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17598
17599 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17600
17601         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17602         (struct user_regs_struct): Change intcs field back to cs.
17603
17604 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17605
17606         * po/ja.po: Update from translation team.
17607
17608 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17609
17610         [BZ #12795]
17611         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17612         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17613
17614 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17615
17616         * stdlib/longlong.h: Update from GCC.
17617
17618 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17619
17620         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17621         parameter name.
17622         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17623         Add parameter name.
17624         (__sysconf): Pass it down.
17625
17626 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17627
17628         [BZ #12671]
17629         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17630         some situations.
17631         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17632         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17633         add in in __libc_use_alloca calls.  Adjust callers.
17634         (glob): Use malloc in some situations.
17635
17636         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17637         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17638         pltexit.
17639
17640 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17641
17642         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17643         and CLOCK_BOOTTIME_ALARM.
17644
17645         [BZ #12782]
17646         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17647         is returned.
17648
17649         * string/_strerror.c (__strerror_r): Print negative errors as signed
17650         numbers.
17651
17652         [BZ #12777]
17653         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17654         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17655         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17656
17657         * configure.in: Fix typo in redirection and correct removal of test
17658         files in two cases.
17659
17660         [BZ #12788]
17661         * locale/setlocale.c (new_composite_name): Fix test to check for
17662         identical name of all categories.
17663
17664         [BZ #12792]
17665         * libio/filedoalloc.c (local_isatty): New function.
17666         (_IO_file_doallocate): Use local_isatty.
17667         * stdio-common/perror.c (perror): In case a new stream is used
17668         forward the stream error.
17669         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17670         error flag.
17671
17672 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17673
17674         [BZ #11869]
17675         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17676         alloca.
17677         * include/alloca.h (extend_alloca_account): Define.
17678
17679         [BZ #11857]
17680         * posix/regex.h: Fix comments with documentation of user-accessible
17681         fields after compilation and describe correct free'ing of pattern
17682         after re_compile_pattern.
17683         Patch by Reuben Thomas <rrt@sc3d.org>.
17684
17685 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17686
17687         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17688         and -mno-altivec to prevent the compiler from using Altivec and/or
17689         VSX instructions when the corresponding registers are not available.
17690
17691 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17692
17693         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17694
17695 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17696
17697         * libio/freopen.c (freopen): Use __dup2, not dup2.
17698         * libio/freopen64.c (freopen64): Likewise.
17699
17700 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17701
17702         [BZ #12775]
17703         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17704         * math/Makefile (tests): Add test-powl.
17705         (CFLAGS-test-powl.c): Define.
17706         * math/test-powl.c: New file.
17707
17708 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17709
17710         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17711
17712 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17713
17714         [BZ #11837]
17715         * iconvdata/gb18030.c: Update to GB18020-2005.
17716
17717 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17718
17719         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17720         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17721         Patch by Aharon Robbins <arnold@skeeve.com>.
17722
17723         [BZ #11892]
17724         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17725         on the stack.
17726
17727         [BZ #11895]
17728         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17729         through underflows.
17730
17731         [BZ #12766]
17732         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17733         point to strings before performing equality test for error_one_per_line
17734         mode.
17735
17736         [BZ #11697]
17737         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17738
17739         [BZ #11820]
17740         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17741         (struct user_fpregs_struct): Avoid __uint*_t types.
17742
17743         [BZ #6420]
17744         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17745         symbol info.  Use it instead of calling _dl_addr locally.
17746         (lock_and_info): New function.
17747         (tr_freehook): Call lock_and_info and pass symbol info as additional
17748         parameter to tr_where.
17749         (tr_mallochook): Likewise.
17750         (tr_reallochook): Likewise.
17751         (tr_memalignhook): Likewise.
17752
17753         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17754         used and couldn't be at all thread-safe.
17755
17756 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17757
17758         * libio/freopen.c (freopen): Don't close old file descriptor
17759         before the new one is opened.  Instead dup the new file descriptor
17760         to the old one after the new stream is created.
17761         * libio/freopen64.c (freopen64): Likewise.
17762         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17763         * libio/fileops.c (_IO_new_file_close_it): Handle new
17764         _IO_FLAGS2_NOCLOSE flag.
17765         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
17766         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
17767         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
17768         _IO_FLAGS2_NOCLOSE flag.
17769         * include/unistd.h: Add hidden_proto for dup3.
17770         Define __have_dup3.
17771         * io/dup3.c: Define hidden symbol.
17772         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
17773
17774         [BZ #7101]
17775         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
17776         when an incomplete long option is used.
17777         * posix/tst-getopt_long1.c: New file.
17778         * posix/Makefile (tests): Add tst-getopt_long1.
17779
17780         [BZ #10138]
17781         * scripts/config.guess: Update from autoconf-2.68.
17782         * scripts/config.sub: Likewise.
17783
17784         [BZ #10157]
17785         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
17786         tests into ...
17787         (has_cpuclock): ...this.  New function.
17788         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
17789         macro here based on has_cpuclock code.
17790
17791         [BZ #10149]
17792         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17793         First byte (not low byte) is now always NUL.
17794         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
17795
17796         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17797         Use non-cancelable interfaces.
17798
17799         [BZ #9809]
17800         * locale/iso-639.def: Add entry for Sorani.
17801
17802         [BZ #11901]
17803         * include/stdlib.h: Move include protection to the right place.
17804         Define abort_msg_s.  Declare __abort_msg with it.
17805         * stdlib/abort.c (__abort_msg): Adjust type.
17806         * assert/assert.c (__assert_fail_base): New function.  Majority
17807         of code from __assert_fail.  Allocate memory for __abort_msg with
17808         mmap.
17809         (__assert_fail): Now call __assert_fail_base.
17810         * assert/assert-perr.c: Remove bulk of implementation.  Use
17811         __assert_fail_base.
17812         * include/assert.hL Declare __assert_fail_base.
17813         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
17814         mmap.
17815         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
17816
17817 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
17818
17819         [BZ #11952]
17820         [BZ #12453]
17821         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
17822         until all modules are registered in the DTV.
17823         * elf/Makefile: Add rules to build and run tst-tls19.
17824         * elf/tst-tls19.c: New file.
17825         * elf/tst-tls19mod1.c: New file.
17826         * elf/tst-tls19mod2.c: New file.
17827         * elf/tst-tls19mod3.c: New file.
17828         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
17829
17830         [BZ #12083]
17831         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
17832         correctly.
17833
17834         [BZ #12601]
17835         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
17836         two-byte sequence errors.
17837         * iconvdata/Makefile (tests): Add bug-iconv8.
17838         * iconvdata/bug-iconv8.c: New file.
17839
17840         [BZ #12626]
17841         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
17842         buf2 definition.
17843
17844         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
17845
17846         [BZ #12432]
17847         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
17848         (dummy_getcfa): New function.
17849         (init): Get _Unwind_GetCFA address, use dummy if not found.
17850         (backtrace_helper): In recursion check, also check whether CFA changes.
17851         (__backtrace): Completely initialize arg.
17852
17853         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
17854         storing incomplete byte sequence in state object.  Avoid testing for
17855         guaranteed too small input if we know there is enough data available.
17856
17857 2011-05-11  Andreas Schwab  <schwab@redhat.com>
17858
17859         * Makeconfig (+link-pie): Indent.
17860         * Rules (binaries-pie): Define if $(have-fpie) and
17861         $(build-shared).
17862         (binaries-shared): Also filter out $(binaries-pie).
17863         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
17864         * nscd/Makefile (others-pie): Add nscd.
17865         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
17866         ($(objpfx)nscd): Remove command override.
17867         * login/Makefile (others-pie): Add pt_chown.
17868         ($(objpfx)pt_chown): Remove command override.
17869         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
17870         remove command overrides.
17871
17872 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
17873
17874         * libio/tst_putwc.c: Fix error messages.
17875
17876         [BZ #12724]
17877         * libio/fileops.c (_IO_new_file_close_it): Always flush when
17878         currently writing and seek to current position when not.
17879         * libio/Makefile (tests): Add bug-fclose1.
17880         * libio/bug-fclose1.c: New file.
17881
17882 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
17883
17884         [BZ #12511]
17885         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
17886         don't set DF_1_NODELETE here.
17887         (do_lookup_x): When entering new entry test for copy relocation
17888         and if necessary set DF_1_NODELETE flag.
17889         * elf/tst-unique4.cc: New file.
17890         * elf/tst-unique4.h: New file.
17891         * elf/tst-unique4lib.cc: New file.
17892         * elf/Makefile: Add rules to build and run tst-unique4.
17893         Patch by Piotr Bury <pbury@goahead.com>.
17894
17895 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17896
17897         [BZ #12052]
17898         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
17899
17900         [BZ #12625]
17901         * misc/mntent_r.c (addmntent): Flush the stream after the output
17902
17903         [BZ #12393]
17904         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
17905         (is_trusted_path_normalize): Skip initial colon.  Append slash
17906         to empty buffer.  Duplicate is_trusted_path code but allow
17907         constructed patch to be prefix.
17908         (is_dst): Allow $ORIGIN followed by /.
17909         (_dl_dst_substitute): Correct clearing of check_for_trusted.
17910         Correct testing of result of is_trusted_path_normalize
17911         (decompose_rpath): Fix warning.
17912
17913 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
17914
17915         [BZ #11257]
17916         * grp/initgroups.c (internal_getgrouplist): When we found the service
17917         list through the initgroups entry in nsswitch.conf do not always
17918         continue on a successful lookup.  Don't always use the
17919         __nss_group_database value if it is set.
17920         * nss/nsswitch.conf (initgroups): Change action for successful db
17921         lookup to continue for compatibility.
17922
17923 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
17924
17925         [BZ #11532]
17926         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
17927         and CP774 modules.
17928         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
17929         and CP774 modules.
17930         * iconvdata/tst-tables.sh: Likewise.
17931         * iconvdata/cp770.c: New file.
17932         * iconvdata/cp771.c: New file.
17933         * iconvdata/cp772.c: New file.
17934         * iconvdata/cp773.c: New file.
17935         * iconvdata/cp774.c: New file.
17936         * iconvdata/testdata/CP770: New file.
17937         * iconvdata/testdata/CP770..UTF8: New file.
17938         * iconvdata/testdata/CP771: New file.
17939         * iconvdata/testdata/CP771..UTF8: New file.
17940         * iconvdata/testdata/CP772: New file.
17941         * iconvdata/testdata/CP772..UTF8: New file.
17942         * iconvdata/testdata/CP773: New file.
17943         * iconvdata/testdata/CP773..UTF8: New file.
17944         * iconvdata/testdata/CP774: New file.
17945         * iconvdata/testdata/CP774..UTF8: New file.
17946
17947         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
17948         END CHARMAP line.
17949         * iconvdata/gen-8bit-gap.sh: Likewise.
17950         * iconvdata/gen-8bit.sh: Likewise.
17951
17952         * locale/iso-639.def: Add ary entry.
17953
17954         [BZ #11258]
17955         * locale/C-translit.h.in: Add U20A1 transliteration.
17956
17957         [BZ #12178]
17958         * locale/iso-639.def: Add wae entry.
17959         Patch by Kevin Bortis <bortis@translate-wae.ch>.
17960
17961         [BZ #12545]
17962         * locale/programs/localedef.c (construct_output_path): Use ssize_t
17963         for n.
17964
17965         [BZ #12711]
17966         * locale/C-translit.h.in: Add entry for U20B9.
17967         Patch by pravin.d.s@gmail.com.
17968
17969 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
17970
17971         [BZ #12713]
17972         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
17973         ENAMETOOLONG use generic getcwd.
17974         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
17975         in rtld.  Use *stat64.
17976         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
17977         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
17978         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
17979         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
17980         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
17981         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
17982         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
17983         __fstatat64 macros.
17984         * include/dirent.h: Add libc_hidden_proto for rewinddir.
17985         * dirent/rewinddir.c: Add libc_hidden_def.
17986         * sysdeps/mach/hurd/rewinddir.c: Likewise.
17987         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
17988
17989         * include/dirent.h (__alloc_dir): Add flags parameter.
17990         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
17991         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
17992         __alloc_dir.
17993         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
17994         from fdopendir if O_CLOEXEC is already set.
17995
17996 2011-03-15  Alan Modra  <amodra@gmail.com>
17997
17998         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
17999         l_tls_firstbyte_offset non-zero.  Save padding offset in
18000         l_tls_firstbyte_offset for later use.
18001         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18002         freeing static tls block.
18003
18004 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18005
18006         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18007         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18008         being defined by the kernel headers.
18009
18010 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18011
18012         [BZ #12734]
18013         * resolv/resolv.h: Define RES_NOTLDQUERY.
18014         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18015         no-tld-query and set RES_NOTLDQUERY.
18016         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18017         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18018         modern BIND to search name as TLD unless forbidden.
18019
18020 2011-05-07  Petr Baudis  <pasky@suse.cz>
18021             Ulrich Drepper  <drepper@gmail.com>
18022
18023         [BZ #12393]
18024         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18025         (is_trusted_path): ...to here.
18026         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18027         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18028         using is_trusted_path_normalize() in setuid scripts.
18029
18030 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18031
18032         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18033         __BEGIN/__END_DECLS.
18034
18035 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18036
18037         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18038         NSS_STATUS_NOTFOUND if no record was found.
18039
18040 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18041
18042         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18043         (headers-not-in-tirpc): Remove rpc/netdb.h
18044         * resolv/netdb.h: Revert last change.
18045
18046 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18047
18048         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18049         circular dependency between libgcc.a and libc.a.
18050
18051 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18052
18053         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18054         * nis/Makefile: Don't install rpcsvc/*.
18055         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18056         instead of <rpc/types.h>.
18057         (MAXHOSTNAMELEN): Define.
18058
18059 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18060
18061         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18062
18063 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18064
18065         [BZ #12714]
18066         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18067         gethostbyname4_r when IPv6 results are possible.
18068
18069 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18070
18071         [BZ #12723]
18072         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18073         _PC_PIPE_BUF handling.
18074
18075 2011-04-30  Bruno Haible  <bruno@clisp.org>
18076
18077         [BZ #12717]
18078         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18079         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18080         to 'int'.
18081         * inet/getnameinfo.c (getnameinfo): Likewise.
18082
18083 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18084
18085         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18086         to groups setting in database lookup.
18087         * nss/nsswitch.conf: Add initgroups entry.
18088
18089 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18090
18091         [BZ #12685]
18092         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18093         mode string.
18094         Patch by Eric Blake <eblake@redhat.com>.
18095
18096 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18097
18098         * sunrpc/Makefile (need-export-routines): Add svc_run.
18099         (routines): Remove svc_run.
18100         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18101         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18102         * sunrpc/svc_run.c (svc_run): Likewise.
18103         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18104
18105 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18106
18107         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18108         problem in reallocation in last patch.
18109
18110 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18111
18112         * sunrpc/Makefile: Move inclusion of Rules.
18113
18114 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18115
18116         * nss/nss_files/files-initgroups.c: New file.
18117         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18118         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18119         _nss_files_initgroups_dyn.
18120
18121 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18122
18123         * elf/elf.h (R_ARM_IRELATIVE): Define.
18124
18125 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18126
18127         * po/ru.po: Update from translation team.
18128
18129 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18130
18131         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18132         dependencies.
18133
18134 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18135
18136         [BZ #12653]
18137         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18138         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18139         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18140         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18141         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18142
18143 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18144
18145         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18146         differing bytes.
18147         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18148         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18149         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18150
18151 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18152
18153         [BZ #12420]
18154         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18155         storing it.
18156         * stdlib/bug-getcontext.c: New file.
18157         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18158
18159 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18160
18161         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18162         instructions into .machine "z9-109".
18163         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18164         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18165
18166 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18167
18168         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18169         between environment variables and auxiliary vector.
18170
18171 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18172
18173         * Makefile: Add rules to build linkobj/libc.so.
18174         * include/libc-symbols.h: Define libc_hidden_nolink.
18175         * include/rpc/auth.h: Mark functions which are to be hidden.
18176         * include/rpc/auth_des.h: Likewise.
18177         * include/rpc/auth_unix.h: Likewise.
18178         * include/rpc/clnt.h: Likewise.
18179         * include/rpc/des_crypt.h: Likewise.
18180         * include/rpc/key_prot.h: Likewise.
18181         * include/rpc/pmap_clnt.h: Likewise.
18182         * include/rpc/pmap_prot.h: Likewise.
18183         * include/rpc/pmap_rmt.h: Likewise.
18184         * include/rpc/rpc_msg.h: Likewise.
18185         * include/rpc/svc.h: Likewise.
18186         * include/rpc/svc_auth.h: Likewise.
18187         * include/rpc/xdr.h: Likewise.
18188         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18189         * nss/Makefile: Likewise.
18190         * sunrpc/Makefile: Don't install headers.  Build library with normal
18191         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18192         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18193         for the compat linking library.  Remove use of INTDEF/INTUSE.
18194         * sunrpc/auth_none.c: Likewise.
18195         * sunrpc/auth_unix.c: Likewise.
18196         * sunrpc/authdes_prot.c: Likewise.
18197         * sunrpc/authuxprot.c: Likewise.
18198         * sunrpc/clnt_gen.c: Likewise.
18199         * sunrpc/clnt_perr.c: Likewise.
18200         * sunrpc/clnt_raw.c: Likewise.
18201         * sunrpc/clnt_simp.c: Likewise.
18202         * sunrpc/clnt_tcp.c: Likewise.
18203         * sunrpc/clnt_udp.c: Likewise.
18204         * sunrpc/clnt_unix.c: Likewise.
18205         * sunrpc/des_crypt.c: Likewise.
18206         * sunrpc/des_soft.c: Likewise.
18207         * sunrpc/get_myaddr.c: Likewise.
18208         * sunrpc/key_call.c: Likewise.
18209         * sunrpc/key_prot.c: Likewise.
18210         * sunrpc/netname.c: Likewise.
18211         * sunrpc/pm_getmaps.c: Likewise.
18212         * sunrpc/pm_getport.c: Likewise.
18213         * sunrpc/pmap_clnt.c: Likewise.
18214         * sunrpc/pmap_prot.c: Likewise.
18215         * sunrpc/pmap_prot2.c: Likewise.
18216         * sunrpc/pmap_rmt.c: Likewise.
18217         * sunrpc/publickey.c: Likewise.
18218         * sunrpc/rpc_cmsg.c: Likewise.
18219         * sunrpc/rpc_common.c: Likewise.
18220         * sunrpc/rpc_dtable.c: Likewise.
18221         * sunrpc/rpc_prot.c: Likewise.
18222         * sunrpc/rpc_thread.c: Likewise.
18223         * sunrpc/rtime.c: Likewise.
18224         * sunrpc/svc.c: Likewise.
18225         * sunrpc/svc_auth.c: Likewise.
18226         * sunrpc/svc_authux.c: Likewise.
18227         * sunrpc/svc_raw.c: Likewise.
18228         * sunrpc/svc_run.c: Likewise.
18229         * sunrpc/svc_simple.c: Likewise.
18230         * sunrpc/svc_tcp.c: Likewise.
18231         * sunrpc/svc_udp.c: Likewise.
18232         * sunrpc/svc_unix.c: Likewise.
18233         * sunrpc/svcauth_des.c: Likewise.
18234         * sunrpc/xcrypt.c: Likewise.
18235         * sunrpc/xdr.c: Likewise.
18236         * sunrpc/xdr_array.c: Likewise.
18237         * sunrpc/xdr_float.c: Likewise.
18238         * sunrpc/xdr_intXX_t.c: Likewise.
18239         * sunrpc/xdr_mem.c: Likewise.
18240         * sunrpc/xdr_rec.c: Likewise.
18241         * sunrpc/xdr_ref.c: Likewise.
18242         * sunrpc/xdr_sizeof.c: Likewise.
18243         * sunrpc/xdr_stdio.c: Likewise.
18244
18245 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18246
18247         [BZ #12650]
18248         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18249         * sysdeps/ia64/dl-tls.h: Likewise.
18250         * sysdeps/powerpc/dl-tls.h: Likewise.
18251         * sysdeps/s390/dl-tls.h: Likewise.
18252         * sysdeps/sh/dl-tls.h: Likewise.
18253         * sysdeps/sparc/dl-tls.h: Likewise.
18254         * sysdeps/x86_64/dl-tls.h: Likewise.
18255         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18256
18257 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18258
18259         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18260         rpath element also skip the following colon.
18261         (expand_dynamic_string_token): Add is_path parameter and pass
18262         down to DL_DST_REQUIRED and _dl_dst_substitute.
18263         (decompose_rpath): Call expand_dynamic_string_token with
18264         non-zero is_path.  Ignore empty rpaths.
18265         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18266         with zero is_path.
18267
18268 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18269
18270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18271         Make cancelable.
18272
18273 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18274
18275         [BZ #12655]
18276         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18277         Patch by Filipe David Manana <fdmanana@apache.org>.
18278
18279 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18280
18281         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18282         Maintain aligned stack.
18283         (CHECK_RSP): Remove unused macro.
18284
18285 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18286
18287         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18288         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18289
18290 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18291
18292         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18293
18294         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18295
18296 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18297
18298         [BZ #12518]
18299         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18300         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18301         * sysdeps/x86_64/memmove.c: New file.
18302         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18303         (memcpy): Renamed to ...
18304         (__new_memcpy): This.
18305         (memcpy): Provide GLIBC_2_14 memcpy.
18306         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18307         (memcpy): Provide GLIBC_2_2_5 memcpy.
18308
18309 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18310
18311         [BZ #12631]
18312         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18313
18314 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18315
18316         * misc/syncfs.c: New file.
18317         * misc/Makefile (routines): Add syncfs.
18318         * posix/unistd.h: Declare syncfs.
18319         * sysdeps/unix/syscalls.list: Add syncfs.
18320
18321 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18322
18323         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18324         open_by_handle_at.
18325         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18326         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18327         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18328         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18329         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18330         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18331         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18332
18333 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18334
18335         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18336         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18337         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18338         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18339         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18340         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18341         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18342
18343         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18344         sync_file_range.c with -fexceptions.
18345         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18346         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18347         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18348         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18349         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18350         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18351         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18352         sync_file_range as cancellation point
18353         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18354         now a wrapper around __call_sync_file_range with cancellation handling.
18355         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18356         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18357         function name to __call_sync_file_range.
18358         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18359         Add call_sync_file_range.
18360
18361 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18362
18363         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18364         bits/timex.h.
18365
18366 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18367
18368         * iconv/iconv.h: Fix typo in comment.
18369         * io/fcntl.h: Likewise.
18370         * libio/stdio.h: Likewise.
18371         * posix/spawn.h: Likewise.
18372         * posix/unistd.h: Likewise.
18373         * stdlib/stdlib.h: Likewise.
18374         * time/time.h: Likewise.
18375         * wcsmbs/wchar.h: Likewise.
18376
18377         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18378         open_by_handle): Add.
18379         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18380         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18381         Augment a few comments.
18382         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18383         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18384         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18385         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18386         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18387         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18388         open_by_handle.
18389
18390         * io/fcntl.h (AT_EMPTY_PATH): Define.
18391
18392 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18393
18394         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18395         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18396         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18397         to...
18398         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18399         * Versions.def: Add GLIBC_2.14.
18400         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18401         Export.
18402
18403 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18404
18405         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18406         round counter.
18407         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18408
18409 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18410
18411         [BZ #12597]
18412         * string/test-strncmp.c (do_page_test): New function.
18413         (check2): Likewise.
18414         (test_main): Call check2.
18415         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18416
18417 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18418
18419         [BZ #12587]
18420         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18421         Handle cache information in CPU leaf 4.
18422         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18423
18424 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18425
18426         [BZ #12583]
18427         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18428         character representation.
18429         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18430
18431 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18432
18433         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18434         END(__isnan) to END(__isnanf) to match function entry point/label
18435         EALIGN(__isnanf,...).
18436
18437 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18438
18439         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18440
18441 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18442
18443         [BZ #12510]
18444         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18445         copy from the symbol referenced in the relocation to initialize the
18446         used variable.
18447         Patch by Piotr Bury <pbury@goahead.com>.
18448         * elf/Makefile: Add rules to build and tst-unique3.
18449         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18450         * elf/tst-unique3.cc: New file.
18451         * elf/tst-unique3.h: New file.
18452         * elf/tst-unique3lib.cc: New file.
18453         * elf/tst-unique3lib2.cc: New file.
18454
18455         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18456
18457 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18458
18459         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18460         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18461         to _start.
18462
18463 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18464
18465         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18466         to-be-loaded object along a path to loader is ld.so.
18467
18468 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18469             Ulrich Drepper  <drepper@gmail.com>
18470
18471         * sysdeps/x86_64/memset.S: After aligning destination, code
18472         branches to different locations depending on the value of
18473         misalignment, when multiarch is enabled. Fix this.
18474
18475 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18476
18477         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18478         Set _x86_64_preferred_memory_instruction for AMD processsors.
18479         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18480         Set bit_Prefer_SSE_for_memop for AMD processors.
18481
18482 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18483
18484         * libio/fmemopen.c (fmemopen): Optimize a bit.
18485
18486 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18487
18488         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18489
18490 2011-03-03  Roland McGrath  <roland@redhat.com>
18491
18492         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18493
18494 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18495
18496         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18497         __bzero_ultra1 instead of __memset_ultra1.
18498
18499 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18500             Ulrich Drepper  <drepper@gmail.com>
18501
18502         [BZ #12509]
18503         * include/link.h (struct link_map): Add l_orig_initfini.
18504         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18505         returning unsuccessfully.
18506         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18507         close of a file loaded at startup, restore the original l_initfini
18508         list.
18509         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18510         list, store the pointer.
18511         * elf/Makefile ($(objpfx)noload-mem): New rule.
18512         (noload-ENV): Define.
18513         (tests): Add $(objpfx)noload-mem.
18514         * elf/noload.c: Include <memcheck.h>.
18515         (main): Call mtrace.  Close all opened handles.
18516
18517 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18518
18519         [BZ #12454]
18520         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18521         dependencies are missing.
18522
18523 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18524
18525         Fix __if_freereq crash: Unlike the generic version which uses free,
18526         Hurd needs munmap.
18527         * sysdeps/mach/hurd/ifreq.h: New file.
18528
18529 2011-01-27  Petr Baudis  <pasky@suse.cz>
18530             Ulrich Drepper  <drepper@gmail.com>
18531
18532         [BZ 12445]#
18533         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18534         to extend_alloca().
18535         * stdio-common/bug23.c: New file.
18536         * stdio-common/Makefile (tests): Add bug23.
18537
18538 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18539             Ulrich Drepper  <drepper@gmail.com>
18540
18541         [BZ #12489]
18542         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18543         before performing relro protection.  At old place add assertion
18544         to make sure nothing changed.
18545
18546 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18547             Glauber de Oliveira Costa  <glommer@gmail.com>
18548
18549         * elf/elf.h: Add new ARM TLS relocs.
18550
18551 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18552
18553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18554         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18555         cast from r3.
18556         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18557         'tests' variable.
18558         * sysdeps/wordsize-64/tst-writev.c: New file.
18559
18560 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18561
18562         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18563         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18564         insns in _dl_start to prevent a TOC reference before relocs are
18565         resolved.
18566
18567 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18568
18569         [BZ #12469]
18570         * Makeconfig: Remove RANLIB definition.
18571         * Makerules: Don't use RANLIB.
18572         * aclocal.m4: Remove ranlib test.
18573         * configure.in: No need to check for ranlib.
18574         * elf/rtld-Rules: Don't use RANLIB.
18575
18576 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18577
18578         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18579         protection macro.
18580         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18581         inclusion protection macro.
18582
18583         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18584         SIGRTMIN and SIGRTMAX and print information in that case only when
18585         SIGRTMIN is defined.
18586
18587 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18588
18589         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18590         arginfo fn returning -1.
18591
18592         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18593         and thousands string is zero terminated.
18594
18595 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18596
18597         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18598         sysdeps/unix/sysv/linux/bits/socket.h.
18599
18600 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18601
18602         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18603         (__CPU_COUNT): Remove old macros.
18604         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18605         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18606         (__CPU_ALLOC, __CPU_FREE): Add macros.
18607         (__sched_cpualloc, __sched_cpufree): Add declarations.
18608
18609 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18610
18611         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18612         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18613         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18614         (readdhstai): Return value of addhstaiX call.
18615         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18616         (addgrbyX): Return value returned by cache_addgr.
18617         (readdgrbyname): Return value returned by addgrbyX.
18618         (readdgrbygid): Likewise.
18619         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18620         (addpwbyX): Return value returned by cache_addpw.
18621         (readdpwbyname): Return value returned by addhstbyX.
18622         (readdpwbyuid): Likewise.
18623         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18624         (addservbyX): Return value returned by cache_addserv.
18625         (readdservbyname): Return value returned by addservbyX:
18626         (readdservbyport): Likewise.
18627         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18628         (addhstbyX): Return value returned by cache_addhst.
18629         (readdhstbyname): Return value returned by addhstbyX.
18630         (readdhstbyaddr): Likewise.
18631         (readdhstbynamev6): Likewise.
18632         (readdhstbyaddrv6): Likewise.
18633         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18634         (readdinitgroups): Return value returned by addinitgroupsX.
18635         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18636         (prune_cache): Keep track of timeout value of re-added entries.
18637         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18638         * nscd/nscd.h: Adjust prototypes of readd* functions.
18639
18640 2011-02-04  Roland McGrath  <roland@redhat.com>
18641
18642         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18643         (nis_stats): Likewise.
18644         * nis/nis_modify.c (nis_modify): Likewise.
18645         * nis/nis_remove.c (nis_remove): Likewise.
18646         * nis/nis_add.c (nis_add): Likewise.
18647
18648         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18649
18650         * posix/fnmatch_loop.c: Add some consts.
18651
18652         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18653
18654 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18655
18656         [BZ #12460]
18657         * config.make.in (config-cflags-novzeroupper): Define.
18658         * configure.in: Substitute libc_cv_cc_novzeroupper.
18659         * elf/Makefile (AVX-CFLAGS): Define.
18660         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18661         (CFLAGS-tst-auditmod4a.c): Likewise.
18662         (CFLAGS-tst-auditmod4b.c): Likewise.
18663         (CFLAGS-tst-auditmod6b.c): Likewise.
18664         (CFLAGS-tst-auditmod6c.c): Likewise.
18665         (CFLAGS-tst-auditmod7b.c): Likewise.
18666         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18667
18668 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18669
18670         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18671         function to the callback.
18672         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18673
18674 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18675
18676         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18677         of errno.
18678
18679 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18680
18681         [BZ #11724]
18682         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18683         of constructors.
18684         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18685         of destructors.
18686         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18687
18688         [BZ #11724]
18689         * elf/Makefile: Add rules to build and run new test.
18690         * elf/tst-initorder.c: New file.
18691         * elf/tst-initorder.exp: New file.
18692         * elf/tst-initordera1.c: New file.
18693         * elf/tst-initordera2.c: New file.
18694         * elf/tst-initordera3.c: New file.
18695         * elf/tst-initordera4.c: New file.
18696         * elf/tst-initorderb1.c: New file.
18697         * elf/tst-initorderb2.c: New file.
18698         * elf/tst-order-a1.c: New file.
18699         * elf/tst-order-a2.c: New file.
18700         * elf/tst-order-a3.c: New file.
18701         * elf/tst-order-a4.c: New file.
18702         * elf/tst-order-b1.c: New file.
18703         * elf/tst-order-b2.c: New file.
18704         * elf/tst-order-main.c: New file.
18705         New test case by George Gensure <werkt0@gmail.com>.
18706
18707 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18708
18709         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18710         decoding ACE if AI_CANONIDN.
18711
18712 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18713
18714         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18715
18716 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18717
18718         * version.h (RELEASE): Bump for 2.13 release.
18719         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18720
18721         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18722
18723         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18724         MADV_NOHUGEPAGE.
18725         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18726         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18727         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18728         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18729         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18730         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18731
18732         * posix/getconf.c: Update copyright year.
18733         * catgets/gencat.c: Likewise.
18734         * csu/version.c: Likewise.
18735         * debug/catchsegv.sh: Likewise.
18736         * debug/xtrace.sh: Likewise.
18737         * elf/ldconfig.c: Likewise.
18738         * elf/ldd.bash.in: Likewise.
18739         * elf/sprof.c (print_version): Likewise.
18740         * iconv/iconv_prog.c: Likewise.
18741         * iconv/iconvconfig.c: Likewise.
18742         * locale/programs/locale.c: Likewise.
18743         * locale/programs/localedef.c: Likewise.
18744         * malloc/memusage.sh: Likewise.
18745         * malloc/mtrace.pl: Likewise.
18746         * nscd/nscd.c (print_version): Likewise.
18747         * nss/getent.c: Likewise.
18748
18749         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18750         PF_CAIF, and PF_ALG.
18751         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18752
18753 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18754
18755         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18756         (modules-names): Use them.
18757         (ifunc-test-modules, ifunc-pie-tests): Define.
18758         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18759         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18760         (test-extras): Likewise.
18761         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18762         $(compile-command.c).
18763         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18764         (all-built-dso): Define.
18765         (check-textrel.out, check-execstack.out): Depend on it.
18766
18767         * configure.in: Don't override --enable-multi-arch.
18768
18769 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
18770
18771         [BZ #6812]
18772         * nscd/hstcache.c (tryagain): Define.
18773         (cache_addhst): Return tryagain not notfound for temporary errors.
18774         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
18775         failed.
18776
18777 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
18778
18779         [BZ #10563]
18780         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
18781         to make the syscall.
18782         * sysdeps/unix/sysv/linux/setgroups.c: New file.
18783
18784         [BZ #12378]
18785         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
18786         and fall back to matching as normal character if the string ends before
18787         the matching ']' is found.  This is what POSIX requires.
18788         * posix/testfnm.c: Adjust test result.
18789         * posix/globtest.sh: Adjust test result.  Add new test.
18790         * posix/tst-fnmatch.input: Likewise.
18791         * posix/tst-fnmatch2.c: Add new test.
18792
18793 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
18794
18795         * elf/Makefile (check-execstack): Revert last change.  Depend on
18796         check-execstack.h.
18797         (check-execstack.h): New target.
18798         (generated): Add check-execstack.h.
18799         * elf/check-execstack.c: Include "check-execstack.h".
18800         (main): Revert last change.
18801         (handle_file): Return zero if GNU_STACK is absent and
18802         DEFAULT_STACK_PERMS doesn't include PF_X.
18803
18804 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
18805
18806         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
18807         in child fails because the descriptor is already closed.
18808         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
18809         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
18810         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
18811
18812         [BZ #12397]
18813         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
18814         syscall.
18815
18816         [BZ #10484]
18817         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
18818         temporary buffer used to handle multi lookups locally.
18819         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
18820
18821 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18822
18823         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
18824         loader is ld.so.
18825
18826 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
18827
18828         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
18829         alignment for SSE2.
18830
18831 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
18832
18833         [BZ #12394]
18834         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
18835         characters.  When rounding increased number of integer digits recompute
18836         number of groups.
18837         * stdio-common/tst-grouping.c: New file.
18838         * stdio-common/Makefile: Add rules to build and run tst-grouping.
18839
18840 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
18841
18842         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
18843         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
18844
18845         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
18846         void.
18847         * bits/select.h: Likewise.
18848
18849 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
18850
18851         * po/ja.po: Update from translation team.
18852
18853 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
18854
18855         [BZ #11155]
18856         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
18857         implementation just like for lxstat, fxstatat, et al.
18858
18859 2010-12-27  Jim Meyering  <meyering@redhat.com>
18860
18861         [BZ #12348]
18862         * posix/regexec.c (build_trtable): Return failure indication upon
18863         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18864
18865 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
18866
18867         [BZ #12201]
18868         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
18869         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
18870         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
18871         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
18872
18873         [BZ #12207]
18874         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
18875
18876         [BZ #12204]
18877         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
18878         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
18879
18880 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18881
18882         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
18883         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
18884         script has SORT_BY_INIT_PRIORITY.
18885         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
18886         NO_CTORS_DTORS_SECTIONS is defined.
18887         * elf/soinit.c: Likewise.
18888         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
18889         NO_CTORS_DTORS_SECTIONS is defined.
18890         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
18891         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
18892         * sysdeps/sh/init-first.c: Likewise.
18893         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
18894
18895 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
18896
18897         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
18898         always use the slow path.
18899
18900 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
18901
18902         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
18903         similar rule which adds the sysdep directories to the header search in
18904         order to pick up the correct platform stackinfo.h.
18905         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
18906         perform test if it is, otherwise return successfully without testing.
18907         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
18908         DEFAULT_STACK_PERMS define in stackinfo.h.
18909         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
18910         defined in stackinfo.h.
18911         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
18912         DEFAULT_STACK_PERMS defined in stackinfo.h.
18913         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
18914         * sysdeps/ia64/stackinfo.h: Likewise.
18915         * sysdeps/s390/stackinfo.h: Likewise.
18916         * sysdeps/sh/stackinfo.h: Likewise.
18917         * sysdeps/sparc/stackinfo.h: Likewise.
18918         * sysdeps/x86_64/stackinfo.h: Likewise.
18919         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
18920         PF_X for powerpc64.  Retain PF_X for powerpc32.
18921
18922 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
18923
18924         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
18925         accurately.
18926         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
18927         GETDENTS_64BIT_ALIGNED.
18928
18929 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
18930
18931         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
18932
18933 2010-12-10  Andreas Schwab  <schwab@redhat.com>
18934
18935         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
18936         _GNU_SOURCE.
18937
18938         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
18939         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
18940         Remove __restrict.
18941         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
18942         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
18943
18944 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
18945
18946         [BZ #11655]
18947         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
18948         are initialized.
18949
18950 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
18951
18952         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
18953
18954 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
18955
18956         * po/it.po: Update from translation team.
18957
18958 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
18959
18960         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
18961         unused codes.
18962
18963 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
18964
18965         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
18966
18967 2010-11-24  Andreas Schwab  <schwab@redhat.com>
18968
18969         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
18970         specially.
18971         (gaih_getanswer_slice): Likewise.
18972
18973 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
18974
18975         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
18976
18977 2010-05-31  Petr Baudis  <pasky@suse.cz>
18978
18979         [BZ #11149]
18980         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
18981         silently even in the chroot mode.
18982
18983 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
18984
18985         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
18986         last patch a bit.  Pretty printing
18987
18988 2010-05-31  Petr Baudis <pasky@suse.cz>
18989
18990         [BZ #10085]
18991         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
18992         initialization of skip_initgroups_dyn.
18993
18994 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
18995
18996         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
18997         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18998
18999 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19000
19001         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19002
19003 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19004
19005         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19006         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19007         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19008         ($(objpfx)tst-fnmatch-mem): New rule.
19009         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19010         * posix/tst-fnmatch.c (main): Call mtrace.
19011
19012 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19013
19014         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19015         Support Intel processor model 6 and model 0x2c.
19016
19017 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19018
19019         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19020           signed comparison.
19021
19022 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19023
19024         [BZ #12205]
19025         * string/test-strncasecmp.c (check_result): New function.
19026         (do_one_test): Use it.
19027         (check1): New function.
19028         (test_main): Use it.
19029         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19030         Support strcasecmp and strncasecmp.
19031
19032 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19033
19034         [BZ #12194]
19035         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19036         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19037
19038 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19039
19040         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19041         IFUNC support.
19042         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19043         memset-x86-64.
19044         * sysdeps/x86_64/multiarch/bzero.S: New file.
19045         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19046         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19047         * sysdeps/x86_64/multiarch/memset.S: New file.
19048         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19049         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19050         Set bit_Prefer_SSE_for_memop for Intel processors.
19051         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19052         Define.
19053         (index_Prefer_SSE_for_memop): Define.
19054         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19055
19056 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19057
19058         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19059         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19060
19061 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19062
19063         [BZ #12191]
19064         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19065         (__x86_64_raw_data_cache_size_half): Likewise.
19066         (__x86_64_raw_shared_cache_size): Likewise.
19067         (__x86_64_raw_shared_cache_size_half): Likewise.
19068
19069         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19070         (__x86_64_raw_data_cache_size_half): Likewise.
19071         (__x86_64_raw_shared_cache_size): Likewise.
19072         (__x86_64_raw_shared_cache_size_half): Likewise.
19073         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19074         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19075         and __x86_64_raw_shared_cache_size_half.  Round
19076         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19077         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19078         to multiple of 256 bytes.
19079
19080 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19081
19082         [BZ #12167]
19083         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19084         of inacessible symlinks.  Verify result of symlink before returning it.
19085         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19086         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19087
19088 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19089
19090         * math/math.h (isinf): Fix typo in comment.
19091
19092 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19093
19094         * po/da.po: Update from translation team.
19095
19096 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19097
19098         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19099         is added to the list.
19100
19101 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19102             Ulrich Drepper  <drepper@gmail.com>
19103
19104         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19105         the global list here.  Move code to...
19106         (_dl_add_to_namespace_list): ...here.  New function.
19107         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19108         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19109         * elf/dl-load.c (lose): Don't remove the element from the list.
19110         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19111         (_dl_map_object): Likewise.
19112
19113 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19114
19115         [BZ #12159]
19116         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19117         into all bytes of SSE register.
19118         Patch by Richard Li <richardpku@gmail.com>.
19119
19120 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19121
19122         [BZ #12140]
19123         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19124         perturbing.
19125
19126 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19127
19128         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19129         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19130         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19131         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19133         submachine.
19134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19135
19136 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19137
19138         * include/dlfcn.h (__RTLD_SECURE): Define.
19139         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19140         mode & __RTLD_SECURE instead.
19141         (open_path): Rename preloaded parameter to secure.
19142         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19143         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19144         * elf/dl-deps.c (openaux): Likewise.
19145         * elf/rtld.c (struct map_args): Remove is_preloaded.
19146         (map_doit): Don't use it.
19147         (dl_main): Likewise.
19148         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19149         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19150
19151 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19152
19153         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19154         (sysd-rules-targets): Remove duplicates.
19155         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19156         rtld-%.$o dependency.
19157
19158 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19159
19160         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19161         _dl_map_object do it.
19162
19163 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19164
19165         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19166         fast fma builtins, define the macros in the C99 standard.
19167         (FP_FAST_FMAF): Likewise.
19168         (FP_FAST_FMAL): Likewise.
19169         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19170
19171         * bits/mathdef.h: Update copyright year.
19172         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19173
19174 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19175
19176         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19177         builtins, define the macros in the C99 standard.
19178         (FP_FAST_FMAF): Likewise.
19179         (FP_FAST_FMAL): Likewise.
19180         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19181         multiply/add.
19182         (FP_FAST_FMAF): Likewise.
19183
19184 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19185
19186         [BZ #3268]
19187         * math/libm-test.inc (fma_test): Some new testcases.
19188         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19189         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19190         y and infinite z.  Do multiplication by C already in long double.
19191         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19192         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19193         y and infinite z.  Do bitwise or of inexact bit into u.d.
19194         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19195         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19196         * sysdeps/i386/fpu/s_fma.S: Removed.
19197         * sysdeps/i386/fpu/s_fmal.S: Removed.
19198
19199 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19200
19201         [BZ #3268]
19202         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19203         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19204         computation is not scheduled after fetestexcept.  Fix value
19205         of minimum denormal long double.
19206
19207 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19208
19209         [BZ #3268]
19210         * math/libm-test.inc (fma_test): Add some more tests.
19211         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19212         correctly.
19213
19214 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19215
19216         * scripts/data/localplt-s390-linux-gnu.data: New file.
19217         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19218
19219 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19220
19221         [BZ #3268]
19222         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19223         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19224         instead of dbl-64.
19225         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19226         inlines.
19227         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19228         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19229         if one of x and y is very large and the other is subnormal.
19230         * sysdeps/s390/fpu/s_fmaf.c: New file.
19231         * sysdeps/s390/fpu/s_fma.c: New file.
19232         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19233         * sysdeps/powerpc/fpu/s_fma.S: New file.
19234         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19235         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19236         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19237
19238 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19239
19240         [BZ #3268]
19241         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19242         fma tests.
19243         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19244         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19245         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19246         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19247         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19248         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19249         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19250
19251 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19252
19253         [BZ #12078]
19254         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19255         * posix/bug-regex31.input: Add test case.
19256
19257 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19258
19259         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19260         * posix/bug-regex31.input: New file.
19261
19262         [BZ #12078]
19263         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19264         (parse_sub_exp): Fix last change, use postorder.
19265
19266         * posix/bug-regex31.c: New file.
19267         * posix/Makefile: Add rules to build and run bug-regex31.
19268
19269         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19270
19271         [BZ #12078]
19272         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19273
19274         [BZ #12108]
19275         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19276         to have entries in sys_siglist.
19277
19278         [BZ #12093]
19279         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19280         be NULL.
19281
19282 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19283
19284         [BZ #3268]
19285         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19286         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19287         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19288         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19289         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19290         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19291         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19292         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19293         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19294         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19295         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19296         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19297         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19298         * math/ftestexcept.c (fetestexcept): Likewise.
19299         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19300         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19301         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19302         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19303         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19304         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19305         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19306
19307 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19308
19309         [BZ #12107]
19310         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19311         newline.
19312
19313 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19314
19315         * string/bug-strstr1.c: New file.
19316         * string/Makefile: Add rules to build and run bug-strstr1.
19317
19318 2010-10-05  Eric Blake  <eblake@redhat.com>
19319
19320         [BZ #12092]
19321         * string/str-two-way.h (two_way_long_needle): Always clear memory
19322         when skipping input due to the shift table.
19323
19324 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19325
19326         [BZ #12005]
19327         * malloc/mcheck.c: Handle large requests.
19328
19329         [BZ #12077]
19330         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19331         for strncmp and strncasecmp.
19332         * string/stratcliff.c: Add tests for strcmp and strncmp.
19333         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19334
19335 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19336
19337         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19338         __set_fpscr.
19339
19340 2010-09-30  Andreas Jaeger  <aj@suse.de>
19341
19342         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19343         (CGROUP_SUPER_MAGIC): Define.
19344         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19345         Handle btrfs and cgroup file systems.
19346         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19347         Likewise.
19348
19349 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19350
19351         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19352         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19353
19354 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19355
19356         [BZ #12067]
19357         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19358         trying to locate the ELF header.
19359
19360 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19361
19362         [BZ #11611]
19363         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19364         Mask out sign-bit copies when constructing f_fsid.
19365
19366 2010-09-24  Petr Baudis <pasky@suse.cz>
19367
19368         * debug/stack_chk_fail_local.c: Add missing licence exception.
19369         * debug/warning-nop.c: Likewise.
19370
19371 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19372
19373         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19374         implementing getdents64 using getdents syscall, set d_type if
19375         __ASSUME_GETDENTS32_D_TYPE.
19376
19377 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19378
19379         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19380         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19381
19382 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19383
19384         [BZ #12037]
19385         * posix/unistd.h: Undo change of feature selection for ftruncate from
19386         2010-01-11.
19387
19388 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19389
19390         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19391         detection.
19392
19393 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19394
19395         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19396         fanotify_mark.
19397         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19398
19399 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19400
19401         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19402         variables after CHECK_SP call.
19403         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19404
19405 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19406             Ulrich Drepper  <drepper@redhat.com>
19407
19408         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19409         re-relocationg ld.so.
19410         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19411         _dl_init_paths call.
19412         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19413         here anymore.
19414
19415 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19416
19417         * resolv/res_init.c (__res_vinit): Count the default server we added.
19418
19419 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19420             Ulrich Drepper  <drepper@redhat.com>
19421
19422         [BZ #11968]
19423         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19424         (____longjmp_chk): Use %ebx for saving value across system call.
19425         Add unwind info.
19426
19427 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19428
19429         * manual/Makefile: Don't mix pattern rules with normal rules.
19430
19431 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19432
19433         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19434         operation.
19435         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19436         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19437         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19438         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19439         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19440         Likewise.
19441
19442 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19443
19444         [BZ #11979]
19445         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19446         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19447
19448 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19449
19450         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19451         * sysdeps/x86_64/addmul_1.S: Likewise.
19452         * sysdeps/x86_64/lshift.S: Likewise.
19453         * sysdeps/x86_64/mul_1.S: Likewise.
19454         * sysdeps/x86_64/rshift.S: Likewise.
19455         * sysdeps/x86_64/sub_n.S: Likewise.
19456         * sysdeps/x86_64/submul_1.S: Likewise.
19457
19458 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19459
19460         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19461         Define __sched_param instead of SCHED_* and sched_param when
19462         <bits/sched.h> is included with __need_schedparam defined.
19463         * bits/sched.h [__need_schedparam]
19464         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19465         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19466         (__defined_schedparam): Define to 1.
19467         (__sched_param): New structure, identical to sched_param.
19468         (__need_schedparam): Undefine.
19469
19470 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19471
19472         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19473         (epoll_create1): Declare.
19474
19475         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19476
19477 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19478
19479         [BZ #7066]
19480         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19481         shifting retval into place.
19482
19483 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19484
19485         * nis/rpcsvc/nis.h: Update copyright notice.
19486         * nis/rpcsvc/nis.x: Likewise.
19487         * nis/rpcsvc/nis_callback.h: Likewise.
19488         * nis/rpcsvc/nis_callback.x: Likewise.
19489         * nis/rpcsvc/nis_object.x: Likewise.
19490         * nis/rpcsvc/nis_tags.h: Likewise.
19491         * nis/rpcsvc/yp.h: Likewise.
19492         * nis/rpcsvc/yp.x: Likewise.
19493         * nis/rpcsvc/ypupd.h: Likewise.
19494         * nis/yp_xdr.c: Likewise.
19495         * nis/ypupdate_xdr.c: Likewise.
19496
19497         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19498         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19499         (pmap_getport): Use __libc_rpc_getport.
19500         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19501         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19502         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19503
19504 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19505
19506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19507         fanotify_mark.
19508
19509 2010-08-27  Roland McGrath  <roland@redhat.com>
19510
19511         * sysdeps/i386/i686/multiarch/Makefile
19512         (CFLAGS-varshift.c): New variable.
19513
19514 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19515
19516         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19517         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19518
19519         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19520
19521         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19522
19523 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19524
19525         * sysdeps/x86_64/strlen.S: Unroll the loop.
19526         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19527         strlen-sse2 strlen-sse2-bsf.
19528         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19529         __strlen_no_bsf if bit_Slow_BSF is set.
19530         (__strlen_sse42): Removed.
19531         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19532         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19533
19534 2010-08-25  Roland McGrath  <roland@redhat.com>
19535
19536         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19537         * sysdeps/x86_64/multiarch/varshift.c: New file.
19538         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19539         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19540         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19541         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19542
19543 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19544
19545         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19546         strlen-sse2 strlen-sse2-bsf.
19547         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19548         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19549         (__strlen_sse2): Removed.
19550         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19551         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19552         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19553         bit_Slow_BSF for Atom.
19554         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19555         (index_Slow_BSF): Define.
19556         (HAS_SLOW_BSF): Define.
19557
19558 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19559
19560         [BZ #10851]
19561         * resolv/res_init.c (__res_vinit): When no server address at all
19562         is given default to loopback.
19563
19564 2010-08-24  Roland McGrath  <roland@redhat.com>
19565
19566         * configure.in: Remove config-name.h generation.
19567         * configure: Regenerated.
19568         * config-name.in: File removed.
19569         * scripts/config-uname.sh: New file.
19570         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19571         ($(objdir)config-name.h): New target.
19572
19573         * sunrpc/rpc_parse.h: Avoid nested comment.
19574
19575 2010-08-24  Richard Henderson  <rth@redhat.com>
19576             Ulrich Drepper  <drepper@redhat.com>
19577             H.J. Lu  <hongjiu.lu@intel.com>
19578
19579         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19580         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19581         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19582         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19583         _mm_alignr_epi8 with _mm_loadu_si128.
19584         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19585         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19586         (__m128i_shift_right): Removed.
19587         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19588         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19589         * sysdeps/x86_64/multiarch/varshift.h: New file.
19590         * sysdeps/x86_64/multiarch/varshift.S: New file.
19591
19592 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19593
19594         * configure.in: Move assembler checks to before sysdep dir checking.
19595
19596 2010-08-20  Petr Baudis  <pasky@suse.cz>
19597
19598         * LICENSES: Sync the sunrpc license.
19599
19600 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19601
19602         * sunrpc/auth_des.c: Update copyright notice once again.
19603         * sunrpc/auth_none.c: Likewise.
19604         * sunrpc/auth_unix.c: Likewise.
19605         * sunrpc/authdes_prot.c: Likewise.
19606         * sunrpc/authuxprot.c: Likewise.
19607         * sunrpc/bindrsvprt.c: Likewise.
19608         * sunrpc/clnt_gen.c: Likewise.
19609         * sunrpc/clnt_perr.c: Likewise.
19610         * sunrpc/clnt_raw.c: Likewise.
19611         * sunrpc/clnt_simp.c: Likewise.
19612         * sunrpc/clnt_tcp.c: Likewise.
19613         * sunrpc/clnt_udp.c: Likewise.
19614         * sunrpc/clnt_unix.c: Likewise.
19615         * sunrpc/des_crypt.c: Likewise.
19616         * sunrpc/des_soft.c: Likewise.
19617         * sunrpc/get_myaddr.c: Likewise.
19618         * sunrpc/getrpcport.c: Likewise.
19619         * sunrpc/key_call.c: Likewise.
19620         * sunrpc/key_prot.c: Likewise.
19621         * sunrpc/openchild.c: Likewise.
19622         * sunrpc/pm_getmaps.c: Likewise.
19623         * sunrpc/pm_getport.c: Likewise.
19624         * sunrpc/pmap_clnt.c: Likewise.
19625         * sunrpc/pmap_prot.c: Likewise.
19626         * sunrpc/pmap_prot2.c: Likewise.
19627         * sunrpc/pmap_rmt.c: Likewise.
19628         * sunrpc/rpc/auth.h: Likewise.
19629         * sunrpc/rpc/auth_unix.h: Likewise.
19630         * sunrpc/rpc/clnt.h: Likewise.
19631         * sunrpc/rpc/des_crypt.h: Likewise.
19632         * sunrpc/rpc/key_prot.h: Likewise.
19633         * sunrpc/rpc/netdb.h: Likewise.
19634         * sunrpc/rpc/pmap_clnt.h: Likewise.
19635         * sunrpc/rpc/pmap_prot.h: Likewise.
19636         * sunrpc/rpc/pmap_rmt.h: Likewise.
19637         * sunrpc/rpc/rpc.h: Likewise.
19638         * sunrpc/rpc/rpc_des.h: Likewise.
19639         * sunrpc/rpc/rpc_msg.h: Likewise.
19640         * sunrpc/rpc/svc.h: Likewise.
19641         * sunrpc/rpc/svc_auth.h: Likewise.
19642         * sunrpc/rpc/types.h: Likewise.
19643         * sunrpc/rpc/xdr.h: Likewise.
19644         * sunrpc/rpc_clntout.c: Likewise.
19645         * sunrpc/rpc_cmsg.c: Likewise.
19646         * sunrpc/rpc_common.c: Likewise.
19647         * sunrpc/rpc_cout.c: Likewise.
19648         * sunrpc/rpc_dtable.c: Likewise.
19649         * sunrpc/rpc_hout.c: Likewise.
19650         * sunrpc/rpc_main.c: Likewise.
19651         * sunrpc/rpc_parse.c: Likewise.
19652         * sunrpc/rpc_parse.h: Likewise.
19653         * sunrpc/rpc_prot.c: Likewise.
19654         * sunrpc/rpc_sample.c: Likewise.
19655         * sunrpc/rpc_scan.c: Likewise.
19656         * sunrpc/rpc_scan.h: Likewise.
19657         * sunrpc/rpc_svcout.c: Likewise.
19658         * sunrpc/rpc_tblout.c: Likewise.
19659         * sunrpc/rpc_util.c: Likewise.
19660         * sunrpc/rpc_util.h: Likewise.
19661         * sunrpc/rpcinfo.c: Likewise.
19662         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19663         * sunrpc/rpcsvc/key_prot.x: Likewise.
19664         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19665         * sunrpc/rpcsvc/mount.x: Likewise.
19666         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19667         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19668         * sunrpc/rpcsvc/rex.x: Likewise.
19669         * sunrpc/rpcsvc/rstat.x: Likewise.
19670         * sunrpc/rpcsvc/rusers.x: Likewise.
19671         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19672         * sunrpc/rpcsvc/spray.x: Likewise.
19673         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19674         * sunrpc/rtime.c: Likewise.
19675         * sunrpc/svc.c: Likewise.
19676         * sunrpc/svc_auth.c: Likewise.
19677         * sunrpc/svc_authux.c: Likewise.
19678         * sunrpc/svc_raw.c: Likewise.
19679         * sunrpc/svc_run.c: Likewise.
19680         * sunrpc/svc_simple.c: Likewise.
19681         * sunrpc/svc_tcp.c: Likewise.
19682         * sunrpc/svc_udp.c: Likewise.
19683         * sunrpc/svc_unix.c: Likewise.
19684         * sunrpc/svcauth_des.c: Likewise.
19685         * sunrpc/xcrypt.c: Likewise.
19686         * sunrpc/xdr.c: Likewise.
19687         * sunrpc/xdr_array.c: Likewise.
19688         * sunrpc/xdr_float.c: Likewise.
19689         * sunrpc/xdr_mem.c: Likewise.
19690         * sunrpc/xdr_rec.c: Likewise.
19691         * sunrpc/xdr_ref.c: Likewise.
19692         * sunrpc/xdr_sizeof.c: Likewise.
19693         * sunrpc/xdr_stdio.c: Likewise.
19694
19695         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19696         handling.
19697
19698 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19699
19700         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19701
19702 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19703
19704         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19705         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19706         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19707         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19708         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19709         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19710         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19711         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19712         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19713         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19714         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19715         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19716         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19717         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19718
19719 2010-07-26  Anton Blanchard  <anton@samba.org>
19720
19721         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19722         * malloc/arena.c (heap_trim): Likewise.
19723
19724 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19725
19726         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19727         here.  Not...
19728         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19729         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19730
19731 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19732
19733         * sysdeps/i386/elf/Makefile: New file.
19734
19735 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19736
19737         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19738         from fanotify_init.
19739         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19740         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19741
19742 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19743
19744         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19745         of strncasecmp_l.
19746         * sysdeps/multiarch/strcmp.S: Likewise.
19747
19748 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19749
19750         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19751         strncase_l-nonascii.
19752         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19753         Add strncase_l-ssse3.
19754         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19755         * sysdeps/x86_64/strcmp.S: Likewise.
19756         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19757         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19758         * sysdeps/x86_64/strncase.S: New file.
19759         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19760         * sysdeps/x86_64/strncase_l.S: New file.
19761         * string/Makefile (strop-tests): Add strncasecmp.
19762         * string/test-strncasecmp.c: New file.
19763
19764         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
19765         warning.
19766
19767         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
19768         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
19769
19770 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19771
19772         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
19773
19774 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
19775
19776         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
19777         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
19778         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
19779
19780 2010-05-01  Alan Modra  <amodra@gmail.com>
19781
19782         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
19783         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
19784         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
19785         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
19786         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
19787         tidying.  Don't tail-call __sigjmp_save for static lib.
19788         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
19789         save location.
19790         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
19791         (CALL_MCOUNT): Add eh info, and nop after bl.
19792         (TAIL_CALL_SYSCALL_ERROR): New macro.
19793         (PSEUDO_RET): Use it.
19794         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
19795         Correct save location of integer regs and cr.
19796         (_dl_profile_resolve): Correct cr save location.  Delete nops
19797         after bl when SHARED.  Reduce cfi size a little by better
19798         placement of cfi directives.
19799         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
19800         make a stack frame.  Instead use parm save area as a temp.
19801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
19802         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
19803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
19804         Don't make a stack frame for parent, use parm save area.
19805         Increase child stack frame to 112 bytes.  Don't save unused reg,
19806         and adjust reg usage.  Set up cfi on error recovery and
19807         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
19808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
19809         (__makecontext): Add dummy nop after jump to exit.
19810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
19811         Use correct parm save area and cr save, reduce stack frame.
19812         Correct cfi for possible PSEUDO_RET frame setup.
19813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
19814         Branch to local label emitted by PSEUDO_RET rather than
19815         __syscall_error.
19816
19817 2010-08-12  Andreas Schwab  <schwab@redhat.com>
19818
19819         [BZ #11904]
19820         * locale/programs/locale.c (print_assignment): New function.
19821         (show_locale_vars): Use it.
19822
19823 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
19824
19825         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
19826         field.
19827         (struct statfs64): Likewise.
19828         (_STATFS_F_FLAGS): Define.
19829         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
19830         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19831         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
19832         (ST_VALID): Define locally.
19833         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
19834         __statvfs_getflags, use the provided value.
19835         * sysdeps/unix/sysv/linux/kernel-features.h: Define
19836         __ASSUME_STATFS_F_FLAGS.
19837
19838         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
19839
19840         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
19841         Add sys/fanotify.h.
19842         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
19843         fanotify_mask for GLIBC_2.13.
19844         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
19845         fanotify_init and fanotify_mark.
19846         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19847         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
19848
19849         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
19850         Add prlimit.
19851         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
19852         prlimit64 for GLIBC_2.13.
19853         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
19854         prlimit64.
19855         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
19856         syscall.
19857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
19858         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19859         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
19860         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
19861         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
19862         add prlimit alias.
19863         * sysdeps/unix/sysv/linux/prlimit.c: New file.
19864
19865         [BZ #11903]
19866         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
19867         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
19868
19869         * nss/Makefile: Add rules to build and run tst-nss-test1.
19870         * shlib-versions: Add entry for libnss_test1.
19871         * nss/nss_test1.c: New file.
19872         * nss/tst-nss-test1.c: New file.
19873
19874         * nss/nsswitch.c (__nss_database_custom): Define new variable.
19875         (__nss_configure_lookup): Set appropriate entry in
19876         __nss_configure_lookup to true.
19877         * nss/nsswitch.h: Define enum with indeces of databases in
19878         databases and __nss_database_custom arrays.  Declare
19879         __nss_database_custom.
19880         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
19881         to avoid using nscd when custom rules are installed.
19882         * nss/getXXbyYY_r.c: Likewise.
19883         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
19884
19885         * nss/nss_files/files-parse.c: Whitespace fixes.
19886
19887 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
19888
19889         [BZ #11883]
19890         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
19891         * posix/fnmatch_loop.c: Likewise.
19892
19893 2010-07-17  Andi Kleen  <ak@linux.intel.com>
19894
19895         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
19896         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
19897         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
19898         * Versions.def [GLIBC_2.13]: Add.
19899
19900 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
19901
19902         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19903         Also fail if tpwd after pwuid call is NULL.
19904
19905 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19906
19907         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
19908         when converting to ms.
19909
19910 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19911
19912         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
19913         EOPNOTSUPP errors with ENOTTY.
19914         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
19915         EOPNOTSUPP errors with ENOTTY.
19916
19917 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
19918
19919         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19920         Add strcasecmp_l-ssse3.
19921         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
19922         strcasecmp.
19923         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
19924         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
19925         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
19926
19927 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
19928
19929         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
19930
19931         * string/Makefile (strop-tests): Add strcasecmp.
19932         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19933         strcasecmp_l-nonascii.
19934         (gen-as-const-headers): Add locale-defines.sym.
19935         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
19936         * sysdeps/x86_64/strcasecmp.S: New file.
19937         * sysdeps/x86_64/strcasecmp_l.S: New file.
19938         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
19939         * sysdeps/x86_64/locale-defines.sym: New file.
19940         * string/test-strcasecmp.c: New file.
19941
19942         * string/test-strcasestr.c: Test both ends of the range of characters.
19943         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
19944
19945 2010-07-29  Roland McGrath  <roland@redhat.com>
19946
19947         [BZ #11856]
19948         * manual/locale.texi (Yes-or-No Questions): Fix example code.
19949
19950 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
19951
19952         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
19953         for ld.so.
19954
19955 2010-07-27  Andreas Schwab  <schwab@redhat.com>
19956
19957         * manual/memory.texi (Malloc Tunable Parameters): Document
19958         M_PERTURB.
19959
19960 2010-07-26  Roland McGrath  <roland@redhat.com>
19961
19962         [BZ #11840]
19963         * configure.in (-fgnu89-inline check): Set and substitute
19964         gnu89_inline, not libc_cv_gnu89_inline.
19965         * configure: Regenerated.
19966         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
19967
19968 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
19969
19970         * string/test-strnlen.c: New file.
19971         * string/Makefile (strop-tests): Add strnlen.
19972         * string/tester.c (test_strnlen): Add a few more test cases.
19973         * string/tst-strlen.c: Better error reporting.
19974
19975         * sysdeps/x86_64/strnlen.S: New file.
19976
19977 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
19978
19979         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
19980         lower-latency instructions.
19981
19982 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
19983
19984         * string/test-strcasestr.c: New file.
19985         * string/test-strstr.c: New file.
19986         * string/Makefile (strop-tests): Add strstr and strcasestr.
19987         * string/str-two-way.h: Don't undefine MAX.
19988         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
19989
19990 2010-07-21  Andreas Schwab  <schwab@redhat.com>
19991
19992         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19993         strcasestr-nonascii.
19994         (CFLAGS-strcasestr-nonascii.c): Define.
19995         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
19996         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
19997         Remove unused attribute.
19998
19999 2010-07-20  Roland McGrath  <roland@redhat.com>
20000
20001         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20002         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20003         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20004         like LD_HWCAP_MASK can disable hwcaps.
20005
20006 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20007
20008         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20009
20010 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20011
20012         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20013         call in strcasestr.
20014         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20015         __strcasestr_sse42_nonascii.
20016         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20017         strcasestr-nonascii.c.
20018         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20019
20020 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20021
20022         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20023         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20024         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20025         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20026
20027 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20028
20029         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20030         fcntl.
20031
20032 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20033
20034         [BZ #11577]
20035         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20036         dl_signal_cerror.
20037
20038 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20039
20040         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20041         _PC_PIPE_BUF using F_GETPIPE_SZ.
20042
20043 2010-07-05  Roland McGrath  <roland@redhat.com>
20044
20045         * manual/arith.texi (Rounding Functions): Fix rint description
20046         implicit in round description.
20047
20048 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20049
20050         * elf/Makefile: Fix linking for a few tests to make recent linker
20051         happy.
20052
20053 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20054
20055         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20056         $(common-objpfx)libc_nonshared.a.
20057
20058 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20059
20060         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20061         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20062         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20063         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20064         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20065         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20066         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20067         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20082         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20083         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20084         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20085         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20086         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20087         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20088         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20089         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20090         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20091         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20092         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20093         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20108
20109 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20110
20111         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20112         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20113         * string/memmove.c (memmove): Renamed to ...
20114         (MEMMOVE): ...this.  Default to memmove.
20115         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20116         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20117         (END_CHK): Define.
20118         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20119         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20120         mempcpy-ssse3-back memmove-ssse3-back.
20121         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20122         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20123         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20124         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20125         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20126         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20127         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20128         * sysdeps/x86_64/multiarch/memmove.c: New file.
20129         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20130         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20131         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20132         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20133         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20134         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20135         Define.
20136         (index_Fast_Copy_Backward): Define.
20137         (HAS_ARCH_FEATURE): Define.
20138         (HAS_FAST_REP_STRING): Define.
20139         (HAS_FAST_COPY_BACKWARD): Define.
20140
20141 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20142
20143         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20144         Restore proper fallback handling.
20145
20146 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20147
20148         [BZ #11701]
20149         * posix/group_member.c (__group_member): Correct checking loop.
20150
20151         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20152         OOM in getpwuid_r correctly.  Return error number when the caller
20153         should return, otherwise -1.
20154         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20155         call returning > 0 value.
20156         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20157
20158 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20159
20160         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20161         libc_nonshared.a from targets in modules-names.
20162
20163 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20164
20165         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20166         requires it.
20167
20168 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20169
20170         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20171         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20172         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20173         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20174
20175 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20176
20177         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20178
20179 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20180
20181         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20182         and F_GETPIPE_SZ.
20183         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20184         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20185         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20186         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20187         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20188         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20189
20190 2010-06-14  Roland McGrath  <roland@redhat.com>
20191
20192         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20193
20194 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20195
20196         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20197         __REDIRECT followed by __THROW.
20198         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20199         * posix/getopt.h (getopt): Likewise.
20200
20201 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20202
20203         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20204         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20205         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20206         in AT_FLAGS.
20207         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20208         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20209
20210 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20211
20212         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20213
20214 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20215
20216         [BZ #11640]
20217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20218         Properly check family and model.
20219
20220 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20221
20222         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20223
20224 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20225
20226         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20227
20228 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20229
20230         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20231         symbol reference.
20232
20233 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20234
20235         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20236         symbol reference.
20237
20238 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20239
20240         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20241         and internal_recvmmsg.
20242         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20243         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20244         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20245         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20246
20247         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20248         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20249         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20250
20251 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20252
20253         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20254
20255 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20256
20257         POWER7 optimizations.
20258         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20259         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20260
20261 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20262
20263         * version.h: Update for 2.13 development version.
20264
20265 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20266
20267         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20268         exceptions.  Return 0.
20269
20270 2010-05-07  Roland McGrath  <roland@redhat.com>
20271
20272         * elf/ldconfig.c (main): Add a const.
20273
20274 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20275
20276         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20277         (args_options): Add no-idn option.
20278         (ahosts_keys_int): Add idn_flags to ai_flags.
20279         (parse_option): Handle 'i' option to clear idn_flags.
20280
20281         * malloc/malloc.c (_int_free): Possible race in the most recently
20282         added check.  Only act on the data if no current modification
20283         happened.
20284
20285 See ChangeLog.17 for earlier changes.