Add wcsmbs IFUNC tests
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * wcsmbs/Makefile (tests-ifunc): New variable.
4         (tests): Add $(tests-ifunc).
5         * wcsmbs/test-wcschr-ifunc.c: New file.
6         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
7         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
8         * wcsmbs/test-wcslen-ifunc.c: Likewise.
9         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
10         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
11
12         * string/Makefile (tests-ifunc): New variable.
13         (tests): Add $(tests-ifunc).
14         * string/test-memccpy.c (TEST_NAME): New macro.
15         * string/test-memchr.c (TEST_NAME): Likewise.
16         * string/test-memcmp.c (TEST_NAME): Likewise.
17         * string/test-memcpy.c (TEST_NAME): Likewise.
18         * string/test-memmem.c (TEST_NAME): Likewise.
19         * string/test-memmove.c (TEST_NAME): Likewise.
20         * string/test-memset.c (TEST_NAME): Likewise.
21         * string/test-rawmemchr.c (TEST_NAME): Likewise.
22         * string/test-stpcpy.c (TEST_NAME): Likewise.
23         * string/test-stpncpy.c (TEST_NAME): Likewise.
24         * string/test-strcasecmp.c (TEST_NAME): Likewise.
25         * string/test-strcasestr.c (TEST_NAME): Likewise.
26         * string/test-strcat.c (TEST_NAME): Likewise.
27         * string/test-strchr.c (TEST_NAME): Likewise.
28         * string/test-strcmp.c(TEST_NAME): Likewise.
29         * string/test-strcpy.c (TEST_NAME): Likewise.
30         * string/test-strcspn.c (TEST_NAME): Likewise.
31         * string/test-strlen.c (TEST_NAME): Likewise.
32         * string/test-strncasecmp.c (TEST_NAME): Likewise.
33         * string/test-strncmp.c (TEST_NAME): Likewise.
34         * string/test-strncpy.c (TEST_NAME): Likewise.
35         * string/test-strnlen.c (TEST_NAME): Likewise.
36         * string/test-strpbrk.c (TEST_NAME): Likewise.
37         * string/test-strrchr.c (TEST_NAME): Likewise.
38         * string/test-strspn.c (TEST_NAME): Likewise.
39         * string/test-strstr.c (TEST_NAME): Likewise.
40         * string/test-bcopy-ifunc.c: New file.
41         * string/test-bzero-ifunc.c: Likewise.
42         * string/test-memccpy-ifunc.c: Likewise.
43         * string/test-memchr-ifunc.c: Likewise.
44         * string/test-memcmp-ifunc.c: Likewise.
45         * string/test-memcpy-ifunc.c: Likewise.
46         * string/test-memmem-ifunc.c: Likewise.
47         * string/test-memmove-ifunc.c: Likewise.
48         * string/test-mempcpy-ifunc.c: Likewise.
49         * string/test-memset-ifunc.c: Likewise.
50         * string/test-rawmemchr-ifunc.c: Likewise.
51         * string/test-stpcpy-ifunc.c: Likewise.
52         * string/test-stpncpy-ifunc.c: Likewise.
53         * string/test-strcasecmp-ifunc.c: Likewise.
54         * string/test-strcasestr-ifunc.c: Likewise.
55         * string/test-strcat-ifunc.c: Likewise.
56         * string/test-strchr-ifunc.c: Likewise.
57         * string/test-strchrnul-ifunc.c: Likewise.
58         * string/test-strcmp-ifunc.c: Likewise.
59         * string/test-strcpy-ifunc.c: Likewise.
60         * string/test-strcspn-ifunc.c: Likewise.
61         * string/test-strlen-ifunc.c: Likewise.
62         * string/test-strncasecmp-ifunc.c: Likewise.
63         * string/test-strncat-ifunc.c: Likewise.
64         * string/test-strncmp-ifunc.c: Likewise.
65         * string/test-strncpy-ifunc.c: Likewise.
66         * string/test-strnlen-ifunc.c: Likewise.
67         * string/test-strpbrk-ifunc.c: Likewise.
68         * string/test-strrchr-ifunc.c: Likewise.
69         * string/test-strspn-ifunc.c: Likewise.
70         * string/test-strstr-ifunc.c: Likewise.
71
72         * debug/Makefile (tests-ifunc): New variable.
73         (tests): Add $(tests-ifunc).
74         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
75         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
76         * debug/test-stpcpy_chk-ifunc.c: New file.
77         * debug/test-strcpy_chk-ifunc.c: Likewise.
78
79 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
80
81         [BZ #13601]
82         * elf/dl-load.c (open_verify): Retry read if the entire ELF
83         header is not read in.
84
85 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
86
87         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
88         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
89         directly.  Pass built executable to script as
90         $(built-program-cmd).
91         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
92         $testprogram without using LD_LIBRARY_PATH and $ldso.
93
94         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
95         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
96         $(rtld-installed-name).
97         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
98         (rtld_installed_name): Likewise.
99         (library_path): Likewise.
100         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
101         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
102         $(run-program-prefix) to tst-tables.sh.
103         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
104         it to run tst-table-from and tst-table-to.
105         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
106         Pass it to tst-table.sh.
107         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
108         $(run-program-prefix) to tst-gettext.sh.
109         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
110         tst-translit.sh.
111         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
112         tst-gettext2.sh.
113         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
114         to run tst-gettext.
115         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
116         to run tst-gettext2.
117         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
118         to run tst-translit.
119         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
120         $(run-program-prefix) to tst-mtrace.sh.
121         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
122         to run tst-mtrace.
123         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
124         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
125         $(rtld-installed-name).
126         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
127         (rtld_installed_name): Likewise.
128         (run_program_prefix): New variable.  Use it to run wordexp-test.
129
130         * Makeconfig (ARCH): Remove all definitions.
131         (machine): Likewise.
132         [ARCH]: Remove conditional code.
133         [!objdir]: Give error.
134         [!objdir] (objpfx): Remove.
135         [!objdir] (common-objpfx): Likewise.
136         [!objdir] (common-objdir): Likewise.
137         * configure.in (config_makefile): Remove.  Hardcode Makefile in
138         AC_CONFIG_FILES call.
139         * configure: Regenerated.
140
141         [BZ #13888]
142         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
143         or TMPDIR.
144         (testout): Likewise.
145
146         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
147         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
148         $(rtld-installed-name).
149         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
150         (rtld_installed_name): Likwise.
151         (runit): Remove function.
152         (run_getconf): New variable,  Use it for running getconf binary.
153
154 2012-10-19  Jim Blandy  <jimb@codesourcery.com>
155             Joseph Myers  <joseph@codesourcery.com>
156
157         * localedata/tst-wctype.sh (run_program_prefix): Remove variable.
158         (tst_wctype): New variable.  Use it directly to run test program
159         instead of passing test program name as argument.
160
161 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
162
163         [BZ #14716]
164         * string/test-memmem.c (check_result): New function.
165         (do_one_test): Use it.
166         (check1): New function.
167         (test_main): Use it.
168
169 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
170
171         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
172
173 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
174
175         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
176         (_G_LSEEK64): Likewise.
177         (_G_MMAP64): Likewise.
178         (_G_FSTAT64): Likewise.
179         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
180         (_G_LSEEK64): Likewise.
181         (_G_MMAP64): Likewise.
182         (_G_FSTAT64): Likewise.
183         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
184         unconditional.  Call __mmap64 directly.
185         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
186         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
187         __lseek64 directly.
188         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
189         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
190         __mmap64 directly.
191         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
192         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
193         __lseek64 directly.
194         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
195         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
196         __lseek64 directly.
197         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
198         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
199         __lseek64 directly.
200         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
201         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
202         __fxstat64 directly.
203         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
204         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
205         unconditional.
206         (freopen64) [!_G_OPEN64]: Remove conditional code.
207         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
208         unconditional.
209         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
210         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
211         unconditional.
212         (ftello64) [!_G_LSEEK64]: Remove conditional code.
213         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
214         unconditional.
215         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
216         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
217         unconditional.
218         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
219         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
220         unconditional.
221         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
222         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
223         unconditional.
224         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
225         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
226         unconditional.
227         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
228
229 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
230
231         [BZ #12140]
232         * manual/memory.texi (Malloc Tunable Parameters): Add note
233         about free list pointers overwriting some perturb bytes.
234         Wording suggested by Roland McGrath.
235
236 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
237
238         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
239         (lgamma_test): Likewise.
240         (tgamma_test): Likewise.
241
242 2012-10-16  Florian Weimer  <fweimer@redhat.com>
243
244         [BZ #14700]
245         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
246         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
247
248 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
249
250         * NEWS: Mention BZ #14716.
251         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
252         when removing AVAILABLE1_USES_J macro.
253
254 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
255
256         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
257         (__bswap_64): __uint64_t for unsigned 64-bit int.
258
259 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
260
261         * include/string.h (memmem): Declare libc hidden alias.
262         * string/memmem.c (memmem): Define libc hidden alias.
263         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
264         __read, __close instead of open, read, close.
265
266 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
267
268         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
269         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
270         global and hidden.
271         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
272         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
273         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
274         Likewise.
275         (__rawmemchr_sse2): Likewise.
276         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
277         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
278         (__strchr_sse2): Likewise.
279         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
280         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
281         (__strcasecmp_sse2): Likewise.
282         (__strncasecmp_sse2): Likewise.
283         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
284         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
285         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
286         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
287         (__strrchr_sse2): Likewise.
288         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
289         ifunc-impl-list.c.
290         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
291         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
292         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
293         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
294         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
295         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
296         * sysdeps/x86_64/multiarch/memset.S: Likewise.
297         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
298         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
299         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
300         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
301         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
302         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
303         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
304         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
305         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
306         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
307         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
308         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
309         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
310         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
311         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
312         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
313         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
314         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
315         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
316         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
317         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
318         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
319         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
320
321         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
322         global and hidden.
323         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
324         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
325         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
326         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
327         Likewise.
328         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
329         Likewise.
330         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
331         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
332         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
333         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
334         ifunc-impl-list.c.
335         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
336         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
337         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
338         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
339         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
340         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
341         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
342         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
343         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
344         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
345         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
346         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
347         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
348         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
349         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
350         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
351         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
352         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
353         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
354         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
355         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
356         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
357         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
358         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
359         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
360         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
361         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
362         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
363         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
364         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
365         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
366         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
367         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
368         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
369         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
370         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
371         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
372         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
373         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
374         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
375         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
376
377         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
378         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
379         * include/ifunc-impl-list.h: New file.
380         * misc/ifunc-impl-list.c: Likewise.
381         * misc/Makefile (routines): Add ifunc-impl-list.
382         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
383         * string/test-string.h: Include <ifunc-impl-list.h>.
384         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
385         impl_array): New variables.
386         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
387         are defined.
388         (test_init): Call __libc_ifunc_impl_list to initialize
389         func_list if TEST_IFUNC and TEST_NAME are defined.
390
391         * string/Makefile (strop-tests): Add bcopy and bzero.
392         * string/test-bcopy.c: New file.
393         * string/test-bzero.c: Likewise.
394         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
395         defined.
396         * string/test-memset.c: Support bzero test if TEST_BZERO is
397         defined.
398         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
399         __libc_memmove.
400         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
401         __libc_memset.
402         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
403         of memset.
404
405 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
406
407         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
408         * configure: Regenerated.
409
410         * Makeconfig (+link-static-before-libc): Don't include
411         $(link-static-libc).
412
413         * libio/libio.h (_IO_pos_t): Remove.
414
415 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
416
417         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
418         McGrath.
419
420 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
421
422         * crypt/crypt-entry.c: Include fips-private.h.
423         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
424         * crypt/md5c-test.c (main): Tolerate disabled MD5.
425         * sysdeps/unix/sysv/linux/fips-private.h: New file.
426         * sysdeps/generic/fips-private.h: New file, dummy fallback.
427
428 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
429
430         * crypt/crypt-private.h: Include stdbool.h.
431         (_ufc_setup_salt_r): Return bool.
432         * crypt/crypt-entry.c: Include errno.h.
433         (__crypt_r): Return NULL with EINVAL for bad salt.
434         * crypt/crypt_util.c (bad_for_salt): New.
435         (_ufc_setup_salt_r): Check that salt is long enough and within
436         the specified alphabet.
437         * crypt/badsalttest.c: New file.
438         * crypt/Makefile (tests): Add it.
439         ($(objpfx)badsalttest): New.
440
441 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
442
443         * NEWS: Add entry for BZ #14602.
444
445 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
446
447         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
448         type-generic.
449         * math/libm-test.inc: Update comment listing what functions and
450         macros are tested.
451         (isgreater_test): New function.
452         (isgreaterequal_test): Likewise.
453         (isless_test): Likewise.
454         (islessequal_test): Likewise.
455         (islessgreater_test): Likewise.
456         (isunordered_test): Likewise.
457         (main): Call the new functions.
458
459 2012-10-09  Roland McGrath  <roland@hack.frob.com>
460
461         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
462         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
463         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
464         * sysdeps/i386/configure: Regenerated.
465         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
466         * sysdeps/mach/configure: Regenerated.
467         * sysdeps/mach/hurd/configure: Regenerated.
468         * sysdeps/powerpc/configure: Regenerated.
469         * sysdeps/powerpc/powerpc32/configure: Regenerated.
470         * sysdeps/powerpc/powerpc64/configure: Regenerated.
471         * sysdeps/s390/s390-32/configure: Regenerated.
472         * sysdeps/s390/s390-64/configure: Regenerated.
473         * sysdeps/sh/configure: Regenerated.
474         * sysdeps/sparc/configure: Regenerated.
475         * sysdeps/unix/sysv/linux/configure: Regenerated.
476         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
477         * sysdeps/x86_64/configure: Regenerated.
478
479         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
480         defined.  Don't check if MAP is NULL.
481
482 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
483
484         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
485         (_G_stat64): Likewise.
486         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
487         (_G_stat64): Likewise.
488         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
489         instead of struct _G_stat64.
490         * libio/fileops.c (mmap_remap_check): Likewise.
491         (decide_maybe_mmap): Likewise.
492         (_IO_new_file_seekoff): Likewise.
493         (_IO_file_stat): Likewise.
494         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
495         _G_off64_t.
496         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
497         instead of struct _G_stat64.
498         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
499
500 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
501
502         [BZ #14602]
503         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
504         Replace with ...
505         (CHECK_EOL): New macro.
506         (two_way_short_needle): Check beginning of haystack for EOL.  Use
507         CHECK_EOL.
508         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
509         Replace with CHECK_EOL.
510         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
511         Replace with CHECK_EOL.
512
513 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
514
515         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
516         type-generic.
517         * math/libm-test.inc: Update comment listing what functions and
518         macros are tested.
519         (finite_test): New function.
520         (isinf_test): Likewise.
521         (isnan_test): Likewise.
522         (fpclassify_test): Test subnormal input.
523         (isfinite_test): Likewise.
524         (isnormal_test): Likewise.
525         (main): Call the new functions.
526
527 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
528
529         [BZ #14660]
530         * Makerules (%.dynsym): Force C locale when running
531         $(OBJDUMP) --dynamic-syms.
532
533 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
534
535         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
536         <stdint.h>.
537
538 2012-10-06  David S. Miller  <davem@davemloft.net>
539
540         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
541         upper 32-bits of the length value in %o2 since we use branch-on-register
542         tests which consider the entire 64-bit register.
543
544 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
545
546         * string/test-strstr.c (check2): Add a test for page boundary.
547
548 2012-10-05  David S. Miller  <davem@davemloft.net>
549
550         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
551         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
552         file.
553         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
554         sysdep_routines.
555         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
556         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
557         and bzero when HWCAP_SPARC_CRYPTO is present.
558
559 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
560
561         [BZ #14602]
562         * string/test-strstr.c (check2): New function.
563         (test_main): Call check2.
564
565         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
566         and bug-strchr1.
567         * string/bug-strcasestr1.c (do_test): Moved to ...
568         * string/test-strcasestr.c (check1): Here.  New function.
569         (do_one_test): Break out result checking code into ...
570         (check_result): This.  New function.
571         (do_one_test): Call check_result.
572         (test_main): Call check1.
573         * string/bug-strchr1.c (do_test): Moved to ...
574         * string/test-strchr.c (check1): Here.  New function.
575         (do_one_test): Break out result checking code into ...
576         (check_result): This.  New function.
577         (do_one_test): Call check_result.
578         (test_main): Call check1.
579         * string/bug-strstr1.c (main): Moved to ...
580         * string/test-strchr.c (check1): Here.  New function.
581         (do_one_test): Break out result checking code into ...
582         (check_result): This.  New function.
583         (do_one_test): Call check_result.
584         (test_main): Call check1.
585         * string/bug-strcasestr1.c: Removed.
586         * string/bug-strchr1.c: Likewise.
587         * string/bug-strstr1.c: Likewise.
588
589         * elf/Makefile (dl-routines): Add hwcaps.
590         * elf/dl-support.c (_dl_important_hwcaps): Removed.
591         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
592         (_dl_important_hwcaps): Moved to ...
593         * elf/dl-hwcaps.c: Here.  New file.
594         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
595
596         [BZ #14557]
597         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
598         if IS_IN_rtld isn't defined.
599
600         * elf/dl-support.c (_dl_sysinfo_map): New.
601         Include "get-dynamic-info.h" and "setup-vdso.h".
602         (_dl_non_dynamic_init): Call setup_vdso.
603         * elf/dynamic-link.h: Don't include <assert.h>.
604         (elf_get_dynamic_info): Moved to ...
605         * elf/get-dynamic-info.h: Here.  New file.
606         * elf/dynamic-link.h: Include "get-dynamic-info.h".
607         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
608         * elf/setup-vdso.h: Here.  New file.
609         * elf/rtld.c: Include "setup-vdso.h".
610         (dl_main): Call setup_vdso.
611
612 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
613
614         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
615         creal in comment listing functions tested.  List finite, isinf,
616         isnan, isless, islessequal, isgreater, isgreaterequal,
617         islessgreater, isunordered, lgamma_r and pow10 as functions and
618         macros not tested.  Mention which functions not tested are aliases
619         for other functions.  Fix typo.  Note that signs of NaNs are not
620         tested.
621
622         * scripts/config.guess: Update from config.git.
623         * scripts/config.sub: Likewise.
624
625 2012-10-04  Roland McGrath  <roland@hack.frob.com>
626
627         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
628         * misc/madvise.c (madvise): Renamed to __madvise.
629         Make madvise a weak alias.
630         * include/sys/mman.h: Declare __madvise.
631         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
632         * sysdeps/unix/syscalls.list
633         (madvise): Make __madvise the strong name, and madvise a weak alias.
634         * sysdeps/unix/sysv/linux/syscalls.list
635         (madvise, mmap): Remove redundant entries.
636         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
637         * malloc/malloc.c (mtrim): Likewise.
638         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
639
640 2012-10-03  Roland McGrath  <roland@hack.frob.com>
641
642         * sysdeps/mach/hurd/dl-cache.c: File removed.
643         * config.h.in (USE_LDCONFIG): New #undef.
644         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
645         * configure: Regenerated.
646         * elf/Makefile (dl-routines): Add dl-cache only under
647         [$(use-ldconfig) = yes].
648         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
649         cache on [USE_LDCONFIG].
650         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
651         [USE_LDCONFIG].
652         * elf/rtld.c (dl_main): Likewise.
653
654 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
655
656         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
657         _SC_LEVEL4_CACHE_LINESIZE.
658
659 2012-10-03  Roland McGrath  <roland@hack.frob.com>
660
661         * sysdeps/unix/bsd/confstr.h: File removed.
662
663 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
664
665         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
666         sys/sdt-config.h.
667
668 2012-10-02  Roland McGrath  <roland@hack.frob.com>
669
670         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
671         Make 'mapoff' field ElfW(Off) rather than off_t.
672
673 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
674
675         * nscd/Makefile: Remove nscd-cflags and all its users.
676         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
677         (CFLAGS-nonlib): Add compiler flags for nscd modules.
678
679         [BZ #10631]
680         * malloc.c (malloc_printerr): Clarify error message.
681
682 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
683
684         [BZ #14648]
685         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
686         Set bit_FMA_Usable if FMA is supported.
687         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
688         macro.
689         (bit_FMA4_Usable): Updated.
690         (index_FMA_Usable): New macro.
691         (CPUID_FMA): Likewise
692         (HAS_FMA): Defined with bit_FMA_Usable.
693
694 2012-10-01  Roland McGrath  <roland@hack.frob.com>
695
696         * bits/types.h (__swblk_t): Type removed.
697         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
698         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
699         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
700         (__SWBLK_T_TYPE): Likewise.
701         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
702         (__SWBLK_T_TYPE): Likewise.
703         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
704         (__SWBLK_T_TYPE): Likewise.
705         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
706         (__SWBLK_T_TYPE): Likewise.
707
708 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
709             Honza Horak <hhorak@redhat.com>
710
711         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
712         (xdr_mapname): Use YPMAXMAP as maxsize.
713         (xdr_peername): Use YPMAXPEER as maxsize.
714         (xdr_keydat): Use YPAXRECORD as maxsize.
715         (xdr_valdat): Use YPMAXRECORD as maxsize.
716
717 2012-10-01  Roland McGrath  <roland@hack.frob.com>
718
719         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
720
721         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
722         * csu/init-first.c: ... here.
723         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
724         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
725         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
726         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
727         * sysdeps/i386/init-first.c: File removed.
728         * sysdeps/sh/init-first.c: File removed.
729
730 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
731
732         [BZ #14645]
733         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
734         if x * y might underflow to zero and z is zero.
735         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
736         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
737         * math/libm-test.inc (min_subnorm_value): New variable.
738         (fma_test): Add more tests.
739         (fma_test_towardzero): Likewise.
740         (fma_test_downward): Likewise
741         (fma_test_upward): Likewise.
742         (initialize): Set min_subnorm_value.
743
744 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
745
746         [BZ #14638]
747         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
748         0 + 0.
749         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
750         mode for addition resulting in exact zero.
751         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
752         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
753         exact 0 + 0.
754         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
755         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
756         * math/libm-test.inc (fma_test): Add more tests.
757         (fma_test_towardzero): New function.
758         (fma_test_downward): Likewise.
759         (fma_test_upward): Likewise.
760         (main): Call the new functions.
761
762 2012-09-28  David S. Miller  <davem@davemloft.net>
763
764         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
765
766 2012-09-28  Roland McGrath  <roland@hack.frob.com>
767
768         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
769         instead of SIGALRM.
770
771         * sysdeps/gnu/_G_config.h: Moved to ...
772         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
773         * sysdeps/mach/hurd/_G_config.h: Moved to ...
774         * sysdeps/generic/_G_config.h: ... here.
775
776         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
777
778         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
779
780         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
781         Conditionalize target on [libnss_test1.so-version].
782
783         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
784
785         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
786         (elfobjdir): Move out of conditionals.
787
788         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
789         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
790         (__nss_lookup_function): Conditionalize label remove_from_tree on
791         [!DO_STATIC_NSS || SHARED], matching its only use.
792
793 2012-09-28  David S. Miller  <davem@davemloft.net>
794
795         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
796         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
797         file.
798         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
799         sysdep_routines.
800         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
801         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
802         when HWCAP_SPARC_CRYPTO is present.
803
804 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
805
806         * io/tst-mknodat.c: Create a FIFO instead of a socket.
807
808 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
809
810         [BZ #6530]
811         * stdio-common/vfprintf.c (process_string_arg): Revert
812         2000-07-22 change.
813
814 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
815
816         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
817         for testcase.
818         * stdio-common/tst-sprintf.c: Include <locale.h>
819         (main): Test sprintf's handling of incomplete multibyte
820         characters.
821
822 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
823
824         * elf/dl-runtime.c (VERSYMIDX): Removed.
825         * elf/dl-version.c (VERSYMIDX): Likewise.
826         * elf/do-rel.h (VERSYMIDX): Likewise.
827         (VALIDX): Likewise.
828         * elf/dynamic-link.h (VERSYMIDX): Likewise.
829         * elf/rtld.c (VALIDX): Likewise.
830         (ADDRIDX): Likewise.
831         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
832         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
833         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
834         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
835         (VALIDX): Likewise.
836         (ADDRIDX): Likewise.
837
838 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
839
840         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
841
842 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
843
844         [BZ #11438]
845         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
846         to global scope.
847         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
848         addresses are in the same scope as 192.0.2/24.
849         * posix/gai.conf: Document new scope table defaults.
850
851 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
852
853         [BZ #5298]
854         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
855         for ftell.  Compute offsets from write pointers instead.
856         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
857
858 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
859
860         [BZ #14543]
861         * libio/Makefile (tests): New test case tst-fseek.
862         * libio/tst-fseek.c: New test case to verify that fseek/ftell
863         combination works in wide mode.
864         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
865         state when the external buffer state changes.
866
867 2012-09-27  David S. Miller  <davem@davemloft.net>
868
869         [BZ #14376]
870         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
871         pass reloc->r_addend in as the 'high' argument to
872         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
873
874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
875
876 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
877
878         * rt/tst-aio2.c: Include <pthread.h>.
879         * rt/tst-aio3.c: Likewise.
880
881 2012-09-27  Steve Ellcey  <sellcey@mips.com>
882
883         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
884
885 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
886
887         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
888         contents on [SHARED].
889
890 2012-09-26  Marek Polacek  <polacek@redhat.com>
891
892         [BZ #14530]
893         [BZ #13741]
894         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
895         for C++ and GCC <4.3 as well as for non GCC compilers.
896
897 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
898
899         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
900
901 2012-09-25  Roland McGrath  <roland@hack.frob.com>
902
903         * Makefile.in (all, install): Declare with .PHONY.
904         Reported by Michael Hope <michael.hope@linaro.org>.
905
906 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
907
908         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
909         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
910         system header.
911         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
912         Likewise.
913         (sydep_routines): Add the new and the internal functions.
914         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
915         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
917         (GLIBC_2.17): Add the new function.
918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
919         (GLIBC_2.17): Likewise.
920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
921         (GLIBC_2.17): Likewise.
922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
923         (GLIBC_2.17): Likewise.
924         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
925
926 2012-09-25  Alan Modra  <amodra@gmail.com>
927
928         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
929         Add release barrier before setting once_control to say
930         initialisation is done.  Add hints on lwarx.  Use macro in
931         place of isync.
932         (clear_once_control): Add release barrier.
933
934 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
935
936         [BZ #13629]
937         * math/s_clog.c (__clog): Handle more values close to |z| = 1
938         specially.
939         * math/s_clog10.c (__clog10): Likewise.
940         * math/s_clog10f.c (__clog10f): Likewise.
941         * math/s_clog10l.c (__clog10l): Likewise.
942         * math/s_clogf.c (__clogf): Likewise.
943         * math/s_clogl.c (__clogl): Likewise.
944         * math/Makefile (libm-calls): Add x2y2m1.
945         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
946         (__x2y2m1): Likewise.
947         (__x2y2m1l): Likewise.
948         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
949         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
950         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
951         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
952         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
953         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
954         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
955         * sysdeps/i386/fpu/libm-test-ulps: Update.
956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
957
958         [BZ #14621]
959         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
960         int as type of variable DEPTH.
961         (glob): Use size_t instead of int as type of variables NEWCOUNT
962         and OLD_PATHC.
963
964 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
965
966         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
967         Add s_sincosf-sse2.
968         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
969         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
970         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
971         macros for using routine as __sincosf_ia32.
972         Use macro for function declaration and weak_alias.
973         * sysdeps/i386/fpu/libm-test-ulps: Update.
974
975         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
976         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
977
978         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
979         subnormal argument.
980         * math/s_cexpf.c (__cexpf): Likewise.
981         * math/s_csinf.c (__csinf): Likewise.
982         * math/s_csinhf.c (__csinhf): Likewise.
983         * math/s_ctanf.c (__ctanf): Likewise.
984         * math/s_ctanhf.c (__ctanhf): Likewise.
985         * math/s_ccosh.c (__ccoshf): Likewise.
986         * math/s_cexp.c (__cexpl): Likewise.
987         * math/s_csin.c (__csin): Likewise.
988         * math/s_csinh.c (__csinh): Likewise.
989         * math/s_ctan.c (__ctan): Likewise.
990         * math/s_ctanh.c (ctanh): Likewise.
991         * math/s_ccoshl.c (__ccoshl): Likewise.
992         * math/s_cexpl.c (__cexpl): Likewise.
993         * math/s_csinl.c (__csinl): Likewise.
994         * math/s_csinhl.c (__csinhl): Likewise.
995         * math/s_ctanl.c (__ctanl): Likewise.
996         * math/s_ctanhl.c (__ctanhl): Likewise.
997
998 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
999
1000         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1001         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1002         (_IO_off_t): Define to __off_t, not _G_off_t.
1003         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1004         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1005         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1006         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1007         type of __dummy and __dummy2 fields.
1008         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1009         (_G_ssize_t): Likewise.
1010         (_G_off_t): Likewise.
1011         (_G_pid_t): Likewise.
1012         (_G_uid_t): Likewise.
1013         (_G_wchar_t): Likewise.
1014         (_G_wint_t): Likewise.
1015         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1016         (_G_ssize_t): Likewise.
1017         (_G_off_t): Likewise.
1018         (_G_pid_t): Likewise.
1019         (_G_uid_t): Likewise.
1020         (_G_wchar_t): Likewise.
1021         (_G_wint_t): Likewise.
1022         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1023         (_G_ssize_t): Likewise.
1024         (_G_off_t): Likewise.
1025         (_G_pid_t): Likewise.
1026         (_G_uid_t): Likewise.
1027         (_G_wchar_t): Likewise.
1028         (_G_wint_t): Likewise.
1029
1030 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1031
1032         * malloc/arena.c: Include malloc-sysdep.h.
1033         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1034         is sufficient to shrink the heap or an unmap is needed.
1035         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1036         new function check_may_shrink_heap.
1037         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1038         new function check_may_shrink_heap.
1039
1040 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1041
1042         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1043         comments.
1044
1045 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1046
1047         * catgets/test-gencat.sh: Add "set -e".
1048         * elf/tst-pathopt.sh: Likewise.
1049         * grp/tst_fgetgrent.sh: Likewise.
1050         * iconvdata/run-iconv-test.sh: Likewise.
1051         * intl/tst-gettext.sh: Likewise.
1052         * intl/tst-gettext2.sh: Likewise.
1053         * intl/tst-gettext4.sh: Likewise.
1054         * intl/tst-gettext6.sh: Likewise.
1055         * intl/tst-translit.sh: Likewise.
1056         * io/ftwtest-sh: Likewise.
1057         * libio/test-freopen.sh: Likewise.
1058         * malloc/tst-mtrace.sh: Likewise.
1059         * posix/globtest.sh: Likewise.
1060         * posix/tst-getconf.sh: Likewise.
1061         * posix/wordexp-tst.sh: Likewise.
1062         * stdio-common/tst-printf.sh: Likewise.
1063         * stdio-common/tst-unbputc.sh: Likewise.
1064         * stdlib/tst-fmtmsg.sh: Likewise.
1065         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1066         * catgets/Makefile: Do not specify -e option when running
1067         testsuite shell scripts.
1068         * elf/Makefile: Likewise.
1069         * grp/Makefile: Likewise.
1070         * iconvdata/Makefile: Likewise.
1071         * intl/Makefile: Likewise.
1072         * io/Makefile: Likewise.
1073         * libio/Makefile: Likewise.
1074         * malloc/Makefile: Likewise.
1075         * posix/Makefile: Likewise.
1076         * stdio-common/Makefile: Likewise.
1077         * stdlib/Makefile: Likewise.
1078         * sysdeps/x86_64/Makefile: Likewise.
1079
1080         * io/ftwtest-sh: Add copyright header.
1081         * posix/globtest.sh: Likewise.
1082         * posix/tst-getconf.sh: Likewise.
1083         * posix/wordexp-tst.sh: Likewise.
1084         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1085
1086 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1087
1088         [BZ #13679]
1089         * Makeconfig (+link): Defined as $(+link-static) if
1090         $(build-shared) isn't yes.
1091         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1092         isn't yes.
1093         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1094
1095         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1096
1097         [BZ #14562]
1098         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1099         new chunk size with MALLOC_ALIGN_MASK.
1100
1101 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1102
1103         [BZ #5044]
1104         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1105         <rounding-mode.h>.
1106         (__printf_fphex): Determine rounding using get_rounding_mode and
1107         round_away.
1108         * stdio-common/tst-printf-round.c (struct hex_test): New
1109         structure.
1110         (hex_tests): New variable.
1111         (test_hex_in_one_mode): New function.
1112         (do_test): Also run tests for hex float output.
1113
1114 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1115
1116         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1117         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1118         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1119         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1120         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1121         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1122         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1123         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1124
1125 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1126
1127         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1128         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1129         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1130         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1131
1132 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1133
1134         [BZ #14579]
1135         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1136         mode only.
1137         * elf/tst-rtld-load-self.sh: New test.
1138         * elf/Makefile: Run it.
1139
1140 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1141
1142         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1143         (tst-writev-ENV): Remove.
1144         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1145
1146 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1147
1148         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1149
1150 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1151
1152         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1153         unconditional.
1154         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1155         Likewise.
1156         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1157         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1158         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1159         Likewise.
1160
1161 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1162
1163         [BZ #14587]
1164         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1165         * config.make.in (have-cpp-asm-debuginfo): Removed.
1166         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1167         * configure: Regenerated.
1168
1169 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1170
1171         [BZ #5044]
1172         * stdio-common/printf_fp.c: Include <stdbool.h> and
1173         <rounding-mode.h>.
1174         (___printf_fp): Determine rounding using get_rounding_mode and
1175         round_away.
1176         * stdio-common/tst-printf-round.c: New file.
1177         * stdio-common/Makefile (tests): Add tst-printf-round.
1178         (link-libm): New variable.
1179         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1180
1181 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1182
1183         [BZ #14576]
1184         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1185         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1186         Likewise.
1187         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1188         Likewise.
1189
1190 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1191
1192         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1193         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1194         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1195         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1196
1197 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1198
1199         [BZ #14518]
1200         * include/rounding-mode.h: New file.
1201         * sysdeps/generic/get-rounding-mode.h: Likewise.
1202         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1203         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1204         (MAX_VALUE): New macro.
1205         (MIN_VALUE): Likewise.
1206         (overflow_value): New function.
1207         (underflow_value): Likewise.
1208         (round_and_return): Use overflow_value and underflow_value to
1209         determine return values in overflow and underflow cases.  Use
1210         round_away to determine rounding depending on rounding mode.
1211         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1212         determine return values in overflow and underflow cases.
1213         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1214         (struct test_results): New structure.
1215         (struct test): Use struct test_results to store expected results
1216         for all rounding modes.
1217         (TEST): Include expected results for all rounding modes.
1218         (test_in_one_mode): New function.
1219         (do_test): Use test_in_one_mode to compute and check results.
1220         Check results for all rounding modes.
1221         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1222         $(link-libm).
1223
1224 2012-12-09  Allan McRae  <allan@archlinux.org>
1225
1226         * sysdeps/i386/fpu/libm-test-ulps: Update
1227
1228 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1229
1230         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1231         (_G_int32_t): Likewise.
1232         (_G_uint16_t): Likewise.
1233         (_G_uint32_t): Likewise.
1234         (_G_HAVE_BOOL): Likewise.
1235         (_G_HAVE_ATEXIT): Likewise.
1236         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1237         (_G_HAVE_IO_FILE_OPEN): Likewise.
1238         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1239         (_G_int32_t): Likewise.
1240         (_G_uint16_t): Likewise.
1241         (_G_uint32_t): Likewise.
1242         (_G_HAVE_BOOL): Likewise.
1243         (_G_HAVE_ATEXIT): Likewise.
1244         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1245         (_G_HAVE_IO_FILE_OPEN): Likewise.
1246         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1247         (_G_int32_t): Likewise.
1248         (_G_uint16_t): Likewise.
1249         (_G_uint32_t): Likewise.
1250         (_G_HAVE_BOOL): Likewise.
1251         (_G_HAVE_ATEXIT): Likewise.
1252         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1253         (_G_HAVE_IO_FILE_OPEN): Likewise.
1254
1255 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1256
1257         * csu/libc-tls.c: Update copyright years.
1258
1259 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1260
1261         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1262         [!_G_USING_THUNKS]: Remove conditional code.
1263         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1264         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1265
1266         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1267         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1268         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1269         (_G_VTABLE_LABEL_PREFIX): Likewise.
1270         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1271         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1272         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1273         (_G_VTABLE_LABEL_PREFIX): Likewise.
1274         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1275         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1276         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1277         (_G_VTABLE_LABEL_PREFIX): Likewise.
1278         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1279
1280 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1281
1282         * libio/Makefile: Include ../Makeconfig before tests.
1283         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1284         only if $(build-shared) is yes.
1285
1286         * iconv/gconv_db.c: Update copyright years.
1287
1288 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1289
1290         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1291         unwind info if defined PIC. Fix special cases description.
1292         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1293
1294         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1295         DP_HI_MASK entry.
1296         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1297
1298 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1299
1300         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1301
1302         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1303         is NULL.
1304
1305         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1306         (LDLIBS-tst-chk4): This.
1307         (LDFLAGS-tst-chk5): Renamed to ...
1308         (LDLIBS-tst-chk5): This.
1309         (LDFLAGS-tst-chk6): Renamed to ...
1310         (LDLIBS-tst-chk6): This.
1311         (LDFLAGS-tst-lfschk4): Renamed to ...
1312         (LDLIBS-tst-lfschk4): This.
1313         (LDFLAGS-tst-lfschk5): Renamed to ...
1314         (LDLIBS-tst-lfschk5): This.
1315         (LDFLAGS-tst-lfschk6): Renamed to ...
1316         (LDLIBS-tst-lfschk6): This.
1317
1318         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1319         on $(common-objpfx)soversions.mk.
1320
1321 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1322
1323         [BZ #10014]
1324         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1325         example host name.
1326
1327 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1328
1329         * malloc/arena.c (arena_get_retry): New function that gets
1330         another arena for the caller to try its request on.
1331         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1332         current arena cannot fulfill the request.
1333         (__libc_memalign): Likewise.
1334         (__libc_memalign): Likewise.
1335         (__libc_pvalloc): Likewise.
1336         (__libc_calloc): Likewise.
1337
1338 2012-09-05  John Tobey  <john.tobey@gmail.com>
1339
1340         [BZ #13542]
1341         * manual/arith.texi (Operations on Complex): Fix description
1342         of carg branch cut.
1343
1344 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1345
1346         [BZ #10014]
1347         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1348         host name.
1349
1350         [BZ #10038]
1351         * manual/memory.texi (Memory): Make order of menu items match
1352         order of sections.
1353
1354 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1355
1356         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1357         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1358         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1359
1360 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1361
1362         * csu/libc-tls.c (static_dtv): Renamed to ...
1363         (_dl_static_dtv): This.  Make it global.
1364         (_dl_initial_dtv): Removed.
1365         (__libc_setup_tls): Updated.
1366         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1367         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1368         DL_INITIAL_DTV.
1369
1370 2012-09-06  Petr Machata  <pmachata@redhat.com>
1371
1372         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1373         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1374         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1375         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1376
1377 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1378
1379         [BZ #14545]
1380         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1381         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1382         freeing dtv[-1].
1383
1384 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1385
1386         [BZ #14544]
1387         * Makeconfig (link-static-before-libc): Replace $(+prector)
1388         with $(+prectorT).
1389         (link-static-after-libc): Replace $(+postctor) with
1390         $(+postctorT).
1391         (link-bounded): Replace $(+prector)/$(+postctor) with
1392         $(+prectorT)/$(+postctorT).
1393         (+prectorT): New macro.
1394         (+postctorT): Likewise.
1395
1396 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1397
1398         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1399         (round_str): Handle values above the maximum for IBM long double
1400         as inexact.
1401         * stdlib/tst-strtod-round.c (tests): Regenerated.
1402
1403 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1404
1405         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1406         assembler flag.
1407         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1408         zarch_nohighgprs around the zarch optimized routines.
1409         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1410         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1411         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1412         for zarch.
1413
1414 2012-09-05  David S. Miller  <davem@davemloft.net>
1415
1416         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1417
1418         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1419         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1420         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1421         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1422         entries.
1423
1424 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1425
1426         * malloc/arena.c: Fold copyright years.
1427         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1428
1429 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1430
1431         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1432
1433 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1434
1435         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1436
1437 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1438
1439         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1440         change internal state upon failure.
1441
1442 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1443
1444         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1445         * malloc/memusage.c (mmap): Likewise.
1446         (mmap64, mremap): Likewise.  Adjust name in comment.
1447
1448 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1449
1450         * libio/fileops.c: Fix typos in comments.
1451         * libio/oldfileops.c: Likewise.
1452         * libio/wfileops.c: Likewise.
1453
1454 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1455
1456         [BZ #1349]
1457         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1458         (tst-malloc-usable-ENV): Set environment for test case.
1459         * malloc/hooks.c (malloc_check_get_size): New function to get
1460         requested size.
1461         * malloc/malloc.c (musable): Use malloc_check_get_size.
1462         * malloc/tst-malloc-usable.c: New test case.
1463
1464 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1465
1466         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1467
1468 2012-09-05  Allan McRae  <allan@archlinux.org>
1469
1470         [BZ #13966]
1471         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1472         determine header location.
1473         * configure: Regenerated.
1474
1475 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1476
1477         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1478         float format.
1479         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1480         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1481         format.
1482         (test): Regenerate.
1483
1484 2012-09-04  David S. Miller  <davem@davemloft.net>
1485
1486         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1487         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1488         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1489
1490 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1491
1492         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1493         failures.
1494
1495         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1496
1497 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1498
1499         [BZ #9914]
1500         * libio/iogetdelim.c: Include <limits.h>.
1501         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1502         + len + 1 would overflow.
1503
1504 2012-09-03  Andreas Jaeger  <aj@suse.de>
1505
1506         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1507         * sysdeps/i386/fpu/libm-test-ulps: Update.
1508
1509 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1510
1511         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1512         Add s_sinf-sse2, s_conf-sse2.
1513
1514         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1515         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1516         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1517         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1518
1519         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1520         for using routine as __sinf_ia32.
1521         Use macro for function declaration and weak_alias.
1522         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1523         for using routine as __cosf_ia32.
1524         Use macro for function declaration and weak_alias.
1525
1526         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1527         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1528
1529         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1530         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1531         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1532
1533         * math/libm-test.inc (cos_test): Add more test cases.
1534         (sin_test): Likewise.
1535         (sincos_test): Likewise.
1536
1537 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1538
1539         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1540         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1541         hidden.
1542         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1543
1544 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1545
1546         [BZ #14538]
1547         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1548         first element of the GOT.
1549         (elf_machine_load_address): Return the difference between
1550         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1551
1552 2012-09-01  Allan McRae  <allan@archlinux.org>
1553
1554         [BZ #13412]
1555         * configure.in (AWK): Require gawk version 3.0 or later.
1556         * configure: Regenerated.
1557
1558 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1559
1560         * sysdeps/unix/sysv/linux/kernel-features.h
1561         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1562         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1563         [__NR_clock_getres]: Make code unconditional.
1564         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1565         (clock_getcpuclockid): Remove code left unreachable by removal of
1566         conditionals.
1567         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1568         code unconditional.
1569         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1570         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1571         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1572         Make code unconditional.
1573         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1574         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1575         * sysdeps/unix/sysv/linux/clock_settime.c
1576         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1577         conditional code.
1578         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1579         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1580
1581 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1582
1583         [BZ #14476]
1584         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1585         scripts/test-installation.pl.
1586
1587         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1588         and $ld_so_version if it is set.
1589
1590 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1591
1592         [BZ #14516]
1593         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1594         failure if reading from procfs failed.
1595         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1596
1597 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1598
1599         * sysdeps/unix/sysv/linux/kernel-features.h
1600         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1601         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1602         Remove conditional code.
1603         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1604         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1605         Remove conditional code.
1606         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1607         * sysdeps/unix/sysv/linux/i386/fxstat.c
1608         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1609         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1610         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1611         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1612         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1613         * sysdeps/unix/sysv/linux/i386/lxstat.c
1614         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1615         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1616         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1617         Remove conditional code.
1618         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1619         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1620         Remove conditional code.
1621         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1622         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1623         <kernel-features.h>.
1624         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1625         Remove.
1626         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1627         Remove conditional code.
1628         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1629         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1630         Remove conditional.
1631
1632 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1633
1634         [BZ #5400]
1635         * NEWS: Add fixed bug number.
1636
1637 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1638
1639         [BZ #14519]
1640         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1641         underflowing exponent in case of negative sign.
1642         * stdlib/tst-strtod-round-data: Add more tests.
1643         * stdlib/tst-strtod-round.c (tests): Regenerated.
1644
1645         [BZ #3479]
1646         * stdlib/strtod_l.c (NDIG): Remove.
1647         (HEXNDIG): Likewise.
1648         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1649         smallest representable value.
1650         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1651         lie within an exact representation of 1/2 ulp of the result.
1652         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1653         unconditionally.
1654         (TENS_P9_IDX): Define unconditionally.
1655         (TENS_P9_SIZE): Likewise.
1656         (TENS_P10_IDX): Likewise.
1657         (TENS_P10_SIZE): Likewise.
1658         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1659         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1660         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1661         entries for 10^2^13 and 10^2^14.
1662         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1663         (TENS_P13_IDX): Define.
1664         (TENS_P13_SIZE): Likewise.
1665         (TENS_P14_IDX): Likewise.
1666         (TENS_P14_SIZE): Likewise.
1667         (_fpioconst_pow10): Change array size to
1668         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1669         unconditional.
1670         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1671         1024]: Add entries for 10^2^13 and 10^2^14.
1672         [LAST_POW10 > _LAST_POW10]: Remove #error.
1673         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1674         (_fpioconst_pow10): Change array size to
1675         FPIOCONST_POW10_ARRAY_SIZE.
1676         * stdlib/gen-fpioconst.c: New file.
1677         * stdlib/gen-tst-strtod-round.c: Likewise.
1678         * stdlib/tst-strtod-round-data: Likewise.
1679         * stdlib/tst-strtod-round.c: Likewise.
1680         * stdlib/Makefile (tests): Add tst-strtod-round.
1681
1682         [BZ #14459]
1683         * stdlib/strtod_l.c: Include <stdint.h>.
1684         (NDEBUG): Do not define.
1685         (round_and_return): Change EXPONENT parameter to type intmax_t.
1686         Rearrange calculations to avoid internal overflow possibilities.
1687         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1688         Rearrange calculations to avoid internal overflow possibilities.
1689         Assert that number fits inside MPNSIZE limbs.
1690         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1691         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1692         calculations and add assertions to avoid internal overflow
1693         possibilities.  Add casts to avoid signed/unsigned operations.
1694         * stdlib/tst-strtod-overflow.c: New file.
1695         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1696
1697 2012-08-25  Marek Polacek  <polacek@redhat.com>
1698
1699         * time/time.h: Fix some typos in comments.
1700
1701 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1702
1703         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1704         * posix/tst-rfc3484-2.c: Likewise.
1705         * posix/tst-rfc3484-3.c: Likewise.
1706
1707 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1708
1709         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1710         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1711
1712 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1713
1714         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1715         #include of fxstatat64.c.
1716
1717 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1718
1719         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1720         * shadow/getspent_r.c: Likewise.
1721         * shadow/getspnam.c: Likewise.
1722         * shadow/getspnam_r.c: Likewise.
1723         * gshadow/getsgent.c: Likewise.
1724         * gshadow/getsgent_r.c: Likewise.
1725         * gshadow/getsgnam.c: Likewise.
1726         * gshadow/getsgnam_r.c: Likewise.
1727         * inet/getnetbyad.c: Likewise.
1728         * inet/getnetbyad_r.c: Likewise.
1729         * inet/getnetbynm.c: Likewise.
1730         * inet/getnetbynm_r.c: Likewise.
1731         * inet/getnetent.c: Likewise.
1732         * inet/getnetent_r.c: Likewise.
1733         * inet/getproto.c: Likewise.
1734         * inet/getproto_r.c: Likewise.
1735         * inet/getprtent.c: Likewise.
1736         * inet/getprtent_r.c: Likewise.
1737         * inet/getprtname.c: Likewise.
1738         * inet/getprtname_r.c: Likewise.
1739         * inet/getrpcbyname.c: Likewise.
1740         * inet/getrpcbyname_r.c: Likewise.
1741         * inet/getrpcbynumber.c: Likewise.
1742         * inet/getrpcbynumber_r.c: Likewise.
1743         * inet/getrpcent.c: Likewise.
1744         * inet/getrpcent_r.c: Likewise.
1745         * inet/getaliasent.c: Likewise.
1746         * inet/getaliasent_r.c: Likewise.
1747         * inet/getaliasname.c: Likewise.
1748         * inet/getaliasname_r.c: Likewise.
1749         * nscd/getgrgid_r.c: Likewise.
1750         * nscd/getgrnam_r.c: Likewise.
1751         * nscd/gethstbyad_r.c: Likewise.
1752         * nscd/gethstbynm3_r.c: Likewise.
1753         * nscd/getpwnam_r.c: Likewise.
1754         * nscd/getpwuid_r.c: Likewise.
1755         * nscd/getsrvbynm_r.c: Likewise.
1756         * nscd/getsrvbypt_r.c: Likewise.
1757         * nscd/gai.c: Likewise.
1758
1759         * configure.in (build_nscd): New substituted variable, set
1760         by --disable-build-nscd and defaults to $use_nscd.
1761         * configure: Regenerated.
1762         * config.make.in (build-nscd): New substituted variable.
1763         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1764         Change conditional to require [$(build-nscd) = yes] as well.
1765         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1766
1767         [BZ# 13696]
1768         * configure.in (use_nscd): New substituted variable, set by
1769         --disable-nscd.  If enabled, define USE_NSCD.
1770         * configure: Regenerated.
1771         * config.h.in: Add USE_NSCD.
1772         * config.make.in (use-nscd): New substituted variable.
1773         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1774         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1775         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1776         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1777         (CFLAGS-getgrnam_r.c): Likewise.
1778         (CFLAGS-initgroups.c): Likewise.
1779         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1780         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1781         Variables removed.
1782         * inet/getnetgrent_r.c
1783         (nscd_setnetgrent): New function, broken out of ...
1784         (setnetgrent): ... here.  Call it.
1785         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1786         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1787         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1788         * nscd/Makefile (routines, aux): Move definitions after include of
1789         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1790         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1791         Conditionalize on [USE_NSCD].
1792         (is_nscd, nscd_init_cb): Likewise.
1793         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1794         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1795         * nss/nss_db/db-init.c: Likewise.
1796         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1797         [USE_NSCD].
1798         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1799         (make_request): Use it.
1800         (cache_valid_p): New function.
1801         (__check_pf): Use it.
1802         * NEWS: Add item for --disable-nscd.
1803
1804 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1805
1806         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1807         to support sed >= 4.2.1-20-ga9bf076.
1808         * configure: Regenerated.
1809
1810 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1811
1812         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1813         Conditionalize whole body on [IREL].
1814
1815 2012-08-22  Jeff Law <law@redhat.com>
1816
1817         [BZ #14505]
1818         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1819         if the family is PF_UNSPEC.
1820
1821 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1822
1823         * Makerules (lib-version): Rename from V.
1824         (install-lib-nosubdir): Change V to lib-version.
1825
1826 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1827
1828         [BZ #14252]
1829         * powerpc32/power6/wcschr.c: New file.
1830         * powerpc32/power6/wcscpy.c: New file.
1831         * powerpc32/power6/wcsrchr.c: New file.
1832         * powerpc64/power6/wcschr.c: New file.
1833         * powerpc64/power6/wcscpy.c: New file.
1834         * powerpc64/power6/wcsrchr.c: New file.
1835
1836 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1837
1838         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1839         (two_way_short_needle): Use it.
1840         * string/strstr.c (AVAILABLE1_USES_J): Define.
1841         * string/strcasestr.c: Likewise.
1842
1843         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1844         array references.
1845         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1846
1847         [BZ #11607]
1848         * NEWS: Add an entry.
1849         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1850         define their defaults.
1851         (two_way_short_needle): Detect end-of-string on-the-fly.
1852         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1853         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1854         * string/bug-strcasestr1.c: New test.
1855         * string/Makefile: Run it.
1856
1857 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1858
1859         [BZ #11607]
1860         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1861         the first character.
1862
1863 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1864
1865         * csu/elf-init.c (__libc_csu_irel): Function removed.
1866         * csu/libc-start.c (apply_irel): New function.
1867         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1868
1869 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1870
1871         * sysdeps/unix/sysv/linux/kernel-features.h
1872         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1873         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1874         <kernel-features.h>.
1875         [__NR_fadvise64_64]: Make code unconditional.
1876         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1877         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1878         !__NR_fadvise64_64)]: Likewise.
1879         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1880         !__NR_fadvise64_64))]: Likewise.
1881         [__NR_fadvise64]: Make code unconditional.
1882         [!__NR_fadvise64]: Remove conditional code.
1883         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1884         <kernel-features.h>.
1885         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1886         unconditional.
1887         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1888         conditional code.
1889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1890         not include <kernel-features.h>.
1891         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1892         unconditional.
1893         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1894         conditional code.
1895         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1896         include <kernel-features.h>.
1897         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1898         unconditional.
1899         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1900         conditional code.
1901
1902 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1903
1904         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1905         slight instruction rearrangements per scrollpipe analysis.
1906         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1907
1908 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1909
1910         * manual/syslog.texi (syslog; vsyslog, closelog):
1911         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1912         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1913
1914         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1915         DSOCAPS to match condition on defining it.
1916
1917 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1918
1919         * sysdeps/unix/sysv/linux/kernel-features.h
1920         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1922         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1923         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1925         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1926         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1928         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1929         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1930
1931         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1932         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1933
1934         * sysdeps/unix/sysv/linux/kernel-features.h
1935         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1936         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1937         unconditional.
1938         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1939         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1940         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1941         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1942         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1943         Make code unconditional.
1944         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1945         (__mmap64) [!__NR_mmap2]: Likewise.
1946         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1947         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1948         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1949         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1950         [__NR_mmap2]: Make code unconditional.
1951         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1952         (__mmap64) [!__NR_mmap2]: Likewise.
1953
1954 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1955
1956         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1957
1958 2012-08-18  Andreas Jaeger  <aj@suse.de>
1959
1960         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1961
1962 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1963
1964         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1965         * include/unistd.h (__have_sock_cloexec): Likewise.
1966         (__have_pipe2): Likewise.
1967         (__have_dup3): Likewise.
1968
1969 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1970
1971         [BZ #9685]
1972         * include/unistd.h (__have_pipe2): Change define into an extern int.
1973         (__have_dup3): Likewise.
1974         * socket/have_sock_cloexec.c: Include fcntl.h.
1975         (__have_pipe2): New variable.
1976         (__have_dup3): Likewise.
1977
1978 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1979
1980         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1981
1982 2012-08-17  Marek Polacek  <polacek@redhat.com>
1983
1984         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1985         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1986
1987 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1988
1989         * configure.in: Add AC_SUBST for sysheaders.
1990         * configure: Regenerated.
1991         * config.make.in (sysheaders): New substituted variable.
1992
1993         * sysdeps/unix/mkfifo.c: Moved ...
1994         * sysdeps/posix/mkfifo.c: ... here.
1995         * sysdeps/unix/mkfifoat.c: Moved ...
1996         * sysdeps/posix/mkfifoat.c: ... here.
1997
1998         * sysdeps/unix/utime.c: Moved ...
1999         * sysdeps/posix/utime.c: ... here.
2000
2001         * sysdeps/unix/time.c: Moved ...
2002         * sysdeps/posix/time.c: ... here.
2003         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2004         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2005
2006         * sysdeps/unix/nice.c: Moved ...
2007         * sysdeps/posix/nice.c: ... here.
2008
2009         * sysdeps/unix/alarm.c: Moved ...
2010         * sysdeps/posix/alarm.c: ... here.
2011
2012         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2013
2014 2012-08-17  Jeff Law <law@redhat.com>
2015
2016         * intl/Makefile (codeset_mo): New variable.
2017         ($(codeset_mo)): New target.
2018         (tst-codeset.out): Depend on that.  Remove explicit rule.
2019         (tst-gettext3.out, tst-gettext5.out): Likewise.
2020         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2021         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2022         * intl/tst-codeset.sh: Remove.
2023         * intl/tst-gettext3.sh: Likewise.
2024         * intl/tst-gettext5.sh: Likewise.
2025
2026 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2027
2028         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2029         * sysdeps/unix/syscalls.list: ... here.
2030
2031         * sysdeps/posix/getaddrinfo.c
2032         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2033         (gaiconf_init, gaiconf_reload): Use them.
2034         [!_STATBUF_ST_NSEC]
2035         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2036         Define using time_t rather than struct timespec.
2037
2038         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2039         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2040         Macros removed.
2041         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2042         [!NO_THREADS].
2043         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2044         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2045         Likewise.
2046
2047         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2048         __libc_cleanup_push argument.
2049
2050         * bits/param.h: New file.
2051         * misc/sys/param.h: New file.
2052         * include/sys/param.h: New file.
2053         * misc/Makefile (headers): Add bits/param.h.
2054         * sysdeps/generic/sys/param.h: File removed.
2055         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2056         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2057         * sysdeps/mach/hurd/bits/param.h: New file.
2058         * sysdeps/mach/hurd/sys/param.h: New file.
2059
2060         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2061         last change.
2062
2063         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2064         [_IO_MTSAFE_IO].
2065         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2066         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2067         New macros.
2068
2069         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2070         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2071         rather than -D_IO_MTSAFE_IO conditionally.
2072         * stdio-common/Makefile (CPPFLAGS): Likewise.
2073         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2074         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2075         Use $(libio-mtsafe).
2076         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2077         of -D_IO_MTSAFE_IO.
2078         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2079         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2080         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2081         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2082         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2083         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2084         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2085         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2086         (CFLAGS-fread_u_chk.c): Likewise.
2087         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2088         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2089         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2090         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2091         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2092         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2093         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2094         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2095         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2096
2097         * libio/Makefile: Test [$(libc-reentrant) = yes]
2098         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2099
2100         * Makeconfig
2101         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2102         * sysdeps/pthread/configure: File removed.
2103         * sysdeps/pthread/Makeconfig: New file.
2104         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2105         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2106
2107 2012-08-16  Gary Benson  <gbenson@redhat.com>
2108
2109         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2110         unmapping the first object in a namespace.
2111
2112 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2113
2114         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2115         (__internal_setnetgrent): ... this.  Add internal_function to
2116         definition.  Add libc_hidden_def.
2117         (setnetgrent): Update caller.
2118         (internal_endnetgrent): Renamed to ...
2119         (__internal_endnetgrent): ... this.  Add internal_function to
2120         definition.  Add libc_hidden_def.
2121         (endnetgrent): Update caller.
2122         (internal_getnetgrent_r): Renamed to ...
2123         (__internal_getnetgrent_r): ... this.  Add internal_function to
2124         definition.  Add libc_hidden_def.
2125         (__getnetgrent_r): Update caller.
2126         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2127
2128 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2129
2130         * stdlib/longlong.h: Update from GCC.
2131
2132 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2133
2134         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2135         on _QL, which is set by umul_ppmm but never used.
2136         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2137         variables, which are set by GMP macros but never used.
2138         * stdio-common/_itowa.c (_itowa): Likewise.
2139         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2140         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2141
2142 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2143
2144         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2145         struct La_sh_regs is not constant.
2146         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2147         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2148         and struct La_sparc64_regs are not constant.
2149
2150 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2151
2152         * sysdeps/unix/sysv/linux/kernel-features.h
2153         (__ASSUME_POSIX_TIMERS): Remove.
2154         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2155         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2156         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2157         Make code unconditional.
2158         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2159         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2160         Make code unconditional.
2161         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2162         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2163         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2164         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2165         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2166         Make code unconditional.
2167         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2168         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2169         (__libc_missing_posix_timers): Remove.
2170
2171 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2172
2173         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2174         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2175
2176         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2177
2178         * elf/dl-sym.c: Include <stdlib.h>.
2179
2180         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2181         constants, which avoids warnings in 32-bit builds.
2182
2183         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2184         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2185
2186         * misc/lseek.c: File moved to ...
2187         * io/lseek.c: ... here.
2188
2189         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2190
2191         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2192         shifting LEN more than 31 bits at once.
2193
2194 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2195
2196         [BZ #14195]
2197         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2198         segmentation fault for a case of two empty input strings.
2199         * string/test-strncasecmp.c (check1): Renamed to...
2200         (bz12205): ...this.
2201         (bz14195): Add new testcase for two empty input strings and N > 0.
2202         (test_main): Call new testcase, adapt for renamed function.
2203
2204 2012-08-15  Andreas Jaeger  <aj@suse.de>
2205
2206         [BZ #14090]
2207         * crypt/md5test2.c: New test, based on test supplied by Serge
2208         Belyshev <belyshev@depni.sinp.msu.ru>.
2209         * crypt/Makefile (xtests): Add md5test-giant..
2210         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2211
2212 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         [BZ #14090]
2215         * crypt/md5.c (md5_process_block): Don't assume the buffer
2216         length is less than 2**32.
2217         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2218         length is less than 2**64.
2219
2220 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2221
2222         * string/str-two-way.h: Include <sys/param.h>.
2223         (MAX): Macro removed.
2224
2225         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2226         Move #define and #undef of memmove to just before and after
2227         including <string.h>.
2228
2229         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2230         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2231         and after including <string.h>.  Move declarations of
2232         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2233         to before #include "string/memmove.c".
2234
2235         * include/dirent.h: Declare __getdirentries.
2236
2237         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2238         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2239
2240 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2241
2242         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2243         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2244         * sysdeps/i386/configure: Regenerated.
2245         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2246         STABS_CURRENT_FILE, and STABS_FUN.
2247         (END): Remove call to STABS_FUN_END.
2248         (STABS_CURRENT_FILE1): Delete.
2249         (STABS_CURRENT_FILE): Likewise.
2250         (STABS_FUN): Likewise.
2251         (STABS_FUN_END): Likewise.
2252         (STABS_FUN2): Likewise.
2253         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2254         * sysdeps/x86_64/configure: Regenerated.
2255
2256 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2257
2258         * elf/dl-open.c: Include <atomic.h>.
2259         * elf/dl-lookup.c: Likewise.
2260
2261 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2262
2263         * sysdeps/unix/sysv/linux/kernel-features.h
2264         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2265         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2266         unconditionally.
2267         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2268         unconditionally.
2269         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2270         condition on __ASSUME_CLONE_THREAD_FLAGS.
2271
2272 2012-08-14  Andreas Jaeger  <aj@suse.de>
2273
2274         * sysdeps/i386/fpu/libm-test-ulps: Update.
2275
2276 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2277
2278         * include/atomic.h (atomic_exchange_and_add): Split into ...
2279         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2280         New atomic macros.
2281
2282 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2283
2284         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2285
2286 2012-08-13  Jeff Law <law@redhat.com>
2287
2288         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2289         null byte in the output string.
2290
2291 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2292
2293         * sysdeps/unix/sysv/linux/kernel-features.h
2294         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2295         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2296         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2297         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2298         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2299         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2300         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2301
2302 2012-08-09  Jeff Law <law@redhat.com>
2303
2304         [BZ #13939]
2305         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2306         When avoid_arena is set, don't retry in the that arena.  Pick the
2307         next one, whatever it might be.
2308         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2309         (arena_lock): Pass in new parameter to arena_get2.
2310         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2311         arena_get2.
2312         (__libc_malloc): Unify retrying after main arena failure with
2313         __libc_memalign version.
2314         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2315
2316 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2317
2318         [BZ #14166]
2319         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2320         to __redirect_strstr.
2321         (__strstr_sse42): Use typeof __redirect_strstr.
2322         (__strstr_ia32): Likewise.
2323         (__libc_strstr): New prototype.
2324         (strstr): Renamed to ...
2325         (__libc_strstr): This.
2326         (strstr): New strong alias of __libc_strstr.
2327         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2328         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2329         __redirect_time.
2330         Include <time.h>.
2331         (__libc_time): New prototype.
2332         (time_ifunc): Replace time with __libc_time.
2333         (time): New strong alias and hidden definition of __libc_time.
2334         (__GI_time): Remove strong alias.
2335         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2336         Include <stddef.h>.
2337         (memmove): Redefined to __redirect_memmove.
2338         (__memmove_sse2): Use typeof __redirect_memmove.
2339         (__memmove_ssse3): Likewise.
2340         (__memmove_ssse3_back): Likewise.
2341         (__libc_memmove): New prototype.
2342         (memmove): Renamed to ...
2343         (__libc_memmove): This.
2344         (memmove): New strong alias of __libc_memmove.
2345
2346 2012-08-08  Mark Salter  <msalter@redhat.com>
2347
2348         * elf/elf.h
2349         (R_MN10300_TLS_GD): Define.
2350         (R_MN10300_TLS_LD): Likewise.
2351         (R_MN10300_TLS_LDO): Likewise.
2352         (R_MN10300_TLS_GOTIE): Likewise.
2353         (R_MN10300_TLS_IE): Likewise.
2354         (R_MN10300_TLS_LE): Likewise.
2355         (R_MN10300_TLS_DTPMOD): Likewise.
2356         (R_MN10300_TLS_DTPOFF): Likewise.
2357         (R_MN10300_TLS_TPOFF): Likewise.
2358         (R_MN10300_SYM_DIFF): Likewise.
2359         (R_MN10300_ALIGN): Likewise.
2360         (R_MN10300_NUM): Update.
2361
2362 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2363
2364         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2365         Remove.
2366
2367 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2368
2369         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2370
2371         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2372         sysdeps/unix -> sysdeps/posix move.
2373         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2374
2375 2012-08-07      Allan McRae     <allan@archlinux.org>
2376
2377         [BZ #14303]
2378         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2379         (SUNOS_CPP): Likewise.
2380         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2381         not found.
2382         (open_input): Call CPP using execvp.
2383
2384 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2385
2386         * sysdeps/unix/sysv/linux/kernel-features.h
2387         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2388         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2389         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2390         (__ASSUME_WAITID_SYSCALL): Likewise.
2391         * sysdeps/unix/sysv/linux/dl-execstack.c
2392         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2393         code unconditional.
2394         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2395         conditional code.
2396         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2397         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2398         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2399         code.
2400         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2401         unconditional.
2402         [__ASSUME_WAITID_SYSCALL]: Likewise.
2403         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2404
2405 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2406
2407         * sysdeps/unix/closedir.c: Renamed to ...
2408         * sysdeps/posix/closedir.c: ... here.
2409         * sysdeps/unix/dirfd.c: Renamed to ...
2410         * sysdeps/posix/dirfd.c: ... here.
2411         * sysdeps/unix/dirstream.h: Renamed to ...
2412         * sysdeps/posix/dirstream.h: ... here.
2413         * sysdeps/unix/fdopendir.c: Renamed to ...
2414         * sysdeps/posix/fdopendir.c: ... here.
2415         * sysdeps/unix/opendir.c: Renamed to ...
2416         * sysdeps/posix/opendir.c: ... here.
2417         * sysdeps/unix/readdir.c: Renamed to ...
2418         * sysdeps/posix/readdir.c: ... here.
2419         * sysdeps/unix/readdir_r.c: Renamed to ...
2420         * sysdeps/posix/readdir_r.c: ... here.
2421         * sysdeps/unix/rewinddir.c: Renamed to ...
2422         * sysdeps/posix/rewinddir.c: ... here.
2423         * sysdeps/unix/seekdir.c: Renamed to ...
2424         * sysdeps/posix/seekdir.c: ... here.
2425         * sysdeps/unix/telldir.c: Renamed to ...
2426         * sysdeps/posix/telldir.c: ... here.
2427         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2428         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2429         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2430         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2431
2432         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2433         * bits/fcntl.h: ... here.
2434
2435         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2436         not 0.
2437         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2438         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2439         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2440         (struct flock): Move l_start, l_len to the beginning.
2441         Use __pid_t for l_pid.
2442         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2443         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2444         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2445         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2446         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2447         [__USE_LARGEFILE64] (struct flock64): New type.
2448         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2449
2450         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2451         * bits/dirent.h: ... here.
2452
2453         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2454         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2455
2456 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2457
2458         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2459         Change from 2.6.0 to 2.6.16.
2460         * sysdeps/unix/sysv/linux/configure: Regenerated.
2461         * sysdeps/unix/sysv/linux/kernel-features.h
2462         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2463         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2464         version.
2465         (__ASSUME_UTIMES): Likewise.
2466         (__ASSUME_CLONE_STOPPED): Remove.
2467         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2468         architectures, not kernel version.
2469         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2470         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2471         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2472         (__ASSUME_WAITID_SYSCALL): Likewise.
2473         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2474         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2475         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2476         refer to older versions.
2477
2478 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2479
2480         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2481         Define alphasort64 as an alias.
2482         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2483         Define versionsort64 as an alias.
2484         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2485         Define scandir64 as an alias.
2486         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2487         Define scandirat64 as an alias.
2488         * dirent/alphasort64.c (alphasort64):
2489         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2490         * dirent/versionsort64.c: Likewise.
2491         * dirent/scandir64.c: Likewise.
2492         * dirent/scandirat64.c: Likewise.
2493         * sysdeps/wordsize-64/alphasort.c: File removed.
2494         * sysdeps/wordsize-64/alphasort64.c: File removed.
2495         * sysdeps/wordsize-64/scandir.c: File removed.
2496         * sysdeps/wordsize-64/scandir64.c: File removed.
2497         * sysdeps/wordsize-64/scandirat.c: File removed.
2498         * sysdeps/wordsize-64/scandirat64.c: File removed.
2499         * sysdeps/wordsize-64/versionsort.c: File removed.
2500         * sysdeps/wordsize-64/versionsort64.c: File removed.
2501         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2502         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2503         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2504         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2505         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2506         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2507         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2508         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2509
2510         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2511         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2512         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2513         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2514         [defined __arch64__ || defined __sparcv9]
2515         (__INO_T_MATCHES_INO64_T): New macro.
2516         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2517         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2518         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2519         * sysdeps/unix/sysv/linux/bits/dirent.h
2520         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2521         (_DIRENT_MATCHES_DIRENT64): New macro.
2522
2523         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2524         Define lockf64 as an alias.
2525         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2526         Define fseeko64 as an alias.
2527         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2528         Define ftello64 as an alias.
2529         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2530         Define _IO_fgetpos64 and fgetpos64 as aliases.
2531         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2532         Define _IO_fsetpos64 and fsetpos64 as aliases.
2533         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2534         Conditionalize body on this.
2535         * libio/fseeko64.c: Likewise.
2536         * libio/ftello64.c: Likewise.
2537         * libio/iofgetpos64.c: Likewise.
2538         * libio/iofsetpos64.c: Likewise.
2539         * sysdeps/wordsize-64/lockf.c: File removed.
2540         * sysdeps/wordsize-64/lockf64.c: File removed.
2541         * sysdeps/wordsize-64/fseeko.c: File removed.
2542         * sysdeps/wordsize-64/fseeko64.c: File removed.
2543         * sysdeps/wordsize-64/ftello.c: File removed.
2544         * sysdeps/wordsize-64/ftello64.c: File removed.
2545         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2546         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2547         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2548         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2549         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2550         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2551         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2552         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2553         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2554         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2555         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2556         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2557         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2558         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2559
2560         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2561         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2562         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2563         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2564         [defined __arch64__ || defined __sparcv9]
2565         (__OFF_T_MATCHES_OFF64_T): New macro.
2566         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2567         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2568         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2569         (__OFF_T_MATCHES_OFF64_T): New macro.
2570
2571 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2572
2573         * stdlib/secure-getenv.c (__secure_getenv): Replace
2574         GLIBC_2_16 with GLIBC_2_17.
2575
2576 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2577
2578         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2579         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2580
2581 2012-08-03  David S. Miller  <davem@davemloft.net>
2582
2583         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2584
2585 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2586
2587         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2588         Remove.
2589         (__ASSUME_CORRECT_SI_PID): Likewise.
2590         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2591         (__ASSUME_TMPFS_NAME): Likewise.
2592         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2593         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2594         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2595         (HAVE_AUX_SECURE): Make definition unconditional.
2596         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2597         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2598
2599 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2600
2601         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2602         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2603         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2604         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2605         __eloop_threshold instead of SYMLOOP_MAX.
2606
2607         * sysdeps/generic/eloop-threshold.h: New file.
2608         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2609         of MAXSYMLINKS.
2610         * elf/chroot_canon.c (chroot_canon): Likewise.
2611
2612 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2613
2614         [BZ #13717]
2615         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2616         Change to 2.6.0 everywhere.
2617         * sysdeps/unix/sysv/linux/configure: Regenerated.
2618         * sysdeps/unix/sysv/linux/kernel-features.h
2619         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2620         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2621         kernel versions.
2622         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2623         (__ASSUME_FUTEX_REQUEUE): Remove.
2624         (__ASSUME_STATFS64): Define unconditionally.
2625         (__ASSUME_AT_SECURE): Likewise.
2626         (__ASSUME_CORRECT_SI_PID): Likewise.
2627         (__ASSUME_TGKILL): Define without depending on kernel version for
2628         i386.
2629         (__ASSUME_UTIMES): Likewise.
2630         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2631         kernel version.
2632         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2633         (__ASSUME_TMPFS_NAME): Likewise.
2634         * README: Update reference to Linux kernel versions.
2635
2636 2012-08-02  Marek Polacek  <polacek@redhat.com>
2637
2638         [BZ# 14150]
2639         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2640         libc_cv_asm_type_prefix with %.
2641         * configure: Regenerated.
2642         * include/libc-symbols.h: Remove comment about
2643         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2644         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2645         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2646         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2647         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2648         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2649         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2650         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2651         * elf/tst-unique2mod1.c: Likewise.
2652         * elf/tst-unique1mod2.c: Likewise.
2653         * elf/tst-unique1mod1.c: Likewise.
2654         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2655         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2656         Replace ASM_TYPE_DIRECTIVE with .type.
2657         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2658         * sysdeps/i386/sysdep.h: Likewise.
2659         * sysdeps/x86_64/sysdep.h: Likewise.
2660         * sysdeps/sh/sysdep.h: Likewise.
2661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2662         Do not define ASM_TYPE_DIRECTIVE.
2663         * sysdeps/powerpc/sysdep.h: Likewise.
2664         * sysdeps/powerpc/powerpc32/sysdep.h:
2665         Replace ASM_TYPE_DIRECTIVE with .type.
2666         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2667         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2668         * sysdeps/i386/fpu/e_powf.S: Likewise.
2669         * sysdeps/i386/fpu/e_expl.S: Likewise.
2670         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2671         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2672         * sysdeps/i386/fpu/e_pow.S: Likewise.
2673         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2674         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2675         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2676         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2677         * sysdeps/i386/fpu/e_log2.S: Likewise.
2678         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2679         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2680         * sysdeps/i386/fpu/e_powl.S: Likewise.
2681         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2682         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2683         * sysdeps/i386/fpu/e_logl.S: Likewise.
2684         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2685         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2686         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2687         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2688         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2689         * sysdeps/i386/fpu/e_log.S: Likewise.
2690         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2691         * sysdeps/i386/fpu/e_logf.S: Likewise.
2692         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2693         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2694         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2695         * sysdeps/i386/fpu/e_log10.S: Likewise.
2696         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2697         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2698         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2699         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2700         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2701         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2702         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2703         * sysdeps/i386/i686/strtok.S: Likewise.
2704         * sysdeps/i386/i386-mcount.S: Likewise.
2705         * sysdeps/i386/strtok.S: Likewise.
2706         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2707         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2708         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2709         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2710         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2711         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2712         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2713         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2714         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2715         * sysdeps/x86_64/_mcount.S: Likewise.
2716         * sysdeps/x86_64/strtok.S: Likewise.
2717         * sysdeps/sh/_mcount.S: Likewise.
2718
2719 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2720
2721         * libio/iofopen.c: Include <fcntl.h>.
2722         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2723         (_IO_fopen64, fopen64): Define as aliases.
2724         * libio/iofopen64.c: Include <fcntl.h>.
2725         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2726         Conditionalize body on this.
2727         * sysdeps/wordsize-64/iofopen.c: File removed.
2728         * sysdeps/wordsize-64/iofopen64.c: File removed.
2729
2730 2012-08-01  Marek Polacek  <polacek@redhat.com>
2731
2732         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2733         Use dlfcn directly instead of a variable.
2734         (binfmt-subdir): Do not define.
2735         (dlfcn): Likewise.
2736
2737 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2738
2739         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2740         Remove all definitions.
2741         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2742         <kernel-features.h>.
2743         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2744         (miss_F_GETOWN_EX): Remove all definitions.
2745         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2746         macro definition.
2747         [!__ASSUME_FCNTL64]: Remove conditional code.
2748         [__ASSUME_FCNTL64]: Make code unconditional.
2749         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2750         <kernel-features.h>.
2751         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2752         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2753         (lockf64) [__NR_fcntl64]: Make code unconditional.
2754         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2755
2756         * sysdeps/unix/sysv/linux/kernel-features.h
2757         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2758         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2759         Make code unconditional.
2760         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2761         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2763         [__NR_vfork]: Make code unconditional.
2764         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2765         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2767         [__NR_vfork]: Make code unconditional.
2768         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2769         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2770
2771 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2772
2773         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2774         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2775
2776         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2777         Define mkstemp64 as an alias.
2778         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2779         Define mkstemps64 as an alias.
2780         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2781         Define mkostemp64 as an alias.
2782         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2783         Define mkostemps64 as an alias.
2784         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2785         Conditionalize body on this.
2786         * misc/mkostemp64.c: Likewise.
2787         * misc/mkostemps64.c: Likewise.
2788         * misc/mkstemps64.c: Likewise.
2789         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2790         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2791         * sysdeps/wordsize-64/mkostemp.c: File removed.
2792         * sysdeps/wordsize-64/mkstemp.c: File removed.
2793         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2794         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2795         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2796         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2797
2798         [BZ #14138]
2799         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2800         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2801         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2802         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2803
2804         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2805         compat_symbol macros from <shlib-compat.h> rather than the underlying
2806         default_symbol_version and symbol_version macros, so that DEFAULT
2807         lines in shlib-versions are respected.
2808         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2809
2810 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2811
2812         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2813         Declare with warn_unused_result.
2814         (setgid, setregid, setegid, setresgid): Likewise.
2815         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2816         Likewise.
2817         * WUR-REPORT: Remove set*id functions.
2818
2819 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2820
2821         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2822
2823 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2824
2825         * include/sys/socket.h (__libc_accept, __libc_accept4):
2826         Add attribute_hidden.
2827         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2828
2829         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2830         use of PTR_MANGLE.
2831         * inet/getnetgrent_r.c (setup): Likewise.
2832
2833         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2834
2835 2012-07-31  David S. Miller  <davem@davemloft.net>
2836
2837         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2838
2839 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2840
2841         [BZ #13629]
2842         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2843         value between 1.0 and 2.0 and smaller part has absolute value less
2844         than 1.0.
2845         * math/s_clog10.c (__clog10): Likewise.
2846         * math/s_clog10f.c (__clog10f): Likewise.
2847         * math/s_clog10l.c (__clog10l): Likewise.
2848         * math/s_clogf.c (__clogf): Likewise.
2849         * math/s_clogl.c (__clogl): Likewise.
2850         * math/libm-test.inc (clog_test): Add more tests.
2851         (clog10_test): Likewise.
2852         * sysdeps/i386/fpu/libm-test-ulps: Update.
2853         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2854
2855 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2856
2857         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2858         Exit with zero in case no suitable GID is found, and write a
2859         message to standard error.
2860
2861 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2862
2863         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2864         rather than to 1.
2865         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2866         (MAXPATHLEN): Removed.
2867         (NOGROUP, NODEV): New macros.
2868         (setbit, clrbit, isset, isclr): New macros.
2869         (howmany, roundup, powerof2): New macros.
2870         (DEV_BSIZE): New macro.
2871
2872         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2873         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2874
2875         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2876         definition on [!__NO_LONG_DOUBLE_MATH].
2877
2878         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2879         PTR_MANGLE and PTR_DEMANGLE.
2880
2881         * socket/accept4.c (accept4): Rename to __libc_accept4.
2882         Define accept4 as a weak alias.
2883
2884         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2885         on [_DIRENT_HAVE_D_TYPE].
2886         * io/ftw.c (ftw_dir): Likewise.
2887
2888         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2889
2890         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2891
2892         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2893         Use the BSD numbers rather than the arbitrary ones we had.
2894         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2895         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2896         (SIGXCPU, SIGXFSZ): New macros.
2897         (_NSIG): Now 32.
2898
2899         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2900         initializer on [_LIBC_REENTRANT].
2901
2902         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2903         definitions inside [_POSIX_MAPPED_FILES].
2904
2905         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2906
2907         * dirent/opendir.c: Include <fcntl.h>.
2908
2909         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2910         (__libc_getspecific): Likewise.
2911         (__libc_key_create): Likewise.
2912
2913         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2914         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2915         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2916         (tmpfile64): Define as alias.
2917         * sysdeps/wordsize-64/tmpfile.c: File removed.
2918         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2919         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2920         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2921
2922         * stdio-common/vfscanf.c: Include <stdbool.h>.
2923         * nss/makedb.c: Likewise.
2924         * stdio-common/_i18n_number.h: Likewise.
2925         * argp/argp-help.c: Likewise.
2926         * posix/wordexp.c: Likewise.
2927         * sysdeps/posix/spawni.c: Likewise.
2928         * nss/nss_files/files-initgroups.c: Likewise.
2929         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2930         * nss/nss_files/files-initgroups.c: Likewise.
2931         * nss/nss_db/db-netgrp.c: Likewise.
2932         * nss/nss_db/db-initgroups.c: Likewise.
2933         * io/fchmodat.c: Include <sys/stat.h>.
2934
2935         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2936         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2937
2938         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2939         [HAVE_MMAP].
2940
2941         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2942         Add multiple inclusion protection.
2943
2944 2012-07-27  David S. Miller  <davem@davemloft.net>
2945
2946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2947
2948 2012-07-27  Gary Benson  <gbenson@redhat.com>
2949
2950         [BZ #14298]
2951         * elf/rtld.c: Include <stap-probe.h>.
2952         (dl_main): Added static probes "init_start" and "init_complete".
2953         * elf/dl-load.c: Include <stap-probe.h>.
2954         (lose): Take new parameter "nsid".
2955         Added static probe "map_failed".
2956         (_dl_map_object_from_fd): Pass namespace id to lose.
2957         Added static probe "map_start".
2958         (open_verify): Pass namespace id to lose.
2959         * elf/dl-open.c: Include <stap-probe.h>.
2960         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2961         and "reloc_complete".
2962         * elf/dl-close.c: Include <stap-probe.h>.
2963         (_dl_close_worker): Added static probes "unmap_start" and
2964         "unmap_complete".
2965         * elf/rtld-debugger-interface.txt: New file documenting the above.
2966
2967 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2968
2969         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2970         rather than a string variable.
2971         * sunrpc/rpc_main.c (h_output): Likewise.
2972         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2973
2974 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2975
2976         * inet/check_native.c: New file.
2977
2978 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2979
2980         [BZ #13629]
2981         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2982         if larger part has absolute value 1.0.
2983         * math/s_clog10.c (__clog10): Likewise.
2984         * math/s_clog10f.c (__clog10f): Likewise.
2985         * math/s_clog10l.c (__clog10l): Likewise.
2986         * math/s_clogf.c (__clogf): Likewise.
2987         * math/s_clogl.c (__clogl): Likewise.
2988         * math/libm-test.inc (clog_test): Add more tests.
2989         (clog10_test): Likewise.
2990         * sysdeps/i386/fpu/libm-test-ulps: Update.
2991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2992
2993         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2994         (pltexit): Likewise.
2995         (La_regs): Likewise.
2996         (La_retval): Likewise.
2997         (int_retval): Likewise.
2998         Update #error for removed macros to refer only to definitions in
2999         tst-audit.h.
3000         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3001         macro.
3002         (pltexit): Likewise.
3003         (La_regs): Likewise.
3004         (La_retval): Likewise.
3005         (int_retval): Likewise.
3006         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3007         macro.
3008         (pltexit): Likewise.
3009         (La_regs): Likewise.
3010         (La_retval): Likewise.
3011         (int_retval): Likewise.
3012         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3013         macro.
3014         (pltexit): Likewise.
3015         (La_regs): Likewise.
3016         (La_retval): Likewise.
3017         (int_retval): Likewise.
3018         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3019         macro.
3020         (pltexit): Likewise.
3021         (La_regs): Likewise.
3022         (La_retval): Likewise.
3023         (int_retval): Likewise.
3024         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3025         macro.
3026         (pltexit): Likewise.
3027         (La_regs): Likewise.
3028         (La_retval): Likewise.
3029         (int_retval): Likewise.
3030         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3031         macro.
3032         (pltexit): Likewise.
3033         (La_regs): Likewise.
3034         (La_retval): Likewise.
3035         (int_retval): Likewise.
3036         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3037         macro definitions in tst-audit.h.
3038         * sysdeps/i386/tst-audit.h: New file.
3039         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3040         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3041         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3042         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3043         * sysdeps/sh/tst-audit.h: Likewise.
3044         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3045         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3046         * sysdeps/x86_64/tst-audit.h: Likewise.
3047
3048 2012-07-26  Andreas Jaeger  <aj@suse.de>
3049
3050         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3051         ptrace.
3052
3053         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3054         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3055         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3056         PTRACE_O_MASK.
3057         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3058         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3059         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3060
3061         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3062         value.
3063
3064         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3065         _sigsys.
3066         (si_call_addr, si_syscall, si_arch): Define new macro.
3067         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3068         _sigsys.
3069         (si_call_addr, si_syscall, si_arch): Define new marcro.
3070         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3071         _sigsys.
3072         (si_call_addr, si_syscall, si_arch): Define new macro.
3073         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3074         _sigsys.
3075         (si_call_addr, si_syscall, si_arch): Define new macro.
3076
3077 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3078
3079         [BZ #13717]
3080         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3081         Change to 2.4.21 where previously 2.4.1.
3082         * sysdeps/unix/sysv/linux/configure: Regenerated.
3083         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3084         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3085         Linux kernel version.
3086         (__ASSUME_STD_AUXV): Remove.
3087         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3088         kernel version.
3089         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3090         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3091         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3092         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3093         (__ASSUME_NETLINK_SUPPORT): Likewise.
3094         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3095         (__no_netlink_support): Remove conditional definition.
3096         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3097         Remove.
3098         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3099         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3100         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3101         (if_nameindex_ioctl): Remove.
3102         (if_nameindex_netlink): Do not handle __no_netlink_support.
3103         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3104         code.
3105         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3106         Remove conditional code.
3107         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3108         code.
3109         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3110         unconditional.
3111         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3112         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3113         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3114         Remove.
3115         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3116         [!__ASSUME_STD_AUXV]: Remove conditional code.
3117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3118         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3119         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3121         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3122         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3123         code.
3124         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3126         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3127         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3128         conditional code.
3129         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3131         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3132         code.
3133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3134         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3135         conditional code.
3136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3137         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3138         code unconditional.
3139         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3140         conditional code.
3141         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3142         unconditional.
3143         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3144         conditional code.
3145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3146         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3147         unconditional.
3148         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3149         conditional code.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3151         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3152         code unconditional.
3153         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3154         conditional code.
3155         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3156         unconditional.
3157         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3158         conditional code.
3159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3160         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3161         code unconditional.
3162         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3163         conditional code.
3164         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3165         unconditional.
3166         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3167         conditional code.
3168
3169 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3170
3171         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3172         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3173         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3174         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3175         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3176         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3177         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3178         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3179         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3180         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3181         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3182         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3183         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3184         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3185         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3186         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3187         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3188         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3189         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3190         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3191         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3192         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3193         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3194
3195 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3196
3197         * Versions.def: Add GLIBC_2.17.
3198         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3199         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3200         Introduce __libc_secure_getenv.
3201         * stdlib/Versions (2.17): Add secure_getenv
3202         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3203         * stdlib/secure-getenv.c: Rename __secure_getenv to
3204         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3205         symbol __secure_getenv for GLIBC_2.0.
3206         * stdlib/tst-secure-getenv.c: New.
3207         * stdlib/Makefile (tests): Add testcase.
3208         * manual/startup.texi (Environment Access): Document
3209         secure_getenv.
3210         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3211         __libc_secure_getenv.
3212         * inet/ruserpass.c (ruserpass): Likewise.
3213         * malloc/mtrace.c (mtrace): Likewise.
3214         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3215         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3216         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3217         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3218         HAVE_SECURE_GETENV.
3219         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3220         __secure_getenv to __libc_secure_getenv.
3221         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3223         Likewise.
3224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3225         Likewise.
3226         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3227         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3228         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3229         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3230         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3231         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3232         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3233
3234 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3235
3236         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3237         (struct La_i86_retval): Likewise.
3238         (struct La_x86_64_regs): Likewise.
3239         (struct La_x86_64_retval): Likewise.
3240         (struct La_x32_regs): Likewise.
3241         (struct La_x32_retval): Likewise.
3242         (struct La_ppc32_regs): Likewise.
3243         (struct La_ppc32_retval): Likewise.
3244         (struct La_ppc64_regs): Likewise.
3245         (struct La_ppc64_retval): Likewise.
3246         (struct La_sh_regs): Likewise.
3247         (struct La_sh_retval): Likewise.
3248         (struct La_s390_32_regs): Likewise.
3249         (struct La_s390_32_retval): Likewise.
3250         (struct La_s390_64_regs): Likewise.
3251         (struct La_s390_64_retval): Likewise.
3252         (struct La_sparc32_regs): Likewise.
3253         (struct La_sparc32_retval): Likewise.
3254         (struct La_sparc64_regs): Likewise.
3255         (struct La_sparc64_retval): Likewise.
3256         (struct audit_ifaces): Remove architecture-specific pltenter and
3257         pltexit members.
3258         * sysdeps/i386/ldsodefs.h: New file.
3259         * sysdeps/powerpc/ldsodefs.h: Likewise.
3260         * sysdeps/s390/ldsodefs.h: Likewise.
3261         * sysdeps/sh/ldsodefs.h: Likewise.
3262         * sysdeps/sparc/ldsodefs.h: Likewise.
3263         * sysdeps/x86_64/ldsodefs.h: Likewise.
3264
3265 2012-07-25  Marek Polacek  <polacek@redhat.com>
3266
3267         [BZ #6808]
3268         * math/libm-test.inc (yn_test): Add another test.
3269         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3270         to ERANGE when the result is +-Inf.
3271         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3272         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3273         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3274         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3275
3276 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3277
3278         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3279         equal to 0.
3280         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3281         clock_t.
3282         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3283
3284 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3285
3286         * configure.in <sysdeps resolving>: Correct printing
3287         Implies_before.
3288         * configure: Regenerate.
3289
3290 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3291
3292         * math/w_ilogb.c: Include <limits.h>.
3293         * math/w_ilogbl.c: Likewise.
3294
3295 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3296
3297         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3298         va_copy.  Document allowing for unavailable va_copy only as
3299         pre-C99 compatibility.
3300         * manual/string.texi (Copying and Concatenation): Use va_copy
3301         instead of __va_copy in concat example.
3302
3303 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3304
3305         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3306         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3307         it if not null.
3308
3309         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3310         with O_NOLINK passed to __file_name_lookup.
3311
3312         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3313         with O_NOLINK passed to __file_name_lookup.
3314
3315         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3316         negative N or less than NGIDS.
3317
3318         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3319         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3320         enough.  Use memcpy instead of strncpy.
3321
3322 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3323
3324         * elf/Makefile (check-data): Remove.
3325         (localplt.data): New vpath directive.
3326         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3327         instead of $(check-data).
3328         * scripts/data/localplt-generic.data: Move to ...
3329         * sysdeps/generic/localplt.data: ... here.
3330         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3331         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3332         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3334         ... here.
3335         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3337         ... here.
3338         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3340         ... here.
3341         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3342         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3343         ... here.
3344         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3346         ... here.
3347         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3348         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3349         ... here.
3350
3351 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3352
3353         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3354         PPC32 and PPC64 files.
3355         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3356         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3357
3358 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3359
3360         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3361         __makecontext_ret to ...
3362         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3363         ... here and call exit if uc_link is NULL.  New file.
3364         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3365         __makecontext_ret.S.
3366         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3367         __makecontext_ret to ...
3368         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3369         ... here and call exit if uc_link is NULL.  New file.
3370         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3371         __makecontext_ret.S.
3372
3373 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3374
3375         * elf/elf.h (R_390_IRELATIVE): New definition.
3376         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3377         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3378         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3379         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3380         (elf_machine_lazy_rel): Likewise.
3381         * sysdeps/s390/dl-irel.h: New file.
3382         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3383         * sysdeps/s390/s390-64/memset.S: New asm code.
3384         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3385         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3386         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3387         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3388         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3389         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3390         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3391         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3392         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3393         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3394         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3395         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3396         * sysdeps/s390/s390-32/memset.S: New asm code.
3397         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3398
3399 2012-07-17  Marek Polacek  <polacek@redhat.com>
3400
3401         [BZ #14349]
3402         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3403         * sysdeps/s390/s390-64/configure.in: Likewise.
3404         * sysdeps/sparc/configure.in: Likewise.
3405         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3406         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3407         * sysdeps/i386/configure.in: Likewise.
3408         * sysdeps/x86_64/configure.in: Likewise.
3409         * sysdeps/sh/configure.in: Likewise.
3410         * sysdeps/s390/s390-32/configure: Regenerated.
3411         * sysdeps/s390/s390-64/configure: Likewise.
3412         * sysdeps/x86_64/configure: Likewise.
3413         * sysdeps/sh/configure: Likewise.
3414         * sysdeps/powerpc/powerpc64/configure: Likewise.
3415         * sysdeps/powerpc/powerpc32/configure: Likewise.
3416         * sysdeps/sparc/configure: Likwise.
3417         * sysdeps/i386/configure: Likewise.
3418
3419         * elf/dl-open.c: Comment fixes.
3420
3421 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3422
3423         * Makefile [CXX] (check-data): Remove.
3424         [CXX] (c++-types.data): New vpath directive.
3425         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3426         vpath.  Do not allow for C++ type data being missing.
3427         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3428         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3429         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3430         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3431         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3432         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3433         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3435         ... here.
3436         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3438         ... here.
3439         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3440         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3441         ... here.
3442         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3443         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3444         ... here.
3445         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3446         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3447         ... here.
3448         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3449         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3450         ... here.
3451         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3452         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3453         ... here.
3454         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3455         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3456
3457         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3458         definitions to architecture-specific files.
3459         (TLS_IE): Likewise.
3460         (TLS_LD): Likewise.
3461         (TLS_GD): Likewise.
3462         * sysdeps/i386/tls-macros.h: New file.
3463         * sysdeps/powerpc/tls-macros.h: Likewise.
3464         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3465         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3466         * sysdeps/sh/tls-macros.h: Likewise.
3467         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3468         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3469         * sysdeps/x86_64/tls-macros.h: Likewise.
3470
3471 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3472
3473         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3474         zero value for regular exit case.
3475
3476         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3477         (__start_context): Preserve zero value for regular exit case.
3478
3479 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3480             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3481
3482         * manual/setjmp.texi (setcontext): Clarify normal process
3483         termination when uc_link is the null pointer.
3484         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3485         exit call.
3486
3487 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3488
3489         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3490         preprocessor.  Test for each exception mask separately.
3491
3492 2012-07-16  Andreas Jaeger  <aj@suse.de>
3493
3494         * po/ru.po: Update from translation team.
3495
3496 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3497
3498         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3499         equal to 0.
3500         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3501         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3502         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3503         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3504         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3505
3506 2012-07-13  Andreas Jaeger  <aj@suse.de>
3507
3508         * po/fr.po: Update from translation team.
3509
3510 2012-07-12  Marek Polacek  <polacek@redhat.com>
3511
3512         [BZ #14173]
3513         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3514         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3515         loop condition.
3516
3517 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3518
3519         [BZ #13717]
3520         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3521         Change to 2.4.1 where previously 2.4.0.
3522         * sysdeps/unix/sysv/linux/configure: Regenerated.
3523         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3524         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3525         version.
3526         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3527         (__ASSUME_AT_CLKTCK): Remove.
3528         (__ASSUME_AT_PAGESIZE): Likewise.
3529         (__ASSUME_AT_XID): Likewise.
3530         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3531         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3532         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3533         unconditionally.
3534         (HAVE_AUX_PAGESIZE): Likewise.
3535         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3536         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3537         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3538
3539 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3540
3541         [BZ #14307]
3542         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3543         the temporary buffer used to invoke __gethostbyname2_r,
3544         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3545         host_data / struct gaih_addrtuple.
3546         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3547         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3548         header file nss/nsswitch.h.
3549         * nss/nsswitch.h (global scope): Add definition of implementation
3550         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3551         resolv/nss_dns/dns-host.c).
3552
3553 2012-07-11  Andreas Jaeger  <aj@suse.de>
3554
3555         * po/fr.po: Update from translation team.
3556
3557         * po/sv.po: Update from translation team
3558         * po/fr.po: Another update from translation team.
3559
3560 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3561
3562         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3563         for subnormals or multiply small sinh result by itself.
3564         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3566
3567 2012-07-11  David S. Miller  <davem@davemloft.net>
3568
3569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3570
3571 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3572
3573         [BZ #14347]
3574         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3575         (INTERNAL_MARK): Shift it here.
3576
3577 2012-07-10  Marek Polacek  <polacek@redhat.com>
3578
3579         [BZ #14151]
3580         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3581         libc_cv_asm_global_directive with .globl.
3582         * configure: Regenerated.
3583         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3584         with .globl.
3585         * sysdeps/i386/configure: Regenerated.
3586         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3587         with .globl.
3588         * sysdeps/x86_64/configure: Regenerated.
3589         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3590         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3591         * elf/tst-unique2mod2.c: Likewise.
3592         * elf/tst-unique2mod1.c: Likewise.
3593         * elf/tst-unique1mod2.c: Likewise.
3594         * elf/tst-unique1mod1.c: Likewise.
3595         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3596         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3597         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3598         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3599         * sysdeps/mach/sysdep.h: Likewise.
3600         * sysdeps/i386/sysdep.h: Likewise.
3601         * sysdeps/i386/i386-mcount.S: Likewise.
3602         * sysdeps/x86_64/_mcount.S: Likewise.
3603         * sysdeps/x86_64/sysdep.h: Likewise.
3604         * sysdeps/sh/_mcount.S: Likewise.
3605         * sysdeps/sh/sysdep.h: Likewise.
3606         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3607         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3608         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3609         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3610         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3611         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3612         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3613         * locale/localeinfo.h: Likewise.
3614         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3615         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3616
3617 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3618
3619         [BZ #14336]
3620         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3621         system".
3622         * manual/message.texi (The Uniforum approach): Likewise.
3623         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3624         (glibc iconv Implementation): Likewise.
3625
3626 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3627
3628         [BZ #14337]
3629         * math/s_clog.c (__clog): Avoid scaling a value down where that
3630         could result in underflow.
3631         * math/s_clog10.c (__clog10): Likewise.
3632         * math/s_clog10f.c (__clog10f): Likewise.
3633         * math/s_clog10l.c (__clog10l): Likewise.
3634         * math/s_clogf.c (__clogf): Likewise.
3635         * math/s_clogl.c (__clogl): Likewise.
3636         * math/libm-test.inc (clog_test): Add more tests.
3637         (clog10_test): Likewise.
3638         * sysdeps/i386/fpu/libm-test-ulps: Update.
3639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3640
3641 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3642
3643         [BZ #14283]
3644         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3645         by 7 not 8 to examine high bit of fractional part.
3646
3647         [BZ #14042]
3648         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3649         for call to __mcount_internal.
3650         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3651         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3652         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3653
3654 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3655
3656         [BZ #14154]
3657         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3658         approximation for values within 0x1p-13f of an odd multiple of
3659         pi/4.
3660         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3661         exception.  Add more tests.
3662         * sysdeps/i386/fpu/libm-test-ulps: Update.
3663
3664         [BZ #6778]
3665         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3666         inputs and return -1 for them.  Do not check for +Inf in case not
3667         reachable for +Inf.
3668         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3669         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3670         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3671         and return -1 for them.  Do not check for +Inf in case not
3672         reachable for +Inf.
3673         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3674         define.
3675         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3676         and return -1 for them.  Do not check for +Inf in case not
3677         reachable for +Inf.
3678         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3679         spurious underflow.
3680         * sysdeps/i386/fpu/libm-test-ulps: Update.
3681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3682
3683 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3684
3685         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3686
3687 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3688
3689         [BZ #14157]
3690         [BZ #14331]
3691         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3692         could result in spurious underflow.  Scale down values above
3693         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3694         * math/s_csqrtf.c (__csqrtf): Likewise.
3695         * math/s_csqrtl.c (__csqrtl): Likewise.
3696         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3697         spurious underflow.
3698         * sysdeps/i386/fpu/libm-test-ulps: Update.
3699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3700
3701 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3702
3703         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3704         xopen-msg.sed.
3705         * catgets/xopen-msg.awk: New file.
3706         * catgets/xopen-msg.sed: Removed.
3707
3708         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3709         po2text.sed.
3710         * intl/po2test.awk: New file.
3711         * intl/po2test.sed: Removed.
3712
3713 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3714
3715         [BZ #14328]
3716         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3717         or multiply small sinh result by itself.
3718         * math/s_ctanf.c (__ctanf): Likewise.
3719         * math/s_ctanh.c (__ctanh): Likewise.
3720         * math/s_ctanhf.c (__ctanhf): Likewise.
3721         * math/s_ctanhl.c (__ctanhl): Likewise.
3722         * math/s_ctanl.c (__ctanl): Likewise.
3723         * math/libm-test.inc (ctan_test_tonearest): New function.
3724         (ctan_test_towardzero): Likewise.
3725         (ctan_test_downward): Likewise.
3726         (ctan_test_upward): Likewise.
3727         (ctanh_test_tonearest): Likewise.
3728         (ctanh_test_towardzero): Likewise.
3729         (ctanh_test_downward): Likewise.
3730         (ctanh_test_upward): Likewise.
3731         (main): Call these new functions.
3732         * sysdeps/i386/fpu/libm-test-ulps: Update.
3733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3734
3735 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3736
3737         * .gitignore: Delete /ports entry.
3738
3739 2012-07-03  Andreas Jaeger  <aj@suse.de>
3740
3741         * po/bg.po: Update from translation team.
3742         * po/cs.po: Likewise.
3743         * po/de.po: Likewise.
3744         * po/hr.po: Likewise.
3745         * po/nl.pl: Likewise.
3746         * po/pl.po: Likewise.
3747         * po/vi.po: Likewise.
3748
3749 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3750
3751         * Makeconfig [!+link] (+link-before-libc): New variable.
3752         [!+link] (+link-after-libc): Likewise.
3753         [!+link] (+link-tests): Likewise.
3754         [!+link] (+link): Define in terms of $(+link-before-libc) and
3755         $(+link-after-libc).
3756         [!+link-static] (+link-static-before-libc): New variable.
3757         [!+link-static] (+link-static-after-libc): Likewise.
3758         [!+link-static] (+link-static-tests): Likewise.
3759         [!+link-static] (+link-static): Define in terms of
3760         $(+link-static-before-libc) and $(+link-static-after-libc).
3761         [build-shared] (link-libc-before-gnulib): New variable.
3762         [build-shared] (link-libc-tests): Likewise.
3763         [build-shared] (link-libc): Define in terms of
3764         $(link-libc-before-gnulib).
3765         [!build-shared] (link-libc-tests): New variable.
3766         (link-libc-static-tests): New variable.
3767         [!gnulib] (gnulib-arch): New variable.
3768         [!gnulib] (gnulib-tests): Likewise.
3769         [!gnulib] (static-gnulib-arch): Likewise.
3770         [!gnulib] (static-gnulib-tests): Likewise.
3771         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3772         Define with "=" instead of ":=".
3773         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3774         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3775         * Rules (binaries-all-notests): New variable.
3776         (binaries-all-tests): Likewise.
3777         (binaries-static-notests): Likewise.
3778         (binaries-static-tests): Likewise.
3779         (binaries-all): Define using $(binaries-all-notests) and
3780         $(binaries-all-tests).
3781         (binaries-static): Define using $(binaries-static-notests) and
3782         $(binaries-static-tests).
3783         (binaries-shared-tests): New variable.
3784         (binaries-shared-notests): Likewise.
3785         (binaries-shared): Remove variable.
3786         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3787         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3788         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3789         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3790         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3791         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3792         * elf/Makefile (sln-modules): New variable.
3793         (extra-objs): Add $(sln-modules:=.o).
3794         (ldconfig-modules): Add static-stubs.
3795         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3796         * elf/static-stubs.c: New file.
3797
3798         [BZ #14283]
3799         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3800         by 7 not 8 to examine high bit of fractional part.  Use volatile
3801         variables when splitting into final array of floats if
3802         __FLT_EVAL_METHOD__ != 0.
3803         * math/libm-test.inc (cos_test): Add another test.
3804         (sin_test): Likewise.
3805         * sysdeps/i386/fpu/libm-test-ulps: Update.
3806
3807         [BZ #14273]
3808         * math/libm-test.inc (cosh_test): Add more tests.
3809
3810         * version.h (RELEASE): Set to "development".
3811         (VERSION): Set to "2.16.90".
3812
3813 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3814
3815         * NEWS: Update copyright. Remove last-updated date.
3816         Mention math library bug fixes and timezone data changes.
3817         * README: Mention GNU/Hurd, x32, and HPPA support status.
3818
3819 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3820
3821         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3822
3823 2012-06-27  Andreas Jaeger  <aj@suse.de>
3824
3825         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3826
3827 2012-06-25  Andreas Jaeger  <aj@suse.de>
3828
3829         * sysdeps/s390/fpu/libm-test-ulps: Update.
3830
3831 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3832             Thomas Schwinge  <thomas@codesourcery.com>
3833
3834         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3835         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3836         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3837         fanotify_mark.
3838
3839 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3840
3841         * sysdeps/mach/start.c: Remove file.
3842         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3843         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3844         * sysdeps/sh/init-first.c: Likewise.
3845
3846         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3847         registers for frame unwinding purposes, add CFI directives.
3848         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3849         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3850         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3851         Likewise.
3852
3853         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3854         __fortify_fail returning.
3855         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3856
3857         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3858         sysdeps/sh/____longjmp_chk.S.
3859         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3860         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3861         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3862         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3863
3864         * sysdeps/sh/abort-instr.h: New file.
3865         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3866         process in case exit returns.
3867
3868         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3869         initialize the GOT register before use.
3870
3871         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3872         calculation of ARGC > 4.
3873
3874         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3875         meaningful names to some local labels.
3876
3877 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3878             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3879
3880         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3881         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3882         (__arch_compare_and_exchange_val_16_acq): Likewise.
3883         (__arch_compare_and_exchange_val_32_acq): Likewise.
3884         (atomic_exchange_and_add): Fix gUSA sequence.
3885         (atomic_add): Likewise.
3886         (atomic_add_negative): Likewise.
3887         (atomic_add_zero): Likewise.
3888         (atomic_bit_test_set): Likewise.
3889
3890 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3891
3892         [BZ #13579]
3893         * include/link.h (struct link_map): Add l_free_initfini.
3894         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3895         l_initfini.
3896         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3897         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3898         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3899         set.
3900
3901 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3902
3903         * configure.in: Use AC_LANG_SOURCE.
3904         * configure: Regenerate.
3905
3906 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3907
3908         * configure.in (libc_cv_localstatedir): New substituted variable.
3909         * configure: Regenerated.
3910         * config.make.in (localstatedir): New variable, substituted from
3911         libc_cv_localstatedir.
3912         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3913         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3914         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3915         * sysdeps/gnu/configure: Regenerated.
3916
3917 2012-06-21  Jeff Law  <law@redhat.com>
3918
3919         [BZ #14277]
3920         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3921         free.  Simplify list management for _LIBC case.
3922
3923 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3924
3925         [BZ #14273]
3926         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3927         Clear sign bit of 64-bit integer value before comparing against
3928         overflow value.
3929
3930         * sysdeps/mach/configure: Regenerated.
3931
3932 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3933
3934         [BZ #14278]
3935         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3936
3937 2012-06-21  Jeff Law  <law@redhat.com>
3938
3939         [BZ #13882]
3940         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3941         uint16_t for elements in the "seen" array to avoid char overflows.
3942         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3943         * elf/dl-open.c (dl_open_worker): Likewise.
3944
3945 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3946
3947         * scripts/list-sources.sh: Scan PORTS for translations.
3948         * po/libc.pot: Regenerated.
3949
3950 2012-06-21  Andreas Jaeger  <aj@suse.de>
3951
3952         [BZ #12194]
3953         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3954         warning.
3955         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3956         * bits/byteswap-16.h (__bswap_16): Likewise.
3957         * bits/byteswap.h (__bswap_constant_16): Likewise.
3958
3959 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3960
3961         [BZ #14117]
3962         * sysdeps/i386/fpu_control.h: Removed.
3963         * sysdeps/x86_64/fpu_control.h: Moved to ...
3964         * sysdeps/x86/fpu_control.h: Here.
3965
3966         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3967         (_FPU_SETCW): Likewise.
3968
3969 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3970
3971         [BZ #14117]
3972         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3973         * sysdeps/x86/fpu/bits/mathinline.h: This.
3974         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3975
3976         [BZ #14050]
3977         [BZ #14117]
3978         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3979         functions if __x86_64__ is defined.
3980
3981 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3982
3983         * string/endian.h: Add !__ASSEMBLER__ condition for including
3984         conversion interfaces.
3985
3986 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3987
3988         [BZ #14241]
3989         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3990         of ABS(x) in calculating zero to negative powers other than odd
3991         integers.
3992         * math/libm-test.inc (pow_test): Add more tests.
3993
3994 2012-06-15  Andreas Jaeger  <aj@suse.de>
3995
3996         * manual/contrib.texi (Contributors): Update entry of Liubov
3997         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
3998         Machado Filho.
3999
4000 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4001
4002         * string/string.h: Add __wur to GNU version of strerror_r.
4003
4004 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4005
4006         [BZ #14229]
4007         * string/Makefile (tests): Add tst-strtok_r.
4008         * string/tst-strtok_r.c: New file.
4009         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4010         RAX_LP/RDX_LP on SAVE_PTR.
4011
4012 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4013
4014         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4015
4016 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4017
4018         * libm_test.inc (csqrt_test): Allow more spurious underflow
4019         exceptions.
4020         (j0_test): Likewise.
4021         (j1_test): Likewise.
4022         (y0_test): Likewise.
4023         (y1_test): Likewise.
4024
4025 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4026
4027         * po/Makefile (libc.pot): Use UTF-8 charset.
4028
4029 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4030
4031         [BZ #14210]
4032         Suppress sign-conversion warning from FD_SET.
4033         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4034         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4035         not unsigned long int.
4036         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4037
4038 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4039
4040         [BZ #14050]
4041         [BZ #14117]
4042         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4043         __extern_always_inline instead of __extern_inline.
4044         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4045         (__signbit): Likewise.
4046         (__signbitl): Support C++ namespace.
4047         (lrintf): New inline function.
4048         (lrint): Likewise.
4049         (llrintf): Likewise.
4050         (llrint): Likewise.
4051         (fmaxf): Likewise.
4052         (fmax): Likewise.
4053         (fminf): Likewise.
4054         (fmin): Likewise.
4055         (rint): Likewise.
4056         (rintf): Likewise.
4057         (ceil): Likewise.
4058         (ceilf): Likewise.
4059         (floor): Likewise.
4060         (floorf): Likewise.
4061         (nearbyint): Likewise.
4062         (nearbyintf): Likewise.
4063
4064 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4065
4066         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4067         non-default versions.
4068
4069 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4070
4071         [BZ #14218]
4072         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4073
4074 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4075
4076         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4077         (FE_UPWARD, FE_DOWNWARD): Don't define.
4078         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4079         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4080
4081         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4082         reading it.
4083         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4084         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4085
4086 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4087
4088         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4089         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4090         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4091         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4092
4093 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4094
4095         [BZ #14117]
4096         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4097         * sysdeps/i386/fpu/Implies: New file.
4098         * sysdeps/x86_64/fpu/Implies: Likewise.
4099         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4100         * sysdeps/x86/fpu/bits/fenv.h: This.
4101
4102         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4103         __SSE_MATH__.
4104
4105 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4106
4107         [BZ #14134]
4108         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4109         character 0xffff that matches the last element of the
4110         conversion table.
4111
4112 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4113
4114         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4115         fmodl commit.
4116
4117 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4118
4119         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4120         values higher than 25.6283.
4121
4122 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4123
4124         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4125         subnormal exponent extraction and add some __builtin_expect.
4126         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4127         Fix for subnormal mantissa calculation.
4128
4129 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4130
4131         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4132         cpu2 is -1 and errno is not ENOSYS.
4133
4134 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4135
4136         [BZ #14117]
4137         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4138         * sysdeps/x86/bits/string.h: This.
4139         * sysdeps/x86_64/bits/string.h: Removed.
4140
4141         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4142         if not compiling for x86-64, but compiling for >= i486.
4143
4144         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4145         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4146
4147         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4148         New macro from Linux kernel 3.4.0.
4149         (FP_XSTATE_MAGIC2): Likewise.
4150         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4151         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4152         (struct _fpx_sw_bytes): New struct.
4153         (struct _xsave_hdr): Likewise.
4154         (struct _ymmh_state): Likewise.
4155         (struct _xstate): Likewise.
4156
4157         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4158         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4159         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4160         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4161         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4162         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4163
4164         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4165         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4166         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4167         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4168         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4169         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4170
4171 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4172
4173         [BZ #13743]
4174         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4175         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4176         (sysdep_headers): Include sys/platform/ppc.h.
4177         * sysdeps/powerpc/test-gettimebase.c: Test for
4178         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4179         * manual/Makefile (appendices): Include platform.texi.
4180         * manual/contrib.texi (Contributors): Update @node pointers.
4181         * manual/maint.texi (Maintenance): Likewise.
4182         (Platform): New node.
4183         * manual/platform.texi: New file.  Document the new features.
4184
4185 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4186             Jakub Jelinek  <jakub@redhat.com>
4187
4188         [BZ #14188]
4189         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4190         where __builtin_expect is unavailable.
4191
4192 2012-06-03  David S. Miller  <davem@davemloft.net>
4193
4194         * stdlib/longlong.h: Updated from GCC.
4195
4196 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4197
4198         [BZ #14042]
4199         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4200         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4201         __mcount_internal.
4202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4203         (GLIBC_2.16): Likewise.
4204
4205 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4206
4207         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4208
4209 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4210
4211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4212         (default-abi): New variable.
4213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4214         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4215         variable.
4216         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4217         Likewise.
4218         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4219         Likewise.
4220         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4221         Likewise.
4222
4223         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4224         definition.  Document in comment.
4225
4226 2012-06-01  David S. Miller  <davem@davemloft.net>
4227
4228         * stdlib/longlong.h: Updated from GCC.
4229
4230 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4231
4232         [BZ #14117]
4233         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4234         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4235         sys/debugreg.h sys/io.h here.
4236         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4237         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4238         sys/io.h.
4239         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4240         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4241         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4242         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4243         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4244         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4245
4246         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4247         Define only if __x86_64__ is defined.
4248
4249 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4250
4251         [BZ #14048]
4252         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4253         Use int64_t for variable i.
4254         * math/libm-test.inc (fmod_test): Add more tests.
4255
4256         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4257         z computation is not scheduled after fetestexcept.
4258         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4259         Use math_force_eval instead of asm to ensure calculation scheduled
4260         before exception test.
4261         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4262         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4263
4264 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4265
4266         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4267         computation is not scheduled after fetestexcept.
4268
4269 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4270
4271         [BZ #14117]
4272         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4273         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4274
4275 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4276
4277         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4278         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4279
4280 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4281
4282         [BZ #14117]
4283         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4284         <bits/wordsize.h>.
4285         (__WCHAR_MIN): Support __WORDSIZE == 64.
4286         (__WCHAR_MAX): Likewise.
4287
4288         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4289         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4290
4291         [BZ #14183]
4292         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4293         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4294
4295         [BZ #14117]
4296         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4297         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4298
4299         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4300         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4301
4302         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4303         Defined to 1 if __x86_64__ isn't defined.
4304         (_STAT_VER_LINUX_OLD): New.
4305         (st_atime): Remove duplicate.
4306         (st_mtime): Likewise.
4307         (st_ctime): Likewise.
4308
4309 2012-05-31  David S. Miller  <davem@davemloft.net>
4310
4311         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4312         entries.
4313
4314 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4315
4316         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4317         gen-libm-test.pl.
4318
4319         [BZ #14132]
4320         * elf/dl-reloc.c: Include <_itoa.h>.
4321         (_dl_reloc_bad_type): Remove use of INTUSE.
4322         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4323         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4324         * stdio-common/psiginfo.c (psiginfo): Likewise.
4325         * stdio-common/psignal.c (psignal): Likewise.
4326         * string/strsignal.c (strsignal): Likewise.
4327         * include/signal.h (_sys_siglist): Declare hidden proto.
4328         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4329         INTVARDEF with libc_hidden_data_def.
4330         * stdio-common/itoa-udigits.c: Likewise.
4331         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4332         (_itoa_lower_digits_internal): Remove declaration.
4333         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4334         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4335         (_sys_sigabbrev_internal): Remove aliases.
4336         (_sys_siglist): Define hidden alias.
4337
4338 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4339
4340         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4341         bits/sysctl.h.
4342
4343 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4344
4345         [BZ #14117]
4346         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4347         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4348
4349         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4350         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4351         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4352         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4353         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4354         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4355
4356         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4357         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4358         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4359
4360         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4361         with __addr.
4362         (insw): Likewise.
4363         (insl): Likewise.
4364         (outsb): Likewise.
4365         (outsw): Likewise.
4366         (outsl): Likewise.
4367
4368         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4369         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4370         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4371
4372         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4373         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4374         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4375         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4376         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4377         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4378
4379         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4380         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4381
4382         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4383         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4384
4385         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4386         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4387         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4388
4389         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4390         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4391         to ...
4392         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4393
4394         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4395         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4396         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4397
4398         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4399         for x86-64.
4400         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4401
4402 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4403
4404         * math/math.h (M_El): Use two more decimal places.
4405         (M_LOG2El): Likewise.
4406         (M_LOG10El): Likewise.
4407         (M_LN2l): Likewise.
4408         (M_LN10l): Likewise.
4409         (M_PIl): Likewise.
4410         (M_PI_2l): Likewise.
4411         (M_PI_4l): Likewise.
4412         (M_1_PIl): Likewise.
4413         (M_2_PIl): Likewise.
4414         (M_2_SQRTPIl): Likewise.
4415         (M_SQRT2l): Likewise.
4416         (M_SQRT1_2l): Likewise.
4417
4418 2012-05-31  David S. Miller  <davem@davemloft.net>
4419
4420         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4421         values between float registers.
4422         * sysdeps/sparc/sparc64/memset.S: Likewise.
4423         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4424
4425 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4426
4427         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4428         -D_FORTIFY_SOURCE=1.
4429         (CPPFLAGS-tst-longjmp_chk.c): Define.
4430         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4431         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4432         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4433         CFLAGS-tst-wchar-h.c.
4434
4435 2012-05-31  Marek Polacek  <polacek@redhat.com>
4436
4437         [BZ #14132]
4438         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4439         __endmntent_internal): Remove declaration.
4440         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4441         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4442         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4443
4444 2012-05-30  David S. Miller  <davem@davemloft.net>
4445
4446         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4447         (___Q_simulate_exceptions): Use real FP ops rather than writing
4448         into the %fsr.
4449         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4450         Likewise.
4451
4452 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4453
4454         [BZ #14117]
4455         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4456         * sysdeps/x86/bits/xtitypes.h: This.
4457
4458         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4459         * sysdeps/x86/bits/wordsize.h: This.
4460
4461         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4462         * sysdeps/x86/bits/huge_vall.h: This.
4463
4464         * sysdeps/i386/bits/select.h: Removed.
4465         * sysdeps/x86_64/bits/select.h: Renamed to ...
4466         * sysdeps/x86/bits/select.h: This.
4467
4468         * sysdeps/i386/bits/setjmp.h: Removed.
4469         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4470         * sysdeps/x86/bits/setjmp.h: This.
4471
4472         * sysdeps/i386/bits/mathdef.h: Removed.
4473         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4474         * sysdeps/x86/bits/mathdef.h: This.
4475
4476 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4477
4478         [BZ #14132]
4479         * include/sys/socket.h (__connect_internal)
4480         (__libc_sa_len_internal): Remove declaration.
4481         (__connect, __libc_sa_len): Declare hidden_proto.
4482         (SA_LEN): Remove use of INTUSE.
4483         * socket/connect.c: Add libc_hidden_def.
4484         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4485         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4486         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4487         alias.
4488         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4489         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4490         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4491         of adding _internal alias.
4492
4493 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4494
4495         [BZ #14117]
4496         * sysdeps/i386/bits/link.h: Removed.
4497         * sysdeps/i386/bits/linkmap.h: Likewise.
4498         * sysdeps/x86_64/bits/link.h: Renamed to ...
4499         * sysdeps/x86/bits/link.h: This.
4500         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4501         * sysdeps/x86/bits/linkmap.h: This.
4502
4503         * sysdeps/i386/bits/endian.h: Removed.
4504         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4505         * sysdeps/x86/bits/endian.h: This.
4506
4507         * sysdeps/i386/bits/byteswap.h: Removed.
4508         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4509         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4510         * sysdeps/x86/bits/byteswap.h: This.
4511         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4512         * sysdeps/x86/bits/byteswap-16.h: This.
4513         * sysdeps/i386/Implies: Add x86.
4514         * sysdeps/x86_64/Implies: Likewise.
4515
4516 2012-05-30  David S. Miller  <davem@davemloft.net>
4517
4518         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4519         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4520         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4521         (FP_TRAPPING_EXCEPTIONS): Define.
4522         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4523         (FP_TRAPPING_EXCEPTIONS): Define.
4524         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4525         subnormals only when inexact has been signalled or underflow
4526         exceptions are enabled.
4527         (_FP_PACK_CANONICAL): Likewise.
4528
4529 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4530
4531         [BZ #14183]
4532         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4533         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4534
4535 2012-05-30  Richard Henderson  <rth@twiddle.net>
4536
4537         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4538         with #ifndef NOT_IN_libc.
4539
4540         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4541         marked to avoid plt entry.
4542
4543 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4544
4545         [BZ #14112]
4546         * Makeconfig (default-abi): New macro.
4547         (abi-includes): Likewise.
4548         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4549         $(abi-$(default-abi)-lib-soname) for soname if defined.
4550         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4551         abi-variants.
4552         * Makefile (installed-stubs): Likewise.
4553         * include/stubs-biarch.h: Removed.
4554         * scripts/lib-names.awk: Only handle one library at a time.
4555         * scripts/soversions.awk: Remove WORDSIZE support.
4556         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4557         entries.
4558         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4559         Removed.
4560         (syscall-list-default-condition): Likewise.
4561         (syscall-list-default-condition): Likewise.
4562         (syscall-list-includes): Likewise.
4563         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4564         syscall-list-* with abi-*.  Handle undefined abi-variants.
4565         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4566         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4567         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4568         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4569         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4570         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4571         Removed.
4572         (syscall-list-32-options): Likewise.
4573         (syscall-list-32-condition): Likewise.
4574         (syscall-list-64-options): Likewise.
4575         (syscall-list-64-condition): Likewise.
4576         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4577         macro.
4578         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4579         Renamed to ...
4580         (abi-*): This.
4581         (abi-64-ld-soname): New macro.
4582         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4583         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4584         Renamed to ...
4585         (abi-*): This.
4586         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4587         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4588
4589 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4590
4591         * sysdeps/unix/sysv/linux/kernel-features.h
4592         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4593         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4594         include <kernel-features.h>.
4595         [!__NR_ftruncate64]: Remove conditional code.
4596         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4597         [__NR_ftruncate64]: Make code unconditional.
4598         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4599         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4600         include <kernel-features.h>.
4601         [!__NR_ftruncate64]: Remove conditional code.
4602         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4603         [__NR_ftruncate64]: Make code unconditional.
4604         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4606         include <kernel-features.h>.
4607         [!__NR_ftruncate64]: Remove conditional code.
4608         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4609         [__NR_ftruncate64]: Make code unconditional.
4610         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4612         include <kernel-features.h>.
4613         [!__NR_ftruncate64]: Remove conditional code.
4614         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4615         [__NR_ftruncate64]: Make code unconditional.
4616         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4617
4618         * configure.in (libc_cv_fpie): Weaken to a compile test using
4619         LIBC_TRY_CC_OPTION.
4620         * configure: Regenerated.
4621
4622 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4623
4624         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4625         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4626         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4627         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4628         Refreshed.
4629         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4630         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4631         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4632         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4633         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4634         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4635         Refreshed.
4636
4637 2012-05-27  David S. Miller  <davem@davemloft.net>
4638
4639         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4640         (___Q_zero): New.
4641         (__Q_simulate_exceptions): Return void.  Change to simulate
4642         exceptions by writing into the %fsr.
4643         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4644         (__Qp_handle_exceptions): Likewise.
4645         (numbers): Delete.
4646         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4647         __Qp_handle_exceptions.
4648         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4649         __Qp_handle_exceptions.
4650         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4651         as unused and give dummy FP_RND_NEAREST initializer.
4652         (FP_INHIBIT_RESULTS): Define.
4653         (___Q_simulate_exceptions): Update declaration.
4654         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4655         formatting.
4656         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4657         as unused and give dummy FP_RND_NEAREST initializer.
4658         (__Qp_handle_exceptions): Update declaration.
4659         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4660         formatting.
4661
4662 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4663
4664         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4665         the temporary FPU control word.
4666         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4667         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4668         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4669         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4670         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4671         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4672         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4673         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4674         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4675         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4676         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4677
4678 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4679
4680         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4681         fields.
4682
4683 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4684
4685         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4686         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4687         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4688         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4689         Likewise.
4690         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4691         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4692         Likewise.
4693
4694 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4695
4696         * po/h.po: Update from translation team.
4697
4698 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4699
4700         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4701
4702         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4703         handling of denormals.
4704         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4705         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4706         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4707         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4708         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4709         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4710         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4711         Likewise.
4712
4713 2012-05-26  Marek Polacek  <polacek@redhat.com>
4714
4715         [BZ #14152]
4716         * math/libm-test.inc (fma_test): Don't always expect underflow
4717         exception.
4718
4719 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4720
4721         [BZ #12416]
4722         * elf/tst-execstack.c: Include stackinfo.h.
4723         (do_test): Adjust test case to ensure that pthread_getattr_np
4724         behaviour remains the same after marking stack executable.
4725
4726 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4727
4728         * sysdeps/unix/sysv/linux/kernel-features.h
4729         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4730         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4731         kernel-features.h.
4732         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4733         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4734         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4735         kernel-features.h.
4736         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4737         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4738
4739 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4740
4741         * configure.in: Define the default includes to being none.
4742         * configure: Regenerated.
4743
4744 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4745
4746         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4747         * sysdeps/x86_64/setjmp.S: Likewise.
4748         * sysdeps/i386/bsd-setjmp.S: Likewise.
4749         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4750         * sysdeps/i386/setjmp.S: Likewise.
4751         * sysdeps/i386/__longjmp.S: Likewise.
4752         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4753         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4754
4755         * include/stap-probe.h: New file.
4756         * configure.in: Handle --enable-systemtap.
4757         * configure: Regenerated.
4758         * config.h.in (USE_STAP_PROBE): New #undef.
4759         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4760         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4761         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4762
4763 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4764
4765         [BZ #13717]
4766         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4767         to 2.4.0 where earlier.
4768         * sysdeps/unix/sysv/linux/configure: Regenerated.
4769         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4770         <kernel-features.h>.
4771         [__ASSUME_32BITUIDS]: Make code unconditional.
4772         [!__ASSUME_32BITUIDS]: Remove conditional code.
4773         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4774         <kernel-features.h>.
4775         [__ASSUME_32BITUIDS]: Make code unconditional.
4776         [!__ASSUME_32BITUIDS]: Remove conditional code.
4777         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4778         [__ASSUME_32BITUIDS]: Make code unconditional.
4779         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4780         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4781         <kernel-features.h>.
4782         [__ASSUME_32BITUIDS]: Make code unconditional.
4783         [!__ASSUME_32BITUIDS]: Remove conditional code.
4784         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4785         <kernel-features.h>.
4786         [__ASSUME_32BITUIDS]: Make code unconditional.
4787         [!__ASSUME_32BITUIDS]: Remove conditional code.
4788         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4789         <kernel-features.h>.
4790         [__ASSUME_32BITUIDS]: Make code unconditional.
4791         [!__ASSUME_32BITUIDS]: Remove conditional code.
4792         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4793         <kernel-features.h>.
4794         [__ASSUME_32BITUIDS]: Make code unconditional.
4795         [!__ASSUME_32BITUIDS]: Remove conditional code.
4796         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4797         <kernel-features.h>.
4798         [__ASSUME_32BITUIDS]: Make code unconditional.
4799         [!__ASSUME_32BITUIDS]: Remove conditional code.
4800         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4801         <kernel-features.h>.
4802         [__ASSUME_32BITUIDS]: Make code unconditional.
4803         [!__ASSUME_32BITUIDS]: Remove conditional code.
4804         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4805         <kernel-features.h>.
4806         [__ASSUME_32BITUIDS]: Make code unconditional.
4807         [!__ASSUME_32BITUIDS]: Remove conditional code.
4808         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4809         <kernel-features.h>.
4810         [__ASSUME_32BITUIDS]: Make code unconditional.
4811         [!__ASSUME_32BITUIDS]: Remove conditional code.
4812         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4813         <kernel-features.h>.
4814         [__ASSUME_32BITUIDS]: Make code unconditional.
4815         [!__ASSUME_32BITUIDS]: Remove conditional code.
4816         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4817         <kernel-features.h>.
4818         [__ASSUME_32BITUIDS]: Make code unconditional.
4819         [!__ASSUME_32BITUIDS]: Remove conditional code.
4820         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4821         <kernel-features.h>.
4822         [__NR_setresgid] (__setresgid): Do not declare.
4823         [__ASSUME_32BITUIDS]: Make code unconditional.
4824         [!__ASSUME_32BITUIDS]: Remove conditional code.
4825         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4826         <kernel-features.h>.
4827         [__NR_setresuid] (__setresuid): Do not declare.
4828         [__ASSUME_32BITUIDS]: Make code unconditional.
4829         [!__ASSUME_32BITUIDS]: Remove conditional code.
4830         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4831         <kernel-features.h>.
4832         [__ASSUME_32BITUIDS]: Make code unconditional.
4833         [!__ASSUME_32BITUIDS]: Remove conditional code.
4834         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4835         <kernel-features.h>.
4836         [__ASSUME_32BITUIDS]: Make code unconditional.
4837         [!__ASSUME_32BITUIDS]: Remove conditional code.
4838         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4839         <kernel-features.h>.
4840         [__ASSUME_32BITUIDS]: Make code unconditional.
4841         [!__ASSUME_32BITUIDS]: Remove conditional code.
4842         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4843         <kernel-features.h>.
4844         [__ASSUME_32BITUIDS]: Make code unconditional.
4845         [!__ASSUME_32BITUIDS]: Remove conditional code.
4846         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4847         <kernel-features.h>.
4848         [__ASSUME_32BITUIDS]: Make code unconditional.
4849         [!__ASSUME_32BITUIDS]: Remove conditional code.
4850         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4851         <kernel-features.h>.
4852         [__ASSUME_32BITUIDS]: Make code unconditional.
4853         [!__ASSUME_32BITUIDS]: Remove conditional code.
4854         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4855         <kernel-features.h>.
4856         [__ASSUME_32BITUIDS]: Make code unconditional.
4857         [!__ASSUME_32BITUIDS]: Remove conditional code.
4858         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4859         <kernel-features.h>.
4860         [__ASSUME_32BITUIDS]: Make code unconditional.
4861         [!__ASSUME_32BITUIDS]: Remove conditional code.
4862         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4863         <kernel-features.h>.
4864         [__ASSUME_32BITUIDS]: Make code unconditional.
4865         [!__ASSUME_32BITUIDS]: Remove conditional code.
4866         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4867         <kernel-features.h>.
4868         [__ASSUME_32BITUIDS]: Make code unconditional.
4869         [!__ASSUME_32BITUIDS]: Remove conditional code.
4870         * sysdeps/unix/sysv/linux/kernel-features.h
4871         (__ASSUME_SETRESUID_SYSCALL): Remove.
4872         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4873         (__ASSUME_32BITUIDS): Likewise.
4874         (__ASSUME_LDT_WORKS): Likewise.
4875         (__ASSUME_O_DIRECTORY): Likewise.
4876         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4877         architecture but not kernel version.
4878         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4879         (__ASSUME_MMAP2_SYSCALL): Likewise.
4880         (__ASSUME_STAT64_SYSCALL): Likewise.
4881         (__ASSUME_IPC64): Likewise.
4882         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4883         <kernel-features.h>.
4884         [__ASSUME_32BITUIDS]: Make code unconditional.
4885         [!__ASSUME_32BITUIDS]: Remove conditional code.
4886         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4887         <kernel-features.h>.
4888         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4889         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4890         132096]: Remove conditional code.
4891         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4892         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4893         <kernel-features.h>.
4894         [__ASSUME_32BITUIDS]: Make code unconditional.
4895         [!__ASSUME_32BITUIDS]: Remove conditional code.
4896         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4897         <kernel-features.h>.
4898         [__ASSUME_32BITUIDS]: Make code unconditional.
4899         [!__ASSUME_32BITUIDS]: Remove conditional code.
4900         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4901         <kernel-features.h>.
4902         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4903         unconditional.
4904         (__setresgid): Do not declare.
4905         [__ASSUME_32BITUIDS]: Make code unconditional.
4906         [!__ASSUME_32BITUIDS]: Remove conditional code.
4907         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4908         <kernel-features.h>.
4909         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4910         unconditional.
4911         (__setresuid): Do not declare.
4912         [__ASSUME_32BITUIDS]: Make code unconditional.
4913         [!__ASSUME_32BITUIDS]: Remove conditional code.
4914         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4915         <kernel-features.h>.
4916         [__ASSUME_32BITUIDS]: Make code unconditional.
4917         [!__ASSUME_32BITUIDS]: Remove conditional code.
4918         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4919         <kernel-features.h>.
4920         [__ASSUME_32BITUIDS]: Make code unconditional.
4921         [!__ASSUME_32BITUIDS]: Remove conditional code.
4922
4923 2012-05-25  Richard Henderson  <rth@twiddle.net>
4924
4925         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4926         dl_hwcap to ifunc resolver.
4927         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4928         elf_ifunc_invoke.
4929         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4930         dl_hwcap to ifunc resolver.
4931         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4932
4933 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4934
4935         [BZ #14153]
4936         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4937         for |x| <= 2**-26, not 2**-57.
4938         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4939         exception.
4940
4941 2012-05-24  Jeff Law  <law@redhat.com>
4942
4943         * stdio-common/Makefile (tests): Add bug25.
4944         * stdio-common/bug25.c: New test.
4945
4946 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4947
4948         [BZ #13576]
4949         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4950         multiple of MALLOC_ALIGNMENT in size.
4951         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4952
4953 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4954
4955         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4956         Require >= 256.
4957         (FILENAME_MAX): Use macro-int-constant.
4958         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4959         (_IOFBF): Use macro-int-constant.
4960         (_IOLBF): Likewise.
4961         (_IONBF): Likewise.
4962         (SEEK_CUR): Likewise.
4963         (SEEK_END): Likewise.
4964         (SEEK_SET): Likewise.
4965         (TMP_MAX): Likewise.
4966         (EOF): Use macro-int-constant.  Require < 0.
4967         (NULL): Use macro-constant.  Require == 0.
4968         (stdin): Require type to be FILE *.
4969         (stdout): Likewise.
4970         (stderr): Likewise.
4971         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4972         macro-int-constant.
4973         (EXIT_SUCCESS): Likewise.
4974         (NULL): Use macro-constant.  Require == 0.
4975         (RAND_MAX): Use macro-int-constant.
4976         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4977         [C99-based standards] (strtof): Require function.
4978         [C99-based standards] (strtold): Likewise.
4979         [C99-based standards] (strtoll): Likewise.
4980         [C99-based standards] (strtoull): Likewise.
4981         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4982         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4983         [ISO || ISO99 || ISO11] (math.h): Likewise.
4984         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4985         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4986         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4987
4988 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4989
4990         [BZ #14132]
4991         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4992         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4993         * intl/dgettext.c (DCGETTEXT): Likewise.
4994         * intl/gettext.c (DCGETTEXT): Likewise.
4995         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
4996         * posix/regex_internal.h (gettext): Likewise.
4997         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
4998         Remove declaration.
4999         * include/argz.h (__argz_count_internal)
5000         (__argz_stringify_internal): Remove declaration.
5001         (__argz_count, __argz_stringify): Declare hidden proto.
5002         * intl/dcgettext.c: Remove use of INTDEF.
5003         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5004         * string/argz-stringify.c: Likewise.
5005         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5006         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5007         Declare hidden proto.
5008         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5009         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5010         Declare hidden proto.
5011         * include/stdio.h (__asprintf_internal): Don't declare.
5012         (__asprintf): Don't define as macro.  Declare hidden proto.
5013         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5014         (__fsetlocking): Declare hidden proto.
5015         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5016         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5017         hidden proto.
5018         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5019         (_IO_setlinebuf): Remove use of INTUSE.
5020         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5021         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5022         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5023         Remove declaration.
5024         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5025         (_IO_do_flush): Remove use of INTUSE.
5026         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5027         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5028         (_IO_adjust_column, _IO_least_wmarker)
5029         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5030         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5031         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5032         (_IO_default_doallocate, _IO_wdefault_doallocate)
5033         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5034         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5035         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5036         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5037         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5038         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5039         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5040         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5041         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5042         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5043         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5044         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5045         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5046         proto.
5047         (_IO_flush_all_internal, _IO_adjust_column_internal)
5048         (_IO_default_uflow_internal, _IO_default_finish_internal)
5049         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5050         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5051         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5052         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5053         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5054         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5055         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5056         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5057         (_IO_file_close_internal, _IO_file_close_it_internal)
5058         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5059         (_IO_file_init_internal, _IO_file_attach_internal)
5060         (_IO_file_fopen_internal, _IO_file_read_internal)
5061         (_IO_file_sync_internal, _IO_file_seek_internal)
5062         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5063         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5064         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5065         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5066         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5067         (_IO_list_all_internal, _IO_link_in_internal)
5068         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5069         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5070         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5071         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5072         (_IO_do_write_internal, _IO_padn_internal)
5073         (_IO_getline_info_internal, _IO_getline_internal)
5074         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5075         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5076         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5077         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5078         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5079         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5080         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5081         with libc_hidden_ver, remove use of INTUSE.
5082         * libio/genops.c: Likewise.
5083         * libio/freopen.c: Likewise.
5084         * libio/freopen64.c: Likewise.
5085         * libio/iofclose.c: Likewise.
5086         * libio/iofdopen.c: Likewise.
5087         * libio/iofflush.c: Likewise.
5088         * libio/iofflush_u.c: Likewise.
5089         * libio/iofgets.c: Likewise.
5090         * libio/iofgets_u.c: Likewise.
5091         * libio/iofopen.c: Likewise.
5092         * libio/iofopncook.c: Likewise.
5093         * libio/iofread.c: Likewise.
5094         * libio/iofread_u.c: Likewise.
5095         * libio/ioftell.c: Likewise.
5096         * libio/iofwrite.c: Likewise.
5097         * libio/iogetline.c: Likewise.
5098         * libio/iogets.c: Likewise.
5099         * libio/iogetwline.c: Likewise.
5100         * libio/iopadn.c: Likewise.
5101         * libio/iopopen.c: Likewise.
5102         * libio/ioseekoff.c: Likewise.
5103         * libio/ioseekpos.c: Likewise.
5104         * libio/iosetbuffer.c: Likewise.
5105         * libio/iosetvbuf.c: Likewise.
5106         * libio/ioungetc.c: Likewise.
5107         * libio/ioungetwc.c: Likewise.
5108         * libio/iovdprintf.c: Likewise.
5109         * libio/iovsprintf.c: Likewise.
5110         * libio/iovsscanf.c: Likewise.
5111         * libio/memstream.c: Likewise.
5112         * libio/obprintf.c: Likewise.
5113         * libio/oldfileops.c: Likewise.
5114         * libio/oldiofclose.c: Likewise.
5115         * libio/oldiofdopen.c: Likewise.
5116         * libio/oldiofopen.c: Likewise.
5117         * libio/oldiopopen.c: Likewise.
5118         * libio/oldstdfiles.c: Likewise.
5119         * libio/putc.c: Likewise.
5120         * libio/setbuf.c: Likewise.
5121         * libio/setlinebuf.c: Likewise.
5122         * libio/stdfiles.c: Likewise.
5123         * libio/strops.c: Likewise.
5124         * libio/vasprintf.c: Likewise.
5125         * libio/vscanf.c: Likewise.
5126         * libio/vsnprintf.c: Likewise.
5127         * libio/vswprintf.c: Likewise.
5128         * libio/wfiledoalloc.c: Likewise.
5129         * libio/wfileops.c: Likewise.
5130         * libio/wgenops.c: Likewise.
5131         * libio/wmemstream.c: Likewise.
5132         * libio/wstrops.c: Likewise.
5133         * libio/__fpurge.c: Likewise.
5134         * libio/__fsetlocking.c: Likewise.
5135         * assert/assert.c: Likewise.
5136         * debug/fgets_chk.c: Likewise.
5137         * debug/fgets_u_chk.c: Likewise.
5138         * debug/fread_chk.c: Likewise.
5139         * debug/fread_u_chk.c: Likewise.
5140         * debug/gets_chk.c: Likewise.
5141         * debug/obprintf_chk.c: Likewise.
5142         * debug/vasprintf_chk.c: Likewise.
5143         * debug/vdprintf_chk.c: Likewise.
5144         * debug/vsnprintf_chk.c: Likewise.
5145         * debug/vsprintf_chk.c: Likewise.
5146         * malloc/mtrace.c: Likewise.
5147         * misc/error.c: Likewise.
5148         * misc/syslog.c: Likewise.
5149         * stdio-common/asprintf.c: Likewise.
5150         * stdio-common/fxprintf.c: Likewise.
5151         * stdio-common/getw.c: Likewise.
5152         * stdio-common/isoc99_fscanf.c: Likewise.
5153         * stdio-common/isoc99_scanf.c: Likewise.
5154         * stdio-common/isoc99_vfscanf.c: Likewise.
5155         * stdio-common/isoc99_vscanf.c: Likewise.
5156         * stdio-common/isoc99_vsscanf.c: Likewise.
5157         * stdio-common/printf-prs.c: Likewise.
5158         * stdio-common/printf_fp.c: Likewise.
5159         * stdio-common/printf_fphex.c: Likewise.
5160         * stdio-common/printf_size.c: Likewise.
5161         * stdio-common/putw.c: Likewise.
5162         * stdio-common/scanf.c: Likewise.
5163         * stdio-common/sprintf.c: Likewise.
5164         * stdio-common/tmpfile.c: Likewise.
5165         * stdio-common/vfprintf.c: Likewise.
5166         * stdio-common/vfscanf.c: Likewise.
5167         * stdlib/strfmon_l.c: Likewise.
5168         * sunrpc/openchild.c: Likewise.
5169         * sunrpc/xdr_stdio.c: Likewise.
5170         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5171         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5172
5173 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5174
5175         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5176
5177         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5178         in the third column, to generate for the shared library an IFUNC
5179         that uses _dl_vdso_vsym.
5180         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5181         * Makeconfig (object-suffixes-noshared): New variable.
5182
5183         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5184         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5185         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5186         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5187
5188         [BZ #14132]
5189         * include/sys/time.h (__gettimeofday): Remove macro.
5190         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5191         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5192         Remove INTDEF.
5193         (__gettimeofday): Add libc_hidden_def.
5194         (gettimeofday): Add libc_hidden_weak.
5195         * sysdeps/mach/gettimeofday.c: Likewise.
5196         * sysdeps/posix/gettimeofday.c: Likewise.
5197         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5198         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5199         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5200         (__gettimeofday_internal): Remove strong_alias.
5201         (__gettimeofday): Add libc_hidden_def.
5202         (gettimeofday): Add libc_hidden_weak.
5203         * sysdeps/unix/syscalls.list (gettimeofday):
5204         Remove __gettimeofday_internal alias.
5205
5206 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5207             H.J. Lu  <hongjiu.lu@intel.com>
5208
5209         [BZ #12495]
5210         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5211         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5212         (largebin_index_32_big): New.
5213         (largebin_index): Use it for 16-byte alignment.
5214         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5215         correction with front_misalign.
5216
5217 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5218
5219         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5220         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5221         Likewise.
5222         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5223         Likewise.
5224         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5225         Likewise.
5226         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5227         Likewise.
5228         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5229         Likewise.
5230         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5231         Likewise.
5232         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5233         Likewise.
5234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5235         Likewise.
5236         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5237         Likewise.
5238         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5239         Likewise.
5240         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5241         Likewise.
5242         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5243         Likewise.
5244
5245         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5246         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5247
5248 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5249
5250         [BZ #10846]
5251         [BZ #14036]
5252         * math/libm-test.inc (exp_test): Add test from bug 14036.
5253         (pow_test): Add test from bug 10846.
5254
5255         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5256         and other flags.
5257         (special_function): Do not include flags in test name.
5258         (parse_args): Likewise.
5259         * sysdeps/i386/fpu/libm-test-ulps: Update.
5260         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5261         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5262         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5264
5265         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5266         exceptions.
5267         * math/libm-test.inc ("Philosophy"): Update comment about
5268         exception testing.
5269         (UNDERFLOW_EXCEPTION): New macro.
5270         (UNDERFLOW_EXCEPTION_OK): Likewise.
5271         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5272         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5273         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5274         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5275         (INVALID_EXCEPTION_OK): Update value.
5276         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5277         (OVERFLOW_EXCEPTION_OK): Likewise.
5278         (IGNORE_ZERO_INF_SIGN): Likewise.
5279         (test_exceptions): Handle underflow exceptions.
5280         (acos_test): Update for underflow exception expectations.
5281         (cexp_test): Likewise.
5282         (clog_test): Likewise.
5283         (clog10_test): Likewise.
5284         (csqrt_test): Likewise.
5285         (ctan_test): Likewise.
5286         (ctanh_test): Likewise.
5287         (exp_test): Likewise.
5288         (exp10_test): Likewise.
5289         (exp2_test): Likewise.
5290         (expm1_test): Likewise.
5291         (fma_test): Likewise.
5292         (j0_test): Likewise.
5293         (jn_test): Likewise.
5294         (nexttoward_test): Likewise.
5295         (pow_test): Likewise.
5296         (scalbn_test): Likewise.
5297         (scalbln_test): Likewise.
5298         (tan_test): Likewise.
5299         (y1_test): Likewise.
5300         * sysdeps/i386/fpu/libm-test-ulps: Update.
5301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5302
5303 2012-05-23  David S. Miller  <davem@davemloft.net>
5304
5305         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5306         (__libc_sigaction): Remove unused local variables.
5307
5308 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5309
5310         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5311
5312 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5313
5314         mktime: avoid signed integer overflow
5315         * time/mktime.c (__mktime_internal): Do not mishandle the case
5316         where diff == INT_MIN.
5317
5318         mktime: simplify computation of average
5319         * time/mktime.c (ranged_convert): Use new time_t_avg function
5320         instead of rolling our own (probably-slower) code.
5321
5322         mktime: do not assume signed right shift propagates sign bit
5323         * time/mktime.c (isdst_differ): New static function.
5324         (__mktime_internal): No need to normalize tm_isdst now.
5325         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5326         tm_isdst values.
5327
5328         mktime: merge another wrapv change from gnulib
5329         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5330         from some compilers.
5331
5332         mktime: remove incorrect attempt at unusual arithmetics
5333         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5334         The code didn't really work on such machines anyway.
5335         (TYPE_MINIMUM): Assume two's complement.
5336         (twos_complement_arithmetic): Verify that long_int and time_t
5337         are two's complement (or unsigned, in the latter case).
5338
5339         mktime: check signed shifts on long_int and time_t, too
5340         * time/mktime.c (SHR): Check that shifts work as desired
5341         on the types long_int and time_t too, as SHR is used on
5342         such types.
5343
5344         mktime: do not assume 'long' is wide enough
5345         * time/mktime.c (verify): Move decl up.
5346         (long_int): New type.
5347         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5348         to remove assumption in the code that 'long' is wide enough to
5349         store year values.  This assumption is not true on x32 and on
5350         some non-glibc platforms.
5351
5352         mktime: merge wrapv change from gnulib
5353         * time/mktime.c (WRAPV): New macro.
5354         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5355         (guess_time_tm, __mktime_internal): Do not assume that signed
5356         integer overflow wraps around; modern compilers generate code
5357         where this assumption is no longer valid.
5358
5359 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5360
5361         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5362         Replace "jmp L(pseudo_end)" with "ret".
5363         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5364         Likewise.
5365
5366 2012-05-23  Andreas Jaeger  <aj@suse.de>
5367
5368         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5369         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5370
5371 2012-05-23  Andreas Jaeger  <aj@suse.de>
5372             Maximilian Attems  <max@stro.at>
5373
5374         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5375         New macros.
5376
5377 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5378
5379         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5380         code so that pseudo_end is just ret and the stack pointer is
5381         correct also for static library in error case.
5382
5383 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5384
5385         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5386         move to syscalls.list.
5387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5391
5392         * manual/install.texi (Running make install): Do not mention Linux
5393         kernel version for which pt_chown is not needed.
5394         (Linux): Do not mention problems with nscd with 2.0 kernels.
5395         * INSTALL: Regenerated.
5396
5397 2012-05-23  Andreas Jaeger  <aj@suse.de>
5398
5399         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5400         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5401         macro.
5402         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5403         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5404         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5405         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5406         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5407         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5408         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5409         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5410         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5411         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5412         * sysdeps/unix/sysv/linux/bits/in.h
5413         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5414
5415 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5416
5417         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5418         (PREPARE_VERSION): Just use assert instead, it will be elided
5419         under [NDEBUG] anyway.
5420
5421 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5422
5423         * sysdeps/unix/sysv/linux/Makefile: Include
5424         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5425         (sysdep_routines): Remove sysctl.
5426         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5427         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5428         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5429         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5430         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5431
5432 2012-05-22  Andreas Jaeger  <aj@suse.de>
5433
5434         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5435         that pseudo_end is just ret and the stack pointer is correct also
5436         for static library in error case.
5437
5438 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5439
5440         [BZ #14122]
5441         * nss/nsswitch.c (defconfig_entries): New variable.
5442         (__nss_database_lookup): Don't leak defconfig entries.
5443         (nss_parse_service_list): Don't leak on error paths.
5444         (free_database_entries): New function.
5445         (free_defconfig): New function.
5446         (free_mem): Move common code to free_database_entries.
5447
5448 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5449
5450         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5451         Add arch_prctl.
5452         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5453
5454         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5455         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5456         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5457         New macro.
5458         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5459         (INTERNAL_SYSCALL_TYPES): Likewise.
5460         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5461         (LOAD_REGS_TYPES_[1-6]): Likewise.
5462         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5463         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5464
5465 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5466
5467         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5468         copysignl for GLIBC_2_0.
5469         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5470         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5471         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5472         logbl for GLIBC_2_0.
5473         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5474         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5475
5476 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5477
5478         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5479         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5480
5481         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5482         Use "neg %eax".
5483
5484         * time/mktime.c: Update copyright years.
5485
5486 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5487
5488         mktime: merge comment-quoting-style change from gnulib
5489         * time/mktime.c: Quote 'like this' in comments.
5490         The GNU coding standards suggest that we no longer quote `like this',
5491         as "`" and "'" are typically rendered asymmetrically nowadays.
5492         The typical gnulib style is to quote 'like this' when quoting
5493         code, and "like this" when quoting English.
5494
5495         * time/mktime.c (compile-command): Add "-I.".
5496
5497         mktime: merge mktime-internal.h change from gnulib
5498         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5499
5500         mktime: merge time_r change from gnulib
5501         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5502
5503         mktime: merge DEBUG change from gnulib
5504         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5505         case system <time.h> has a #define.
5506
5507         mktime: merge <sys/types.h> change from gnulib
5508         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5509         since <time.t> is now guaranteed to define time_t.
5510
5511         mktime: merge HAVE_CONFIG_H change from gnulib
5512         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5513
5514 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5515
5516         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5517         Use "neg %eax".
5518
5519         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5520         __rlim_t cast.
5521         (struct rusage): Use anonymous union to pad each field to
5522         __syscall_slong_t.
5523
5524 2012-05-21  David S. Miller  <davem@davemloft.net>
5525
5526         * Makefules (o-iterator): Remove .s cases.
5527         (compile-command.s): Delete.
5528         (COMPILE.s): Delete.
5529         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5530
5531 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5532
5533         * configure.in (libc_cv_predef_stack_protector): Only consider
5534         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5535         * configure: Regenerated.
5536
5537 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5538
5539         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5540         New macro.  Use R*LP on int and pointer.
5541         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5542         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5543         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5544         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5545
5546         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5547         [__WORDSIZE_TIME64_COMPAT32] instead of
5548         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5549         (struct utmp): Likewise.
5550         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5551         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5552         Renamed to ...
5553         (__WORDSIZE_TIME64_COMPAT32): This.
5554         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5555         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5556         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5557         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5558         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5559         (__WORDSIZE_TIME64_COMPAT32): New macro.
5560
5561 2012-05-21  Andreas Jaeger  <aj@suse.de>
5562
5563         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5564         only if [SHARED]. Add prototype for __wcschr_ia32.
5565
5566 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5567
5568         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5569         of %rbp unmolested in the jmp_buf while mangling the low bits.
5570         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5571         unmolested high bits of %rbp while demangling the low bits.
5572         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5573
5574 2012-05-21  Andreas Jaeger  <aj@suse.de>
5575
5576         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5577         * sunrpc/svc_simple.c: Use it for registerrpc.
5578         * sunrpc/xcrypt.c: Use it for passwd2des.
5579
5580         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5581
5582 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5583
5584         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5585         Don't define if [__SYSCALL_WORDSIZE != 32].
5586         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5587         New macro.
5588
5589 2012-05-21  Bruno Haible  <bruno@clisp.org>
5590             Andreas Jaeger  <aj@suse.de>
5591
5592         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5593         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5594         inptr and inend for must_buffer_ch.
5595         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5596         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5597         * stdio-common/Makefile (tests): Remove bug15.
5598         (bug15-ENV): Remove macro.
5599         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5600         anymore.
5601
5602 2012-05-19  Andreas Jaeger  <aj@suse.de>
5603             Roland McGrath  <roland@hack.frob.com>
5604
5605         * manual/contrib.texi: Completely rewritten. It contains now an
5606         alphabetical list of contributors and their contributions.
5607
5608 2012-05-21  Richard Henderson  <rth@twiddle.net>
5609
5610         * misc/getauxval.c (__getauxval): Use unsigned long int.
5611         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5612         (getauxval): Use unsigned long int.
5613
5614 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5615
5616         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5617
5618 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5619
5620         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5621         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5622         __alignof__ (long double).
5623
5624 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5625
5626         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5627
5628 2012-05-20  Richard Henderson  <rth@twiddle.net>
5629
5630         * misc/getauxval.c: New file.
5631         * misc/sys/auxv.h: New file.
5632         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5633         (routines): Add getauxval.
5634         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5635         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5636         * elf/dl-sysdep.c (_dl_auxv): Remove.
5637         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5638         * elf/dl-support.c (_dl_auxv): New variable.
5639         (_dl_aux_init): Initialize it.
5640         * manual/startup.texi (Auxiliary Vector): New node.
5641         * sysdeps/generic/bits/hwcap.h: New file.
5642         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5643         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5644         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5645         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5646         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5647         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5649         Update.
5650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5651         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5652         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5653         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5654         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5655         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5656         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5657         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5658
5659 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5660
5661         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5662
5663 2012-05-19  David S. Miller  <davem@davemloft.net>
5664
5665         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5666
5667 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5668
5669         [BZ #14123]
5670         * math/s_ccosh.c: Include <float.h>
5671         (__ccosh): Avoid internal overflow calculating sinh and cosh
5672         values before multiplying by sin and cos values.
5673         * math/s_ccoshf.c: Likewise.
5674         * math/s_ccoshl.c: Likewise.
5675         * math/s_csin.c: Likewise.
5676         * math/s_csinf.c: Likewise.
5677         * math/s_csinl.c: Likewise.
5678         * math/s_csinh.c: Likewise.
5679         * math/s_csinhf.c: Likewise.
5680         * math/s_csinhl.c: Likewise.
5681         * math/libm-test.inc (ccos_test): Add more tests.
5682         (ccosh_test): Likewise.
5683         (csin_test): Likewise.
5684         (csinh_test): Likewise.
5685         * sysdeps/i386/fpu/libm-test-ulps: Update.
5686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5687
5688 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5689
5690         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5691         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5692
5693         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5694
5695 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5696
5697         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5698         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5699         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5700         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5701         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5702         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5703         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5704         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5705         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5706         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5707         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5708         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5709         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5710         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5711         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5712         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5713         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5714         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5715         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5716         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5717         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5718         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5719         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5720         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5721         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5722         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5723         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5724         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5725         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5726         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5727         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5728
5729 2012-05-18  Andreas Jaeger  <aj@suse.de>
5730
5731         * csu/.gitignore: Delete.
5732
5733 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5734
5735         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5736         (timex): Use __syscall_slong_t.
5737
5738 2012-05-18  Andreas Jaeger  <aj@suse.de>
5739             Carlos O'Donell  <carlos_odonell@mentor.com>
5740
5741         * manual/install.texi (Configuring and compiling): Update
5742         description about files modified in the source directory.
5743         * INSTALL: Regenerated.
5744
5745 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5746
5747         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5748         value.  Use "or" to set return value to -1.
5749         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5750         negate return value.
5751
5752 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5753
5754         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5755         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5756         failure if the compiler has Graphite support disabled.
5757         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5758         Likewise.
5759         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5760         CFLAGS-memmove.c): Likewise.
5761         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5762         Likewise.
5763
5764 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5765
5766         * sysdeps/x86_64/x32/_itoa.h: New file.
5767
5768         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5769         getdents system call only if kernel and user dirents have the
5770         same d_ino and d_off.
5771
5772         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5773         LLONG_MAX != LONG_MAX.
5774         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5775         (_fitoa_word): Likewise.
5776
5777         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5778         years.
5779         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5780         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5781         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5782
5783         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5784         include <bits/wordsize.h>.  Check __x86_64__ instead of
5785         __WORDSIZE.
5786         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5787         if __x86_64__ is defined.  Use anonymous union on fpstate.
5788
5789         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5790         anonymous union.
5791
5792 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5793
5794         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5795         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5796         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5797         Refer to _rtld_local_ro instead of _rtld_global_ro.
5798         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5799         Likewise.
5800         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5801         Likewise.
5802         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5803         Likewise.
5804         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5805         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5806         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5807
5808         * sysdeps/powerpc/powerpc32/dl-machine.c
5809         (__elf_machine_runtime_setup) [PROF]: Don't reference
5810         _dl_prof_resolve.
5811
5812 2012-05-18  Andreas Jaeger  <aj@suse.de>
5813
5814         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5815         function only available for GCCs before 3.4 since GCC 3.4
5816         introduced a builtin.
5817         (lrint): Likewise.
5818         (llrintf): Likewise.
5819         (llrint): Likewise.
5820         (fmaxf): Likewise.
5821         (fmax): Likewise.
5822         (fminf): Likewise.
5823         (fmin): Likewise.
5824         (rint): Likewise.
5825         (rintf): Likewise.
5826         (nearbyint): Likewise.
5827         (nearbyintf): Likewise.
5828         (ceil): Likewise.
5829         (ceilf): Likewise.
5830         (floor): Likewise.
5831         (floorf): Likewise.
5832
5833 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5834
5835         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5836         on both fields and cast pointer to __syscall_ulong_t.
5837
5838         * bits/types.h (__fsword_t): New type.
5839         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5840         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5841         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5842         (__FSWORD_T_TYPE): Likewise.
5843         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5844         (__FSWORD_T_TYPE): Likewise.
5845         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5846         (__FSWORD_T_TYPE): Likewise.
5847         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5848         (__FSWORD_T_TYPE): Likewise.
5849         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5850         __SWORD_TYPE with __fsword_t.
5851         (statfs64): Likewise.
5852
5853 2012-05-17  David S. Miller  <davem@davemloft.net>
5854
5855         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5856
5857 2012-05-17  Andreas Jaeger  <aj@suse.de>
5858
5859         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5860         warning.
5861
5862 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5863
5864         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5865
5866 2012-05-17  Andreas Jaeger  <aj@suse.de>
5867
5868         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5869         when it is used.
5870
5871 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5872
5873         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5874
5875 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5876
5877         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5878         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5879
5880 2012-05-17  Andreas Jaeger  <aj@suse.de>
5881             Carlos O'Donell  <carlos_odonell@mentor.com>
5882
5883         [BZ #14059]
5884         * sysdeps/x86_64/multiarch/init-arch.h
5885         (bit_YMM_Usable): Rename to...
5886         (bit_AVX_Usable): ... this.
5887         (bit_FMA4_Usable): New macro.
5888         (bit_XMM_state): New macro.
5889         (bit_YMM_state): New macro.
5890         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5891         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5892         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5893         (CPUID_OSXSAVE): New macro.
5894         (CPUID_AVX): New macro.
5895         (CPUID_FMA4): New macro.
5896         (index_YMM_Usable): Rename to...
5897         (index_AVX_Usable): ... this.
5898         (HAS_AVX): Use HAS_ARCH_FEATURE.
5899         (HAS_FMA4): Likewise.
5900         (HAS_YMM_USABLE): Remove.
5901         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5902         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5903         are present.
5904         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5905         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5906         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5907         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5908         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5909
5910 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5911
5912         * math/libm-test.c: Support platforms without multiple rounding modes.
5913         * math/bug-nextafter.c: Support platforms without FP exceptions.
5914         * math/bug-nexttoward.c: Likewise.
5915         * math/test-fenv.c: Likewise.
5916         * math/test-misc.c: Likewise.
5917         * stdlib/bug-getcontext.c: Likewise.
5918
5919 2012-05-17  Andreas Jaeger  <aj@suse.de>
5920
5921         * manual/examples/search.c (critter_cmp): Change signature to
5922         avoid warnings.
5923         * manual/string.texi (Collation Functions): Likewise.
5924
5925 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5926
5927         * bits/types.h: Fold copyright years.
5928         * bits/typesizes.h: Likewise.
5929         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5930         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5931         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5932         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5933         * time/time.h: Likewise.
5934
5935 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5936
5937         [BZ #208]
5938         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5939         in instead of returning them.  Return void.
5940         (__libc_mallinfo): Accumulate over all arenas.
5941         (__malloc_stats): Adjust for change in int_mallinfo interface.
5942
5943 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5944
5945         [BZ #10375]
5946         * configure.in (NM): Add AC_CHECK_TOOL for it.
5947         (libc_extra_cflags): New substituted variable.
5948         Check for -fstack-protector being used implicitly.
5949         * configure: Regenerated.
5950         * config.make.in (config-extra-cflags): New variable,
5951         gets @libc_extra_cflags@.
5952         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5953
5954         [BZ #10375]
5955         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5956         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5957         * configure: Regenerated.
5958         * config.make.in (CPPUNDEFS): New substituted variable.
5959         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5960         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5961         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5962
5963 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5964
5965         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5966         (mq_attr): Use __syscall_slong_t.
5967
5968 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5969
5970         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5971         Check __x86_64__ instead of __WORDSIZE.
5972         (_STAT_VER_LINUX): Likewise.
5973         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5974         __syscall_ulong_t and __syscall_slong_t.
5975         (stat64): Likewise.
5976
5977 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5978
5979         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5980
5981 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5982
5983         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5984
5985 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5986
5987         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5988         __syscall_ulong_t.
5989
5990         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5991         include <bits/wordsize.h>.  Check __x86_64__ instead of
5992         __WORDSIZE.
5993         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5994         defined.
5995         (mcontext_t): Replace "unsigned long" with "unsigned long long".
5996
5997         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
5998         include <bits/wordsize.h>.  Check __x86_64__ instead of
5999         __WORDSIZE.
6000         (user_regs_struct): Use "__extension__ unsigned long long"
6001         instead of "unsigned long" if __x86_64__ is defined.
6002         (user): Likewise.  Pad after pointer field if __ILP32__ is
6003         defined.
6004
6005 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6006
6007         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6008         versions 5 to 9.
6009         * configure: Regenerated.
6010         * manual/install.texi (texinfo): Increase version requirement to
6011         4.5 or later.
6012         * INSTALL: Regenerated.
6013
6014         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6015
6016 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6017
6018         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6019
6020         * sysdeps/x86_64/x32/ffs.c: New file.
6021
6022         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6023         __syscall_ulong_t.
6024         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6025         defined.  Use __syscall_ulong_t.
6026         (shminfo): Use __syscall_ulong_t.
6027         (shm_info): Likewise.
6028
6029         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6030         __syscall_ulong_t.
6031
6032         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6033         <bits/wordsize.h>.
6034         (msgqnum_t): Use __syscall_ulong_t.
6035         (msglen_t): Likewise.
6036         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6037         __syscall_ulong_t.
6038
6039         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6040         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6041
6042         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6043
6044         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6045         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6046
6047         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6048         __syscall_slong_t.
6049
6050         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6051         include <bits/wordsize.h>.  Check __x86_64__ instead of
6052         __WORDSIZE.
6053
6054         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6055         "unsigned long long int" if __x86_64__ is defined.
6056         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6057
6058         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6059         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6060         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6061
6062         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6063         <stdint.h>.
6064         (GET_PC): Cast to uintptr_t first.
6065         (GET_FRAME): Likewise.
6066         (GET_STACK): Likewise.
6067
6068         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6069         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6070         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6071         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6072         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6073         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6074         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6075         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6076         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6077         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6078         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6079         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6080         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6081         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6082         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6083         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6084         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6085         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6086         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6087         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6088         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6089         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6090         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6091         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6092         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6093         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6094         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6095         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6096         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6097
6098 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6099
6100         * Makerules (+depfiles): Also collect depfiles from .oS in
6101         $(extra-objs).
6102         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6103         .oS, $(libnldbl-routines)).
6104
6105         * Makerules (native-compile-mkdep-flags): Define.
6106         * sunrpc/Makefile (extra-objs): Add $(addprefix
6107         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6108         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6109         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6110         calling $(make-target-directory).
6111
6112 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6113
6114         * bits/types.h (__snseconds_t): Removed.
6115         * time/time.h (struct timespec): Replace __snseconds_t with
6116         __syscall_slong_t.
6117         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6118         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6119         Likewise.
6120         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6121         (__SNSECONDS_T_TYPE): Likewise.
6122         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6123         (__SNSECONDS_T_TYPE): Likewise.
6124         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6125         (__SNSECONDS_T_TYPE): Likewise.
6126
6127 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6128
6129         * sysdeps/mach/hurd/bits/typesizes.h
6130         (__SYSCALL_SLONG_TYPE): New macro.
6131         (__SYSCALL_ULONG_TYPE): Likewise.
6132
6133 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6134
6135         * bits/types.h (__syscall_slong_t): New type.
6136         (__syscall_ulong_t): Likewise.
6137
6138         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6139         (__SYSCALL_ULONG_TYPE): Likewise.
6140         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6141         (__SYSCALL_SLONG_TYPE): Likewise.
6142         (__SYSCALL_ULONG_TYPE): Likewise.
6143         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6144         (__SYSCALL_SLONG_TYPE): Likewise.
6145         (__SYSCALL_ULONG_TYPE): Likewise.
6146         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6147         (__SYSCALL_SLONG_TYPE): Likewise.
6148         (__SYSCALL_ULONG_TYPE): Likewise.
6149
6150 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6151
6152         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6153         Add sigaltstack-offsets.sym.
6154         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6155         <sigaltstack-offsets.h>.
6156         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6157         longjmp_msg pointer.
6158         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6159         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6160         signal stack.
6161         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6162
6163 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6164
6165         * elf/stackguard-macros.h: Remove file.
6166         * sysdeps/generic/stackguard-macros.h: New file.
6167         * sysdeps/i386/stackguard-macros.h: Likewise.
6168         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6169         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6170         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6171         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6172         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6173         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6174         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6175         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6176         <elf/stackguard-macros.h>.
6177
6178         [BZ #14109]
6179         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6180         __aligned__ in attribute.
6181         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6182         (gregset_t): Likewise.
6183
6184 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6185
6186         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6187         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6188         * sysdeps/x86_64/x32/Implies-after: New file.
6189
6190 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6191
6192         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6193         and access return value for _dl_profile_fixup.  Use R10_LP to
6194         load frame size.
6195
6196 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6197
6198         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6199
6200 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6201
6202         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6203         * sysdeps/x86_64/x32/sysdep.h: New file.
6204
6205 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6206
6207         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6208         * sysdeps/x86_64/setjmp.S: Likewise.
6209
6210 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6211
6212         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6213         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6214         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6215         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6216         remove unused global constant.
6217
6218 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6219
6220         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6221         include of <not-cancel.h>.
6222
6223 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6224
6225         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6226
6227 2012-05-15  Jeff Law  <law@redhat.com>
6228             Andreas Jaeger  <aj@suse.de>
6229
6230         [BZ #13594]
6231         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6232         out from...
6233         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6234         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6235         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6236         code changing __hst_map_handle.map.
6237
6238 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6239
6240         * configure.in (sysnames): Look for Implies-before and Implies-after
6241         files.
6242         * configure: Regenerated.
6243
6244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6247         8-byte data alignment with LP_SIZE alignment.
6248
6249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6250
6251         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6252         into R10_LP.
6253
6254 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6255
6256         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6257
6258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6259
6260         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6261         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6262         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6263         Likewise.
6264         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6265
6266 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6267
6268         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6269         (stackinfo_sub_sp): Likewise.
6270
6271 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6272
6273         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6274         RAX_LP.
6275
6276 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6277
6278         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6279         into R*_LP.
6280
6281 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6282
6283         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6284         sizes into R*_LP.
6285
6286 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6287
6288         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6289
6290 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6291
6292         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6293         into R11_LP and load __x86_64_shared_cache_size_half into
6294         R8_LP.
6295
6296 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6297
6298         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6299         R8_LP.
6300
6301 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6302
6303         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6304         logb for POWER7.
6305         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6306         logbf for POWER7.
6307         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6308         logbl for POWER7.
6309         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6310         powerpc32/power7/fpu/s_logb.c via #include.
6311         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6312         powerpc32/power7/fpu/s_logbf.c via #include.
6313         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6314         powerpc32/power7/fpu/s_logbl.c via #include.
6315
6316 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6317
6318         * README.libm: Remove file.
6319
6320 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6321
6322         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6323         count for x32.  Use R*_LP and omit operand-size suffix.
6324
6325 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6326
6327         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6328         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6329         * sysdeps/x86_64/x32/shlib-versions: New file.
6330
6331 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6332
6333         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6334         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6335         Use _dl_fatal_printf instead.
6336
6337 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6338
6339         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6340         set if not set by the user.  Do not allow for being unset.
6341         * sysdeps/unix/sysv/linux/configure: Regenerated.
6342
6343 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6344
6345         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6346         the `q' suffix from lea and replace .quad with ASM_ADDR.
6347
6348 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6349
6350         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6351         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6352         instead of $17.
6353         (PTR_DEMANGLE): Likewise.
6354
6355 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6356
6357         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6358         (LP_OP): Likewise.
6359         (ASM_ADDR): Likewise.
6360         (RAX_LP): Likewise.
6361         (RBP_LP): Likewise.
6362         (RBX_LP): Likewise.
6363         (RCX_LP): Likewise.
6364         (RDI_LP): Likewise.
6365         (RSI_LP): Likewise.
6366         (RSP_LP): Likewise.
6367         (R8_LP): Likewise.
6368         (R9_LP): Likewise.
6369         (R10_LP): Likewise.
6370         (R10_LP): Likewise.
6371         (R11_LP): Likewise.
6372         (R12_LP): Likewise.
6373         (R13_LP): Likewise.
6374         (R14_LP): Likewise.
6375         (R15_LP): Likewise.
6376
6377 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6378
6379         * sysdeps/x86_64/x32/dl-machine.h: New file.
6380
6381 2012-05-14  Andreas Jaeger  <aj@suse.de>
6382
6383         * manual/Makefile (subdir): Remove export of subdir.
6384         (all): Remove target.
6385         (.PHONY): Remove all from list.
6386         (mkinstalldirs): Remove.
6387         (.PHONY): Remove installdirs from list.
6388         ($(inst_infodir)/libc.info): Use make-target-directory.
6389         (installdirs): Remove.
6390         (subdir_%): Remove.
6391         (glibc-targets): Remove.
6392         (lib): Remove.
6393         (stubs): Remove.
6394         ($(objpfx)stubs ../po/manual.pot): Remove.
6395         ($(objpfx)stamp%): Remove.
6396         (make-target-directory): Remove.
6397         (subdir_install): Remove.
6398         (routines): Remove.
6399         (aux): Remove.
6400         (sources): Remove.
6401         (objects): Remove.
6402         (headers): Remove.
6403
6404         [BZ #13750]
6405         * manual/.gitignore: Remove, it's not needed anymore.
6406         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6407         all files in it.
6408         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6409         directory.
6410         (texis): Renamed to $(objpfx)texis.
6411         (texis-path): New, contains path to generated files.
6412         (chapters.%): Use texis-path for complete path, add extra argument
6413         libc-texinfo.sh.
6414         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6415         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6416         (summary,texi, stamp-summary): Use complete path of
6417         files. Generate files in build dir.
6418         (dir-add.texi): Build in build dir.
6419         (libm-err.texi,stamp-libm-err): Likewise.
6420         (version.texi, stamp-version): Likewise.
6421         (.%c.texi): Likewise.
6422         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6423         (mostlyclean): Remove target.
6424         (realclean): Remove target.
6425         (generated): Add new variable with contents from mostlyclean and
6426         realclean, remove entries duplicated in common-mostlyclean, add
6427         stamp-libm-err and stamp-version.
6428         (generated-dirs): Add libc directory.
6429         ($(inst_infodir)/libc.info): Install files from build dir.
6430
6431         * manual/install.texi (Configuring and compiling): Adjust since
6432         the info files are not part of the tar ball anymore.
6433
6434 2012-05-14  Andreas Jaeger  <aj@suse.de>
6435
6436         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6437         variable.
6438
6439 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6440
6441         [BZ #13717]
6442         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6443         to 2.2.0 where earlier.
6444         * sysdeps/unix/sysv/linux/configure: Regenerated.
6445         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6446         Remove conditional code.
6447         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6448         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6449         Remove conditional code.
6450         [!__NR_lchown]: Likewise.
6451         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6452         [__NR_lchown]: Likewise.
6453         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6454         comment referencing __ASSUME_LCHOWN_SYSCALL.
6455         * sysdeps/unix/sysv/linux/i386/sigaction.c
6456         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6457         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6458         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6459         Remove conditional code.
6460         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6461         (__protocol_available): Remove #if 0 code.
6462         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6463         conditional code.
6464         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6465         * sysdeps/unix/sysv/linux/kernel-features.h
6466         (__ASSUME_GETCWD_SYSCALL): Don't define.
6467         (__ASSUME_REALTIME_SIGNALS): Likewise.
6468         (__ASSUME_PREAD_SYSCALL): Likewise.
6469         (__ASSUME_PWRITE_SYSCALL): Likewise.
6470         (__ASSUME_POLL_SYSCALL): Likewise.
6471         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6472         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6473         non-SPARC.
6474         (__ASSUME_SIOCGIFNAME): Don't define.
6475         (__ASSUME_MSG_NOSIGNAL): Likewise.
6476         (__ASSUME_SENDFILE): Define unconditionally.
6477         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6478         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6479         conditional code.
6480         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6481         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6482         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6483         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6484         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6485         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6486         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6488         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6489         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6491         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6492         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6494         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6495         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6497         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6498         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6500         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6501         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6503         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6504         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6506         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6507         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6509         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6510         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6511         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6512         Remove conditional code.
6513         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6514         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6515         Remove conditional code.
6516         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6517         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6518         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6519         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6520         Remove conditional code.
6521         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6522         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6523         Remove conditional code.
6524         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6525         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6526         Remove conditional code.
6527         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6528         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6529         Remove conditional code.
6530         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6531         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6532         Remove conditional code.
6533         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6534         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6535         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6536         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6537         * sysdeps/unix/sysv/linux/sigaction.c
6538         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6539         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6540         * sysdeps/unix/sysv/linux/sigpending.c
6541         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6542         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6543         * sysdeps/unix/sysv/linux/sigprocmask.c
6544         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6545         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6546         * sysdeps/unix/sysv/linux/sigsuspend.c
6547         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6548         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6549         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6550         (__libc_missing_rt_sigs): Remove.
6551         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6552         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6553         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6554         Remove conditional code.
6555         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6556         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6557         return 1.
6558         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6559         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6560         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6561         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6562
6563 2012-05-14  Andreas Jaeger  <aj@suse.de>
6564
6565         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6566         it's not used in glibc.
6567         (__coshm1): Likewise.
6568         (__acosh1p): Likewise.
6569         (__sgn): Likewise.
6570
6571         * manual/string.texi (Copying and Concatenation): Add missing
6572         variable in concat example.
6573         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6574
6575 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6576
6577         [BZ #14103]
6578         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6579         __builtin_clzl with __builtin_clzll.
6580
6581 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6582
6583         [BZ #14104]
6584         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6585         libc_freeres_ptr.
6586
6587 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6588
6589         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6590         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6591         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6592         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6593
6594 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6595
6596         * NEWS: Update ia64 info.
6597
6598 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6599
6600         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6601         used as bcopy.
6602
6603 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6604
6605         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6606         * sysdeps/unix/syscalls.list (dup3): Likewise.
6607         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6608         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6609
6610 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6611
6612         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6613         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6614
6615 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6616
6617         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6618         thread pointer.
6619         (TLS_IE): Use mov/add instead of movq/addq to load thread
6620         pointer.
6621         (TLS_GD_PREFIX): New.
6622         (TLS_GD): Use it.
6623
6624 2012-05-11  David S. Miller  <davem@davemloft.net>
6625
6626         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6627         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6628         (_FPU_SETCW): Likewise.
6629
6630 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6631
6632         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6633         is 32-byte aligned.
6634
6635 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6636
6637         [BZ #11837]
6638         * iconvdata/gb18030.c: Update tables.
6639         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6640         characters specially.
6641         (BODY for TO_LOOP): Add encoding of missing ranges.
6642
6643 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6644
6645         [BZ #13673]
6646         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6647         * sysdeps/mach/hurd/dup3.c: Likewise.
6648         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6649         * sysdeps/powerpc/memmove.c:: Likewise.
6650
6651 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6652
6653         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6654         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6655
6656 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6657
6658         * elf/elf.h (R_X86_64_RELATIVE64): New.
6659         (R_X86_64_NUM): Updated.
6660         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6661         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6662         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6663         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6664         tst-quad1pie tst-quad2pie
6665         (modules-names): Add tst-quadmod1 tst-quadmod2.
6666         ($(objpfx)tst-quad1): New dependency.
6667         ($(objpfx)tst-quad2): Likewise.
6668         ($(objpfx)tst-quad1pie): Likewise.
6669         ($(objpfx)tst-quad2pie): Likewise.
6670         * sysdeps/x86_64/tst-quad1.c: New file.
6671         * sysdeps/x86_64/tst-quad1pie.c: New file.
6672         * sysdeps/x86_64/tst-quad2.c: Likewise.
6673         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6674         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6675         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6676         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6677         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6678
6679 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6680
6681         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6682         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6683         * streams/stropts.h (t_scalar_t): Define type.
6684
6685         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6686         (_PATH_PRESERVE): Set to "/var/lib".
6687         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6688
6689         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6690         instead of int.
6691
6692         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6693         if __dir_mkfile succeeded.
6694
6695         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6696         checking for _hurd_dtablesize.  Unlock it right after having
6697         finished _hurd_dtable allocation.
6698
6699 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6700
6701         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6702         * sysdeps/mach/hurd/configure: Regenerated.
6703         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6704         special-casing to...
6705         * sysdeps/gnu/configure.in: ... this new file.
6706         * sysdeps/unix/sysv/linux/configure: Regenerated.
6707         * sysdeps/gnu/configure: New generated file.
6708
6709         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6710         for Linux: use nsec instead of usec, as well as:
6711         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6712         members of type struct timespec.
6713         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6714         New macros.
6715         (struct stat64): Likewise.
6716         (_STATBUF_ST_NSEC): New macro.
6717         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6718
6719         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6720         __strtoul_internal rather than strtoul.
6721
6722 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6723
6724         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6725         and reject them.
6726
6727 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6728
6729         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6730         which preserves existing values.
6731         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6732
6733 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6734
6735         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6736         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6737         greater than FD_SETSIZE.
6738
6739 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6740
6741         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6742         allocated, call __vm_protect to finish enabling the existing space, and
6743         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6744         allocate the remainder.
6745
6746 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6747
6748         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6749         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6750
6751 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6752
6753         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6754         sysdeps/mach/hurd/readlink.c.
6755
6756         * posix/tst-sysconf.c (posix_options): Only use
6757         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6758         _POSIX_SYNCHRONIZED_IO when they are defined
6759         * sysdeps/mach/hurd/bits/posix_opt.h:
6760         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6761         (_XOPEN_REALTIME): Undefine macro.
6762         (_XOPEN_REALTIME_THREADS): Undefine macro.
6763         (_XOPEN_SHM): Undefine macro.
6764         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6765         macro to -1.
6766         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6767         macro to -1.
6768         (_POSIX_ASYNC_IO): Undefine macro.
6769         (_POSIX_PRIORITIZED_IO): Undefine macro.
6770         (_POSIX_SPIN_LOCKS): Define macro to -1.
6771
6772         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6773         SA_NODEFER, SA_RESETHAND.
6774         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6775         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6776         F_DUPFD_CLOEXEC.
6777
6778 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6779
6780         * elf/Makefile (pldd-modules): Define unconditionally.
6781
6782 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6783
6784         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6785
6786 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6787
6788         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6789         Return ENOENT when name is empty.
6790         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6791
6792 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6793
6794         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6795
6796         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6797
6798 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6799
6800         Fix mlock in all cases except non-readable pages.
6801         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6802         instead of VM_PROT_ALL as parameter to __vm_wire function.
6803
6804         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6805         (__mkdir): When path is `/', just fail with EEXIST.
6806         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6807
6808 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6809
6810         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6811         <sys/uio.h> (for writev).
6812         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6813         and <sys/param.h> (for MIN).
6814
6815 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6816
6817         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6818         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6819         if interrupted.
6820
6821 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6822
6823         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6824         Depend on against $(link-rpcuserlibs).
6825
6826 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6827
6828         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6829         (__libc_stack_end): Do not use attribute_relro.
6830         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6831         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6832         to libthread-provided value.
6833         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6834         attribute_relro.
6835
6836 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6837
6838         [BZ #3748]
6839         * bits/libc-lock.h (__libc_once_get): New macro.
6840         * sysdeps/mach/bits/libc-lock.h: Likewise.
6841         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6842         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6843         instead of using implementation details.
6844
6845         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6846         * libio/freopen.c: Likewise.
6847         * libio/freopen64.c: Likewise.
6848         * misc/syslog.c: Likewise.
6849         * nscd/connections.c: Likewise.
6850         * nscd/netgroupcache.c: Likewise.
6851         * sysdeps/posix/getcwd.c: Likewise.
6852
6853 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6854
6855         * math/w_ilogbf.c: Add #include <limits.h>.
6856
6857 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6858
6859         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6860         path instead of returning without unlocking.
6861
6862         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6863         immediate-write ioctls.
6864         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6865
6866 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6867
6868         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6869         __builtin_frame_address instead of making assumptions about the
6870         location of the return address relative to DATA.  Force early load of
6871         the return address.
6872         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6873         __builtin_frame_address.
6874
6875         dup3 for GNU Hurd.
6876         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6877         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6878         implement dup3 and do some further code clean-ups.
6879         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6880         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6881
6882 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6883
6884         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6885
6886         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6887         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6888         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6889         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6890         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6891         d->port.lock.
6892
6893         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6894         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6895         when handler == SIG_ERR, not when handler != SIG_ERR.
6896
6897 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6898
6899         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6900         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6901         definitions.
6902
6903         accept4 for GNU Hurd.
6904         * include/sys/socket.h (__libc_accept4): New prototype.
6905         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6906         to implement __libc_accept4.
6907         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6908         __libc_accept4.
6909         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6910
6911         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6912         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6913         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6914         signal-defines.sym.
6915
6916 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6917
6918         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6919
6920 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6921
6922         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6923         assertion on O_CLOEXEC flag.
6924         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6925         * hurd/intern-fd.c: Likewise.
6926         * hurd/port2fd.c: Likewise.
6927
6928 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6929
6930         [BZ #3906]
6931         * bits/in.h (IPV6_PKTINFO): Define new macro.
6932         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6933
6934 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6935
6936         [BZ #13954]
6937         [BZ #13955]
6938         [BZ #13956]
6939         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6940         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6941         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6942         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6943         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6944         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6945         * math/libm-test.inc (logb_test) : Additional logb tests.
6946
6947 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6948             Andreas Jaeger  <aj@suse.de>
6949
6950         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6951         * configure: Regenerated.
6952         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6953         * config.make.in (link-obsolete-rpc): New substituted variable.
6954         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6955         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6956         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6957         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6958         so that libc.a contains the symbols.
6959         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6960         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6961         * sunrpc/auth_none.c: Likewise.
6962         * sunrpc/auth_unix.c: Likewise.
6963         * sunrpc/authdes_prot.c: Likewise.
6964         * sunrpc/authuxprot.c: Likewise.
6965         * sunrpc/clnt_gen.c: Likewise.
6966         * sunrpc/clnt_perr.c: Likewise.
6967         * sunrpc/clnt_raw.c: Likewise.
6968         * sunrpc/clnt_simp.c: Likewise.
6969         * sunrpc/clnt_tcp.c: Likewise.
6970         * sunrpc/clnt_udp.c: Likewise.
6971         * sunrpc/clnt_unix.c: Likewise.
6972         * sunrpc/des_crypt.c: Likewise.
6973         * sunrpc/des_soft.c: Likewise.
6974         * sunrpc/get_myaddr.c: Likewise.
6975         * sunrpc/key_call.c: Likewise.
6976         * sunrpc/key_prot.c: Likewise.
6977         * sunrpc/netname.c: Likewise.
6978         * sunrpc/pm_getmaps.c: Likewise.
6979         * sunrpc/pm_getport.c: Likewise.
6980         * sunrpc/pmap_clnt.c: Likewise.
6981         * sunrpc/pmap_prot.c: Likewise.
6982         * sunrpc/pmap_prot2.c: Likewise.
6983         * sunrpc/pmap_rmt.c: Likewise.
6984         * sunrpc/publickey.c: Likewise.
6985         * sunrpc/rpc_cmsg.c: Likewise.
6986         * sunrpc/rpc_common.c: Likewise.
6987         * sunrpc/rpc_dtable.c: Likewise.
6988         * sunrpc/rpc_prot.c: Likewise.
6989         * sunrpc/rpc_thread.c: Likewise.
6990         * sunrpc/rtime.c: Likewise.
6991         * sunrpc/svc.c: Likewise.
6992         * sunrpc/svc_auth.c: Likewise.
6993         * sunrpc/svc_raw.c: Likewise.
6994         * sunrpc/svc_run.c: Likewise.
6995         * sunrpc/svc_tcp.c: Likewise.
6996         * sunrpc/svc_udp.c: Likewise.
6997         * sunrpc/svc_unix.c: Likewise.
6998         * sunrpc/svcauth_des.c: Likewise.
6999         * sunrpc/xcrypt.c: Likewise.
7000         * sunrpc/xdr.c: Likewise.
7001         * sunrpc/xdr_array.c: Likewise.
7002         * sunrpc/xdr_float.c: Likewise.
7003         * sunrpc/xdr_intXX_t.c: Likewise.
7004         * sunrpc/xdr_mem.c: Likewise.
7005         * sunrpc/xdr_rec.c: Likewise.
7006         * sunrpc/xdr_ref.c: Likewise.
7007         * sunrpc/xdr_sizeof.c: Likewise.
7008         * sunrpc/xdr_stdio.c: Likewise.
7009
7010 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7011
7012         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7013         change.  Update copyright years.
7014
7015 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7016
7017         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7018
7019 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7020             Joseph Myers  <joseph@codesourcery.com>
7021             Paul Pluzhnikov  <ppluzhnikov@google.com>
7022
7023         [BZ #14012]
7024         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7025         requiring rpcgen.
7026         [cross-compiling] (extra-libs): Likewise.
7027         [cross-compiling] (extra-libs-others): Likewise.
7028         [cross-compiling] (librpcsvc-routines): Likewise.
7029         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7030         [cross-compiling] (omit-deps): Likewise.
7031         (sunrpc-CPPFLAGS): New variable.
7032         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7033         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7034         (cross-rpcgen-objs): New variable.
7035         (extra-objs): Append $(cross-rpcgen-objs).
7036         ($(cross-rpcgen-objs)): New rule.
7037         ($(objpfx)cross-rpcgen): Likewise.
7038         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7039         comment.
7040         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7041         ($(objpfx)x%.stmp): Likewise.
7042         * sunrpc/proto.h [IS_IN_build] (_): Define.
7043         [IS_IN_build] (_libc_intl_domainname): Likewise.
7044
7045 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7046
7047         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7048         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7049         and R_X86_64_TPOFF64.
7050
7051 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7052
7053         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7054         sysdeps/unix/sysv/syscalls.list.
7055         (stime): Likewise.
7056         (utime): Likewise.
7057         * sysdeps/unix/sysv/syscalls.list: Remove file.
7058
7059 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7060
7061         [BZ #3440]
7062         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7063         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7064         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7065         (__LC_IDENTIFICATION): Make these macros useful in #if
7066         expressions, as required by C99.
7067
7068 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7069
7070         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7071         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7072         after this.
7073
7074 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         * stdlib/longlong.h: Updated from GCC.
7077
7078 2012-05-09  Andreas Jaeger  <aj@suse.de>
7079
7080         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7081         default is first entry.
7082         (run_mode): Set type.
7083         (main): Remove informal message about syslog.
7084         (options): Fix typo.
7085
7086         [BZ #14053]
7087         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7088         to asm.
7089         (lrint): Likewise.
7090         (llrintf): Likewise.
7091         (llrint): Likewise.
7092         (rint): Likewise.
7093         (rintf): Likewise.
7094         (nearbyint): Likewise.
7095         (nearbyintf): Likewise.
7096
7097 2012-05-09  Andreas Jaeger  <aj@suse.de>
7098             Pedro Alves  <palves@redhat.com>
7099
7100         * nscd/nscd.c (run_mode): Use enum.
7101         (main): Cleanup coding style issue.
7102
7103 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7104             Andreas Jaeger  <aj@suse.de>
7105
7106         * nscd/nscd.c (go_background): Replaced with...
7107         (run_mode): ... this.
7108         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7109         (options): Add -F --foreground.
7110         (main): Implement it.
7111         (parse_opt): Parse it.
7112
7113 2012-05-09  Andreas Jaeger  <aj@suse.de>
7114
7115         [BZ #14083]
7116         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7117         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7118         -Wconversion warning.
7119         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7120         Likewise.
7121
7122 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7123
7124         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7125         == 0.
7126         (LC_ALL): Use macro-int-constant.
7127         (LC_COLLATE): Likewise.
7128         (LC_CTYPE): Likewise.
7129         (LC_MESSAGES): Likewise.
7130         (LC_MONETARY): Likewise.
7131         (LC_NUMERIC): Likewise.
7132         (LC_TIME): Likewise.
7133         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7134         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7135         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7136         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7137         Specify type.
7138         [C99-based standards] (float_t): Expect type.
7139         [C99-based standards] (double_t): Expect type.
7140         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7141         type.
7142         [C99-based standards] (HUGE_VALL): Likewise.
7143         [C99-based standards] (INFINITY): Likewise.
7144         [C99-based standards] (NAN): Likewise.
7145         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7146         [C99-based standards] (FP_NAN): Likewise.
7147         [C99-based standards] (FP_NORMAL): Likewise.
7148         [C99-based standards] (FP_SUBNORMAL): Likewise.
7149         [C99-based standards] (FP_ZERO): Likewise.
7150         [C99-based standards] (FP_FAST_FMA): Use
7151         optional-macro-int-constant.  Specify type.  Require == 1.
7152         [C99-based standards] (FP_FAST_FMAF): Likewise.
7153         [C99-based standards] (FP_FAST_FMAL): Likewise.
7154         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7155         [C99-based standards] (FP_ILOGBNAN): Likewise.
7156         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7157         Specify type.
7158         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7159         [C99-based standards] (math_errhandling): Specify type.
7160         [ISO99 || ISO11] (signgam): Do not allow.
7161         [non-C99-based standards] (copysignf): Do not allow.
7162         [non-C99-based standards] (exp2f): Likewise.
7163         [non-C99-based standards] (log2f): Likewise.
7164         [non-C99-based standards] (modff): Allow.
7165         [non-C99-based standards] (erff): Do not allow.
7166         [non-C99-based standards] (erfcf): Likewise.
7167         [non-C99-based standards] (gammaf): Likewise.
7168         [non-C99-based standards] (hypotf): Likewise.
7169         [non-C99-based standards] (j0f): Likewise.
7170         [non-C99-based standards] (j1f): Likewise.
7171         [non-C99-based standards] (jnf): Likewise.
7172         [non-C99-based standards] (lgammaf): Likewise.
7173         [non-C99-based standards] (tgammaf): Likewise.
7174         [non-C99-based standards] (y0f): Likewise.
7175         [non-C99-based standards] (y1f): Likewise.
7176         [non-C99-based standards] (ynf): Likewise.
7177         [non-C99-based standards] (isnanf): Likewise.
7178         [non-C99-based standards] (acoshf): Likewise.
7179         [non-C99-based standards] (asinhf): Likewise.
7180         [non-C99-based standards] (atanhf): Likewise.
7181         [non-C99-based standards] (cbrtf): Likewise.
7182         [non-C99-based standards] (expm1f): Likewise.
7183         [non-C99-based standards] (ilogbf): Likewise.
7184         [non-C99-based standards] (log1pf): Likewise.
7185         [non-C99-based standards] (logbf): Likewise.
7186         [non-C99-based standards] (nextafterf): Likewise.
7187         [non-C99-based standards] (remainderf): Likewise.
7188         [non-C99-based standards] (rintf): Likewise.
7189         [non-C99-based standards] (scalbf): Likewise.
7190         [non-C99-based standards] (copysignl): Likewise.
7191         [non-C99-based standards] (exp2l): Likewise.
7192         [non-C99-based standards] (log2l): Likewise.
7193         [non-C99-based standards] (modfl): Allow.
7194         [non-C99-based standards] (erfl): Do not allow.
7195         [non-C99-based standards] (erfcl): Likewise.
7196         [non-C99-based standards] (gammal): Likewise.
7197         [non-C99-based standards] (hypotl): Likewise.
7198         [non-C99-based standards] (j0l): Likewise.
7199         [non-C99-based standards] (j1l): Likewise.
7200         [non-C99-based standards] (jnl): Likewise.
7201         [non-C99-based standards] (lgammal): Likewise.
7202         [non-C99-based standards] (tgammal): Likewise.
7203         [non-C99-based standards] (y0l): Likewise.
7204         [non-C99-based standards] (y1l): Likewise.
7205         [non-C99-based standards] (ynl): Likewise.
7206         [non-C99-based standards] (isnanl): Likewise.
7207         [non-C99-based standards] (acoshl): Likewise.
7208         [non-C99-based standards] (asinhl): Likewise.
7209         [non-C99-based standards] (atanhl): Likewise.
7210         [non-C99-based standards] (cbrtl): Likewise.
7211         [non-C99-based standards] (expm1l): Likewise.
7212         [non-C99-based standards] (ilogbl): Likewise.
7213         [non-C99-based standards] (log1pl): Likewise.
7214         [non-C99-based standards] (logbl): Likewise.
7215         [non-C99-based standards] (nextafterl): Likewise.
7216         [non-C99-based standards] (remainderl): Likewise.
7217         [non-C99-based standards] (rintl): Likewise.
7218         [non-C99-based standards] (scalbl): Likewise.
7219         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7220         [non-C99-based standards] (FP_*): Do not allow.
7221         [C99-based standards] (FP_*): Change to
7222         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7223         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7224         allow.
7225         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7226         (SIG_ERR): Likewise.
7227         [X/Open-based standards] (SIG_HOLD): Likewise.
7228         (SIG_IGN): Likewise.
7229         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7230         positive value.
7231         (SIGFPE): Likewise.
7232         (SIGILL): Likewise.
7233         (SIGINT): Likewise.
7234         (SIGSEGV): Likewise.
7235         (SIGTER): Likewise.
7236         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7237         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7238         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7239         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7240         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7241         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7242         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7243         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7244         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7245         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7246         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7247         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7248         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7249         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7250         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7251         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7252         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7253         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7254         [X/Open-based standards] (SIGTRAP): Likewise.
7255         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7256         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7257         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7258         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7259         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7260         allow.
7261
7262 2012-05-08  Ian Wienand  <ianw@vmware.com>
7263
7264         [BZ #14080]
7265         * time/tzset.c (__tzset_parse_tz): Update default rules for
7266         daylight time changes in the Energy Policy Act of 2005.
7267
7268 2012-05-09  Andreas Jaeger  <aj@suse.de>
7269
7270         [BZ #13983]
7271         * elf/ldconfig.c (parse_conf): Change string to make clear that
7272         ldconfig only issued a warning if ld.so.conf does not exist.
7273
7274 2012-05-08  David S. Miller  <davem@davemloft.net>
7275
7276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7277         movxtod instead of popping the value on the stack.
7278
7279         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7280
7281 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7282
7283         * config.h.in: Add HAVE_ARM_PCS_VFP.
7284
7285 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7286
7287         [BZ #13979]
7288         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7289         checking but the checks are disabled for any reason.
7290
7291 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7292
7293         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7294         and ELF64_R_TYPE with ELFW(R_TYPE).
7295
7296 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7297
7298         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7299         (ulimit): Likewise.
7300
7301         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7302         (settimeofday): Likewise.
7303
7304 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7305
7306         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7307         a struct th_u2 inside the union, and move tu_block/tu_code into
7308         a new th_u3 union of tu_block/tu_code inside of that.  Move
7309         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7310         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7311         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7312         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7313         (th_stuff): Change to th_u1.tu_stuff.
7314         (th_data): Define.
7315         (th_msg): Change to th_u1.th_u2.tu_data.
7316
7317 2012-05-07  David S. Miller  <davem@davemloft.net>
7318
7319         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7320
7321         [BZ #14074]
7322         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7323         (SETUP_PIC_REG): Use it.
7324         (SETUP_PIC_REG_LEAF): Use it.
7325
7326 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7327
7328         [BZ #13885]
7329         [BZ #13923]
7330         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7331         USE_AS_EXPM1L.
7332         (EXPL_FINITE): Likewise.
7333         (FLDLOG): Likewise.
7334         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7335         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7336         e_expl.S.
7337         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7338         USE_AS_EXPM1L.
7339         (EXPL_FINITE): Likewise.
7340         (FLDLOG): Likewise.
7341         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7342         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7343         e_expl.S.
7344         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7345         test of -max_value argument for long double.
7346         * sysdeps/i386/fpu/libm-test-ulps: Update.
7347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7348
7349 2012-05-06  David S. Miller  <davem@davemloft.net>
7350
7351         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7352         quad soft-float symbols whose references which are compiler
7353         generated.
7354         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7355
7356 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7357
7358         [BZ #13884]
7359         [BZ #13914]
7360         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7361         USE_AS_EXP10L.
7362         (EXPL_FINITE): Likewise.
7363         (FLDLOG): Likewise.
7364         (c0): Likewise.
7365         (c1): Likewise.
7366         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7367         Adjust comments for base varying.
7368         (__expl_finite): Change alias to EXPL_FINITE.
7369         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7370         e_expl.S.
7371         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7372         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7373         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7374         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7375         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7376         USE_AS_EXP10L.
7377         (EXPL_FINITE): Likewise.
7378         (FLDLOG): Likewise.
7379         (c0): Likewise.
7380         (c1): Likewise.
7381         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7382         Adjust comments for base varying.
7383         (__expl_finite): Change alias to EXPL_FINITE.
7384         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7385         tests for bugs.
7386         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7387
7388         [BZ #14064]
7389         * math/libm-test.inc (check_float_internal): Correct ulp
7390         calculation for subnormal expected results.
7391
7392 2012-05-06  Andreas Jaeger  <aj@suse.de>
7393
7394         * Makeconfig (+math-flags): New, set to -frounding-math.
7395         (+cflags): Add +math-flags so that all of glibc gets compiled with
7396         it.
7397
7398         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7399
7400 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7401
7402         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7403         Disable one test.
7404
7405         [BZ #13787]
7406         [BZ #13922]
7407         [BZ #14036]
7408         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7409         (__ieee754_expl): Allow for and saturate large arguments.
7410         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7411         (u_threshold): Likewise.
7412         (__exp): Call __ieee754_exp before checking for overflow and
7413         underflow.
7414         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7415         (u_threshold): Likewise.
7416         (__expf): Call __ieee754_expf before checking for overflow and
7417         underflow.
7418         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7419         (u_threshold): Likewise.
7420         (__expl): Call __ieee754_expl before checking for overflow and
7421         underflow.
7422         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7423         (__ieee754_expl): Allow for and saturate large arguments.
7424         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7425         missing overflow exception on overflow.
7426         (expm1_test): Do not allow missing overflow exception on overflow.
7427
7428         * sysdeps/i386/fpu/e_expl.c: Move to ...
7429         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7430         rather than using inline asm.
7431         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7432         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7433         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7434
7435         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7436         (nice): Likewise.
7437         (poll): Likewise.
7438         (signal): Likewise.
7439         (time): Likewise.
7440         (times): Likewise.
7441
7442 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7443
7444         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7445         sysdeps/unix/common/syscalls.list.
7446         (fchmod): Likewise.
7447         (fchown): Likewise.
7448         (ftruncate): Likewise.
7449         (getrusage): Likewise.
7450         (gettimeofday): Likewise.
7451         (setpgid): Likewise.
7452         (setregid): Likewise.
7453         (setreuid): Likewise.
7454         (sigaction): Likewise.
7455         (truncate): Likewise.
7456         (vhangup): Likewise.
7457         * sysdeps/unix/common/syscalls.list: Remove file.
7458         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7459         * sysdeps/unix/sysv/linux/Implies: Likewise.
7460
7461 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7462
7463         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7464         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7465         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7466         Moved to ...
7467         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7468         Here.
7469         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7470         to ...
7471         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7472         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7473         to ...
7474         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7475         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7476         to ...
7477         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7478         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7479         to ...
7480         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7481         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7482         to ...
7483         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7484         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7485         to ...
7486         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7487         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7488         to ...
7489         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7490         Here.
7491         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7492         to ...
7493         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7494         Here.
7495         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7496         to ...
7497         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7498         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7499         Moved to ...
7500         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7501         Here.
7502         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7503         to ...
7504         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7505
7506 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7507
7508         * sysdeps/unix/common/bits/dirent.h: Remove file.
7509         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7510
7511         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7512         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7513         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7514         * sysdeps/unix/bsd/isatty.c: Likewise.
7515         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7516         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7517         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7518
7519 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7520
7521         [BZ #13563]
7522         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7523         long double comparison inaccuracies.
7524         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7526
7527 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7528
7529         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7530         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7531
7532 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7533
7534         [BZ #14049]
7535         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7536         nonzero digits before rounding a hex value.
7537         * stdlib/tst-strtod.c (tests): Add another test.
7538
7539 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7540
7541         * sysdeps/s390/fpu/libm-test-ulps: Update.
7542
7543 2012-05-03  Andreas Jaeger  <aj@suse.de>
7544
7545         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7546         does not get optimized out.
7547         (malloc_opt_barrier): New.
7548
7549 2012-05-03  Andreas Jaeger  <aj@suse.de>
7550             Roland McGrath  <roland@hack.frob.com>
7551
7552         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7553         intermediate file deletion.
7554         (generated): Add .symlist files.
7555
7556 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7557
7558         [BZ #13775]
7559         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7560         Redirect under this condition.
7561         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7562         [__USE_GNU] (__dprintf_chk): Not under this condition.
7563         [__USE_GNU] (__vdprintf_chk): Likewise.
7564         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7565         under this condition.
7566         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7567         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7568         [__USE_XOPEN2K8] (vdprintf): Likewise.
7569         [__USE_GNU] (__dprintf_chk): Not under this condition.
7570         [__USE_GNU] (__vdprintf_chk): Likewise.
7571         [__USE_GNU] (dprintf): Likewise.
7572         [__USE_GNU] (vdprintf): Likewise.
7573
7574 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7575
7576         * elf/Makefile (common-generated): Set this instead of generated for
7577         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7578         $(all-built-dso)-derived lists.
7579
7580 2012-05-03  Andreas Jaeger  <aj@suse.de>
7581
7582         * sysdeps/i386/fpu/libm-test-ulps: Update.
7583
7584         * FAQ: Removed.
7585         * FAQ.in: Likewise.
7586         * scripts/gen-FAQ.pl: Likewise.
7587         * manual/install.texi (Installation): Point to online location of
7588         FAQ.
7589         * Makefile (files-for-dist): Remove FAQ.
7590         (FAQ): Remove.
7591
7592 2012-05-02  Allan McRae  <allan@archlinux.org>
7593
7594         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7595         (LDFLAGS-reldepmod5.so): Likewise.
7596         (LDFLAGS-reldep6mod1.so): Likewise.
7597         (LDFLAGS-reldep6mod4.so): Likewise.
7598         (LDFLAGS-reldep8mod3.so): Likewise.
7599         (LDFLAGS-unload4mod1.so): Likewise.
7600         (LDFLAGS-unload4mod2.so): Likewise.
7601         (LDFLAGS-tst-initorder): Likewise.
7602         (LDFLAGS-tst-initordera2.so): Likewise.
7603         (LDFLAGS-tst-initordera3.so): Likewise.
7604         (LDFLAGS-tst-initordera4.so): Likewise.
7605         (LDFLAGS-tst-initorderb2.so): Likewise.
7606         (LDFLAGS-noload): Likewise.
7607         (LDFLAGS-next): Likewise.
7608         (LDFLAGS-order2mod1.so): Likewise.
7609         (LDFLAGS-order2mod2.so): Likewise.
7610         (LDFLAGS-tst-initorder2): Likewise.
7611         (LDFLAGS-tst-initorder2a.so): Likewise.
7612         (LDFLAGS-tst-initorder2b.so): Likewise.
7613         (LDFLAGS-tst-initorder2c.so): Likewise.
7614         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7615
7616 2012-05-02  David S. Miller  <davem@davemloft.net>
7617
7618         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7619
7620 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7621
7622         [BZ #14055]
7623         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7624
7625 2012-05-02  Andreas Jaeger  <aj@suse.de>
7626
7627         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7628         since we manipulate rounding mode.
7629         (CPPFLAGS-test-idouble.c): Likewise.
7630         (CPPFLAGS-test-ifloat.c): Likewise.
7631         (CFLAGS-test-ldouble.c): Likewise.
7632         (CFLAGS-test-double.c): Likewise.
7633         (CFLAGS-test-float.c): Likewise.
7634         (CFLAGS-test-misc.c): Likewise.
7635         (CFLAGS-test-test-fenv.c): Likewise.
7636
7637 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7638
7639         [BZ #2550]
7640         [BZ #2570]
7641         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7642         comparisons to determine direction to adjust input.
7643
7644 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7645
7646         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7647         output to the target.
7648
7649         * scripts/localplt.awk: New file.
7650         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7651         (check-localplt-CFLAGS): Variable removed.
7652         ($(all-built-dso:=.jmprel)): New static pattern rule.
7653         (generated): Add those targets.
7654         (localplt-built-dso): New variable.
7655         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7656
7657         * elf/check-localplt.c: File removed.
7658
7659         * scripts/check-execstack.awk: New file.
7660         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7661         (check-execstack-CFLAGS): Variable removed.
7662         ($(objpfx)check-execstack.h): Target removed.
7663         ($(objpfx)execstack-default): New target.
7664         (generated): Add that instead of check-execstack.h.
7665         ($(all-built-dso:=.phdr)): New static pattern rule.
7666         (generated): Add those targets.
7667         * elf/check-execstack.c: File removed.
7668
7669         * scripts/check-textrel.awk: New file.
7670         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7671         (check-textrel-CFLAGS): Variable removed.
7672         (all-built-dso): Use := to define.o
7673         ($(all-built-dso:=.dyn)): New static pattern rule.
7674         (generated): Add those targets.
7675         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7676         * config.make.in (READELF): New substituted variable.
7677         * elf/check-textrel.c: File removed.
7678
7679 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7680
7681         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7682         allow.
7683         * conform/data/ctype.h-data [C99-based standards] (isblank):
7684         Expect function.
7685         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7686         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7687         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7688         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7689         Specify type.  Require positive value.
7690         (EILSEQ): Likewise.
7691         (ERANGE): Likewise.
7692         [ISO || POSIX] (EILSEQ): Do not expect.
7693         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7694         Specify type.  Require positive value.
7695         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7696         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7697         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7698         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7699         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7700         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7701         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7702         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7703         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7704         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7705         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7706         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7707         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7708         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7709         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7710         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7711         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7712         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7713         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7714         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7715         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7716         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7717         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7718         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7719         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7720         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7721         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7722         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7723         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7724         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7725         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7726         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7727         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7728         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7729         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7730         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7731         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7732         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7733         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7734         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7735         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7736         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7737         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7738         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7739         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7740         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7741         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7742         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7743         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7748         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7749         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7750         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7753         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7754         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7755         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7756         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7757         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7758         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7759         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7760         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7761         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7762         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7763         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7764         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7765         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7766         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7767         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7768         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7769         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7770         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7771         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7772         Require >= 2.
7773         (FLT_ROUNDS): Expect as macro, not constant.
7774         (FLT_MANT_DIG): Use macro-int-constant.
7775         (DBL_MANT_DIG): Likewise.
7776         (LDBL_MANT_DIG): Likewise.
7777         (FLT_DIG): Likewise.
7778         (DBL_DIG): Likewise.
7779         (LDBL_DIG): Likewise.
7780         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7781         (DBL_MIN_EXP): Likewise.
7782         (LDBL_MIN_EXP): Likewise.
7783         (FLT_MAX_EXP): Use macro-int-constant.
7784         (DBL_MAX_EXP): Likewise.
7785         (LDBL_MAX_EXP): Likewise.
7786         (FLT_MAX_10_EXP): Likewise.
7787         (DBL_MAX_10_EXP): Likewise.
7788         (LDBL_MAX_10_EXP): Likewise.
7789         (FLT_MAX): Use macro-constant.
7790         (DBL_MAX): Likewise.
7791         (LDBL_MAX): Likewise.
7792         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7793         (DBL_EPSILON): Likewise.
7794         (LDBL_EPSILON): Likewise.
7795         (FLT_MIN): Likewise.
7796         (DBL_MIN): Likewise.
7797         (LDBL_MIN): Likewise.
7798         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7799         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7800         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7801         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7802         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7803         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7804         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7805         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7806         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7807         [ISO11] (FLT_TRUE_MIN): Likewise.
7808         [ISO11] (LDBL_TRUE_MIN): Likewise.
7809         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7810         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7811         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7812         (SCHAR_MAX): Likewise.
7813         (UCHAR_MAX): Likewise.
7814         (CHAR_MIN): Likewise.
7815         (CHAR_MAX): Likewise.
7816         (MB_LEN_MAX): Use macro-int-constant.
7817         (SHRT_MIN): Use macro-int-constant.  Specify type.
7818         (SHRT_MAX): Likewise.
7819         (USHRT_MAX): Likewise.
7820         (INT_MAX): Likewise.
7821         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7822         bound negative.
7823         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7824         bound with "U".
7825         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7826         bound with "L".
7827         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7828         bound negative.  Suffix upper bound with "L".
7829         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7830         bound with "UL".
7831         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7832         Specify type.
7833         [C99-based standards] (LLONG_MAX): Likewise.
7834         [C99-based standards] (ULLONG_MAX): Likewise.
7835         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7836         == 0.
7837         [ISO11] (max_align_t): Require type.
7838         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7839
7840         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7841         from $CFLAGS, without defining away __attribute__ calls.
7842         (checknamespace): Use $CFLAGS_namespace.
7843
7844         * conform/conformtest.pl (@keywords): Only include C99 keywords
7845         for standards based on C99 or C11.
7846
7847         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7848         Disable tests.
7849         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7850         UNIX98]: Likewise.
7851
7852         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7853         usability of symbols in #if.
7854
7855         * conform/conformtest.pl: If macro or constant types start
7856         "promoted:", expect the symbol to be of the following type
7857         promoted by the integer promotions.
7858
7859         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7860         in one place.  Also handle "macro-constant".
7861
7862         * conform/conformtest.pl: Only accept expected macro values with
7863         "==".  Parse all "macro" lines in one place.
7864         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7865
7866         * conform/conformtest.pl: Handle braced types on "constant" lines
7867         instead of handling "typed-constant".
7868         * conform/data/signal.h-data: Use "constant" instead of
7869         "typed-constant".
7870
7871         * conform/conformtest.pl: Handle "optional-" at start of lines in
7872         one place rather than duplicating several cases.  Handle each
7873         format of "macro" line with initial "optional-".
7874
7875         * conform/conformtest.pl: Only accept expected constant or
7876         optional-constant values with "==".  Parse all "constant" lines in
7877         one place.  Parse all "optional-constant" lines in one place.
7878         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7879         * conform/data/fmtmsg.h-data: Likewise.
7880         * conform/data/netinet/in.h-data: Likewise.
7881         * conform/data/tar.h-data: Likewise.
7882         * conform/data/limits.h-data: Use "==" form on "constant" and
7883         "optional-constant" lines.
7884
7885         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7886         Use -std=c99 for XOPEN2K.
7887         (@knownproblems): Remove.
7888         (newtoken): Don't check %isknown.
7889
7890         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7891         Do not expect macro.
7892         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7893         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7894         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7895         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7896         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7897         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7898         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7899         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7900         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7901         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7902         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7903         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7904         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7905         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7906         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7907         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7908         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7909         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7910         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7911         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7912         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7913         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7914         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7915         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7916         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7917         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7918         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7919         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7920         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7921         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7922         [XPG3] (acosh): Likewise.
7923         [XPG3] (asinh): Likewise.
7924         [XPG3] (atanh): Likewise.
7925         [XPG3] (cbrt): Likewise.
7926         [XPG3] (expm1): Likewise.
7927         [XPG3] (ilogb): Likewise.
7928         [XPG3] (log1p): Likewise.
7929         [XPG3] (logb): Likewise.
7930         [XPG3] (nextafter): Likewise.
7931         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7932         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7933         [XPG3] (remainder): Likewise.
7934         [XPG3] (rint): Likewise.
7935         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7936         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7937         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7938         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7939         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7940         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7941         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7942         [UNIX98 || XOPEN2K] (scalb): Expect.
7943         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7944         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7945         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7946         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7947         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7948         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7949         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7950         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7951         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7952         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7953         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7954         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7955         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7956         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7957         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7958         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7959         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7960         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7961         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7962         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7963         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7964         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7965         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7966         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7967         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7968         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7969         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7970         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7971         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7972         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7973         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7974         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7975         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7976         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7977         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7978         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7979         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7980         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7981         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7982         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7983         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7984         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7985         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7986         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7987         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7988         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7989         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7990         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7991         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7992         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7993         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7994         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
7995         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
7996         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
7997         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
7998         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
7999         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8000         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8001         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8002         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8003         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8004         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8005         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8006         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8007         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8008         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8009         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8010         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8011         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8012         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8013         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8014         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8015         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8016         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8017         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8018         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8019         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8020         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8021         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8022         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8023         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8024         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8025         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8026         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8027         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8028         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8029         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8030         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8031         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8032         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8033         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8034         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8035         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8036         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8037         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8038         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8039         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8040         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8041         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8042         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8043         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8044         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8045         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8046         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8047         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8048         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8049         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8050         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8051         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8052         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8053         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8054         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8055         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8056         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8057         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8058         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8059         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8060         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8061         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8062         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8063         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8064         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8065         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8066         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8067         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8068         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8069         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8070         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8071         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8072         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8073         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8074         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8075         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8076         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8077         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8078         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8079         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8080
8081         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8082         _XOPEN_SOURCE_EXTENDED for XPG4.
8083
8084         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8085
8086         * Makeconfig (localtime): Remove variable.
8087         (inst_localtime-file): Likewise.
8088
8089 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8090
8091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8092         Update.
8093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8094         Update.
8095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8096         Update.
8097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8098         Update.
8099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8100         Update.
8101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8102         Update.
8103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8104         Update.
8105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8106         Update.
8107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8108         Update.
8109
8110 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8111
8112         [BZ #2550]
8113         [BZ #2570]
8114         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8115         comparisons to determine direction to adjust input.
8116         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8117         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8118         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8119         Likewise.
8120         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8121         Likewise.
8122         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8123         Likewise.
8124         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8125         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8126         Likewise.
8127         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8128         Likewise.
8129         * math/libm-test.inc (nexttoward_test): Add more tests.
8130
8131 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8132
8133         [BZ #14040]
8134         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8135         in version GLIBC_2.1, not GLIBC_2.0.
8136         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8137         Likewise.
8138
8139 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8140
8141         [BZ #13942]
8142         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8143         (1 - x) * (1 + x).
8144         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8145         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8146         * math/libm-test.inc (acos_test): Add more tests.
8147         (asin_test): Likewise.
8148         * sysdeps/i386/fpu/libm-test-ulps: Update.
8149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8150
8151         [BZ #14034]
8152         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8153         of square root.
8154         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8155         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8156         * math/libm-test.inc (acos_test_tonearest): New function.
8157         (acos_test_towardzero): Likewise.
8158         (acos_test_downward): Likewise.
8159         (acos_test_upward): Likewise.
8160         (asin_test_tonearest): Likewise.
8161         (asin_test_towardzero): Likewise.
8162         (asin_test_downward): Likewise.
8163         (asin_test_upward): Likewise.
8164         (main): Call the new functions.
8165         * sysdeps/i386/fpu/libm-test-ulps: Update.
8166         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8167
8168         [BZ #13884]
8169         [BZ #13924]
8170         * math/e_exp10.c: Include <float.h>.
8171         (__ieee754_exp10): Handle underflow here rather than multiplying
8172         large negative argument by M_LN10.
8173         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8174         of __ieee754_expf.
8175         * math/e_exp10l.c: Include <float.h>.
8176         (__ieee754_exp10l): Handle underflow here rather than multiplying
8177         large negative argument by M_LN10l.
8178         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8179         spurious overflow exception on underflow.
8180
8181 2012-04-29  Marek Polacek  <polacek@redhat.com>
8182
8183         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8184         (__fortify_function): New macro.
8185         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8186         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8187         __extern_always_inline.
8188         * libio/bits/stdio2.h: Likewise.
8189         * libio/bits/stdio.h: Likewise.
8190         * string/string.h: Likewise.
8191         * string/bits/string3.h: Likewise.
8192         * include/stdio.h: Likewise.
8193         * stdlib/bits/stdlib.h: Likewise.
8194         * stdlib/stdlib.h: Likewise.
8195         * rt/bits/mqueue2.h: Likewise.
8196         * rt/mqueue.h: Likewise.
8197         * posix/bits/unistd.h: Likewise.
8198         * posix/unistd.h: Likewise.
8199         * io/bits/poll2.h: Likewise.
8200         * io/bits/fcntl2.h: Likewise.
8201         * io/fcntl.h: Likewise.
8202         * io/sys/poll.h: Likewise.
8203         * misc/bits/syslog.h: Likewise.
8204         * misc/bits/syslog-ldbl.h: Likewise.
8205         * misc/sys/syslog.h: Likewise.
8206         * socket/bits/socket2.h: Likewise.
8207         * socket/sys/socket.h: Likewise.
8208         * debug/tst-chk1.c: Likewise.
8209         * wcsmbs/bits/wchar2.h: Likewise.
8210         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8211         * wcsmbs/wchar.h: Likewise.
8212
8213 2012-04-29  Andreas Jaeger  <aj@suse.de>
8214
8215         * Makerules (tests): Remove enable-check-abi protection.
8216         (check-abi-warn): Remove.
8217         (check-abi-%): Remove check-abi-warn usage.
8218
8219         * configure.in: Remove check-abi configure option.
8220         * configure: Regenerated.
8221         * config.make.in (enable-check-abi): Remove.
8222
8223 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8224
8225         [BZ #14033]
8226         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8227         double functions to double *_finite functions.
8228
8229         [BZ #13941]
8230         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8231         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8232         LDBL_MIN_EXP.
8233         * stdio-common/Makefile (tests): Add tst-sprintf3.
8234         * stdio-common/tst-sprintf3.c: New file.
8235
8236         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8237         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8238
8239 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8240
8241         * conform/conformtest.pl: Remove duplicate typed-constant
8242         handling.
8243
8244 2012-04-28  David S. Miller  <davem@davemloft.net>
8245
8246         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8247         (check-abi-%): Remove AWK script prerequisite and explicit
8248         abilist directory.
8249         (check-abi): Rewrite to just diff the symlist with the abilist.
8250         (config-tls, config-abi-config): Delete, no longer used.
8251         (update-abi-%): Remove AWK script and explicit abilist directory.
8252         (update-abi): Rewrite to simply compare and conditionally copy the
8253         symlist and the sysdep abilist file.  Remove update-abi-config
8254         checks.
8255         * abilist/ld.abilist: Remove.
8256         * abilist/libBrokenLocale.abilist: Remove.
8257         * abilist/libanl.abilist: Remove.
8258         * abilist/libcrypt.abilist: Remove.
8259         * abilist/libdl.abilist: Remove.
8260         * abilist/librt.abilist: Remove.
8261         * abilist/libthread_db.abilist: Remove.
8262         * abilist/libutil.abilist: Remove.
8263         * scripts/extract-abilist.awk: Remove.
8264         * scripts/merge-abilist.awk: Remove.
8265         * sysdeps/generic/libcidn.abilist: New file.
8266         * sysdeps/generic/libnss_compat.abilist: New file.
8267         * sysdeps/generic/libnss_db.abilist: New file.
8268         * sysdeps/generic/libnss_dns.abilist: New file.
8269         * sysdeps/generic/libnss_files.abilist: New file.
8270         * sysdeps/generic/libnss_hesiod.abilist: New file.
8271         * sysdeps/generic/libnss_nis.abilist: New file.
8272         * sysdeps/generic/libnss_nisplus.abilist: New file.
8273         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8274         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8275         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8276         file.
8277         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8278         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8279         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8280         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8281         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8282         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8283         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8284         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8285         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8286         file.
8287         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8288         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8289         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8290         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8291         file.
8292         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8293         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8294         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8295         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8296         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8297         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8298         file.
8299         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8300         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8301         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8302         file.
8303         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8304         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8305         New file.
8306         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8307         New file.
8308         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8309         New file.
8310         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8311         New file.
8312         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8313         New file.
8314         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8315         New file.
8316         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8317         New file.
8318         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8319         New file.
8320         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8321         New file.
8322         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8323         New file.
8324         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8325         New file.
8326         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8327         New file.
8328         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8329         New file.
8330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8331         file.
8332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8333         New file.
8334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8335         New file.
8336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8337         file.
8338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8339         New file.
8340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8341         New file.
8342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8343         file.
8344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8345         New file.
8346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8347         New file.
8348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8349         New file.
8350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8351         New file.
8352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8353         New file.
8354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8355         New file.
8356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8357         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8358         file.
8359         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8360         New file.
8361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8362         file.
8363         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8364         file.
8365         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8366         file.
8367         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8368         file.
8369         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8370         file.
8371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8372         New file.
8373         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8374         file.
8375         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8376         file.
8377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8378         New file.
8379         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8380         file.
8381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8382         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8383         file.
8384         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8385         New file.
8386         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8387         file.
8388         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8389         file.
8390         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8391         file.
8392         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8393         file.
8394         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8395         file.
8396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8397         New file.
8398         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8399         file.
8400         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8401         file.
8402         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8403         New file.
8404         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8405         file.
8406         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8407         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8408         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8409         file.
8410         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8411         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8412         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8413         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8414         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8415         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8416         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8417         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8418         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8419         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8420         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8421         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8422         file.
8423         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8424         New file.
8425         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8426         file.
8427         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8428         file.
8429         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8430         file.
8431         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8432         file.
8433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8434         file.
8435         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8436         New file.
8437         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8438         New file.
8439         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8440         file.
8441         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8442         New file.
8443         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8444         file.
8445         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8446         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8447         file.
8448         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8449         New file.
8450         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8451         file.
8452         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8453         file.
8454         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8455         file.
8456         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8457         file.
8458         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8459         file.
8460         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8461         New file.
8462         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8463         New file.
8464         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8465         file.
8466         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8467         New file.
8468         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8469         file.
8470
8471 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8472
8473         * conform/conformtest.pl: Fix typo in handling typed-constant from
8474         allow-header.
8475
8476 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8477
8478         * README: Cut down references to pre-2.6 Linux kernels and
8479         Linuxthreads.  Update lists of configurations in libc and ports
8480         and sort alphabetically.  Say "or newer" with Linux kernel version
8481         requirements.
8482
8483         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8484
8485 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8486
8487         [BZ #887]
8488         * math/libm-test.inc (logb_test_downward): New test to expose
8489         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8490         rounding mode.
8491
8492 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8493
8494         [BZ #14027]
8495         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8496         to be done.
8497         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8498         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8499
8500 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8501
8502         * sysdeps/unix/i386/brk.S: Remove file.
8503         * sysdeps/unix/i386/dl-brk.S: Likewise.
8504         * sysdeps/unix/i386/pipe.S: Likewise.
8505         * sysdeps/unix/i386/sigreturn.S: Likewise.
8506         * sysdeps/unix/i386/syscall.S: Likewise.
8507         * sysdeps/unix/i386/vfork.S: Likewise.
8508         * sysdeps/unix/i386/wait.S: Likewise.
8509
8510         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8511         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8512
8513         * configure.in (arm*-none*): Do not allow without
8514         --enable-hacker-mode.
8515         (netbsd*): Remove case setting base_os.
8516         (386bsd*): Likewise.
8517         (freebsd*): Likewise.
8518         (bsdi*): Likewise.
8519         (osf*): Likewise.
8520         (sunos*): Likewise.
8521         (ultrix*): Likewise.
8522         (newsos*): Likewise.
8523         (dynix*): Likewise.
8524         (*bsd*): Likewise.
8525         (sysv*): Likewise.
8526         (isc*): Likewise.
8527         (esix*): Likewise.
8528         (sco*): Likewise.
8529         (minix*): Likewise.
8530         (irix4*): Likewise.
8531         (irix6*): Likewise.
8532         (solaris[2-9]*): Likewise.
8533         (none): Likewise.
8534         * configure: Regenerated.
8535
8536 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8537
8538         [BZ #11521]
8539         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8540         overflow or cancellation in calculating denominator.
8541         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8542         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8543         down expression to avoid unexpected rounding in newer GCCs.
8544         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8545
8546 2012-04-26  David S. Miller  <davem@davemloft.net>
8547
8548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8549         long-double compat symbols.
8550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8557         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8558         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8559         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8560         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8561         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8562         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8563
8564 2012-04-25  David S. Miller  <davem@davemloft.net>
8565
8566         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8567         HWCAP_* values only after the memory barriers have been defined.
8568         (atomic_full_barrier): Define.
8569         (atomic_read_barrier): Define.
8570         (atomic_write_barrier): Define.
8571
8572 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8573
8574         * shlib-versions: Add libgcc_s version information.
8575         * sysdeps/generic/libgcc_s.h: Remove.
8576         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8577         libgcc_s.h.
8578         * sysdeps/gnu/unwind-resume.c: Likewise.
8579         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8580
8581 2012-04-25  David S. Miller  <davem@davemloft.net>
8582
8583         * sysdeps/unix/sparc/brk.S: Delete.
8584         * sysdeps/unix/sparc/dl-brk.S: Delete.
8585         * sysdeps/unix/sparc/pipe.S: Delete.
8586         * sysdeps/unix/sparc/sysdep.S: Delete.
8587         * sysdeps/unix/sparc/sysdep.h: Delete.
8588         * sysdeps/unix/sparc/vfork.S: Delete.
8589         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8590         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8591         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8592         ret_ERRVAL, r0, r1, MOVE): Define.
8593         (JUMPTARGET): Remove.
8594         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8595         sysdeps/unix/sparc/sysdep.h
8596         (ENTRY, END): Remove.
8597         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8598
8599 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8600
8601         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8602         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8603         -DIS_IN_build.
8604
8605         * timezone/README: Update upstream location and email address for
8606         tzcode and tzdata.
8607         * timezone/zdump.c: Update from tzcode 2012b.
8608         * timezone/zic.c: Likewise.
8609
8610         * configure.in (libc_cv_as_needed): Remove test.
8611         * configure: Regenerated.
8612         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8613         conditional definition.
8614         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8615         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8616         * config.make.in (have-as-needed): Remove variable.
8617
8618 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8619             Paul Pluzhnikov  <ppluzhnikov@google.com>
8620
8621         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8622         strings correctly.
8623
8624 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8625
8626         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8627         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8628         * sysdeps/sh/strlen.S: Likewise.
8629
8630 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8631
8632         * sysdeps/unix/fork.S: Remove file.
8633         * sysdeps/unix/i386/fork.S: Likewise.
8634         * sysdeps/unix/sparc/fork.S: Likewise.
8635
8636         * sysdeps/unix/system.c: Remove file.
8637         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8638
8639         * sysdeps/unix/getegid.S: Remove file.
8640         * sysdeps/unix/geteuid.S: Likewise.
8641
8642 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8643
8644         * scripts/check-localplt.awk: New file.
8645         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8646         of diff.
8647         * scripts/data/localplt-generic.data: Add a comment.
8648
8649         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8650         NODE when __dir_mkfile failed.
8651         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8652         Reported by Ludovic Courtès <ludo@gnu.org>.
8653
8654 2012-04-24  Andreas Jaeger  <aj@suse.de>
8655
8656         * Makerules (common-clean): Also remove gen-as-const-headers
8657         files.
8658
8659 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8660
8661         * Makerules (native-compile): Do not change working directory for
8662         build.  Use $(OUTPUT_OPTION) in command.
8663         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8664
8665 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8666
8667         [BZ #13886]
8668         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8669         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8670         * math/libm-test.inc (floor_test): Add more tests.
8671         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8672
8673 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8674
8675         * sysdeps/unix/getdents.c: Remove file.
8676         * sysdeps/unix/sysv/getdents.c: Likewise.
8677         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8678
8679         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8680         sysdeps/unix/mman/syscalls.list.
8681         (mmap): Likewise.
8682         (mprotect): Likewise.
8683         (msync): Likewise.
8684         (munmap): Likewise.
8685         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8686         * sysdeps/unix/mman/syscalls.list: Remove.
8687         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8688
8689         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8690         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8691         * configure: Regenerated.
8692         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8693         $(libgcc_s_suffix).
8694         * config.make.in (libgcc_s_suffix): Remove variable.
8695
8696 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8697
8698         * sysdeps/unix/sysv/gethostname.c: Move to ...
8699         * sysdeps/posix/gethostname.c: ... here.
8700
8701         * sysdeps/unix/execve.S: Remove file.
8702
8703         * sysdeps/unix/_exit.S: Remove file.
8704
8705 2012-04-23  Andreas Jaeger  <aj@suse.de>
8706
8707         [BZ #13739]
8708         * manual/Makefile: Remove make dist support, there's no
8709         need for a stand-alone documentation tar ball.
8710         (TEXI2DVI): Define always, it's not in Makeconfig.
8711         (dist): Removed.
8712         (tar-it): Removed.
8713         (edition): Removed.
8714         (glibc-doc-$(edition).tar): Removed
8715         (%.Z): Removed.
8716         (%.gz): Removed.
8717         (%.uu): Removed.
8718         (ETAGS): Remove, it's in Makeconfig.
8719         (move-if-change): Remove, it's in Makeconfig.
8720
8721 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8722
8723         [BZ #13970]
8724         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8725         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8726         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8727         (strtod_l, strtof_l, strtold_l): Remove __wur.
8728         It is not necessarily an error to ignore strtol's return value.
8729         One can reliably look at the stored endptr to decide whether
8730         the number had valid syntax.
8731
8732 2012-04-21  Andreas Jaeger  <aj@suse.de>
8733
8734         [BZ #13739]
8735         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8736
8737 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8738
8739         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8740         * sysdeps/unix/sysv/Versions: Remove file.
8741
8742 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8743
8744         [BZ #13927]
8745         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8746
8747 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8748
8749         [BZ #7064]
8750         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8751         version from __vm86.
8752
8753 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8754
8755         * sysdeps/unix/common/lxstat.c: Remove file.
8756         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8757
8758         * sysdeps/unix/sysv/Makefile: Remove file.
8759
8760         * sysdeps/unix/sysv/direct.h: Remove file.
8761
8762         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8763         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8764         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8765         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8766         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8767         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8768         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8769
8770         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8771
8772         * sysdeps/unix/xmknod.c: Remove file.
8773         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8774
8775         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8776
8777         * sysdeps/unix/sysv/i386/time.S: Remove file.
8778
8779         * sysdeps/unix/fxstat.c: Remove file.
8780         * sysdeps/unix/xstat.c: Likewise.
8781         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8782
8783         * sysdeps/unix/sysv/sigaction.c: Remove file.
8784
8785         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8786         (sysdep_headers): Remove variable.
8787         [termio.h not in sysdep_headers] (generated): Likewise.
8788         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8789         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8790         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8791         * sysdeps/unix/sysv/tcflow.c: Likewise.
8792         * sysdeps/unix/sysv/tcflush.c: Likewise.
8793         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8794         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8795         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8796         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8797         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8798
8799         * sysdeps/unix/siglist.c: Remove file.
8800
8801         * sysdeps/unix/getppid.S: Remove file.
8802
8803         * sysdeps/unix/mkdir.c: Remove file.
8804         * sysdeps/unix/rmdir.c: Likewise.
8805
8806 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8807
8808         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8809         ERR_MAX value.
8810         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8811         errlist-compat value.
8812
8813 2012-04-18  David S. Miller  <davem@davemloft.net>
8814
8815         * sysdeps/generic/memcopy.h (reg_char): Delete.
8816         * debug/strcat_chk.c: Use char, not reg_char.
8817         * debug/strcpy_chk.c: Likewise.
8818         * debug/strncat_chk.c: Likewise.
8819         * debug/strncpy_chk.c: Likewise.
8820         * string/memchr.c: Likewise.
8821         * string/memrchr.c: Likewise.
8822         * string/rawmemchr.c: Likewise.
8823         * string/strcat.c: Likewise.
8824         * string/strchr.c: Likewise.
8825         * string/strchrnul.c: Likewise.
8826         * string/strcmp.c: Likewise.
8827         * string/strcpy.c: Likewise.
8828         * string/strncat.c: Likewise.
8829         * string/strncmp.c: Likewise.
8830         * string/strncpy.c: Likewise.
8831
8832 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8833
8834         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8835         __builtin_memcopy is called when src and dest ranges are known to not
8836         overlap.
8837
8838 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8839
8840         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8841         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8842         fwd_align_merge macro call.
8843         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8844         bwd_align_merge macro call.
8845         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8846
8847 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8848
8849         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8850         bwd_align_merge macros.
8851         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8852         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8853         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8854
8855 2012-04-18  David S. Miller  <davem@davemloft.net>
8856
8857         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8858
8859 2012-04-18  Andreas Jaeger  <aj@suse.de>
8860
8861         [BZ# 6794]
8862         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8863         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8864         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8865
8866         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8867         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8868         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8869
8870         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8871         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8872         Adjust for changed ldbl-128 files.
8873
8874         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8875         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8876         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8877
8878 2012-04-17  David S. Miller  <davem@davemloft.net>
8879
8880         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8881
8882 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8883
8884         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8885         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8886         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8887         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8888         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8889         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8890
8891 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8892
8893         [BZ #6794]
8894         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8895         * math/libm-test.inc: Add ilogb errno and exception tests.
8896         * math/w_ilogb.c: New file: ilogb wrapper.
8897         * math/w_ilogbf.c: New file: ilogbf wrapper.
8898         * math/w_ilogbl.c: New file: ilogbl wrapper.
8899         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8900         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8901         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8902         exception being thrown with 0.0 as argument.
8903         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8904         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8905         exception being thrown with 0.0 as argument.
8906         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8907         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8908         exception being thrown with 0.0 as argument.
8909         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8910         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8911         exception being thrown with 0.0 as argument.
8912         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8913         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8914         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8915         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8916         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8917         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8918         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8919         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8920         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8921
8922 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8923
8924         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8925         with altivec.
8926
8927 2012-04-16  Marek Polacek  <polacek@redhat.com>
8928
8929         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8930
8931 2012-04-16  Marek Polacek  <polacek@redhat.com>
8932
8933         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8934         operands of fdivp instruction.
8935
8936 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8937
8938         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8939         * elf/tst-auditmod3b.c: Likewise.
8940         * elf/tst-auditmod4b.c: Likewise.
8941         * elf/tst-auditmod5b.c: Likewise.
8942         * elf/tst-auditmod6b.c: Likewise.
8943         * elf/tst-auditmod6c.c: Likewise.
8944         * elf/tst-auditmod7b.c: Likewise.
8945         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8946         * sysdeps/x86_64/preconfigure.in: Likewise.
8947         * sysdeps/x86_64/preconfigure: Regenerated.
8948
8949 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8950
8951         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8952         __ILP32__.
8953
8954 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8955
8956         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8957         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8958
8959 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8960
8961         [BZ #13973]
8962         * locale/iso-639.def: Fix gl language name. Spotted by
8963         Yaron Shahrabani.
8964
8965 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8966
8967         [BZ #2074]
8968         * libio/libio.h (__io_write_fn): Update comment.
8969
8970 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8971
8972         [BZ #2074]
8973         * stdio.texi (Hook Functions): The user provided writer function
8974         is not allowed to return -1.
8975
8976 2012-04-11  David S. Miller  <davem@davemloft.net>
8977
8978         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8979
8980 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8981
8982         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8983         Add a leading slash to rtkaio.
8984
8985 2012-04-11  Jim Meyering  <meyering@redhat.com>
8986
8987         [BZ #11959]
8988         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8989         It is not necessarily an error to ignore fwrite's return
8990         value.  One can reliably use ferror to test for errors after
8991         the fact.
8992
8993 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8994
8995         * bits/types.h (__snseconds_t): New type.
8996         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
8997
8998         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
8999         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9000         (__SNSECONDS_T_TYPE): Likewise.
9001         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9002         (__SNSECONDS_T_TYPE): Likewise.
9003         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9004         (__SNSECONDS_T_TYPE): Likewise.
9005
9006 2012-04-10  Andreas Jaeger  <aj@suse.de>
9007
9008         [BZ #2636]
9009         * manual/time.texi (Processor Time): Return type of times is
9010         elapsed real time since an arbitrary point in the past.
9011         (CPU Time): Move CLK_TCK from here...
9012         (Processor Time): ...to here.  Correct description.
9013         * manual/conf.texi (Constants for Sysconf): Correct description of
9014         _SC_CLK_TCK.
9015
9016 2012-04-10  David S. Miller  <davem@davemloft.net>
9017
9018         [BZ #13967]
9019         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9020         where the is a gap between DT_REL(A) and DT_JMPREL.
9021
9022 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9023
9024         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9025         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9026         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9027
9028 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9029
9030         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9031         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9032         (dl_main): Handle --inhibit-cache.
9033         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9034         _dl_inhibit_cache.
9035         * elf/dl-load.c (_dl_map_object): Use it.
9036         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9037
9038 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9039
9040         [BZ #13872]
9041         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9042         (__ieee754_powl): Saturate large exponents rather than testing for
9043         overflow of y*log2(x).
9044         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9045         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9046         exceptions.
9047
9048         [BZ #11521]
9049         * math/s_ctan.c: Include <float.h>.
9050         (__ctan): Avoid internal overflow or cancellation in calculating
9051         denominator.
9052         * math/s_ctanf.c: Likewise.
9053         * math/s_ctanl.c: Likewise.
9054         * math/s_ctanh.c: Likewise.
9055         * math/s_ctanhf.c: Likewise.
9056         * math/s_ctanhl.c: Likewise.
9057         * math/libm-test.inc (ctan_test): Add more tests.
9058         (ctanh_test): Likewise.
9059         * sysdeps/i386/fpu/libm-test-ulps: Update.
9060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9061
9062 2012-04-09  Andreas Jaeger  <aj@suse.de>
9063
9064         [BZ #6894]
9065         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9066         is an optional BSD extension.
9067
9068         [BZ #10254]
9069         * manual/stdio.texi (Opening Streams): Document additional fopen
9070         parameters.
9071
9072 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9073
9074         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9075         %eax without telling the compiler.
9076
9077 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9078
9079         [BZ # 13963]
9080         * manual/install.texi: Use sourceware.org.
9081
9082 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9083
9084         [BZ #13873]
9085         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9086         (__ieee754_pow): Generate overflow and underflow using huge*huge
9087         and tiny*tiny rather than just returning constant infinity or zero
9088         for large exponents.
9089         * math/libm-test.inc (pow_test): Require overflow exceptions for
9090         applicable cases of large exponents.
9091
9092         [BZ #706]
9093         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9094         (__ieee754_pow): Use iterative multiplication algorithm only for
9095         integer exponents with absolute value below 1024.  Check for odd
9096         integer exponents when using algorithm for real exponents.
9097         * math/libm-test.inc (pow_test): Add more tests.
9098         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9099
9100 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9101
9102         [BZ #13705]
9103         * math/libm-test.inc (exp_test): Do not allow overflow exception
9104         on underflow test.
9105
9106 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9107
9108         [BZ #13705]
9109         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9110         instead of __kernel_standard_f.
9111
9112 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9113
9114         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9115         * sysdeps/x86_64/memset_chk.S: Likewise.
9116
9117 2012-04-08  Andreas Jaeger  <aj@suse.de>
9118
9119         [BZ #10153]
9120         * manual/startup.texi (Environment Access): Describe return value
9121         for putenv and setenv.
9122
9123         [BZ #6895]
9124         * manual/filesys.texi (Directory Entries): Add description for
9125         DT_LNK.
9126
9127         [BZ #6890]
9128         * manual/filesys.texi (Directory Entries): Clarify that it's file
9129         system not operating system in the description of DT_UNKNOWN.
9130
9131         [BZ #6578]
9132         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9133
9134 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9135
9136         [BZ #6649]
9137         * manual/llio.texi (Opening and Closing Files): Add cross
9138         reference to explain mode argument.
9139
9140 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9141
9142         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9143         * sysdeps/x86_64/memset_chk.S: Likewise.
9144
9145 2012-04-07  David S. Miller  <davem@davemloft.net>
9146
9147         * elf/elf.h (R_SPARC_WDISP10): Define.
9148         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9149         R_SPARC_SIZE32.
9150         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9151         R_SPARC_SIZE64 and R_SPARC_H34.
9152
9153 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9154
9155         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9156         conditions and remove no longer applicable assertion.
9157
9158 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9159
9160         * bits/byteswap.h: Include <features.h>.
9161         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9162         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9163
9164 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9165
9166         * bits/byteswap.h (__bswap_16): Removed.
9167         Include <bits/byteswap-16.h> to get __bswap_16.
9168         * sysdeps/i386/bits/byteswap.h: Likewise.
9169         * sysdeps/s390/bits/byteswap.h: Likewise.
9170         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9171         * bits/byteswap-16.h: New file.
9172         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9173         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9174         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9175         * string/Makefile (headers): Add bits/byteswap-16.h.
9176
9177 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9178
9179         [BZ #13895]
9180         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9181         extra indirection.
9182         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9183         * nss/tst-nss-static.c: New.
9184
9185 2012-04-06  Robert Millan  <rmh@gnu.org>
9186
9187         [BZ #6486]
9188         * manual/llio.texi (File Position Primitive): lseek
9189         refers to WHENCE when it really means OFFSET.
9190
9191 2012-04-06  Andreas Jaeger  <aj@suse.de>
9192
9193         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9194         strncmp declarations.
9195
9196         * abilist/libc.abilist: Add __poll and __ppoll.
9197
9198 2012-04-05  David S. Miller  <davem@davemloft.net>
9199
9200         * scripts/check-local-headers.sh: Accept a host triplet in the
9201         path matched by the exclude regexp.
9202
9203         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9204         definition.
9205         * sysdeps/powerpc/powerpc32/dl-machine.h
9206         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9207         * sysdeps/s390/s390-32/dl-machine.h
9208         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9209         * sysdeps/sparc/sparc32/dl-machine.h
9210         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9211         * sysdeps/sparc/sparc64/dl-machine.h
9212         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9213
9214         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9215         lazy binding.
9216         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9217         undefined symbol errors.
9218
9219         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9220         DT_NEEDED entries.
9221
9222 2012-04-05  Michael Matz  <matz@suse.de>
9223
9224         [BZ #13592]
9225         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9226
9227 2012-04-05  Andreas Jaeger  <aj@suse.de>
9228
9229         [BZ #13908]
9230         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9231         comment.
9232
9233 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9234
9235         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9236         which ROUND is no valid rounding mode.
9237
9238 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9239
9240         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9241         read again.
9242         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9243
9244 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9245
9246         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9247         an exception using FPU order intentionally.
9248
9249 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9250
9251         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9252         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9253         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9254         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9255
9256 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9257
9258         [BZ #12340]
9259         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9260         EINVAL when BUFLEN is too smal.
9261
9262 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9263
9264         [BZ #13553]
9265         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9266         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9267
9268 2012-04-03  Andreas Jaeger  <aj@suse.de>
9269
9270         [BZ #13938]
9271         * manual/setjmp.texi (System V contexts): Fix sentence.
9272
9273         [BZ #13926]
9274         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9275         New macro for this case.
9276         [!__GNUC__] (__bswap_64): New inline function for this case.
9277         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9278         * bits/byteswap.h: Likewise.
9279         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9280         ull, guard with __GLIBC_HAVE_LONG_LONG.
9281
9282         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9283         __GLIBC_HAVE_LONG_LONG.
9284
9285         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9286         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9287
9288 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9289
9290         [BZ #13691]
9291         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9292         inptr and inend, rather than using last_ch.
9293
9294 2012-04-02  David S. Miller  <davem@davemloft.net>
9295
9296         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9297         * stdio-common/printf-parse.h (read_int): Change return type to
9298         'int', return -1 on INT_MAX overflow.
9299         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9300         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9301         overflows INT_MAX.  Check for overflow of in-format-string precision
9302         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9303         SIZE_MAX not INT_MAX for integer overflow test.
9304         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9305         skip the construct in the format string but do not record anything.
9306         * stdio-common/bug22.c: Adjust to test both width/prevision
9307         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9308         explicitly for proper errno values.
9309
9310 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9311
9312         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9313         CHAR_MAX.
9314         * string/test-strcmp.c [! WIDE]: Likewise.
9315         * time/tst-mktime2.c: Likewise for INT_MAX.
9316         * string/test-string.h: #include <sys/param.h> for MIN.
9317
9318         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9319         * sysdeps/i386/init-first.c (init): Likewise.
9320         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9321         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9322         * sysdeps/sh/init-first.c (init): Likewise.
9323
9324 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9325
9326         * po/ru.po: Update from translation team.
9327         * po/vi.po: Likewise.
9328
9329 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9330
9331         * resolv/nss_dns/dns-host.c: Merge copyright years.
9332
9333 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9334
9335         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9336         Optimize memcpy with prefetch if
9337         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9338         src, dst pointers have unequal 16 byte alignments.
9339
9340 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9341
9342         [BZ #13928]
9343         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9344         from a CNAME entry and return the minimum ttl for the query.
9345         (gaih_getanswer_slice): Likewise.
9346
9347 2012-03-30  Jeff Law  <law@redhat.com>
9348
9349         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9350         due to long keys.
9351         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9352         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9353
9354         * resolv/nss_dns/dns-host.c: Update copyright year.
9355
9356 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9357
9358         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9359         requests to save a system call.  Fix check that all bytes are sent.
9360
9361         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9362         comments for sendmmsg.
9363
9364 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9365
9366         [BZ #13691]
9367         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9368         with only 1 character between 0x0041 and 0x01b0.
9369         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9370         * wcsmbs/tst-mbsnrtowcs.c: New file.
9371
9372 2012-03-29  David S. Miller  <davem@davemloft.net>
9373
9374         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9375         small copies by hand.
9376
9377 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9378
9379         [BZ #13761]
9380         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9381         _nss_compat_initgroups_dyn): Fall back to malloc/free
9382         for large group memberships.
9383
9384 2012-03-28  David S. Miller  <davem@davemloft.net>
9385
9386         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9387         that branches into memcpy.
9388         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9389         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9390         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9391         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9392         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9393         bits.
9394         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9395         implementation too.
9396         * sysdeps/sparc/mempcpy.S: New file.
9397
9398         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9399         the IFUNC routine in the libc case.
9400         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9401
9402         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9403         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9404         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9405         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9406         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9407         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9408         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9409         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9410
9411         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9412         loop to 256 bytes instead of 64 bytes and fix test signedness.
9413
9414         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9415         * sysdeps/sparc/sparc32/Makefile: rather than here...
9416         * sysdeps/sparc/sparc64/Makefile: and here.
9417
9418 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9419
9420         * malloc/mallocbug.c: Avoid warnings about unused variables.
9421
9422 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9423
9424         [BZ #13760]
9425         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9426         in the right place. Discard and retry query if response is
9427         larger than input buffer size.
9428
9429 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9430
9431         [BZ #369]
9432         [BZ #2678]
9433         [BZ #3866]
9434         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9435         x for large integer exponent.
9436         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9437         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9438         sign of result as needed afterwards.
9439         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9440         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9441         result for underflowing pow the same as for overflow.
9442         (__kernel_standard_l): Handle powl overflow and underflow here
9443         rather than calling __kernel_standard.
9444         * math/libm-test.inc (pow_test): Add more tests.
9445
9446         [BZ #3868]
9447         [BZ #13879]
9448         [BZ #13910]
9449         [BZ #13911]
9450         [BZ #13912]
9451         [BZ #13913]
9452         [BZ #13915]
9453         [BZ #13916]
9454         [BZ #13917]
9455         [BZ #13918]
9456         [BZ #13919]
9457         [BZ #13920]
9458         [BZ #13921]
9459         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9460         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9461         (__kernel_standard_l): New function.
9462         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9463         __kernel_standard.
9464         * math/w_acosl.c (__acosl): Likewise.
9465         * math/w_asinl.c (__asinl): Likewise.
9466         * math/w_atan2l.c (__atan2l): Likewise.
9467         * math/w_atanhl.c (__atanhl): Likewise.
9468         * math/w_coshl.c (__coshl): Likewise.
9469         * math/w_exp10l.c (__exp10l): Likewise.
9470         * math/w_exp2l.c (__exp2l): Likewise.
9471         * math/w_fmodl.c (__fmodl): Likewise.
9472         * math/w_hypotl.c (__hypotl): Likewise.
9473         * math/w_j0l.c (__j0l, __y0l): Likewise.
9474         * math/w_j1l.c (__j1l, __y1l): Likewise.
9475         * math/w_jnl.c (__jnl, __ynl): Likewise.
9476         * math/w_lgammal.c (__lgammal): Likewise.
9477         * math/w_log10l.c (__log10l): Likewise.
9478         * math/w_log2l.c (__log2l): Likewise.
9479         * math/w_logl.c (__logl): Likewise.
9480         * math/w_powl.c (__powl): Likewise.
9481         * math/w_remainderl.c (__remainderl): Likewise.
9482         * math/w_scalbl.c (sysv_scalbl): Likewise.
9483         * math/w_sinhl.c (__sinhl): Likewise.
9484         * math/w_sqrtl.c (__sqrtl): Likewise.
9485         * math/w_tgammal.c (__tgammal): Likewise.
9486         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9487         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9488         * math/libm-test.inc (acos_test): Add more tests.
9489         (acosh_test): Likewise.
9490         (asin_test): Likewise.
9491         (atanh_test): Likewise.
9492         (exp_test): Likewise.
9493         (exp10_test): Likewise.
9494         (exp2_test): Likewise.
9495         (expm1_test): Likewise.
9496         (lgamma_test): Likewise.
9497         (log_test): Likewise.
9498         (log10_test): Likewise.
9499         (log1p_test): Likewise.
9500         (log2_test): Likewise.
9501         (pow_test): Do not allow some spurious overflow exceptions.
9502         (sqrt_test): Add more tests.
9503         (tgamma_test): Likewise.
9504         (y0_test): Likewise.
9505         (y1_test): Likewise.
9506         (yn_test): Likewise.
9507
9508 2012-03-27  Anton Blanchard  <anton@samba.org>
9509
9510         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9511         MAP_HUGETLB.
9512         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9513         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9514         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9515
9516 2012-03-27  David S. Miller  <davem@davemloft.net>
9517
9518         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9519
9520         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9521         have-as-vis3 check.
9522
9523 2012-03-27  Andreas Jaeger  <aj@suse.de>
9524
9525         * sysdeps/x86_64/elf/configure.in: Moved to ...
9526         * sysdeps/x86_64/configure.in: ... here.
9527         * sysdeps/x86_64/elf/start.S: Moved to ...
9528         * sysdeps/x86_64/start.S: ... here.
9529         * sysdeps/x86_64/elf/configure: Delete.
9530
9531         * sysdeps/x86_64/configure.in: Merge contents from
9532         sysdeps/i386/configure.in (without i686 check).
9533
9534         * sysdeps/i386/elf/Versions: Merge into ...
9535         * sysdeps/i386/Versions: ... this.
9536         * sysdeps/i386/elf/Versions: Delete file.
9537         * sysdeps/i386/elf/start.S: Moved to ...
9538         * sysdeps/i386/start.S: ...here.
9539         * sysdeps/i386/elf/configure.in: Merge into...
9540         * sysdeps/i386/configure.in: ...here.
9541         * sysdeps/i386/elf/configure.in: Delete file.
9542         * sysdeps/i386/elf/configure: Delete file.
9543
9544         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9545         * debug/backtracesyms.c: ... here.
9546         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9547         * debug/backtracesymsfd.c: ... here.
9548         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9549         * sysdeps/generic/ifunc-sel.h: ... here.
9550
9551         * sysdeps/unix/i386/start.c: Delete file.
9552         * sysdeps/unix/sparc/start.c: Delete file.
9553         * sysdeps/unix/start.c: Delete file.
9554
9555         * sysdeps/sh/elf/configure.in: Moved to ...
9556         * sysdeps/sh/configure.in: ... here.
9557         * sysdeps/sh/elf/start.S: Moved to ...
9558         * sysdeps/sh/start.S: ... here.
9559         * sysdeps/sh/elf/configure: Delete file.
9560
9561         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9562         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9563         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9564         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9565         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9566         * sysdeps/powerpc/powerpc64/start.S: here.
9567         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9568         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9569         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9570         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9571         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9572
9573         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9574         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9575         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9576         * sysdeps/powerpc/powerpc32/start.S: ... here.
9577         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9578         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9579         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9580
9581         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9582         * sysdeps/powerpc/ifunc-sel.h: ... here.
9583         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9584         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9585
9586         * sysdeps/sparc/elf/configure.in: Moved to ...
9587         * sysdeps/sparc/configure.in: ... here.
9588         * sysdeps/sparc/elf/configure: Delete file.
9589         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9590         * sysdeps/sparc/sparc32/start.S: ... here.
9591         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9592         * sysdeps/sparc/sparc64/start.S: ... here.
9593         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9594         * sysdeps/sparc/sparc32/Makefile: ... this.
9595         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9596         * sysdeps/sparc/sparc64/Makefile: ... this.
9597
9598         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9599         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9600         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9601         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9602         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9603         * sysdeps/s390/s390-32/setjmp.S: ... here.
9604         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9605         * sysdeps/s390/s390-32/configure.in: ... here.
9606         * sysdeps/s390/s390-32/elf/configure: Delete file.
9607         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9608         * sysdeps/s390/s390-32/start.S: ... here.
9609
9610         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9611         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9612         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9613         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9614         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9615         * sysdeps/s390/s390-64/setjmp.S: ... here.
9616         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9617         * sysdeps/s390/s390-64/configure.in: ... here
9618         * sysdeps/s390/s390-64/elf/configure: Delete file.
9619         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9620         * sysdeps/s390/s390-64/start.S: ... here.
9621         * sysdeps/s390/s390-64/elf/configure: Delete.
9622
9623         * configure.in: Remove support for elf directories in sysdeps.
9624
9625         * configure: Regenerated.
9626         * sysdeps/i386/configure: Regenerated.
9627         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9628         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9629         * sysdeps/s390/s390-32/configure: Regenerated.
9630         * sysdeps/s390/s390-64/configure: Regenerated.
9631         * sysdeps/sh/configure: Regenerated.
9632         * sysdeps/sparc/configure: Regenerated.
9633         * sysdeps/x86_64/configure: Regenerated.
9634
9635 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9636
9637         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9638
9639         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9640         denormal result into account.
9641
9642 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9643
9644         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9645         Reported by Allan McRae <allan@archlinux.org>.
9646
9647 2012-03-23  Jeff Law  <law@redhat.com>
9648
9649         * nss/getnssent.c (__nss_getent): Fix typo.
9650
9651 2012-03-23  David S. Miller  <davem@davemloft.net>
9652
9653         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9654
9655 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9656
9657         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9658         to pad to uint64_t for each field.
9659         (dl_tls_index): Replace unsigned long with uint64_t.
9660
9661 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9662         Paul Pluzhnikov  <ppluzhnikov@google.com>
9663
9664         [BZ #6528]
9665         * grp/Makefile (otherlibs): Don't set it.
9666         * inet/Makefile (otherlibs): Likewise.
9667         * login/Makefile (otherlibs): Likewise.
9668         * nscd/Makefile (otherlibs): Likewise.
9669         * posix/Makefile (otherlibs): Likewise.
9670         * pwd/Makefile (otherlibs): Likewise.
9671         * rt/Makefile (otherlibs): Likewise.
9672         * sunrpc/Makefile (otherlibs): Likewise.
9673         * nss/Makefile (otherlibs): Likewise.
9674         Add libnss_files to routines and static-only-routines.
9675         ($(objpfx)getent): Remove rule.
9676         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9677         static-only-routines.
9678
9679 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9680
9681         [BZ #13892]
9682         * math/s_cexp.c: Include <float.h>.
9683         (__cexp): Handle exp result overflowing not necessarily
9684         overflowing both real and imaginary parts of result.
9685         * math/s_cexpf.c: Likewise.
9686         * math/s_cexpl.c: Likewise.
9687         * math/libm-test.inc (cexp_test): Add more tests.
9688         * sysdeps/i386/fpu/libm-test-ulps: Update.
9689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9690
9691 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9692
9693         * include/link.h (ELFW): New macro.
9694         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9695         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9696
9697 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9698
9699         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9700         with uint64_t.
9701
9702 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9703
9704         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9705         declaration.
9706         (struct La_x32_retval): Likewise.
9707
9708 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9709
9710         * sysdeps/x86_64/preconfigure.in: New file.
9711         * sysdeps/x86_64/preconfigure: New generated file.
9712
9713 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9714
9715         [BZ #13824]
9716         * math/e_exp2l.c: Include <float.h>.
9717         (__ieee754_exp2l): Handle overflow and underflow cases
9718         separately.  Only pass fractional part of argument to
9719         __ieee754_expl.
9720         * math/libm-test.inc (exp2_test): Add more tests.
9721
9722         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9723         negating x to take absolute value.
9724         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9725         Likewise.
9726         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9727         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9728         Likewise.
9729         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9730         computing low part if x was negated.
9731         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9732
9733 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9734
9735         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9736         la_x32_gnu_pltexit.
9737         (pltexit): Cast int_retval to ptrdiff_t.
9738         * elf/tst-auditmod3b.c: Likewise.
9739         * elf/tst-auditmod4b.c: Likewise.
9740         * elf/tst-auditmod5b.c: Likewise.
9741         * elf/tst-auditmod6b.c: Likewise.
9742         * elf/tst-auditmod6c.c: Likewise.
9743         * elf/tst-auditmod7b.c: Likewise.
9744
9745         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9746         and x32_gnu_pltexit.
9747
9748         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9749         __ELF_NATIVE_CLASS.
9750         (La_x32_regs): New macro.
9751         (La_x32_retval): Likewise.
9752         (la_x32_gnu_pltenter): New function prototype.
9753         (la_x32_gnu_pltexit): Likewise.
9754
9755 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9756
9757         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9758         exponent.
9759
9760         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9761
9762         * configure.in (libc_cv_cc_nofma): Check for option to disable
9763         generation of FMA instructions.
9764         * configure: Regenerate.
9765         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9766         * sysdeps/ieee754/dbl-64/Makefile: New file.
9767         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9768         Remove brandred-fma4.
9769         (CFLAGS-brandred-fma4.c): Remove.
9770         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9771         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9772         define.
9773         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9774         define.
9775
9776 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9777
9778         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9779         LLONG_MAX != LONG_MAX.
9780         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9781         (_fitoa_word): Likewise.
9782         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9783         LLONG_MAX != LONG_MAX.
9784         * stdio-common/_itowa.h: Include <_itoa.h>.
9785         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9786         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9787         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9788         only if not defined.
9789         (_ITOA_WORD_TYPE): Likewise.
9790         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9791         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9792
9793 2012-03-21  David S. Miller  <davem@davemloft.net>
9794
9795         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9796
9797 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9798
9799         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9800         of x86_64 when setting libc_cv_slibdir, libdir and
9801         libc_cv_localedir.
9802         * sysdeps/unix/sysv/linux/configure: Regenerated.
9803
9804 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9805
9806         * manual/lang.texi (Old Varargs): Remove section.
9807         (How Variadic): Update menu.
9808         (va_start): Do not mention varargs.h.
9809
9810 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9811             Joseph Myers  <joseph@codesourcery.com>
9812
9813         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9814         link test.
9815         * configure: Regenerated.
9816
9817 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9818
9819         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9820         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9821         conformtest.pl
9822
9823 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9824
9825         * NOTES: Remove.
9826         * Makefile (files-for-dist): Remove NOTES.
9827         (NOTES): Remove rule.
9828         * README: Don't refer to NOTES.
9829         * manual/creature.texi: Don't include macros.texi.
9830         * manual/intro.texi (creature.texi): Remove comment referring to
9831         NOTES.
9832
9833         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9834         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9835         * configure: Regenerated.
9836         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9837         LIBC_TRY_CC_OPTION.
9838         (libc_cv_as_i686): Likewise.
9839         (libc_cv_cc_avx): Likewise.
9840         (libc_cv_cc_sse2avx): Likewise.
9841         (libc_cv_cc_fma4): Likewise.
9842         (libc_cv_cc_novzeroupper): Likewise.
9843         * sysdeps/i386/configure: Regenerated.
9844
9845         [BZ #13883]
9846         * sysdeps/i386/fpu/s_cexp.S: Remove.
9847         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9848         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9849         * math/libm-test.inc (cexp_test): Add more tests.
9850         * sysdeps/i386/fpu/libm-test-ulps: Update.
9851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9852
9853 2012-03-21  Allan McRae  <allan@archlinux.org>
9854
9855         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9856
9857 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9858
9859         [BZ #13871]
9860         * math/w_exp2.c: Do not include <float.h>.
9861         (o_threshold, u_threshold): Remove.
9862         (__exp2): Calculate result before checking finiteness and calling
9863         __kernel_standard.
9864         * math/w_exp2f.c: Likewise.
9865         * math/w_exp2l.c: Likewise.
9866         * math/libm-test.inc (exp2_test): Require overflow exception for
9867         1e6 input.
9868
9869         [BZ #3866]
9870         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9871         range of signed 64-bit integers before using fistpll.  Remove
9872         checks for whether integers fit in mantissa bits.
9873         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9874         the range of signed 32-bit integers before using fistpl.  Remove
9875         checks for whether integers fit in mantissa bits.
9876         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9877         (__ieee754_powl): Test for y outside the range of signed 64-bit
9878         integers before using fistpll.  Reduce 64-bit values to 63-bit
9879         ones as needed.
9880         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9881         divide-by-zero is raised for zero to large negative powers.
9882         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9883         (__ieee754_powl): Test for y outside the range of signed 64-bit
9884         integers before using fistpll.  Reduce 64-bit values to 63-bit
9885         ones as needed.
9886         * math/libm-test.inc (pow_test): Add more tests.
9887
9888 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9889
9890         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9891         <stdio-common/_itoa.h>.
9892         * debug/segfault.c: Likewise.
9893         * elf/dl-cache.c: Likewise.
9894         * elf/dl-minimal.c: Likewise.
9895         * elf/dl-misc.c: Likewise.
9896         * elf/dl-sysdep.c: Likewise.
9897         * elf/dl-version.c: Likewise.
9898         * elf/rtld.c: Likewise.
9899         * hurd/hurdsock.c: Likewise.
9900         * hurd/lookup-retry.c: Likewise.
9901         * malloc/malloc.c: Likewise.
9902         * malloc/mtrace.c: Likewise.
9903         * nscd/nscd_getgr_r.c: Likewise.
9904         * nscd/nscd_getpw_r.c: Likewise.
9905         * nscd/nscd_getserv_r.c: Likewise.
9906         * posix/getopt_init.c: Likewise.
9907         * posix/wordexp.c: Likewise.
9908         * stdio-common/_itoa.c: Likewise.
9909         * stdio-common/printf_fphex.c: Likewise.
9910         * stdio-common/vfprintf.c: Likewise.
9911         * string/_strerror.c: Likewise.
9912         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9913         * sysdeps/i386/i686/hp-timing.h: Likewise.
9914         * sysdeps/mach/_strerror.c: Likewise.
9915         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9916         * sysdeps/mach/hurd/sethostid.c: Likewise.
9917         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9918         * sysdeps/mach/xpg-strerror.c: Likewise.
9919         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9920         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9921         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9922         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9923         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9924         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9925         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9926         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9927         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9928         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9929         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9930         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9931         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9932         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9933         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9934         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9935         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9936         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9937         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9938         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9939         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9940
9941         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9942
9943         * stdio-common/_itoa.h: Moved to ...
9944         * sysdeps/generic/_itoa.h: Here.
9945
9946         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9947
9948         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9949         instead of "_itoa.h" and "_itowa.h".
9950         * stdio-common/vfprintf.: Likewise.
9951
9952 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9953
9954         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9955         <bits/wordsize.h>.
9956         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9957         (__signbit): Likwise.
9958         (llrintf): Likwise.
9959         (llrint): Likwise.
9960
9961 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9962
9963         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9964         __WORDSIZE != 64.
9965
9966 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9967
9968         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9969         OVERFLOW_EXCEPTION_OK.
9970         * math/libm-test.inc ("Philosophy"): Update comment about
9971         exception testing.
9972         (OVERFLOW_EXCEPTION): Define.
9973         (OVERFLOW_EXCEPTION_OK): Likewise.
9974         (INVALID_EXCEPTION_OK): Renumber.
9975         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9976         (IGNORE_ZERO_INF_SIGN): Likewise.
9977         (test_exceptions): Handle FE_OVERFLOW.
9978         (exp10_test): Expect overflow exceptions.
9979         (exp2_test): Likewise.
9980         (expm1_test): Likewise.
9981         (nextafter_test): Likewise.
9982         (pow_test): Likewise.
9983         (scalbn_test): Likewise.
9984         (scalbln_test): Likewise.
9985
9986 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9987
9988         * sysdeps/x86_64/bits/atomic.h
9989         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9990         64bit integer.
9991         (atomic_exchange_acq): Likewise.
9992         (__arch_exchange_and_add_body): Likewise.
9993         (__arch_add_body): Likewise.
9994         (atomic_add_negative): Likewise.
9995         (atomic_add_zero): Likewise.
9996
9997 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9998
9999         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10000         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10001
10002 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10003
10004         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10005         Check __x86_64__ instead of __WORDSIZE.
10006
10007 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10008
10009         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10010
10011 2012-03-19  David S. Miller  <davem@davemloft.net>
10012
10013         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10014
10015         * sysdeps/sparc/fpu/fenv_private.h: New file.
10016         * sysdeps/sparc/fpu/math_private.h: Use it.
10017         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10018         Remove.
10019         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10020         (libc_feholdexcept_setroundl): Remove.
10021         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10022         Remove.
10023         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10024         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10025
10026 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10027
10028         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10029         int64_t instead of long int.
10030         (INSERT_WORDS64): Likwise.
10031
10032 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10033
10034         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10035         _Unwind_GetCFA return to _Unwind_Ptr first.
10036
10037 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10038
10039         [BZ #13629]
10040         * math/s_clog.c: Include <float.h>.
10041         (__clog): Scale large or subnormal inputs.
10042         * math/s_clogf.c: Likewise.
10043         * math/s_clogl.c: Likewise.
10044         * math/s_clog10.c: Include <float.h>.
10045         (M_LOG10_2): Define.
10046         (__clog10): Scale large or subnormal inputs.
10047         * math/s_clog10f.c: Likewise.
10048         * math/s_clog10l.c: Likewise.
10049         * math/libm-test.inc (clog_test): Add more tests.
10050         (clog10_test): Likewise.
10051         * sysdeps/i386/fpu/libm-test-ulps: Update.
10052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10053
10054         [BZ #11451]
10055         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10056         x and y.
10057         * math/libm-test.inc (atan2_test): Add another test.
10058
10059         * Makerules (common-objdir-compile): Remove.
10060         * sysdeps/unix/Makefile (config-generated): Do not add
10061         $(unix-generated) to variable.
10062         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10063         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10064         Remove rule.
10065         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10066         Likewise.
10067         [generic bits/local_lim.h] (before-compile): Do not append to
10068         variable.
10069         [generic bits/local_lim.h] (common-generated): Likewise.
10070         [generic sys/param.h] (before-compile): Do not append to variable.
10071         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10072         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10073         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10074         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10075         include.
10076         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10077         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10078         [generic sys/param.h] ($(addprefix
10079         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10080         [generic sys/param.h] (common-generated): Do not append to
10081         variable.
10082         [generic sys/param.h] (sysdep_headers): Likewise.
10083         [generic bits/errno.h] (before-compile): Do not append to
10084         variable.
10085         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10086         rule.
10087         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10088         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10089         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10090         [generic bits/errno.h] (common-generated): Do not append to
10091         variable.
10092         [generic bits/ioctls.h] (before-compile): Do not append to
10093         variable.
10094         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10095         rule.
10096         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10097         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10098         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10099         rule.
10100         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10101         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10102         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10103         [generic bits/ioctls.h] (common-generated): Do not append to
10104         variable.
10105         [generic sys/syscall.h] (syscall.h): Remove variable.
10106         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10107         rule.
10108         [generic sys/syscall.h] (before-compile): Do not append to
10109         variable.
10110         [generic sys/syscall.h] (common-generated): Likewise.
10111         * sysdeps/unix/errnos-tmpl.c: Remove file.
10112         * sysdeps/unix/errnos.awk: Likewise.
10113         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10114         * sysdeps/unix/ioctls.awk: Likewise.
10115         * sysdeps/unix/mk-local_lim.c: Likewise.
10116         * sysdeps/unix/snarf-ioctls: Likewise.
10117
10118 2012-03-19  Richard Henderson  <rth@twiddle.net>
10119
10120         * sysdeps/i386/fpu/fenv_private.h: New file.
10121         * sysdeps/i386/fpu/math_private.h: Use it.
10122         (math_opt_barrier, math_force_eval): Remove.
10123         (libc_feholdexcept_setround_53bit): Remove.
10124         (libc_feupdateenv_53bit): Remove.
10125         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10126         (math_opt_barrier, math_force_eval): Remove.
10127         (libc_feholdexcept): Remove.
10128         (libc_feholdexcept_setround): Remove.
10129         (libc_fetestexcept, libc_fesetenv): Remove.
10130         (libc_feupdateenv_test): Remove.
10131         (libc_feupdateenv, libc_feholdsetround): Remove.
10132         (libc_feresetround): Remove.
10133
10134         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10135         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10136
10137         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10138         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10139         (libc_feupdateenv_testl): New.
10140         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10141         (libc_feupdateenv_testf): New.
10142         (libc_feupdateenv): Use libc_feupdateenv_test.
10143         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10144         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10145
10146         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10147         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10148         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10149         (libc_feresetround_noex): New.
10150         (libc_feresetround_noexf): New.
10151         (libc_feresetround_noexl): New.
10152         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10153         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10154         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10155         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10156         SET_RESTORE_ROUND.
10157         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10158         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10159         (__cos): Likewise.
10160         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10161         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10162         SET_RESTORE_ROUND_NOEX.
10163         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10164         SET_RESTORE_ROUND_NOEXF.
10165         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10166         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10167         (libc_feholdsetroundf): New.
10168         (libc_feresetround, libc_feresetroundf): New.
10169
10170         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10171         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10172         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10173
10174         * sysdeps/generic/math_private.h: Include <fenv.h>.
10175         (default_libc_feholdexcept): New.
10176         (default_libc_feholdexcept_setround): New.
10177         (default_libc_fesetenv, default_libc_feupdateenv): New.
10178         (libc_feholdexcept): Only define if undefined.
10179         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10180         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10181         (libc_feholdexcept_setroundl): Likewise.
10182         (libc_feholdexcept_setround_53bit): Likewise.
10183         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10184         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10185         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10186         (libc_feupdateenv_53bit): Likewise.
10187         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10188         (libc_feholdexcept): Convert from macro to inline function.
10189         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10190         (libc_fesetenv, libc_feupdateenv): Likewise.
10191
10192         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10193         not previously defined.
10194         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10195         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10196         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10197         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10198         * sysdeps/ieee754/flt-32/math_private.h: New file.
10199         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10200         math_private.h below SET_FLOAT_WORD.
10201         (__isnan, __isinf_ns, __finite): Remove.
10202         (__isnanf, __isinf_nsf, __finitef): Remove.
10203
10204 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10205
10206         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10207
10208 2012-03-17  David S. Miller  <davem@davemloft.net>
10209
10210         [BZ #6471]
10211         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10212         for 2.16.
10213
10214 2012-03-16  David S. Miller  <davem@davemloft.net>
10215
10216         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10217         warnings.
10218
10219         [BZ #6471]
10220         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10221         properly.
10222         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10223         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10224         sysdep_routines when subdir is sysvipc.
10225         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10226         __getshmlba helper.
10227
10228         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10229
10230 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10231
10232         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10233         [__LP64__].
10234
10235 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10236
10237         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10238         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10239         (__lround): Renamed to ...
10240         (__llround): This.  Replace long int with long long int.
10241         Define lround functions as aliases of llround functions.
10242         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10243
10244 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10245
10246         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10247         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10248         adresses to uintptr_t.  Replace "long int" and "unsigned long
10249         int" with "greg_t" on va_arg.
10250
10251 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10252
10253         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10254         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10255
10256         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10257         Move e_machine check before EI_CLASS check.  Handle x32
10258         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10259         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10260         SKIP_EM_IA_64 and include
10261         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10262
10263         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10264         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10265         (add_system_dir): New macro.
10266
10267         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10268         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10269
10270 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10271
10272         [BZ #2551]
10273         [BZ #2552]
10274         [BZ #2553]
10275         [BZ #2554]
10276         [BZ #2562]
10277         [BZ #2563]
10278         [BZ #2565]
10279         [BZ #2566]
10280         [BZ #2576]
10281         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10282         (y0): Likewise.
10283         * math/w_j0f.c (j0f): Likewise.
10284         (y0f): Likewise.
10285         * math/w_j0l.c (__j0l): Likewise.
10286         (__y0l): Likewise.
10287         * math/w_j1.c (j1): Likewise.
10288         (y1): Likewise.
10289         * math/w_j1f.c (j1f): Likewise.
10290         (y1f): Likewise.
10291         * math/w_j1l.c (__j1l): Likewise.
10292         (__y1l): Likewise.
10293         * math/w_jn.c (jn): Likewise.
10294         (yn): Likewise.
10295         * math/w_jnf.c (jnf): Likewise.
10296         (ynf): Likewise.
10297         * math/w_jnl.c (__jnl): Likewise.
10298         (__ynl): Likewise.
10299         * math/libm-test.inc (j0_test): Add more tests.
10300         (j1_test): Likewise.
10301         (jn_test): Likewise.  Add trailing semicolon to existing test.
10302         (y0_test): Likewise.
10303         (y1_test): Likewise.
10304         * sysdeps/i386/fpu/libm-test-ulps: Update.
10305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10306
10307         [BZ #13851]
10308         [BZ #13854]
10309         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10310         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10311         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10312         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10313         (__tanl): Set errno for infinite argument.
10314         * sysdeps/i386/fpu/mptan.c: Remove.
10315         * sysdeps/i386/fpu/s_tan.S: Likewise.
10316         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10317         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10318         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10319         * math/libm-test.inc (tan_test): Add more tests and enable more
10320         tests for double and long double.
10321         * sysdeps/i386/fpu/libm-test-ulps: Update.
10322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10323
10324 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10325
10326         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10327         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10328
10329 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10330
10331         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10332         * configure.in: Use it for both main tree and add-ons.
10333         * configure: Regenerated.
10334
10335 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10336
10337         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10338
10339 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10340
10341         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10342         in comment.
10343
10344         [BZ #13851]
10345         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10346         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10347         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10348         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10350         infinite argument.
10351         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10352         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10353         != 0 for prec == 2.
10354         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10355         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10356         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10357         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10358         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10359         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10360         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10361         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10362         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10363         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10364         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10365         * math/libm-test.inc (cos_test): Add more tests and enable more
10366         tests for long double.
10367         (sin_test): Likewise.
10368         (sincos_test): Likewise.
10369         * sysdeps/i386/fpu/libm-test-ulps: Update.
10370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10371
10372 2012-03-16  David S. Miller  <davem@davemloft.net>
10373
10374         * sysdeps/sparc/fpu/math_private.h: New file.
10375
10376 2012-03-15  David S. Miller  <davem@davemloft.net>
10377
10378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10379         file.
10380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10382         file.
10383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10384         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10385         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10386         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10387         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10388         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10389         sysdep routines.
10390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10391
10392         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10393         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10394
10395         * sysdeps/sparc/sparc-ifunc.h: New file.
10396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10397         sparc-ifunc.h
10398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10400         Likewise.
10401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10402         Likewise.
10403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10407         Likewise.
10408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10413         Likewise.
10414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10415         Likewise.
10416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10420         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10421         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10422         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10423         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10424         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10425         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10426         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10427         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10428         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10429         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10430         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10431         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10432         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10433         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10434         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10435         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10436         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10437         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10438         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10439         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10440
10441 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10442
10443         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10444         scaling.
10445         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10446
10447 2012-03-15  Andreas Jaeger  <aj@suse.de>
10448
10449         [BZ #13852]
10450         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10451         ieee754/flt-32 implementation for sin, cos and sincos.
10452         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10453         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10454         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10455         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10456         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10457         ieee754/flt-32 implementation for tan.
10458
10459         * math/libm-test.inc (cos_test): Enable some large input tests for
10460         float as well
10461         (sin_test): Likewise.
10462         (sincos_test): Likewise.
10463         (tan_test): Add tests for large input.
10464
10465         * sysdeps/i386/fpu/libm-test-ulps: Update.
10466
10467 2012-03-15  Andreas Jaeger  <aj@suse.de>
10468
10469         [BZ #13658]
10470         * math/libm-test.inc (cos_test): Add more test cases.
10471         (sin_test): Likewise.
10472         (sincos_test): Likewise.
10473
10474 2012-03-15  Andreas Jaeger  <aj@suse.de>
10475
10476         [BZ #13837]
10477         * math/libm-test.inc (cos_test): Add a test case for large input
10478         value.
10479         (sin_test): Likewise.
10480         (sincos_test): Likewise.
10481
10482 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10483         Joseph Myers  <joseph@codesourcery.com>
10484
10485         [BZ #13658]
10486         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10487         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10488         * sysdeps/i386/fpu/branred.c: Likewise.
10489         * sysdeps/i386/fpu/dosincos.c: Likewise.
10490         * sysdeps/i386/fpu/mpa.c: Likewise.
10491         * sysdeps/i386/fpu/s_cos.S: Likewise.
10492         * sysdeps/i386/fpu/s_sin.S: Likewise.
10493         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10494         * sysdeps/i386/fpu/sincos32.c: Likewise.
10495
10496         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10497         Define.
10498         (libc_feupdateenv_53bit): Define.
10499         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10500         Define.
10501         (libc_feupdateenv_53bit): Define.
10502
10503         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10504         53 bit (without extend i386 double precision).
10505
10506         * math/libm-test.inc (sincos_test): Add tests for large input.
10507         (sin): Likewise.
10508         (cos): Likewise.
10509
10510         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10511
10512 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10513
10514         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10515
10516 2012-03-15  David S. Miller  <davem@davemloft.net>
10517
10518         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10519         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10520         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10521         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10522         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10523         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10524         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10526         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10527         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10528         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10529         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10530         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10531         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10532         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10534         file.
10535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10537         file.
10538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10540         file.
10541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10543         file.
10544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10545         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10546         fmin/fmax sysdep routines.
10547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10548
10549 2012-03-14  David S. Miller  <davem@davemloft.net>
10550
10551         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10552         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10553         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10554         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10555         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10556         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10557         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10558         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10559         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10560         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10561         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10562         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10563         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10564         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10565         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10566         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10567         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10568         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10569         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10570         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10571         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10572         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10573         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10574         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10575         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10576         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10577         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10578         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10579         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10580         routines.
10581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10582         file.
10583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10585         file.
10586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10588         file.
10589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10591         file.
10592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10594         file.
10595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10597         file.
10598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10599         file.
10600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10601         file.
10602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10603         file.
10604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10605         New file.
10606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10607         file.
10608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10609         file.
10610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10612         file.
10613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10615         file.
10616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10618         file.
10619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10621         VIS3 routines.
10622
10623         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10624         New file.
10625
10626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10627
10628         * sysdeps/sparc/configure.in: New file.
10629         * sysdeps/sparc/configure: Generate.
10630         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10631         * configure: Regenerate.
10632         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10633         * config.make.in (have-as-vis3): New.
10634         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10635         available use -Av9d instead of -Av9a.
10636         * sysdeps/sparc/sparc64/Makefile: Likewise.
10637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10639         New file.
10640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10641         file.
10642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10643         New file.
10644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10645         file.
10646         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10647         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10648         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10649         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10650         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10651
10652         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10653         fzeros/fnegs to load 0x80000000 into a float register instead of
10654         using the stack.
10655         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10656
10657 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10658
10659         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10660         bits/syscall.h.
10661         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10662         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10663         ($(inst_includedir)/bits/syscall.h): Remove rule.
10664         ($(objpfx)bits/syscall.d): Include instead of
10665         $(objpfx)syscall-list.d.
10666         (generated): Change syscall-list.h and syscall-list.d to
10667         bits/syscall.h and bits/syscall.d.
10668
10669 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10670
10671         [BZ #13846]
10672         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10673
10674 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10675
10676         [BZ #13841]
10677         * math/s_csqrt.c: Include <float.h>.
10678         (__csqrt): Scale large or subnormal inputs.
10679         * math/s_csqrtf.c: Likewise.
10680         * math/s_csqrtl.c: Likewise.
10681         * math/libm-test.inc (csqrt_test): Add more tests.
10682         * sysdeps/i386/fpu/libm-test-ulps: Update.
10683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10684
10685         [BZ #13840]
10686         * math/libm-test.inc (hypot_test): Add more tests.
10687
10688 2012-03-13  David S. Miller  <davem@davemloft.net>
10689
10690         [BZ #13840]
10691         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10692         double-precision for the calculation instead of scaling.
10693
10694 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10695
10696         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10697         manipulate bits before adding and subtracting TWO52[sx].
10698         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10699         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10700         Likewise.
10701         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10702
10703 2012-03-13  David S. Miller  <davem@davemloft.net>
10704
10705         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10706         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10707         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10708         rtld-global-offsets.h
10709         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10710
10711         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10712         large parameters.
10713
10714         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10715
10716         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10717         'err' in the ifdef scope in which it is actually used.
10718
10719         * nss/nss_db/db-init.c: Include string.h
10720
10721 2012-03-12  David S. Miller  <davem@davemloft.net>
10722
10723         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10724         masking out of the most significant byte of random value used.
10725         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10726         Fix coding style in previous change.
10727
10728         * sysdeps/unix/sysv/linux/kernel-features.h
10729         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10730         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10731         expression.
10732         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10733         later.
10734
10735 2012-03-11  David S. Miller  <davem@davemloft.net>
10736
10737         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10738         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10739         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10740         for 'resultvar' otherwise things get truncated on 64-bit.
10741
10742         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10743         Fix masking out of the most significant byte of random value used.
10744
10745         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10746
10747 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10748
10749         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10750
10751 2012-03-09  David S. Miller  <davem@davemloft.net>
10752
10753         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10754         variables with appropriate CPP guards.
10755         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10756         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10757         on resulting framesize and the management of the outregs buffer for pltexit.
10758         Preserve floating point return values across _dl_call_pltexit call.
10759         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10760         framesize and the management of the outregs buffer for pltexit.
10761         Preserve floating point return values across _dl_call_pltexit
10762         call.
10763         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10764         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10765         (print_exit): Fix format string for return register value.
10766
10767 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10768
10769         * sunrpc/Makefile (others): Add rpcgen.
10770         ($(objpfx)rpcgen): Remove special build rule and dependency on
10771         libc.
10772         * sunrpc/rpcgen.c: New file.
10773
10774 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         [BZ #13673]
10777         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10778         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10779         * sysdeps/i386/crti.S: Likewise.
10780         * sysdeps/i386/crtn.S: Likewise.
10781         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10782         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10783         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10784         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10785         * sysdeps/sh/crti.S: Likewise.
10786         * sysdeps/sh/crtn.S: Likewise.
10787         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10788
10789         [BZ #13673]
10790         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10791         with URL.
10792         * locale/programs/locfile-kw.gperf: Likewise.
10793         * locale/programs/charmap-kw.h: Regenerated.
10794         * locale/programs/locfile-kw.h: Likewise.
10795
10796         [BZ #13673]
10797         * intl/plural.y: Replace FSF snail mail address with URL.
10798         * intl/plural.c: Regenerated.
10799
10800 2012-03-09  Richard Henderson  <rth@twiddle.net>
10801
10802         * include/math_private.h: Remove file.
10803         * math/math_private.h: Move file ...
10804         * sysdeps/generic/math_private.h: ... here.
10805
10806         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10807         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10808         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10809
10810         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10811         and <math_private.h>.
10812         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10813         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10814         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10815         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10816         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10817         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10818         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10819         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10820         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10821         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10822         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10823         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10824         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10825         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10826         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10827         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10828         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10829         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10830         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10831         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10832         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10833         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10834         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10835         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10836         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10837         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10838         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10839         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10840         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10841         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10842         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10843         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10844         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10845         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10846         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10847         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10848         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10849         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10850         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10851         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10852         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10853         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10854         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10855         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10856         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10857         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10858         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10859         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10860         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10861         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10862         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10863         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10864         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10865         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10866         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10867         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10868         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10869         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10870         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10871         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10872         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10873         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10874         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10875         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10876         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10877         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10878         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10879         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10880         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10881         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10882         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10883         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10884         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10885         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10886         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10887         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10888         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10889         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10890         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10891         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10892         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10893         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10894         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10895         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10896         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10897         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10898         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10899         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10900         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10901         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10902         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10903         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10904         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10905         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10906         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10907         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10908         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10909         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10910         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10911         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10912         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10913         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10914         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10915         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10916         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10917         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10918         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10919         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10920         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10921         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10922         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10923         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10924         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10925         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10926         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10927         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10928         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10929         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10930         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10931         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10932         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10933         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10934         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10935         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10936         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10937         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10938         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10939         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10940         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10941         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10942         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10943         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10944         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10945         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10946         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10947         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10948         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10949         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10950         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10951         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10952         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10953         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10954         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10955         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10956         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10957         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10958         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10959         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10960         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10961         * sysdeps/ieee754/k_standard.c: Likewise.
10962         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10963         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10964         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10965         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10966         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10967         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10968         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10969         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10970         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10971         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10972         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10973         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10974         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10975         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10976         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10977         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10978         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10979         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10980         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10981         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10982         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10983         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10984         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10985         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10986         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10987         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10988         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10989         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10990         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10991         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10992         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10993         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10994         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
10995         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10996         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
10998         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
10999         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11000         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11001         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11002         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11003         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11004         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11005         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11006         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11007         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11008         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11009         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11010         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11011         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11012         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11013         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11016         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11017         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11018         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11019         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11020         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11021         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11022         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11026         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11027         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11028         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11029         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11032         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11033         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11034         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11035         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11036         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11037         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11038         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11039         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11040         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11041         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11043         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11044         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11045         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11046         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11047         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11048         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11049         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11050         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11051         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11052         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11053         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11054         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11055         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11056         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11057         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11058         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11059         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11060         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11061         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11062         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11063         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11064         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11065         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11066         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11067         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11068         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11069         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11070         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11071         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11072         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11073         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11074         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11075         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11076         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11077         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11078         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11079         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11080         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11081         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11082         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11083         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11084         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11085         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11086         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11087         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11088         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11089         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11090         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11091         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11092         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11093         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11094         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11095         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11096         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11097         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11098         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11099         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11100         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11101         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11102         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11103         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11104         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11105         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11106         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11107         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11108         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11109         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11110         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11111         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11112         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11113         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11114         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11115         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11116         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11117         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11118         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11119         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11120         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11121         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11122         * sysdeps/ieee754/s_lib_version.c: Likewise.
11123         * sysdeps/ieee754/s_matherr.c: Likewise.
11124         * sysdeps/ieee754/s_signgam.c: Likewise.
11125         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11126         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11127         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11128         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11129         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11130         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11131         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11132         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11133         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11134         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11135         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11136         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11137         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11138         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11139         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11140         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11141         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11142         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11143         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11144         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11145         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11146
11147 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11148
11149         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11150         * sunrpc/rpc_main.c: Likewise.
11151         * sunrpc/rpc_svcout.c: Likewise.
11152
11153 2012-03-09  David S. Miller  <davem@davemloft.net>
11154
11155         * include/math_private.h: New file.
11156
11157 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11158
11159         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11160         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11161         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11162         from <bits/socket_type.h>.
11163         (enum __socket_type): Don't define here.
11164         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11165         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11166         bits/socket_type.h.
11167
11168         [BZ #13566]
11169         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11170         checking __USE_GNU.
11171
11172         * Makerules ($(inst_includedir)/%.h): New rule.
11173         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11174         (install-others): Remove variable setting.
11175         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11176
11177 2012-03-08  Richard Henderson  <rth@twiddle.net>
11178
11179         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11180         from macro to inline function; merge with the
11181         !__LIBC_INTERNAL_MATH_INLINES version.
11182         (__ieee754_sqrtf): Likewise.
11183
11184         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11185         to inline function.
11186         (__rintf, __floor, __floorf): Likewise.
11187
11188         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11189         macro to inline function.
11190         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11191
11192         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11193         not <math/math_private.h>.
11194
11195 2012-03-08  David S. Miller  <davem@davemloft.net>
11196
11197         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11198         copyright year.
11199         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11200
11201 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11202
11203         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11204         normalization.
11205         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11206         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11207
11208 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11209
11210         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11211         be defined individually, they must be defined as a block.  Define
11212         S for printing a string instead of hidint the different by using a
11213         macro for adding the 'l'.
11214         * stdio-common/tst-fphex-wide.c: Adjust.
11215
11216 2012-03-07  Marek Polacek  <polacek@redhat.com>
11217
11218         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11219
11220 2012-03-08  Marek Polacek  <polacek@redhat.com>
11221
11222         [BZ #13806]
11223         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11224         * stdio-common/tst-fphex.c: Define a few macros to make the
11225         test reusable.  Use them.
11226         * stdio-common/tst-fphex-wide.c: New file.
11227
11228 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11229
11230         [BZ #6911]
11231         * manual/macros.texi (gnusystems): New macro.
11232         (nongnusystems): Likewise.
11233         (gnulinuxhurdsystems): Likewise.
11234         (gnuhurdsystems): Likewise..
11235         (gnulinuxsystems): Likewise.
11236         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11237         variants of the GNU system, not "GNU system".
11238         * manual/conf.texi: Likewise.
11239         * manual/errno.texi: Likewise.  Update example of errno macro
11240         expansion.
11241         * manual/filesys.texi: Likewise.
11242         (getumask): Document as specific to GNU/Hurd.
11243         * manual/install.texi: Likewise.  Reword some references to
11244         GNU/Linux.
11245         * manual/intro.texi: Likewise.
11246         * manual/io.texi: Likewise.
11247         (File Name Portability): Detail which constraints are inapplicable
11248         to all GNU systems and which are only inapplicable to GNU/Hurd.
11249         * manual/job.texi: Likewise.
11250         * manual/llio.texi: Likewise.
11251         (O_NOCTTY): Document as present on GNU/Linux.
11252         * manual/maint.texi: Likewise.
11253         * manual/memory.texi: Likewise.
11254         * manual/pattern.texi: Likewise.
11255         * manual/pipe.texi: Likewise.
11256         * manual/process.texi: Likewise.
11257         * manual/resource.texi: Likewise.
11258         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11259         child on GNU/Hurd.
11260         * manual/setjmp.texi: Likewise.
11261         * manual/signal.texi: Likewise.
11262         * manual/startup.texi: Likewise.
11263         * manual/stdio.texi: Likewise.
11264         * manual/terminal.texi: Likewise.
11265         (ONLCR): Document as POSIX.
11266         (OXTABS): Document availability on GNU/Linux as XTABS.
11267         (ONOEOT): Document availability separately from other bits.
11268         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11269         * manual/time.texi: Likewise.
11270         * manual/users.texi: Likewise.
11271         * INSTALL: Regenerated.
11272         * sysdeps/gnu/errlist.c: Regenerated.
11273
11274         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11275         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11276         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11277         puts.
11278         * configure: Regenerated.
11279
11280 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11281
11282         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11283         default includes instead of AC_HEADER_CHECK.
11284         * sysdeps/i386/configure: Regenerated.
11285
11286         [BZ #10716]
11287         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11288         * math/s_cacoshf.c (__cacoshf): Likewise.
11289         * math/s_cacoshl.c (__cacoshl): Likewise.
11290         * math/s_casinh.c (__casinh): Set signs of result from argument.
11291         * math/s_casinhf.c (__casinhf): Likewise.
11292         * math/s_casinhl.c (__casinhl): Likewise.
11293         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11294         (casinh_test): Add more tests.
11295         * sysdeps/i386/fpu/libm-test-ulps: Update.
11296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11297
11298 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11299
11300         * po/zh_TW.po: Update from translation team.
11301
11302         * login/Makefile (distribute): Remove variable.
11303         * catgets/Makefile: Likewise.
11304         * mach/Makefile: Likewise.
11305         * malloc/Makefile: Likewise.
11306         * misc/Makefile: Likewise.
11307         * iconv/Makefile: Likewise.
11308         * nscd/Makefile: Likewise.
11309         * hurd/Makefile: Likewise.
11310         * manual/Makefile: Likewise.
11311         * locale/Makefile: Likewise.
11312         * intl/Makefile: Likewise.
11313         * conform/Makefile: Likewise.
11314         * nss/Makefile: Likewise.
11315         * time/Makefile: Likewise.
11316         * soft-fp/Makefile: Likewise.
11317         * dirent/Makefile: Likewise.
11318         * gmon/Makefile: Likewise.
11319         * po/Makefile: Likewise.
11320         * rt/Makefile: Likewise.
11321         * socket/Makefile: Likewise.
11322         * math/Makefile: Likewise.
11323         * signal/Makefile: Likewise.
11324         * debug/Makefile: Likewise.
11325         * elf/Makefile: Likewise.
11326         * timezone/Makefile: Likewise.
11327         * stdlib/Makefile: Likewise.
11328         * iconvdata/Makefile: Likewise.
11329         * sunrpc/Makefile: Likewise.
11330         * io/Makefile: Likewise.
11331         * argp/Makefile: Likewise.
11332         * inet/Makefile: Likewise.
11333         * hesiod/Makefile: Likewise.
11334         * grp/Makefile: Likewise.
11335         * csu/Makefile: Likewise.
11336         * wctype/Makefile: Likewise.
11337         * crypt/Makefile: Likewise.
11338         * libio/Makefile: Likewise.
11339         * string/Makefile: Likewise.
11340         * nis/Makefile: Likewise.
11341         * resolv/Makefile: Likewise.
11342         * stdio-common/Makefile: Likewise.
11343         * wcsmbs/Makefile: Likewise.
11344         * dlfcn/Makefile: Likewise.
11345         * posix/Makefile: Likewise.
11346
11347         [BZ #6959]
11348         * timezone/Makefile: Don't install timezone files, just the programs
11349         and scripts.
11350
11351 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11352
11353         * nss/databases.def: Add missing gshadow entry.
11354
11355         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11356
11357 2012-03-06  Marek Polacek  <polacek@redhat.com>
11358
11359         [BZ #13726]
11360         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11361         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11362         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11363         * stdio-common/tst-long-dbl-fphex.c: New file.
11364
11365 2012-03-06  David S. Miller  <davem@davemloft.net>
11366
11367         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11368         (set_obp_int): New function.
11369         (get_obp_int): New function.
11370         (__get_clockfreq_via_dev_openprom): Likewise.
11371         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11372         Avoid unused variable warnings on 'val' and use builtin_expect.
11373         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11374         __builtin_expect.
11375         (INLINE_CLONE_SYSCALL): Likewise.
11376
11377 2012-03-05  David S. Miller  <davem@davemloft.net>
11378
11379         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11380
11381 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11382
11383         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11384
11385         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11386         only for |x| >= 40.
11387         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11388
11389 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11390
11391         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11392         Replace gettimeofday with __vdso_gettimeofday.
11393
11394         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11395         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11396         __vdso_clock_gettime and __vdso_getcpu.
11397
11398         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11399         time with __vdso_time.
11400
11401 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11402
11403         * manual/lang.texi (size_t): Note types to which size_t may be
11404         equivalent with the GNU C Library, but do not describe when
11405         differences between them are significant.
11406
11407 2012-03-05  Andreas Jaeger  <aj@suse.de>
11408
11409         * sysdeps/i386/fpu/libm-test-ulps: Update.
11410
11411 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11412
11413         [BZ #3976]
11414         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11415         (__ieee754_pow): Save and restore rounding mode and use
11416         round-to-nearest for main computations.
11417         * math/libm-test.inc (pow_test_tonearest): New function.
11418         (pow_test_towardzero): Likewise.
11419         (pow_test_downward): Likewise.
11420         (pow_test_upward): Likewise.
11421         (main): Call the new functions.
11422         * sysdeps/i386/fpu/libm-test-ulps: Update.
11423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11424
11425         [BZ #3976]
11426         * math/libm-test.inc (cosh_test_tonearest): New function.
11427         (cosh_test_towardzero): Likewise.
11428         (cosh_test_downward): Likewise.
11429         (cosh_test_upward): Likewise.
11430         (sinh_test_tonearest): Likewise.
11431         (sinh_test_towardzero): Likewise.
11432         (sinh_test_downward): Likewise.
11433         (sinh_test_upward): Likewise.
11434         (main): Call the new functions.
11435         * sysdeps/i386/fpu/libm-test-ulps: Update.
11436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11437
11438 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11439
11440         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11441         default stack guard is set in last bytes.
11442         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11443
11444 2012-03-05  Kees Cook  <keescook@chromium.org>
11445
11446         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11447
11448         [BZ #13656]
11449         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11450         possibly allocate from heap instead of stack.
11451         * stdio-common/bug-vfprintf-nargs.c: New file.
11452         * stdio-common/Makefile (tests): Add nargs overflow test.
11453
11454 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11455
11456         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11457
11458 2012-03-03  Marek Polacek  <polacek@redhat.com>
11459
11460         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11461         * math/math_private.h: Likewise.
11462         * stdlib/tst-strtod.c: Likewise.
11463         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11464         * sysdeps/x86_64/bits/atomic.h: Likewise.
11465
11466 2012-03-02  David S. Miller  <davem@davemloft.net>
11467
11468         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11469         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11470         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11472         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11473         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11474         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11475         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11476
11477 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11478
11479         [BZ #13792]
11480         * manual/examples/README: New file, says the example source files
11481         can be used under GPL>=2.
11482         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11483         line containing just "*/".
11484         * manual/examples/add.c: Add copyright header (GPL>=2).
11485         * manual/examples/argp-ex1.c: Likewise.
11486         * manual/examples/argp-ex2.c: Likewise.
11487         * manual/examples/argp-ex3.c: Likewise.
11488         * manual/examples/argp-ex4.c: Likewise.
11489         * manual/examples/atexit.c: Likewise.
11490         * manual/examples/db.c: Likewise.
11491         * manual/examples/dir.c: Likewise.
11492         * manual/examples/dir2.c: Likewise.
11493         * manual/examples/execinfo.c: Likewise.
11494         * manual/examples/filecli.c: Likewise.
11495         * manual/examples/filesrv.c: Likewise.
11496         * manual/examples/fmtmsgexpl.c: Likewise.
11497         * manual/examples/genpass.c: Likewise.
11498         * manual/examples/inetcli.c: Likewise.
11499         * manual/examples/inetsrv.c: Likewise.
11500         * manual/examples/isockad.c: Likewise.
11501         * manual/examples/longopt.c: Likewise.
11502         * manual/examples/memopen.c: Likewise.
11503         * manual/examples/memstrm.c: Likewise.
11504         * manual/examples/mkfsock.c: Likewise.
11505         * manual/examples/mkisock.c: Likewise.
11506         * manual/examples/mygetpass.c: Likewise.
11507         * manual/examples/pipe.c: Likewise.
11508         * manual/examples/popen.c: Likewise.
11509         * manual/examples/rprintf.c: Likewise.
11510         * manual/examples/search.c: Likewise.
11511         * manual/examples/select.c: Likewise.
11512         * manual/examples/setjmp.c: Likewise.
11513         * manual/examples/sigh1.c: Likewise.
11514         * manual/examples/sigusr.c: Likewise.
11515         * manual/examples/stpcpy.c: Likewise.
11516         * manual/examples/strdupa.c: Likewise.
11517         * manual/examples/strftim.c: Likewise.
11518         * manual/examples/strncat.c: Likewise.
11519         * manual/examples/subopt.c: Likewise.
11520         * manual/examples/swapcontext.c: Likewise.
11521         * manual/examples/termios.c: Likewise.
11522         * manual/examples/testopt.c: Likewise.
11523         * manual/examples/testpass.c: Likewise.
11524         * manual/examples/timeval_subtract.c: Likewise.
11525
11526         [BZ #13792]
11527         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11528         function to ...
11529         * manual/timeval_subtract.c.texi: ... here, new file.
11530
11531 2012-03-02  David S. Miller  <davem@davemloft.net>
11532
11533         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11534
11535 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11536
11537         [BZ #3976]
11538         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11539         (__sin): Save and restore rounding mode and use round-to-nearest
11540         for all computations.
11541         (__cos): Save and restore rounding mode and use round-to-nearest
11542         for all computations.
11543         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11544         <fenv.h>.
11545         (tan): Save and restore rounding mode and use round-to-nearest for
11546         all computations.
11547         * math/libm-test.inc (cos_test_tonearest): New function.
11548         (cos_test_towardzero): Likewise.
11549         (cos_test_downward): Likewise.
11550         (cos_test_upward): Likewise.
11551         (sin_test_tonearest): Likewise.
11552         (sin_test_towardzero): Likewise.
11553         (sin_test_downward): Likewise.
11554         (sin_test_upward): Likewise.
11555         (tan_test_tonearest): Likewise.
11556         (tan_test_towardzero): Likewise.
11557         (tan_test_downward): Likewise.
11558         (tan_test_upward): Likewise.
11559         (main): Call the new functions.
11560         * sysdeps/i386/fpu/libm-test-ulps: Update.
11561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11562
11563         [BZ #10135]
11564         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11565         small n, then large n, before computing and testing k+n.
11566         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11567         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11568         Likewise.
11569         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11570         Likewise.
11571         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11572         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11573         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11574         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11575         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11576         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11577         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11578         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11579         * math/libm-test.inc (scalbn_test): Add more tests.
11580         (scalbln_test): Likewise.
11581
11582         * manual/filesys.texi (mode_t): Describe constraints on size and
11583         signedness, not exact equivalence to a particular type.
11584         (ino_t): Likewise.
11585         (ino64_t): Likewise.
11586         (dev_t): Likewise.
11587         (nlink_t): Likewise.
11588         (blkcnt_t): Likewise.
11589         (blkcnt64_t): Likewise.
11590         * manual/llio.texi (off_t): Likewise.
11591
11592         [BZ #3976]
11593         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11594         (__ieee754_exp): Save and restore rounding mode and use
11595         round-to-nearest for all computations.
11596         * math/libm-test.inc (exp_test_tonearest): New function.
11597         (exp_test_towardzero): Likewise.
11598         (exp_test_downward): Likewise.
11599         (exp_test_upward): Likewise.
11600         (main): Call the new functions.
11601         * sysdeps/i386/fpu/libm-test-ulps: Update.
11602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11603
11604 2012-03-01  Chris Demetriou  <cgd@google.com>
11605
11606         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11607         have predictable order.
11608
11609 2012-03-01  David S. Miller  <davem@davemloft.net>
11610
11611         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11612
11613         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11614         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11615         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11616         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11617
11618         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11619         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11620         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11621         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11622         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11623         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11624         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11625         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11626         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11627
11628         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11629
11630         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11631         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11632         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11633
11634         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11635         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11636         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11637         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11638         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11639         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11640         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11641         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11642         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11643         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11644         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11645         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11646         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11647         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11648         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11649         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11650         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11651         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11652         * sysdeps/sparc/elf/configure: Regenerated.
11653
11654 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11655
11656         * configure.in (AS, LD): Require binutils 2.20 or later.
11657         * configure: Regenerated.
11658         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11659         as required minimum version.
11660         * INSTALL: Regenerated.
11661
11662         [BZ #2541]
11663         [BZ #4108]
11664         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11665         before squaring exponent.
11666         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11667         bottom long double and 27 bits of top long double before squaring
11668         exponent.
11669         * math/libm-test.inc (erfc_test): Add more tests.
11670         * sysdeps/i386/fpu/libm-test-ulps: Update.
11671         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11673
11674 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11675
11676         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11677         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11678         containing bit-fields.
11679         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11680         * soft-fp/single.h (_FP_UNION_S): Likewise.
11681         * soft-fp/double.h (_FP_UNION_D): Likewise.
11682
11683 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11684
11685         [BZ #13786]
11686         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11687         not include ../strcmp.S.
11688         [USE_AS_STRNCASECMP_L]: Likewise.
11689         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11690         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11691         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11692         (__strncasecmp_l_ia32): Define as alias to
11693         __strncasecmp_l_nonascii.
11694
11695         [BZ #5794]
11696         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11697         * sysdeps/i386/fpu/libm-test-ulps: Update.
11698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11699
11700         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11702
11703 2012-02-29  Jeff Law  <law@redhat.com>
11704
11705         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11706         out of bounds read.
11707
11708 2012-02-29  Marek Polacek  <polacek@redhat.com>
11709
11710         [BZ #13706]
11711         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11712         * elf/Makefile: Add rules to run tst-unused-dep.out.
11713
11714 2012-02-28  David S. Miller  <davem@davemloft.net>
11715
11716         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11717         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11718         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11719         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11720         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11721         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11722
11723 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11724
11725         * math/libm-test.inc (llround_test): Move one test from
11726         lround_test.  Use TEST_f_L in moved test.
11727         (lround_test): Move misplaced test to llround_test.  Add testcase
11728         from bug 2561.
11729
11730 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11731
11732         * sysdeps/x86_64/fpu/e_expf.S: New file.
11733         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11734
11735 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11736
11737         [BZ #13637]
11738         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11739         of remain_len that may cause incomplete multi-byte character and
11740         false match.
11741         * posix/bug-regex33.c: New file.
11742         * posix/Makefile (tests): Add bug-regex33.
11743
11744 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11745
11746         * manual/macros.texi: New file.
11747         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11748         * manual/libc.texinfo: Include macros.texi.
11749         * manual/creatute.texi: Likewise.
11750         * manual/install.texi: Likewise.
11751         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11752         @glibcadj{} in references to the GNU C Library.
11753         * manual/charset.texi: Likewise.
11754         * manual/conf.texi: Likewise.
11755         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11756         when not using those macros.
11757         * manual/creature.texi: Likewise.
11758         * manual/crypt.texi: Likewise.
11759         * manual/errno.texi: Likewise.
11760         * manual/filesys.texi: Likewise.
11761         * manual/header.texi: Likewise.
11762         * manual/install.texi: Likewise.
11763         * manual/intro.texi: Likewise.
11764         * manual/io.texi: Likewise.
11765         * manual/job.texi: Likewise.
11766         * manual/lang.texi: Likewise.
11767         * manual/libc.texiinfo: Likewise.
11768         * manual/llio.texi: Likewise.
11769         * manual/locale.texi: Likewise.
11770         * manual/maint.texi: Likewise.
11771         * manual/math.texi: Likewise.
11772         * manual/memory.texi: Likewise.
11773         * manual/message.texi: Likewise.
11774         * manual/nss.texi: Likewise.
11775         * manual/pattern.texi: Likewise.
11776         * manual/process.texi: Likewise.
11777         * manual/resource.texi: Likewise.
11778         * manual/search.texi: Likewise.
11779         * manual/setjmp.texi: Likewise.
11780         * manual/signal.texi: Likewise.
11781         * manual/socket.texi: Likewise.
11782         * manual/startup.texi: Likewise.
11783         * manual/stdio.texi: Likewise.
11784         * manual/string.texi: Likewise.
11785         * manual/sysinfo.texi: Likewise.
11786         * manual/syslog.texi: Likewise.
11787         * manual/terminal.texi: Likewise.
11788         * manual/time.texi: Likewise.
11789         * manual/users.texi: Likewise.
11790         * INSTALL: Regenerated.
11791         * NOTES: Regenerated.
11792         * sysdeps/gnu/errlist.c: Regenerated.
11793
11794 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11795
11796         * include/dirent.h: Include <dirstream.h> before
11797         <dirent/dirent.h>.
11798
11799 2012-02-28  David S. Miller  <davem@davemloft.net>
11800
11801         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11802         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11803         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11804         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11805
11806 2012-02-27  David S. Miller  <davem@davemloft.net>
11807
11808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11809         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11810         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11811         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11812
11813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11814         frame pointer instead of stack pointer relative arg slot.
11815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11816         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11817         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11818
11819 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11820
11821         [BZ #3992]
11822         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11823
11824 2012-02-27  David S. Miller  <davem@davemloft.net>
11825
11826         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11827         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11829         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11830         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11831         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11832         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11833         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11834
11835 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11836
11837         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11838         later.  Allow versions 5-9.
11839         * configure: Regenerated.
11840         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11841         required minimum version and 4.6 as recommended version.  Do not
11842         mention bugs in GCC 2.7 and 2.8.
11843         * INSTALL: Regenerated.
11844
11845 2012-02-27  David S. Miller  <davem@davemloft.net>
11846
11847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11850         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11851         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11852         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11853         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11854         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11855
11856         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11857         manipulate bits before adding and subtracting TWO112[sx].
11858         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11859
11860 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11861
11862         [BZ #13775]
11863         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11864         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11865         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11866         being in POSIX, because they are in 1003.1-2008.
11867
11868         * rt/tst-aio.c: Include <fcntl.h>.
11869         * rt/tst-aio7.c: Likewise.
11870         * rt/tst-aio64.c: Likewise.
11871
11872         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11873
11874 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11875
11876         * manual/install.texi (--with-headers): Describe headers as
11877         interface headers, not private headers.
11878         (Specific advice for GNU/Linux systems): Describe use of headers
11879         from "make headers_install", not private headers from older
11880         kernels.
11881         * INSTALL: Regenerated.
11882         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11883         Change to 2.6.19.
11884         * sysdeps/unix/sysv/linux/configure: Regenerated.
11885
11886         * manual/llio.texi (fclean): Remove documentation.
11887
11888         * manual/Makefile (libc-texi-generated): New variable.  Include
11889         version.texi.
11890         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11891         $(libc-texi-generated), not duplicated list of files.
11892         (version.texi, stamp-version): New rules.
11893         (realclean): Remove $(libc-texi-generated), not individual files
11894         from that list.  Do not remove dir-add.texinfo.
11895         * manual/libc.texinfo: Comment out uses of edition numbers and
11896         references to printed manual.  Remove last-updated dates.
11897         (EDITION): Comment out.
11898         (ISBN): Likewise.
11899         (VERSION, UPDATED): Remove.
11900         (version.texi): Include.
11901
11902 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11903
11904         * sysdeps/posix/spawni.c: Include <signal.h>.
11905         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11906         * sysdeps/pthread/aio_fsync.c: Likewise.
11907
11908 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11909
11910         * conform/Makefile (tests): Run only when not cross-compiling and
11911         when fast-check is not defined.
11912
11913         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11914         * conform/data/limits.h-data: Fixes for POSIX2008.
11915         * conform/run-conformtest.sh: Run all tests.
11916         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11917         headers.
11918         * include/bits/dlfcn.h: Likewise.
11919         * include/langinfo.h: Likewise.
11920         * include/monetary.h: Likewise.
11921         * include/sys/poll.h: Likewise.
11922
11923         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11924         for __USE_GNU.
11925         * posix/spawn.h: Define __need_sigset_t.
11926         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11927         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11928         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11929         to get sigevent_t only.
11930         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11931         only for __USE_GNU.
11932         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11933         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11934         process_vm_writev only for __USE_GNU.
11935         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11936
11937         * conform/Makefile: For now ignore errors from run-conformtest.
11938         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11939         POSIX to avoid namespace pollution.  Don't prepend headers.
11940         * conform/data/aio.h-data: Fixes for POSIX testing.
11941         * conform/data/fcntl.h-data: Likewise.
11942         * conform/data/glob.h-data: Likewise.
11943         * conform/data/grp.h-data: Likewise.
11944         * conform/data/pthread.h-data: Likewise.
11945         * conform/data/pwd.h-data: Likewise.
11946         * conform/data/signal.h-data: Likewise.
11947         * conform/data/spawn.h-data: Likewise.
11948         * conform/data/stdio.h-data: Likewise.
11949         * conform/data/stdlib.h-data: Likewise.
11950         * conform/data/stropts.h-data: Likewise.
11951         * conform/data/sys/mman.h-data: Likewise.
11952         * conform/data/sys/stat.h-data: Likewise.
11953         * conform/data/sys/types.h-data: Likewise.
11954         * conform/data/sys/wait.h-data: Likewise.
11955         * conform/data/time.h-data: Likewise.
11956         * conform/data/unistd.h-data: Likewise.
11957         * conform/data/utime.h-data: Likewise.
11958
11959         * io/sys/stat.h: fchmod was always in POSIX.
11960         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11961         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11962         * rt/aio.h: Define __need_timespec before including <time.h>.
11963         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11964         struct.  Add forward declaration of pthread_attr_t and use it in
11965         sigevent.
11966         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11967         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11968         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11969         always remove CLK_TCK definition.
11970
11971 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11972
11973         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11974
11975 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11976
11977         * conform/run-conformtest.sh: New file.
11978         * conform/Makefile: Run run-conformtest for tests.
11979         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11980         support.
11981
11982         * conform/data/uchar.h-data: New file.
11983         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11984         * conform/data/arpa/inet.h-data: Likewise.
11985         * conform/data/assert.h-data: Likewise.
11986         * conform/data/complex.h-data: Likewise.
11987         * conform/data/cpio.h-data: Likewise.
11988         * conform/data/ctype.h-data: Likewise.
11989         * conform/data/dirent.h-data: Likewise.
11990         * conform/data/dlfcn.h-data: Likewise.
11991         * conform/data/errno.h-data: Likewise.
11992         * conform/data/fcntl.h-data: Likewise.
11993         * conform/data/float.h-data: Likewise.
11994         * conform/data/fmtmsg.h-data: Likewise.
11995         * conform/data/fnmatch.h-data: Likewise.
11996         * conform/data/ftw.h-data: Likewise.
11997         * conform/data/glob.h-data: Likewise.
11998         * conform/data/grp.h-data: Likewise.
11999         * conform/data/iconv.h-data: Likewise.
12000         * conform/data/inttypes.h-data: Likewise.
12001         * conform/data/langinfo.h-data: Likewise.
12002         * conform/data/libgen.h-data: Likewise.
12003         * conform/data/limits.h-data: Likewise.
12004         * conform/data/locale.h-data: Likewise.
12005         * conform/data/math.h-data: Likewise.
12006         * conform/data/monetary.h-data: Likewise.
12007         * conform/data/mqueue.h-data: Likewise.
12008         * conform/data/ndbm.h-data: Likewise.
12009         * conform/data/net/if.h-data: Likewise.
12010         * conform/data/netdb.h-data: Likewise.
12011         * conform/data/netinet/in.h-data: Likewise.
12012         * conform/data/nl_types.h-data: Likewise.
12013         * conform/data/poll.h-data: Likewise.
12014         * conform/data/pthread.h-data: Likewise.
12015         * conform/data/pwd.h-data: Likewise.
12016         * conform/data/regex.h-data: Likewise.
12017         * conform/data/sched.h-data: Likewise.
12018         * conform/data/search.h-data: Likewise.
12019         * conform/data/semaphore.h-data: Likewise.
12020         * conform/data/setjmp.h-data: Likewise.
12021         * conform/data/signal.h-data: Likewise.
12022         * conform/data/spawn.h-data: Likewise.
12023         * conform/data/stdarg.h-data: Likewise.
12024         * conform/data/stdio.h-data: Likewise.
12025         * conform/data/stdlib.h-data: Likewise.
12026         * conform/data/string.h-data: Likewise.
12027         * conform/data/strings.h-data: Likewise.
12028         * conform/data/stropts.h-data: Likewise.
12029         * conform/data/sys/ipc.h-data: Likewise.
12030         * conform/data/sys/mman.h-data: Likewise.
12031         * conform/data/sys/msg.h-data: Likewise.
12032         * conform/data/sys/resource.h-data: Likewise.
12033         * conform/data/sys/select.h-data: Likewise.
12034         * conform/data/sys/sem.h-data: Likewise.
12035         * conform/data/sys/shm.h-data: Likewise.
12036         * conform/data/sys/socket.h-data: Likewise.
12037         * conform/data/sys/stat.h-data: Likewise.
12038         * conform/data/sys/statvfs.h-data: Likewise.
12039         * conform/data/sys/time.h-data: Likewise.
12040         * conform/data/sys/timeb.h-data: Likewise.
12041         * conform/data/sys/times.h-data: Likewise.
12042         * conform/data/sys/types.h-data: Likewise.
12043         * conform/data/sys/uio.h-data: Likewise.
12044         * conform/data/sys/un.h-data: Likewise.
12045         * conform/data/sys/utsname.h-data: Likewise.
12046         * conform/data/sys/wait.h-data: Likewise.
12047         * conform/data/syslog.h-data: Likewise.
12048         * conform/data/tar.h-data: Likewise.
12049         * conform/data/termios.h-data: Likewise.
12050         * conform/data/utime.h-data: Likewise.
12051         * conform/data/utmpx.h-data: Likewise.
12052         * conform/data/varargs.h-data: Likewise.
12053         * conform/data/wchar.h-data: Likewise.
12054         * conform/data/wctype.h-data: Likewise.
12055         * conform/data/wordexp.h-data: Likewise.
12056
12057         * include/stropts.h: New file.
12058         * include/uchar.h: New file.
12059         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12060         * include/assert.h: Likewise.
12061         * include/ctype.h: Likewise.
12062         * include/dirent.h: Likewise.
12063         * include/dlfcn.h: Likewise.
12064         * include/fcntl.h: Likewise.
12065         * include/fnmatch.h: Likewise.
12066         * include/glob.h: Likewise.
12067         * include/grp.h: Likewise.
12068         * include/libio.h: Likewise.
12069         * include/locale.h: Likewise.
12070         * include/math.h: Likewise.
12071         * include/net/if.h: Likewise.
12072         * include/netdb.h: Likewise.
12073         * include/netinet/in.h: Likewise.
12074         * include/pthread.h: Likewise.
12075         * include/pwd.h: Likewise.
12076         * include/regex.h: Likewise.
12077         * include/sched.h: Likewise.
12078         * include/search.h: Likewise.
12079         * include/setjmp.h: Likewise.
12080         * include/signal.h: Likewise.
12081         * include/stdio.h: Likewise.
12082         * include/stdlib.h: Likewise.
12083         * include/string.h: Likewise.
12084         * include/sys/cdefs.h: Likewise.
12085         * include/sys/mman.h: Likewise.
12086         * include/sys/msg.h: Likewise.
12087         * include/sys/resource.h: Likewise.
12088         * include/sys/select.h: Likewise.
12089         * include/sys/socket.h: Likewise.
12090         * include/sys/stat.h: Likewise.
12091         * include/sys/statvfs.h: Likewise.
12092         * include/sys/time.h: Likewise.
12093         * include/sys/times.h: Likewise.
12094         * include/sys/uio.h: Likewise.
12095         * include/sys/utsname.h: Likewise.
12096         * include/sys/wait.h: Likewise.
12097         * include/termios.h: Likewise.
12098         * include/time.h: Likewise.
12099         * include/ulimit.h: Likewise.
12100         * include/unistd.h: Likewise.
12101         * include/utime.h: Likewise.
12102         * include/wchar.h: Likewise.
12103         * include/wctype.h: Likewise.
12104         * include/wordexp.h: Likewise.
12105
12106         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12107
12108         * time/time.h: TIME_UTC must be a macro.
12109         Make timespec_get available for ISO C11 only as well.
12110
12111 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12112
12113         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12114         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12115
12116 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12117
12118         * configure.in: Use -o not -a in test for unsupported multi-arch.
12119
12120 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12121
12122         * manual/texinfo.tex: Update to version 2012-01-19.16.
12123
12124 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12125
12126         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12127
12128 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12129
12130         [BZ #13738]
12131         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12132         * manual/fdl-1.3.texi: New file.
12133         * manual/fdl-1.1.texi: File removed.
12134
12135         [BZ #13738]
12136         * manual/libc.texinfo (FDL_VERSION): New @set.
12137         Use it for mention of FDL in cover text.
12138         (Documentation License): Use it in @include file name.
12139
12140 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12141             Roland McGrath  <roland@hack.frob.com>
12142
12143         [BZ #5461]
12144         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12145         not LONG_LONG_MAX and LONG_LONG_MIN.
12146         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12147         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12148         name.
12149         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12150
12151 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12152
12153         [BZ #2547]
12154         [BZ #11365]
12155         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12156         manipulate bits before adding and subtracting TWO23[sx].
12157         * math/libm-test.inc (nearbyint_test): Add more tests.
12158
12159 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12160
12161         [BZ #2548]
12162         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12163         bits before adding and subtracting TWO23[sx].
12164         * math/libm-test.inc (rint_test): Add more tests.
12165         (rint_test_tonearest): Likewise.
12166         (rint_test_towardzero): Likewise.
12167         (rint_test_downward): Likewise.
12168         (rint_test_upward: Likewise.
12169
12170 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12171
12172         [BZ #10110]
12173         * include/stdc-predef.h: New file.  Extracted from features.h.
12174         * include/features.h: Include stdc-predef.h.
12175         * Makefile (headers): Add stdc-predef.h.
12176         * CONFORMANCE (Compiler limitations): Update.
12177
12178 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12179
12180         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12181
12182 2012-02-21  David S. Miller  <davem@davemloft.net>
12183
12184         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12185         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12186
12187 2012-02-20  David S. Miller  <davem@davemloft.net>
12188
12189         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12190         using a normal save/restore sequence, rather than allocating a
12191         dummy stack frame just to store a frame pointer and restore.
12192         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12193
12194 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12195
12196         * manual/install.texi: Fix stray word in line-wrapped comment.
12197
12198 2012-02-20  David S. Miller  <davem@davemloft.net>
12199
12200         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12201         both binutils and gcc support GOTDATA.
12202
12203         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12204         "rd %pc" in the PIC register setup sequences.
12205
12206         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12207         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12208         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12209         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12210         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12211         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12212         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12213         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12214         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12215         (SYSCALL_ERROR_HANDLER): Likewise.
12216         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12217         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12218         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12219         (SYSCALL_ERROR_HANDLER): Likewise.
12220
12221         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12222         (HAVE_GCC_GOTDATA): New.
12223         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12224         relocation support in both binutils and gcc.
12225         * sysdeps/sparc/elf/configure: Regenerate.
12226
12227         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12228         * sysdeps/sparc/sparc32/elf/configure: Delete.
12229         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12230         * sysdeps/sparc/sparc64/elf/configure: Delete.
12231         * sysdeps/sparc/elf/configure.in: New file.
12232         * sysdeps/sparc/elf/configure: Generate.
12233
12234         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12235         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12236         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12237         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12238         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12239
12240 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12241
12242         * manual/install.texi: Do not mention specific glibc version
12243         numbers.
12244         * manual/libc.texinfo (VERSION, UPDATED): Update.
12245         (@copying): Use @copyright{} and range of years.
12246
12247 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12248
12249         [BZ #13695]
12250         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12251         [crti.S not in sysdirs] (generated): Do not append.
12252         [crti.S not in sysdirs] (omit-deps): Likewise.
12253         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12254         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12255         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12256         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12257         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12258         Likewise.
12259         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12260         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12261         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12262         * csu/defs.awk: Remove file.
12263         * sysdeps/generic/initfini.c: Likewise.
12264         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12265         variable.
12266         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12267         Likewise.
12268
12269 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12270
12271         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12272         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12273         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12274         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12275         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12276         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12277         <bits/epoll.h>.
12278         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12279         (__EPOLL_PACKED): Define to empty if not defined by
12280         <bits/epoll.h>.
12281         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12283         bits/epoll.h.
12284
12285 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12286
12287         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12288         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12289         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12290         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12291         <bits/timerfd.h>.
12292         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12293         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12294         bits/timerfd.h.
12295
12296 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12297
12298         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12299         in C locale.
12300         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12301         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12302         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12304
12305 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12306
12307         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12308         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12309
12310 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12311
12312         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12313         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12314         defined.
12315         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12316         Likewise.
12317         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12318         entry for 2.16.
12319
12320 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12321
12322         * math/w_acos.c: Use non-signaling floating-point comparisons.
12323         * math/w_acosf.c: Likewise.
12324         * math/w_acosh.c: Likewise.
12325         * math/w_acoshf.c: Likewise.
12326         * math/w_acoshl.c: Likewise.
12327         * math/w_acosl.c: Likewise.
12328         * math/w_asin.c: Likewise.
12329         * math/w_asinf.c: Likewise.
12330         * math/w_asinl.c: Likewise.
12331         * math/w_atanh.c: Likewise.
12332         * math/w_atanhf.c: Likewise.
12333         * math/w_atanhl.c: Likewise.
12334         * math/w_exp2.c: Likewise.
12335         * math/w_exp2f.c: Likewise.
12336         * math/w_exp2l.c: Likewise.
12337         * math/w_j0.c: Likewise.
12338         * math/w_j0f.c: Likewise.
12339         * math/w_j0l.c: Likewise.
12340         * math/w_j1.c: Likewise.
12341         * math/w_j1f.c: Likewise.
12342         * math/w_j1l.c: Likewise.
12343         * math/w_jn.c: Likewise.
12344         * math/w_jnf.c: Likewise.
12345         * math/w_log.c: Likewise.
12346         * math/w_log10.c: Likewise.
12347         * math/w_log10f.c: Likewise.
12348         * math/w_log10l.c: Likewise.
12349         * math/w_log2.c: Likewise.
12350         * math/w_log2f.c: Likewise.
12351         * math/w_log2l.c: Likewise.
12352         * math/w_logf.c: Likewise.
12353         * math/w_logl.c: Likewise.
12354         * math/w_sqrt.c: Likewise.
12355         * math/w_sqrtf.c: Likewise.
12356         * math/w_sqrtl.c: Likewise.
12357         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12358         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12359         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12360         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12361         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12362
12363 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12364
12365         [BZ #9739]
12366         * manual/string.texi (strnlen): Use correct parameter name in
12367         equivalent expression.
12368
12369 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12370
12371         [BZ #11174]
12372         * manual/users.texi (seteuid): Consistently use neweuid for
12373         argument name.
12374
12375 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12376
12377         [BZ #13704]
12378         * manual/nss.texi (Services in the NSS configuration): Correct
12379         list of services in example configuration file.
12380
12381 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12382
12383         [BZ #11322]
12384         * manual/arith.texi: Remove statements about negative zero
12385         behaving identically to zero.
12386
12387 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12388
12389         [BZ #5993]
12390         * manual/install.texi: Do not document upgrading from libc5.
12391
12392 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12393
12394         [BZ #4596]
12395         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12396
12397 2012-02-18  David S. Miller  <davem@davemloft.net>
12398
12399         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12400         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12401         %o7 across the call.
12402         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12403         instead.
12404         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12405         SETUP_PIC_REG_LEAF.
12406         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12407         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12408         * sysdeps/sparc/crtn.S: Likewise.
12409
12410 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12411
12412         * aout/Makefile: Remove.
12413
12414 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12415
12416         [BZ #13058]
12417         * manual/examples/argp-ex1.c (main): Format definition in GNU
12418         style.
12419         * manual/examples/argp-ex2.c (main): Likewise.
12420         * manual/examples/argp-ex3.c (main): Likewise.
12421         * manual/examples/argp-ex4.c (main): Likewise.
12422         * manual/examples/longopt.c (main): Use new-style prototype
12423         definition.
12424         * manual/examples/strncat.c (main): Specify return type and use
12425         (void) for arguments.
12426         * manual/examples/subopt.c (main): Use char **argv argument.
12427
12428 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12429
12430         [BZ #5077]
12431         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12432         rounding modes.
12433
12434 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12435
12436         [BZ #6907]
12437         * manual/string.texi (strchr): Change when strchrnul is
12438         recommended.
12439
12440 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12441
12442         [BZ #174]
12443         * manual/locale.texi (setlocale): Document LOCPATH.
12444
12445 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12446
12447         [BZ #10210]
12448         * manual/process.texi (execle): Move @dots{} before last argument.
12449
12450 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12451
12452         [BZ #12047]
12453         * manual/charset.texi (Generic Charset Conversion): Fix typo
12454         (LC_TYPE -> LC_CTYPE).
12455
12456 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12457
12458         [BZ #5805]
12459         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12460         (scalbnf): Likewise.
12461         (scalbnl): Likewise.
12462         (scalbln): Likewise.
12463         (scalblnf): Likewise.
12464         (scalblnl): Likewise.
12465         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12466         (vwarnx): Likewise.
12467         (verr): Likewise.
12468         (verrx): Likewise.
12469         * manual/filesys.texi (telldir): Use braces around return type.
12470         * manual/llio.texi (mmap): Add space after comma.
12471         (mmap64): Likewise.
12472         * manual/math.texi (jn): Use @var{} on parameter names.
12473         (jnf): Likewise.
12474         (jnl): Likewise.
12475         (yn): Likewise.
12476         (ynf): Likewise.
12477         (ynl): Likewise.
12478         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12479         line.
12480         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12481         "...".
12482         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12483         (sched_get_priority_max): Likewise.
12484         * manual/signal.texi (sigvec): Add space after comma.
12485         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12486         names.
12487         (if_indextoname): Likewise.
12488         (if_freenameindex): Likewise.
12489         (sendto): Use ',' instead of '.' in prototype.
12490         * manual/startup.texi (syscall): Use @dots{} instead of literal
12491         "...".
12492         * manual/stdio.texi (__fpending): Separate initial words of
12493         paragraph from @deftypefun line.
12494         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12495         "...".
12496         (vsyslog): Use @var{} on parameter names.
12497         * manual/terminal.texi (stty): Use @var{} on parameter names.
12498         * manual/users.texi (getutmp): Use @var{} on parameter names.
12499         (getutmpx): Likewise.
12500
12501 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12502
12503         [BZ #6884]
12504         * manual/stdio.texi (fopen): Fix typos in description of
12505         ",ccs=STRING".
12506
12507 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12508
12509         [BZ #4026]
12510         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12511         get clock_id definition.
12512
12513 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12514
12515         [BZ #4822]
12516         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12517         (madvise): Cast every argument to void on its own.
12518
12519 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12520
12521         [BZ #9902]
12522         * manual/startup.texi (Exit Status): Fix typo.
12523
12524 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12525
12526         [BZ #10140]
12527         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12528         * manual/examples/argp-ex2.c: Likewise.
12529         * manual/examples/argp-ex3.c: Likewise.
12530
12531 2012-02-16  Richard Henderson  <rth@redhat.com>
12532
12533         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12534         * sysdeps/s390/s390-32/initfini.c: Remove.
12535         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12536         * sysdeps/s390/s390-64/initfini.c: Remove.
12537
12538 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12539
12540         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12541         compiler output for sysdeps/generic/initfini.c.
12542         * sysdeps/sh/elf/initfini.c: Remove file.
12543
12544 2012-02-16  David S. Miller  <davem@davemloft.net>
12545
12546         [BZ #11494]
12547         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12548
12549         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12550         * sysdeps/sparc/crti.S: New file.
12551         * sysdeps/sparc/crtn.S: New file.
12552         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12553         * sysdeps/sparc/sparc64/Makefile: Likewise.
12554
12555 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12556
12557         [BZ #3335]
12558         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12559
12560 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12561
12562         [BZ #4822]
12563         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12564
12565         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12566         (write, read, close): Likewise.
12567         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12568
12569 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12570
12571         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12572         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12573         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12574         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12575         <bits/signalfd.h>.
12576         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12577         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12578         bits/signalfd.h.
12579
12580 2012-02-14  Marek Polacek  <polacek@redhat.com>
12581
12582         * sysdeps/x86_64/crti.S: New file.
12583         * sysdeps/x86_64/crtn.S: New file.
12584         * sysdeps/x86_64/elf/initfini.c: Remove file.
12585
12586 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12587
12588         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12589         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12590         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12591         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12592         <bits/inotify.h>.
12593         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12594         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12595         bits/inotify.h.
12596
12597 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12598
12599         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12600         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12601         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12602         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12603         <bits/eventfd.h>.
12604         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12605         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12606         bits/eventfd.h.
12607
12608 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12609
12610         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12611         __feraiseexcept instead of feraiseexcept.
12612
12613         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12614         nanosleep invocations.
12615         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12616         strings, and add error checking for a nanosleep invocations.
12617
12618 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12619
12620         Replace FSF snail mail address with URLs, as per GNU coding standards.
12621         Most of the snail mail addresses were wrong anyway, and omitting
12622         them makes the source code easier to maintain.  Almost all of the
12623         changes are to license notices and to locale LC_IDENTIFICATION
12624         addresses, except for this one:
12625         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12626         not its snail mail address.
12627
12628 2012-02-09  Richard Henderson  <rth@twiddle.net>
12629
12630         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12631         of kernel-features.h.
12632
12633         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12634
12635 2012-02-08  Marek Polacek  <polacek@redhat.com>
12636
12637         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12638         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12639         * sysdeps/gnu/_G_config.h: Likewise.
12640         * sysdeps/generic/_G_config.h: Likewise.
12641
12642 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12643
12644         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12645         tests.
12646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12647
12648         * sysdeps/powerpc/powerpc32/crti.S: New file.
12649         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12650         * sysdeps/powerpc/powerpc64/crti.S: New file.
12651         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12652
12653         * Makeconfig (have-initfini): Don't set.
12654         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12655         * configure.in (nopic_initfini): Don't substitute.
12656         * config.h.in (HAVE_INITFINI): Don't #undef.
12657         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12658         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12659
12660 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12661
12662         Support crti.S and crtn.S provided directly by architectures.
12663         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12664         [crti.S in sysdirs] (omit-deps): Likewise.
12665         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12666         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12667         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12668         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12669         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12670         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12671         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12672         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12673         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12674         compiler output for sysdeps/generic/initfini.c.
12675         * sysdeps/i386/elf/Makefile: Remove file.
12676         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12677
12678 2012-02-07  Marek Polacek  <polacek@redhat.com>
12679
12680         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12681         * sysdeps/gnu/_G_config.h: Likewise.
12682         * sysdeps/mach/hurd/_G_config.h: Likewise.
12683
12684 2012-02-07  Marek Polacek  <polacek@redhat.com>
12685
12686         * math/Makefile (tests): Add tst-CMPLX2.
12687         * math/tst-CMPLX2.c: New file.
12688
12689 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12690
12691         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12692
12693         * math/libm-test.inc (jn_test): Add missing L suffix.
12694
12695 2012-02-06  Marek Polacek  <polacek@redhat.com>
12696
12697         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12698         * sysdeps/i386/fpu/e_powf.S: Likewise.
12699         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12700         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12701         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12702         * sysdeps/i386/fpu/e_pow.S: Likewise.
12703         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12704         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12705         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12706         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12707         * sysdeps/i386/fpu/e_log2.S: Likewise.
12708         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12709         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12710         * sysdeps/i386/fpu/e_powl.S: Likewise.
12711         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12712         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12713         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12714         * sysdeps/i386/fpu/e_logl.S: Likewise.
12715         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12716         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12717         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12718         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12719         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12720         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12721         * sysdeps/i386/fpu/e_log.S: Likewise.
12722         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12723         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12724         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12725         * sysdeps/i386/fpu/e_logf.S: Likewise.
12726         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12727         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12728         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12729         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12730         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12731         * sysdeps/i386/fpu/e_log10.S: Likewise.
12732         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12733         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12734         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12735         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12736         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12737         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12738         * sysdeps/i386/asm-syntax.h: Likewise.
12739         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12740         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12741         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12742         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12743         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12744         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12745         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12746         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12747         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12748         * sysdeps/powerpc/sysdep.h: Likewise.
12749         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12750         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12751
12752 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12753
12754         [BZ #411]
12755         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12756
12757 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12758
12759         * sysdeps/i386/sysdep.h: Include <features.h>.
12760         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12761         version.
12762
12763 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12764
12765         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12766         Define.
12767         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12768         LOAD_PIC_REG_STR.
12769
12770 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12771
12772         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12773         (SETUP_PIC_REG): Use GET_PC_THUNK.
12774         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12775         macro.
12776
12777 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12778
12779         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12780         for non-PIC compilation.
12781         (SETUP_PIC_REG): Add .p2align directive.
12782         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12783         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12784         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12785         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12786         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12787         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12788         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12789         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12790         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12791         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12792         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12793         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12794         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12795         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12796         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12797         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12798         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12799         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12800         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12801         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12802         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12803         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12804         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12805         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12806         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12807         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12808         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12809         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12810         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12811         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12812         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12813         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12814         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12815         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12816         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12817         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12818         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12819         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12820         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12821         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12822         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12823
12824 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12825
12826         * math/tst-CMPLX.c: Include <stdio.h>.
12827
12828 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12829
12830         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12831         float.
12832         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12833         * sysdeps/sparc/bits/mathdef.h: Likewise.
12834
12835 2012-01-31  Marek Polacek  <polacek@redhat.com>
12836
12837         * libio/libio.h: Don't define _PARAMS.
12838         * locale/programs/config.h: Don't define PARAMS.
12839         * stdlib/strtol_l.c: Likewise.
12840         (__strtol_l): Remove PARAMS from the prototype.
12841
12842 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12843
12844         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12845         names.  Just use the correct names.  Remove unnecessary wrapper
12846         functions.
12847         * malloc/arena.c: Likewise.
12848         * malloc/hooks.c: Likewise.
12849
12850         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12851         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12852         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12853
12854 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12855
12856         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12857         into tail calls.
12858         (update_get_addr): New function.
12859         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12860         GET_ADDR_MODULE parameter.
12861
12862 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12863
12864         * crypt/cert.c: Remove __STDC__ conditionals.
12865         * crypt/crypt-entry.c: Likewise.
12866         * crypt/crypt_util.c: Likewise.
12867         * libio/filedoalloc.c: Likewise.
12868         * libio/fileops.c: Likewise.
12869         * libio/genops.c: Likewise.
12870         * libio/iofclose.c: Likewise.
12871         * libio/iofdopen.c: Likewise.
12872         * libio/iofopen.c: Likewise.
12873         * libio/iofopen64.c: Likewise.
12874         * libio/iogetdelim.c: Likewise.
12875         * libio/iopopen.c: Likewise.
12876         * libio/obprintf.c: Likewise.
12877         * libio/oldfileops.c: Likewise.
12878         * libio/oldiofclose.c: Likewise.
12879         * libio/oldiofdopen.c: Likewise.
12880         * libio/oldiofopen.c: Likewise.
12881         * libio/oldiopopen.c: Likewise.
12882         * libio/wfiledoalloc.c: Likewise.
12883         * libio/wgenops.c: Likewise.
12884         * locale/programs/xmalloc.c: Likewise.
12885         * misc/syslog.c: Likewise.
12886         * stdio-common/xbug.c: Likewise.
12887         * string/memchr.c: Likewise.
12888         * string/memcmp.c: Likewise.
12889         * string/memrchr.c: Likewise.
12890         * string/rawmemchr.c: Likewise.
12891         * sysdeps/posix/getcwd.c: Likewise.
12892         * time/strftime_l.c: Likewise.
12893
12894 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12895
12896         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12897         * config.make.in (config-cflags-sse2avx): Define.
12898         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12899         Fix typo.
12900
12901 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12902
12903         * scripts/config.guess: Update from upstream config git repository.
12904         * scripts/config.sub: Likewise.
12905
12906 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12907
12908         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12909         (EM_NUM): Update.
12910         (R_TILEPRO_*, R_TILEGX_*): New macros.
12911
12912         * scripts/firstversions.awk: Fix bug in version range handling.
12913
12914         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12915
12916         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12917
12918         * include/sys/epoll.h: New file.
12919         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12920         libc_hidden_def.
12921
12922 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12923
12924         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12925         Avoid unnecessary __WORDSIZE == 64 test.
12926         (fmaxf): Use VEX format if possible.
12927         (fmax): Likewise.
12928         (fminf): Likewise.
12929         (fmin): Likewise.
12930
12931         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12932         * math/math_private.h: Remove libc_fegetround* and
12933         libc_fesetround*.
12934         * sysdeps/i386/configure.in: Check for -msse2avx.
12935         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12936         also if SSE2AVX is defined.
12937         Remove libc_fegetround* and libc_fesetround*.
12938         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12939         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12940         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12941         of HAS_YMM_USABLE.
12942         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12943         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12944         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12945         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12946         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12947
12948         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12949
12950 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12951
12952         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12953         size is not set.
12954         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12955
12956 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12957
12958         [BZ #13618]
12959         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12960         relocation.
12961         * Makeconfig (libm): Define.
12962         * elf/Makefile: Add rules to build and run tst-relsort1.
12963         * elf/tst-relsort1.c: New file.
12964         * elf/tst-relsort1mod1.c: New file.
12965         * elf/tst-relsort1mod2.c: New file.
12966
12967 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12968
12969         * math/s_ldexp.c: Remove __STDC__ conditionals.
12970         * math/s_ldexpf.c: Likewise.
12971         * math/s_ldexpl.c: Likewise.
12972         * math/s_nextafter.c: Likewise.
12973         * math/s_nexttowardf.c: Likewise.
12974         * math/s_significand.c: Likewise.
12975         * math/s_significandf.c: Likewise.
12976         * math/s_significandl.c: Likewise.
12977         * math/w_jnl.c: Likewise.
12978         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12979         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12980         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12981         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12982         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12983         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12984         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12985         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12986         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12987         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12988         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12989         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12990         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12991         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12992         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12993         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12994         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12995         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12996         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12997         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12998         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12999         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13000         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13001         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13002         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13003         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13004         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13005         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13006         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13007         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13008         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13009         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13010         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13011         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13012         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13013         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13014         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13015         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13016         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13017         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13018         * sysdeps/ieee754/k_standard.c: Likewise.
13019         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13023         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13024         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13025         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13026         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13027         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13028         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13029         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13031         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13032         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13037         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13038         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13041         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13042         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13043         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13044         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13045         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13046         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13047         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13048         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13051         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13052         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13058         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13063         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13067         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13068         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13071         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13073         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13074         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13075         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13076         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13077         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13078         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13079         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13080         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13081         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13082         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13083         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13084         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13085         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13086         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13087         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13088         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13089         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13090         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13091         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13092         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13093         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13094         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13095         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13096         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13097         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13098         * sysdeps/ieee754/s_matherr.c: Likewise.
13099         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13100         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13101         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13102         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13103
13104 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13105
13106         * crypt/md5.h: Remove __STDC__ conditionals.
13107         * libio/libioP.h: Likewise.
13108         * locale/programs/config.h: Likewise.
13109         * sysdeps/generic/sysdep.h: Likewise.
13110         * sysdeps/i386/asm-syntax.h: Likewise.
13111         * sysdeps/s390/asm-syntax.h: Likewise.
13112         * sysdeps/unix/sysdep.h: Likewise.
13113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13115
13116 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13117
13118         * libio/libio.h: Remove __STDC__ conditionals.
13119         * malloc/obstack.h: Likewise.
13120         * math/complex.h: Likewise.
13121         * math/math.h: Likewise.
13122         * sysdeps/generic/_G_config.h: Likewise.
13123         * sysdeps/gnu/_G_config.h: Likewise.
13124         * sysdeps/mach/hurd/_G_config.h: Likewise.
13125         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13126         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13127         * sysdeps/sparc/bits/mathdef.h: Likewise.
13128
13129 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13130
13131         [BZ #13583]
13132         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13133         Clean up HAS_* macros.
13134         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13135         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13136         possible.
13137         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13138         HAS_AVX.
13139         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13140         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13141         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13142         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13143         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13144
13145 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13146
13147         * elf/tst-unique3.cc (gets): Remove declaration.
13148         * elf/tst-unique3lib.cc (gets): Likewise.
13149         * elf/tst-unique3lib2.cc (gets): Likewise.
13150         * elf/tst-unique4.cc (gets): Likewise.
13151
13152 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13153
13154         * include/stdio.h: Add C++ protection.  Add gets declarations and
13155         definitions.
13156         * debug/tst-chk1.c: Don't declare gets here.
13157         * stdio-common/tst-gets.c: Likewise.
13158
13159 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13160
13161         * posix/glob: Remove directory.
13162
13163 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13164
13165         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13166
13167 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13168
13169         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13170         of the non-standard EPFNOSUPPORT.
13171
13172 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13173
13174         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13175         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13176         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13177
13178 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13179
13180         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13181
13182 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13183
13184         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13185         transient errors.
13186         * nscd/grpcache.c (cache_addgr): Likewise.
13187         * nscd/hstcache.c (cache_addhst): Likewise.
13188         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13189         * nscd/pwdcache.c (cache_addpw): Likewise.
13190         * nscd/servicescache.c (cache_addserv): Likewise.
13191
13192 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13193
13194         * malloc/malloc.c: Various cleanups.
13195         * malloc/hooks.c: Likewise.
13196
13197         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13198         * stdlib/bug-fmtmsg1.c: New file.
13199
13200         * stdlib/fmtmsg.c (init): Add missing unlock.
13201         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13202
13203 2012-01-12  Marek Polacek  <polacek@redhat.com>
13204
13205         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13206         and _GNU_SOURCE.
13207
13208 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13209
13210         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13211         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13212         macro to ensure uniqueness of label name.
13213         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13214         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13215
13216 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13217
13218         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13219
13220         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13221         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13222         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13223         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13224
13225 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13226
13227         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13228
13229         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13230         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13231         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13232
13233         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13234
13235         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13236         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13237         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13238         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13239
13240         * math/bits/math-finite.h: Add ldexp support.
13241
13242 2012-01-10  Marek Polacek  <polacek@redhat.com>
13243
13244         * locale/programs/localedef.h (show_archive_content): Add noreturn
13245         attribute.
13246
13247 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13248
13249         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13250
13251 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13252
13253         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13254
13255         * io/Makefile (headers): Add bits/poll2.h.
13256
13257 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13258
13259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13260         typo #include statement.
13261
13262 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13263
13264         * include/sys/cdefs.h: Define __attribute_alloc_size.
13265         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13266         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13267         * elf/pldd.c: Likewise.
13268         * iconv/iconv_charmap.c: Likewise.
13269         * iconv/iconvconfig.c: Likewise.
13270         * iconv/strtab.c: Likewise.
13271         * locale/programs/locale.c: Likewise.
13272         * locale/programs/localedef.h: Likewise.
13273         * locale/programs/simple-hash.c: Likewise.
13274         * nscd/nscd.h: Likewise.
13275         * nss/makedb.c: Likewise.
13276         * sysdeps/generic/ldconfig.h: Likewise.
13277         * locale/programs/localedef.c: Remove xmalloc prototype.
13278         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13279
13280 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13281
13282         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13283         appropriate.
13284
13285 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13286
13287         * math/Makefile (tests): Add tst-CMPLX.
13288         * math/tst-CMPLX.c: New file.
13289
13290         * math/complex.h (CMPLXL): Fix typo.
13291
13292         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13293         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13294         GLIBC_2.16.
13295         * debug/tst-chk1.c: Add poll and ppoll tests.
13296         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13297         * include/sys/poll.h: Add hidden proto for ppoll.
13298         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13299         * sysdeps/mach/hurd/ppoll.c: Likewise.
13300         * io/ppoll.c: Likewise.
13301         * debug/poll_chk.c: New file.
13302         * debug/ppoll_chk.c: New file.
13303         * include/bits/poll2.h: New file.
13304         * io/bits/poll2.h: New file.
13305
13306         [BZ #1350]
13307         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13308
13309         * configure.in: static is always set to yes.  Remove.
13310         * config.make.in: Don't set build-static.
13311         * Makeconfig: Remove use of build-static.
13312         * dlfcn/Makefile: Likewise.
13313         * elf/Makefile: Likewise.
13314         * math/Makefile: Likewise.
13315         * misc/Makefile: Likewise.
13316         * nptl/Makefile: Likewise.
13317         * sysdeps/mach/hurd/Makefile: Likewise.
13318
13319         * configure.in: PWD_P is not used anymore.
13320         * config.make.in: Remove PWD_P entry.
13321
13322         * configure.in: Remove last remnants of RANLIB.
13323         No need to check for signed size_t anymore.
13324         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13325         and IA-64.
13326         Remove __builtin_expect test because we require at least gcc 3.4.
13327         * aclocal.m4: Likewise.
13328
13329         * wcsmbs/mbrtoc16.c: Implement using towc function.
13330         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13331         * wcsmbs/wcsmbsload.c: Likewise.
13332         * iconv/gconv_simple.c: Likewise.
13333         * iconv/gconv_int.h: Likewise.
13334         * iconv/gconv_builtin.h: Likewise.
13335         * iconv/iconv_prog.c: Remove CHAR16 handling.
13336
13337         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13338
13339         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13340
13341         * configure.in: Remove --with-elf and --enable-bounded options.
13342         Dont set base_machine for ia64.  More non-ELF conditions removed.
13343         Remove testing and setting of leading underscore information.
13344         * config.make.in (build-bounded): Set to no.
13345         * config.h.in: Remove NO_UNDERSCORES entry.
13346         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13347         them.
13348         * csu/start.c: Remove !NO_UNDERSCORE code.
13349         * locale/localeinfo.h: Likewise.
13350         * sysdeps/generic/machine-gmon.h: Likewise.
13351         * sysdeps/generic/sysdep.h: Likewise.
13352         * sysdeps/i386/sysdep.h: Likewise.
13353         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13354         * sysdeps/mach/sysdep.h: Likewise.
13355         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13356         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13357         * sysdeps/sh/sysdep.h: Likewise.
13358         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13359         * sysdeps/unix/i386/sysdep.S: Likewise.
13360         * sysdeps/unix/sparc/start.c: Likewise.
13361         * sysdeps/unix/sparc/sysdep.S: Likewise.
13362         * sysdeps/unix/sparc/sysdep.h: Likewise.
13363         * sysdeps/unix/start.c: Likewise.
13364         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13365         * sysdeps/x86_64/sysdep.h: Likewise.
13366
13367 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13368
13369         [BZ #13553]
13370         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13371         for non-gcc.
13372         * argp/argp-fmtstream.h: Use const instead __const.
13373         * argp/argp.h: Likewise.
13374         * assert/assert.h: Likewise.
13375         * bits/fenv.h: Likewise.
13376         * bits/sched.h: Likewise.
13377         * bits/sigset.h: Likewise.
13378         * bits/sigthread.h: Likewise.
13379         * catgets/nl_types.h: Likewise.
13380         * conform/data/pthread.h-data: Likewise.
13381         * crypt/crypt-private.h: Likewise.
13382         * crypt/crypt.h: Likewise.
13383         * crypt/crypt_util.c: Likewise.
13384         * ctype/ctype.h: Likewise.
13385         * debug/execinfo.h: Likewise.
13386         * debug/mbsnrtowcs_chk.c: Likewise.
13387         * debug/mbsrtowcs_chk.c: Likewise.
13388         * debug/wcsnrtombs_chk.c: Likewise.
13389         * debug/wcsrtombs_chk.c: Likewise.
13390         * debug/wcstombs_chk.c: Likewise.
13391         * dirent/dirent.h: Likewise.
13392         * dlfcn/dlfcn.h: Likewise.
13393         * elf/neededtest4.c: Likewise.
13394         * grp/grp.h: Likewise.
13395         * gshadow/gshadow.h: Likewise.
13396         * iconv/gconv.h: Likewise.
13397         * iconv/gconv_int.h: Likewise.
13398         * iconv/gconv_simple.c: Likewise.
13399         * iconv/iconv.h: Likewise.
13400         * iconv/loop.c: Likewise.
13401         * iconv/skeleton.c: Likewise.
13402         * include/aio.h: Likewise.
13403         * include/aliases.h: Likewise.
13404         * include/argz.h: Likewise.
13405         * include/arpa/inet.h: Likewise.
13406         * include/assert.h: Likewise.
13407         * include/dirent.h: Likewise.
13408         * include/dlfcn.h: Likewise.
13409         * include/execinfo.h: Likewise.
13410         * include/fcntl.h: Likewise.
13411         * include/fenv.h: Likewise.
13412         * include/glob.h: Likewise.
13413         * include/grp.h: Likewise.
13414         * include/libintl.h: Likewise.
13415         * include/mntent.h: Likewise.
13416         * include/netdb.h: Likewise.
13417         * include/pwd.h: Likewise.
13418         * include/rpc/netdb.h: Likewise.
13419         * include/sched.h: Likewise.
13420         * include/search.h: Likewise.
13421         * include/shadow.h: Likewise.
13422         * include/signal.h: Likewise.
13423         * include/stdio.h: Likewise.
13424         * include/stdlib.h: Likewise.
13425         * include/string.h: Likewise.
13426         * include/sys/socket.h: Likewise.
13427         * include/sys/stat.h: Likewise.
13428         * include/sys/statfs.h: Likewise.
13429         * include/sys/statvfs.h: Likewise.
13430         * include/sys/syslog.h: Likewise.
13431         * include/sys/time.h: Likewise.
13432         * include/sys/uio.h: Likewise.
13433         * include/time.h: Likewise.
13434         * include/unistd.h: Likewise.
13435         * include/utmp.h: Likewise.
13436         * include/wchar.h: Likewise.
13437         * include/wctype.h: Likewise.
13438         * inet/aliases.h: Likewise.
13439         * inet/arpa/inet.h: Likewise.
13440         * inet/netinet/ether.h: Likewise.
13441         * inet/netinet/in.h: Likewise.
13442         * intl/libintl.h: Likewise.
13443         * io/bits/fcntl2.h: Likewise.
13444         * io/fcntl.h: Likewise.
13445         * io/ftw.h: Likewise.
13446         * io/sys/poll.h: Likewise.
13447         * io/sys/stat.h: Likewise.
13448         * io/sys/statfs.h: Likewise.
13449         * io/sys/statvfs.h: Likewise.
13450         * io/utime.h: Likewise.
13451         * libio/bits/stdio.h: Likewise.
13452         * libio/bits/stdio2.h: Likewise.
13453         * libio/libio.h: Likewise.
13454         * libio/libioP.h: Likewise.
13455         * libio/stdio.h: Likewise.
13456         * locale/lc-ctype.c: Likewise.
13457         * locale/locale.h: Likewise.
13458         * login/utmp.h: Likewise.
13459         * malloc/arena.c: Likewise.
13460         * malloc/malloc.c: Likewise.
13461         * malloc/malloc.h: Likewise.
13462         * malloc/mcheck.c: Likewise.
13463         * malloc/mtrace.c: Likewise.
13464         * math/bits/mathcalls.h: Likewise.
13465         * math/fenv.h: Likewise.
13466         * math/math_private.h: Likewise.
13467         * misc/bits/error.h: Likewise.
13468         * misc/bits/syslog.h: Likewise.
13469         * misc/err.h: Likewise.
13470         * misc/error.h: Likewise.
13471         * misc/fstab.h: Likewise.
13472         * misc/mntent.h: Likewise.
13473         * misc/regexp.h: Likewise.
13474         * misc/search.h: Likewise.
13475         * misc/sgtty.h: Likewise.
13476         * misc/sys/mman.h: Likewise.
13477         * misc/sys/syslog.h: Likewise.
13478         * misc/sys/uio.h: Likewise.
13479         * misc/sys/xattr.h: Likewise.
13480         * misc/ttyent.h: Likewise.
13481         * nis/rpcsvc/ypclnt.h: Likewise.
13482         * nss/nss.h: Likewise.
13483         * posix/bits/unistd.h: Likewise.
13484         * posix/fnmatch.h: Likewise.
13485         * posix/glob.h: Likewise.
13486         * posix/sched.h: Likewise.
13487         * posix/spawn.h: Likewise.
13488         * posix/sys/wait.h: Likewise.
13489         * posix/unistd.h: Likewise.
13490         * posix/wordexp.h: Likewise.
13491         * pwd/pwd.h: Likewise.
13492         * resolv/netdb.h: Likewise.
13493         * resource/sys/resource.h: Likewise.
13494         * rt/aio.h: Likewise.
13495         * rt/bits/mqueue2.h: Likewise.
13496         * rt/mqueue.h: Likewise.
13497         * shadow/shadow.h: Likewise.
13498         * signal/signal.h: Likewise.
13499         * socket/send.c: Likewise.
13500         * socket/sendto.c: Likewise.
13501         * socket/sys/socket.h: Likewise.
13502         * stdio-common/printf.h: Likewise.
13503         * stdlib/bits/stdlib.h: Likewise.
13504         * stdlib/fmtmsg.h: Likewise.
13505         * stdlib/monetary.h: Likewise.
13506         * stdlib/stdlib.h: Likewise.
13507         * stdlib/ucontext.h: Likewise.
13508         * streams/stropts.h: Likewise.
13509         * string/argz.h: Likewise.
13510         * string/bits/string2.h: Likewise.
13511         * string/string.h: Likewise.
13512         * string/strings.h: Likewise.
13513         * sunrpc/rpc/auth.h: Likewise.
13514         * sunrpc/rpc/auth_des.h: Likewise.
13515         * sunrpc/rpc/clnt.h: Likewise.
13516         * sunrpc/rpc/netdb.h: Likewise.
13517         * sunrpc/rpc/pmap_clnt.h: Likewise.
13518         * sunrpc/rpc/xdr.h: Likewise.
13519         * sysdeps/generic/inttypes.h: Likewise.
13520         * sysdeps/generic/net/if.h: Likewise.
13521         * sysdeps/generic/sys/swap.h: Likewise.
13522         * sysdeps/gnu/net/if.h: Likewise.
13523         * sysdeps/gnu/utmpx.h: Likewise.
13524         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13525         * sysdeps/i386/i486/bits/string.h: Likewise.
13526         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13527         * sysdeps/s390/bits/string.h: Likewise.
13528         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13529         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13530         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13531         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13532         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13533         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13534         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13535         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13536         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13537         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13538         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13539         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13540         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13541         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13542         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13543         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13544         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13545         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13546         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13547         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13548         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13549         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13550         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13551         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13552         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13553         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13554         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13555         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13556         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13557         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13558         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13559         * sysvipc/sys/ipc.h: Likewise.
13560         * sysvipc/sys/msg.h: Likewise.
13561         * sysvipc/sys/sem.h: Likewise.
13562         * sysvipc/sys/shm.h: Likewise.
13563         * termios/termios.h: Likewise.
13564         * time/sys/time.h: Likewise.
13565         * time/time.h: Likewise.
13566         * wcsmbs/bits/wchar2.h: Likewise.
13567         * wcsmbs/uchar.h: Likewise.
13568         * wcsmbs/wchar.h: Likewise.
13569         * wctype/wctype.h: Likewise.
13570
13571         [BZ #13551]
13572         * Makeconfig: Remove all but ELF support including AIX support.
13573         * Makerules: Likewise.
13574         * config.h.in: Likewise.
13575         * config.make.in: Likewise.
13576         * configure: Likewise.
13577         * configure.in: Likewise.
13578         * csu/Makefile: Likewise.
13579         * csu/version.c: Likewise.
13580         * debug/Makefile: Likewise.
13581         * dlfcn/Makefile: Likewise.
13582         * elf/Makefile: Likewise.
13583         * extra-lib.mk: Likewise.
13584         * iconv/Makefile: Likewise.
13585         * include/libc-symbols.h: Likewise.
13586         * include/shlib-compat.h: Likewise.
13587         * resolv/Makefile: Likewise.
13588         * resolv/res_libc.c: Likewise.
13589         * rt/Makefile: Likewise.
13590         * sysdeps/i386/asm-syntax.h: Likewise.
13591         * sysdeps/i386/sysdep.h: Likewise.
13592         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13593         * sysdeps/mach/sysdep.h: Likewise.
13594         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13595         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13596         * sysdeps/s390/asm-syntax.h: Likewise.
13597         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13598         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13599         * sysdeps/sh/sysdep.h: Likewise.
13600         * sysdeps/unix/sparc/sysdep.h: Likewise.
13601         * sysdeps/wordsize-32/divdi3.c: Likewise.
13602         * sysdeps/x86_64/sysdep.h: Likewise.
13603
13604         * argp/Versions: Remove _argp_unlock_xxx.
13605
13606         [BZ #13559]
13607         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13608         * abilist/libBrokenLocale.abilist: Likewise.
13609         * abilist/libanl.abilist: Likewise.
13610         * abilist/libc.abilist: Likewise.
13611         * abilist/libcrypt.abilist: Likewise.
13612         * abilist/libdl.abilist: Likewise.
13613         * abilist/libm.abilist: Likewise.
13614         * abilist/libnsl.abilist: Likewise.
13615         * abilist/libpthread.abilist: Likewise.
13616         * abilist/libresolv.abilist: Likewise.
13617         * abilist/librt.abilist: Likewise.
13618         * abilist/libthread_db.abilist: Likewise.
13619         * abilist/libutil.abilist: Likewise.
13620         * abilist/libnss_db.abilist: New file.
13621
13622         * scripts/abilist.awk: Add support for indirect functions.
13623
13624         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13625
13626         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13627
13628         * shlib-versions: Remove entries for ports architectures.
13629
13630         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13631         files in ports.
13632         * elf/stackguard-macros.h: Remove support for IA-64.
13633         * elf/tst-auditmod1.c: Likewise.
13634         * sysdeps/generic/ldsodefs.h: Likewise.
13635
13636         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13637         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13638         configure files.
13639
13640         [BZ #13552]
13641         * configure.in: Remove --enable-omitfp support.
13642         * FAQ.in: Adjust.
13643         * config.make.in: Likewise.
13644         * Makeconfig: Likewise.
13645         * manual/install.texi: Likewise.
13646
13647         In case anyone cares, the IA-64 architecture could move to ports.
13648         * sysdeps/ia64/*: Removed.
13649         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13650         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13651
13652         [BZ #13555]
13653         * configure.in: Remove entries for unsupported architectures.
13654
13655         [BZ #13533]
13656         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13657         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13658         routines.
13659         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13660         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13661         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13662         fall back to using wcrtomb.
13663         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13664         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13665         renaming.
13666         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13667         * wcsmbs/tst-c16c32-1.c: New file.
13668
13669         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13670         local variable.
13671
13672         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13673
13674         * elf/tst-unique3.cc: Add explicit declaration of gets.
13675         * elf/tst-unique3lib.cc: Likewise.
13676         * elf/tst-unique3lib2.cc: Likewise.
13677         * elf/tst-unique4.cc: Likewise.
13678
13679         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13680
13681 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13682
13683         [BZ #13566]
13684         * assert/assert.h (static_assert): Don't define for C++.
13685         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13686         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13687
13688 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13689
13690         * iconv/loop.c (single loop): Fix assertion in storing of
13691         remaining bytes.
13692
13693         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13694
13695 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13696
13697         * posix/getconf.c: Update copyright year.
13698         * nss/getent.c: Likewise.
13699         * nss/makedb.c: Likewise.
13700         * iconv/iconvconfig.c: Likewise.
13701         * iconv/iconv_prog.c: Likewise.
13702         * elf/ldconfig.c: Likewise.
13703         * elf/pldd.c: Likewise.
13704         * elf/sotruss.ksh: Likewise.
13705         * catgets/gencat.c: Likewise.
13706         * csu/version.c: Likewise.
13707         * elf/ldd.bash.in: Likewise.
13708         * elf/sprof.c (print_version): Likewise.
13709         * locale/programs/locale.c: Likewise.
13710         * locale/programs/localedef.c: Likewise.
13711         * login/programs/pt_chown.c: Likewise.
13712         * nscd/nscd.c (print_version): Likewise.
13713         * debug/xtrace.sh: Likewise.
13714         * malloc/memusage.sh: Likewise.
13715         * malloc/mtrace.pl: Likewise.
13716         * debug/catchsegv.sh: Likewise.
13717
13718 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13719
13720         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13721         pure attribute.
13722
13723 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13724
13725         [BZ #13533]
13726         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13727         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13728         transformations.
13729         * iconv/gconv_int.h: Likewise.
13730         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13731         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13732         from libc for GLIBC_2.16.
13733         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13734         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13735         * wcsmbs/uchar.h: Really define mbstate_t.
13736         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13737         * wcsmbs/c16rtomb.c: New file.
13738         * wcsmbs/mbrtoc16.c: New file.
13739         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13740         for C/POSIX locale.
13741         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13742         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13743
13744         * wcsmbs/wchar.h: Add missing __restrict.
13745
13746 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13747
13748         [BZ #13532]
13749         * time/Makefile (routines): Add timespec_get.
13750         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13751         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13752         timespec for ISO C11.
13753         * time/timespec_get.c: New file.
13754         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13755         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13756
13757         [BZ #13531]
13758         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13759         * stdlib/stdlib.h: Declare aligned_alloc.
13760         * Versions.def: Add GLIBC_2.16 for libc.
13761         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13762
13763         [BZ 13527]
13764         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13765         ISO C11.
13766
13767         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13768         code.
13769
13770         [BZ #13528]
13771         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13772
13773         [BZ #13529]
13774         * assert/assert.h (static_assert): Define.
13775
13776         * version.h: Update for 2.16 development version.
13777
13778         [BZ #13526]
13779         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13780         _ISOC11_SOURCE.
13781
13782         * version.h (RELEASE): Bump for 2.15 release.
13783         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13784
13785         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13786         Patch by Marek Polacek <mpolacek@redhat.com>.
13787
13788         * bits/byteswap.h: Protect long long constants with __extension__.
13789         * sysdeps/i386/bits/byteswap.h: Likewise.
13790         * sysdeps/ia64/bits/byteswap.h: Likewise.
13791         * sysdeps/s390/bits/byteswap.h: Likewise.
13792         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13793
13794 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13795
13796         [BZ #13540]
13797         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13798         destination buffer.
13799         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13800
13801 2011-12-23  Marek Polacek  <polacek@redhat.com>
13802
13803         * elf/dl-addr.c (determine_info): Add inline keyword.
13804         * elf/tst-auditmod4b.c (check_avx): Likewise.
13805         * elf/tst-auditmod6b.c (check_avx): Likewise.
13806         * elf/tst-auditmod6c.c (check_avx): Likewise.
13807         * elf/tst-auditmod7b.c (check_avx): Likewise.
13808
13809 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13810
13811         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13812         !__SSE_MATH__.
13813
13814 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13815
13816         [BZ #13540]
13817         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13818         processing for last bytes.
13819
13820 2011-08-06  Bruno Haible  <bruno@clisp.org>
13821
13822         [BZ #13061]
13823         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13824         U+0385, not to U+1FEE.
13825
13826         [BZ #13062]
13827         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13828         entry for U+00A5 U+0301.
13829
13830 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13831
13832         [BZ #13166]
13833         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13834         buffer for the output is too small.
13835
13836         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13837         optimization.
13838
13839         [BZ #13185]
13840         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13841         SSE flags if possible.
13842
13843 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13844
13845         [BZ #13540]
13846         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13847         processing for last bytes.
13848
13849 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13850
13851         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13852         (syscall-list-default-options, syscall-list-default-condition)
13853         (syscall-list-includes): Define.
13854         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13855         list of ABIs and options and #if conditions for each ABI.  Do not
13856         handle common syscalls between ABIs specially.
13857         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13858         Remove.
13859         (syscall-list-variants, syscall-list-32bit-options)
13860         (syscall-list-32bit-condition, syscall-list-64bit-options)
13861         (syscall-list-64bit-condition): Define.
13862         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13863         (syscall-list-variants, syscall-list-32bit-options)
13864         (syscall-list-32bit-condition, syscall-list-64bit-options)
13865         (syscall-list-64bit-condition): Define.
13866         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13867         Remove.
13868         (syscall-list-variants, syscall-list-32bit-options)
13869         (syscall-list-32bit-condition, syscall-list-64bit-options)
13870         (syscall-list-64bit-condition): Define.
13871         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13872         Remove.
13873         (syscall-list-variants, syscall-list-32bit-options)
13874         (syscall-list-32bit-condition, syscall-list-64bit-options)
13875         (syscall-list-64bit-condition): Define.
13876
13877 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13878
13879         * locale/iso-639.def: Add brx entry.
13880
13881         [BZ #13328]
13882         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13883         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13884
13885         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13886         __feraiseexcept_renamed.
13887
13888 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13889
13890         [BZ #13538]
13891         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13892         EPOLLET with unsigned values.
13893         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13894         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13895
13896         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13897         to large cancellation.
13898         * math/s_cacoshf.c: Likewise.
13899         * math/s_cacoshl.c: Likewise.
13900
13901 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13902
13903         [BZ #13305]
13904         [BZ #12786]
13905         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13906         * math/s_cacoshf.c: Likewise.
13907         * math/s_cacoshl.c: Likewise.
13908
13909 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13910
13911         [BZ #13439]
13912         * iconv/gconv.h: Define __GCONV_SWAP.
13913         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13914         * iconvdata/utf-16.c: Likewise.
13915         * iconvdata/utf-32.c: Likewise.
13916
13917 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13918
13919         [BZ #13524]
13920         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13921         numerator after shifting it by one limb.
13922
13923 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13924
13925         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13926         under [__USE_EXTERN_INLINES].
13927
13928 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13929
13930         [BZ #13446]
13931         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13932
13933 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13934
13935         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13936         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13937         optimized code.
13938         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13939         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13940         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13941         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13942         for strncasecmp/strncasecmp_l compilation.
13943         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13944         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13945
13946 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13947
13948         [BZ #13484]
13949         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13950         of __asm__.
13951
13952 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13953
13954         [BZ #13506]
13955         * time/tzfile.c (__tzfile_read): Check values from file header.
13956
13957 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13958
13959         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13960         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13961         * powerpc/powerpc32/dl-start.S: Likewise.
13962         * powerpc/powerpc32/elf/start.S: Likewise.
13963         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13964         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13965         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13966         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13967         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13968         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13969         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13970         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13971         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13972         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13973         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13974         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13975         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13976         * powerpc/powerpc32/memset.S: Likewise.
13977         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13978         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13979         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13980         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13981         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13982         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13983         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13984         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13985         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13986         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13987         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13988         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13989         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13990
13991 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13992
13993         * math/libm-test.inc: Added more nearbyint tests.
13994         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
13995         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
13996         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
13997         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
13998
13999 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14000
14001         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14002         FD_CLOEXEC.
14003
14004 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14005
14006         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14007         Add wcscpy-ssse3 wcscpy-c.
14008         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14009         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14010         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14011         * sysdeps/x86_64/wcschr.S: New file.
14012         * sysdeps/x86_64/wcsrchr.S: New file.
14013         * string/test-strcmp.c: Remove checking of wcscmp function for
14014         wrong alignments.
14015         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14016         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14017         wcsrchr-sse2 wcsrchr-c.
14018         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14019         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14020         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14021         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14022         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14023         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14024         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14025         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14026         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14027         * wcsmbc/wcschr.c (WCSCHR): New macro.
14028
14029 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14030
14031         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14032         * wcsmbs/test-wcsrchr.c: New file.
14033         * string/test-strrchr.c: Add wcsrchr support.
14034         (WIDE): New macro.
14035         * wcsmbs/test-wcscpy.c: New file.
14036         * string/test-strcpy.c: Add wcscpy support.
14037         (WIDE): New macro.
14038
14039 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14040
14041         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14042         the inner loop.
14043
14044 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14045
14046         [BZ #13472]
14047         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14048
14049 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14050
14051         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14052         Minor optimizations.
14053
14054         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14055         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14056         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14057
14058 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14059
14060         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14061         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14062         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14063         for gcc to avoid warnings.
14064         * inet/Makefile (tests): Add tst-checks.
14065         * inet/tst-checks.c: New file.
14066
14067         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14068         warning.
14069
14070         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14071         __wmemcmp_sse2.
14072
14073         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14074         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14075
14076         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14077
14078 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14079
14080         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14081         problem.
14082
14083         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14084
14085 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14086
14087         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14088         conditional on GCC version.
14089         (__arch_compare_and_exchange_val_8_acq)
14090         (__arch_compare_and_exchange_val_16_acq)
14091         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14092         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14093         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14094
14095 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14096
14097         * sysdeps/sh/backtrace.c: New file.
14098
14099 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14100
14101         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14102         parenthesis.
14103
14104 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14105
14106         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14107         falling back to utime.
14108
14109 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14110
14111         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14112         expectations for float.
14113
14114 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14115
14116         * locale/weight.h (findidx): Add parameter len.
14117         * locale/weightwc.h (findidx): Likewise.
14118         * posix/fnmatch_loop.c (FCT): Adjust caller.
14119         * posix/regcomp.c (build_equiv_class): Likewise.
14120         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14121         * posix/regexec.c (check_node_accept_bytes): Likewise.
14122         * string/strcoll_l.c (STRCOLL): Likewise.
14123         * string/strxfrm_l.c (STRXFRM): Likewise.
14124
14125 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14126
14127         * Makefile.in: Remove CVSOPT handling.
14128         * configure.in: Remove use of AC_REVISION.
14129         * iconvdata/Makefile (distribute): No need to filter out CVS.
14130         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14131         handling.
14132
14133 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14134
14135         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14136         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14137         [USE_AS_STRNCASECMP_L]: Likewise.
14138         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14139         NO_TLS_DIRECT_SEG_REFS.
14140         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14141         Fix argument offsets for non-PIC.
14142         [USE_AS_STRNCASECMP_L]: Likewise.
14143         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14144         NO_TLS_DIRECT_SEG_REFS.
14145
14146 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14147
14148         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14149         O_CLOEXEC.
14150         * locale/loadlocale.c (_nl_load_locale): Likewise.
14151
14152 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14153
14154         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14155         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14156         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14157         (SYSCALL_GETTIME): Set errno on error.
14158
14159         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14160         count references to noai6ai_cached.
14161
14162 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14163
14164         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14165
14166         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14167         FD_CLOEXEC for /proc/self/maps.
14168
14169         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14170         FD_CLOEXEC for /proc/meminfo.
14171
14172         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14173         gai.conf.
14174
14175         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14176         FD_CLOEXEC for given file.
14177
14178         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14179
14180         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14181         FD_CLOEXEC for /etc/hosts.
14182         (_gethtent): Likewise.
14183
14184         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14185
14186         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14187         cancellation and set FD_CLOEXEC for /etc/netgroup.
14188
14189         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14190         reading /etc/publickey.
14191
14192         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14193         allow cancellation when reading /etc/group.
14194
14195         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14196         cancellation.
14197         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14198
14199         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14200         when using data file.
14201
14202         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14203
14204         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14205         (write_nis_obj): Use "c" and "e" in fopen.
14206
14207         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14208
14209         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14210
14211         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14212
14213         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14214
14215         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14216         locale.alias.
14217
14218         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14219
14220         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14221
14222         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14223
14224         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14225         file parsing and set FD_CLOEXEC.
14226
14227 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14228
14229         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14230
14231 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14232
14233         * malloc/arena.c (arena_get2): Don't call reused_arena when
14234         _int_new_arena failed.
14235
14236 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14237
14238         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14239         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14240         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14241         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14242         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14243         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14244         to compile strcasecmp and strncasecmp.
14245         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14246         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14247
14248         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14249
14250 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14251
14252         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14253         locale-defines.sym to gen-as-const-headers.
14254         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14255         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14256         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14257         to compile strcasecmp and strncasecmp.
14258         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14259         strcasecmp_l and strncasecmp_l.
14260         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14261         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14262         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14263         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14264         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14265         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14266         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14267         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14268         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14269         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14270         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14271
14272 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14273
14274         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14275         result of SYSDEP_GETTIME_CPU to retval.
14276         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14277         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14278
14279         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14280         variable.
14281
14282         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14283         mantissa words.
14284         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14285
14286         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14287         from unused variable.
14288
14289         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14290         DWARF definitions.
14291         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14292         for assembling.
14293
14294         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14295         over namespaces.
14296
14297         * sunrpc/rpc_prot.c (rejected): Fix case value.
14298
14299         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14300         unsigned long long int to avoid warnings in shift.
14301
14302         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14303         of use of trans.
14304         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14305         variable tmp.
14306
14307         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14308         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14309         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14310
14311         * nis/nis_table.c (nis_list): Use variable of correct type for
14312         result of __follow_path call.
14313
14314 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14315
14316         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14317         of math functions ceil, trunc, floor, round, and sqrt, when
14318         avaliable on the platform.
14319         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14320         name clash.
14321         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14322         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14323         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14324
14325 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14326
14327         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14328         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14329
14330 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14331
14332         * include/unistd.h: Fix __readlink return type.
14333         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14334
14335 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14336
14337         * stdlib/ucontext.h: Undo last change for makecontext.
14338
14339 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14340
14341         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14342
14343         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14344         * setjmp/setjmp.h: Mark functions as non-leaf.
14345         * setjmp/bits/setjmp2.h: Likewise.
14346         * stdlib/ucontext.h: Likewise.
14347
14348 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14349
14350         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14351         (reused_arena): Don't check arena limit.
14352         (arena_get2): Atomically check arena limit.
14353
14354 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14355
14356         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14357         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14358
14359         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14360         instructions.
14361
14362 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14363
14364         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14365         handler when locking.
14366
14367         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14368         Fix size of allocated buffer.
14369
14370 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14371
14372         [BZ #10103]
14373         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14374         declarations for long double functions.
14375         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14376
14377         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14378
14379 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14380
14381         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14382         installed.
14383
14384         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14385         is disabled.
14386
14387 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14388
14389         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14390
14391 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14392
14393         * include/alloca.h (stackinfo_alloca_round): Define.
14394         (extend_alloca): Use it.
14395         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14396         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14397         here.
14398
14399         * scripts/check-local-headers.sh: Ignore libaudit.h.
14400
14401         * nscd/Makefile (extra-objs): Make recursively expanded.
14402
14403 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14404
14405         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14406         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14407
14408         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14409         * posix/tst-rfc3484-2.c: Likewise.
14410         * posix/tst-rfc3484-3.c: Likewise.
14411
14412         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14413         process_vm_writev.
14414         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14415         process_vm_writev.
14416         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14417         process_vm_writev from libc using GLIBC_2.15 version.
14418
14419         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14420
14421 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14422
14423         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14424         stack usage.
14425
14426 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14427
14428         [BZ #13367]
14429         * nss/getent.c (initgroups_keys): Show error message in case no group
14430         names are given.
14431
14432         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14433         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14434         __bump_nl_timestamp.
14435         * nscd/connections (nscd_init): When host database is served open
14436         netlink socket and request notification about configuration changes.
14437         (main_loop_poll): Track netlink file descriptor and bump timestamp
14438         in case data becomes available.
14439         (main_loop_epoll): Likewise.
14440         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14441         (database_pers_head): Add extra_data fileds.
14442         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14443         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14444         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14445         Adjust caller.
14446         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14447         in6ai data, call __free_in6ai.
14448         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14449         Add -DHAVE_NETLINK.
14450         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14451         interface information.  Reuse previous data if netlink timestamp
14452         is not changed.
14453         (__bump_nl_timestamp): New function.
14454         (__free_in6ai): New function.
14455
14456 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14457
14458         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14459         close_not_cancel_no_status here.
14460         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14461
14462 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14463
14464         [BZ #13276]
14465         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14466         return value.
14467
14468         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14469         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14470         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14471
14472 2011-07-03  Andreas Jaeger  <aj@suse.de>
14473
14474         [BZ #10709]
14475         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14476         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14477         * math/libm-test.inc (sin_test): Add test case.
14478
14479 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14480
14481         [BZ #13337]
14482         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14483         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14484
14485         * elf/chroot_canon.c (chroot_canon): Cleanups.
14486
14487         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14488
14489         [BZ #13335]
14490         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14491         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14492
14493         * string/test-strchr.c: Make usable for strchrnul testing.
14494         * string/test-strchrnul.c: New file.
14495         * string/Makefile (strop-tests): Add strchrnul.
14496
14497         * po/it.po: Update from translation team.
14498         * po/es.po: Likewise.
14499
14500 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14501
14502         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14503         the three constants needed as parameters.  Drop the others.
14504         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14505         __m128i_strloadu_tolower.
14506         Create and initialize variable zero and use it in all the places
14507         where _mm_setzero_si128 was used.
14508
14509         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14510         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14511         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14512         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14513         anymore.
14514         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14515         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14516         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14517         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14518         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14519         __mpranred, __mptan.
14520         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14521         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14522         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14523         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14524         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14525         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14526         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14527         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14528         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14529
14530 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14531
14532         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14533         redefine if SHARED.
14534         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14535
14536         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14537         wide char related routines to wcsmbs subdir.
14538
14539 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14540
14541         [BZ #13344]
14542         * misc/sys/cdefs.h (__THROWNL): Define.
14543         * posix/unistd.h: Use __THREADNL instead of __THREAD
14544         for memory synchronization functions.
14545
14546 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14547
14548         [BZ #13349]
14549         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14550         doesn't exist.
14551         * manual/stdio.texi (Obstack Streams): Node removed.
14552
14553 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14554
14555         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14556         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14557         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14558
14559         * math/math_private.h (math_force_eval): Allow non-addressable
14560         arguments.
14561         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14562
14563 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14564
14565         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14566         file is not needed.
14567
14568         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14569         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14570         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14571         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14572         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14573         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14574         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14575         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14576         Add AVX variants.
14577         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14578         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14579         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14580         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14581         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14582         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14583         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14584         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14585         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14586         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14587         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14588         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14589         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14590         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14591         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14592         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14593         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14594         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14595         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14596
14597         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14598         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14599
14600         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14601         place.  Use VEX encoding when compiling for AVX.
14602
14603 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14604
14605         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14606         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14607
14608         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14609
14610 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14611
14612         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14613         useless if() expression.
14614         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14615         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14616         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14617         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14618         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14619         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14620         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14621         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14622         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14623         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14624         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14625         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14626         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14627         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14628         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14629         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14630         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14631         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14632         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14633
14634         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14635
14636 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14637
14638         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14639         condition.
14640         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14641
14642 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14643
14644         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14645         .text section.  Avoid duplicate constants.
14646         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14647         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14648         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14649         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14650         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14651         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14652         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14653         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14654         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14655         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14656         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14657         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14658         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14659         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14660         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14661         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14662         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14663         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14664         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14665         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14666         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14667         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14668         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14669         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14670         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14671         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14672         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14673         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14674         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14675         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14676         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14677         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14678         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14679         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14680         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14681         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14682         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14683         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14684         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14685         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14686         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14687         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14688         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14689         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14690         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14691
14692 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14693
14694         * sysdeps/x86_64/dla.h: Move to ...
14695         * sysdeps/x86_64/fpu/dla.h: ...here.
14696         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14697         situations.  Use __builtin_fma only for gcc 4.6 and up.
14698
14699         * config.make.in: Add have-mfma4 entry.
14700         * configure.in: Substitute libc_cv_cc_fma4.
14701         * math/Makefile (dbl-only-routines): Add sincostab.
14702         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14703         Use __sincostab not sincos.
14704         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14705         name is a macro.
14706         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14707         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14708         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14709         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14710         using __copysign.
14711         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14712         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14713         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14714         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14715         and __inv.
14716         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14717         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14718         __copysign.
14719         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14720         define aliases when function name is a macro.
14721         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14722         sysdeps/ieee754/dbl-64/sincos.tbl.
14723         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14724         fma4-enabled routines.
14725         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14726         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14727         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14728         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14729         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14730         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14731         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14732         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14733         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14734         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14735         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14736         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14737         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14738         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14739         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14740         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14741         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14742         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14743         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14744         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14745         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14746         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14747         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14748         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14749         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14750         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14751         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14752         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14753         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14754         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14755
14756         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14757         rename.
14758         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14759         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14760         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14761         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14762         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14763         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14764         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14765         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14766
14767 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14768
14769         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14770
14771 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14772
14773         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14774
14775         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14776         prediction.
14777         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14778
14779         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14780         Remove unused variable magic_bits.
14781         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14782
14783         * string/strnlen.c: Define and use STRNLEN macro.
14784         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14785         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14786         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14787         * wcsmbs/wcslen.c: Define and use WCSLEN.
14788         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14789         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14790         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14791         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14792         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14793         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14794         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14795
14796 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14797
14798         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14799         strnlen-sse2-no-bsf.
14800         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14801         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14802         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14803         Add strnlen support.
14804         (USE_AS_STRNLEN): New macro.
14805         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14806         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14807         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14808         * sysdeps/x86_64/wcslen.S: New file.
14809
14810 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14811
14812         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14813         XMM-moves are used for copying on small sizes.
14814
14815 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14816
14817         * wcsmbs/Makefile (strop-tests): Add wcschr.
14818         * wcsmbs/test-wcschr.c: New file.
14819         * string/test-strchr.c: Update.
14820         Add wcschr support.
14821         (WIDE): New macro.
14822
14823 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14824
14825         * wcsmbs/Makefile (strop-tests): Add wcslen.
14826         * wcsmbs/test-wcslen.c: New file.
14827         * string/test-strlen.c: Update.
14828         Add wcslen support.
14829         (WIDE): New macro.
14830
14831 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14832
14833         * po/it.po: Update from translation team.
14834
14835 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14836
14837         * sysdeps/x86_64/wcscmp.S: Update.
14838         Fix wrong comparison semantics.
14839         wcscmp shall use signed comparison not unsigned.
14840         Don't use substraction to avoid overflow bug.
14841         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14842         * wcsmbc/wcscmp.c: Likewise.
14843         * string/test-strcmp.c: Likewise.
14844         Add new tests to check cases with negative values.
14845
14846 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14847
14848         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14849         * sysdeps/x86_64/dla.h: ...here.  New file.
14850         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14851         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14852         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14853         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14854         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14855         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14856         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14857         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14858         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14859
14860 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14861
14862         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14863         __ynl_finite aliases.
14864
14865 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14866
14867         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14868
14869         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14870         define DLA_FMA.
14871         [DLA_FMA] (EMULV): Use DLA_FMA.
14872         [DLA_FMA] (MUL12): Use EMULV.
14873         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14874         that are not needed.
14875         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14876         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14877         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14878         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14879         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14880         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14881         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14882
14883 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14884
14885         * math/s_nan.c: Undef __nan.
14886         * math/s_nanf.c: Undef __nanf.
14887         * math/s_nanl.c: Undef __nanl.
14888         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14889         "math_private.h".
14890
14891 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14892
14893         * math/s_catan.c: Add branch predictions.
14894         * math/s_catanf.c: Likewise.
14895         * math/s_catanh.c: Likewise.
14896         * math/s_catanhf.c: Likewise.
14897         * math/s_catanhl.c: Likewise.
14898         * math/s_catanl.c: Likewise.
14899         * math/s_cexp.c: Likewise.
14900         * math/s_cexpf.c: Likewise.
14901         * math/s_cexpl.c: Likewise.
14902         * math/s_clog.c: Likewise.
14903         * math/s_clog10.c: Likewise.
14904         * math/s_clog10f.c: Likewise.
14905         * math/s_clog10l.c: Likewise.
14906         * math/s_clogf.c: Likewise.
14907         * math/s_clogl.c: Likewise.
14908         * math/s_csqrt.c: Likewise.
14909         * math/s_csqrtf.c: Likewise.
14910         * math/s_csqrtl.c: Likewise.
14911         * math/s_ctanf.c: Likewise.
14912         * math/s_ctanh.c: Likewise.
14913         * math/s_ctanhf.c: Likewise.
14914         * math/s_ctanhl.c: Likewise.
14915         * math/s_ctanl.c: Likewise.
14916
14917         * math/math_private.h: Define __nan, __nanf, __nanl.
14918         * math/s_cacosh.c: Include <math_private.h>.
14919         * math/s_cacoshl.c: Likewise.
14920         * math/s_casinh.c: Likewise.
14921         * math/s_casinhf.c: Likewise.
14922         * math/s_casinhl.c: Likewise.
14923         * math/s_ccos.c: Rely entire on ccosh.
14924         * math/s_ccosf.c: Rely entire on ccoshf.
14925         * math/s_ccosl.c: Rely entirely on ccoshl.
14926         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14927         Remove tests for FE_INVALID.
14928         * math/s_ccoshf.c: Likewise.
14929         * math/s_ccoshl.c: Likewise.
14930         * math/s_csin.c: Likewise.
14931         * math/s_csinf.c: Likewise.
14932         * math/s_csinh.c Likewise.
14933         * math/s_csinhf.c: Likewise.
14934         * math/s_csinhl.c: Likewise.
14935         * math/s_csinl.c: Likewise.
14936         * math/s_ctan.c: Likewise.
14937         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14938         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14939         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14940
14941 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14942
14943         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14944         compilation problems.
14945
14946         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14947         __builtin_expect.
14948
14949 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14950
14951         * sysdeps/i386/configure.in: Test for -mfma4 option.
14952         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14953         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14954         COMMON_CPUID_INDEX_80000001.
14955         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14956         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14957         use it if FMA3 is not supported.
14958         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14959
14960         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14961         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14962
14963 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14964
14965         [BZ #12892]
14966         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14967         it would create a cycle with a link time dependency.
14968
14969 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14970
14971         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14972         instruction.
14973         * string/Makefile (strop-tests): Add rawmemchr.
14974         * string/test-rawmemchr.c: New file.
14975
14976         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14977         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14978         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14979         when compiling str{,n}casecmp and when AVX is available.  Hook up
14980         new optimized code in initializers.
14981
14982 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14983
14984         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14985         __feraiseexcept instead of feraiseexcept.
14986
14987 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14988
14989         * math/math_private.h: Define defaults for libc_fetestexcept and
14990         libc_feupdateenv.
14991         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14992         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14993         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14994         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14995         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14996         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
14997         libc_fetestexcept and libc_feupdateenv.
14998
14999         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15000         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15001         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15002         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15003         libc_feholdexcept_setround.
15004
15005         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15006         Add s_nearbyint-c and s_nearbyintf-c.
15007         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15008         nearbyintf inlines.
15009         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15010         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15011         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15012         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15013
15014         * math/math_private.h: Define defaults for libc_fegetround,
15015         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15016         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15017         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15018         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15019         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15020         standard functions.
15021         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15022         Remove comments and hacks for old compiler versions.
15023         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15024         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15025         libc_feholdexceptl.
15026
15027 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15028
15029         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15030         (__feraiseexcept_renamed): Add __NTH.
15031         (feraiseexcept): Add __NTH.  Rename local variables to fix
15032         namespace violations.
15033
15034 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15035
15036         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15037
15038         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15039
15040         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15041         recently added interfaces.
15042         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15043
15044         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15045         about macro parameter expansion.
15046
15047         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15048         __NO_MATH_INLINES is defined.  Cleanups.
15049
15050         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15051         and __floorf is target has SSE4.1.
15052         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15053         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15054         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15055         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15056
15057         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15058         name.
15059         (floorf): Likewise.
15060
15061         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15062
15063 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15064
15065         * misc/sys/cdefs.h: Fix last change.
15066
15067         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15068         database lookup.
15069
15070 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15071
15072         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15073
15074         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15075         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15076         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15077         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15078         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15079         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15080         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15081         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15082         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15083         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15084         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15085         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15086         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15087         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15088         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15089         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15090         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15091         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15092         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15093         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15094         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15095         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15096
15097         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15098         ceil, ceilf, floor, floorf.
15099
15100         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15101         Perform IRELATIVE relocations last.
15102
15103         * elf/do-rel.h: Add another parameter nrelative, replacing the
15104         local variable with the same name.  Change name of the function
15105         to end in Rel or Rela (uppercase).
15106         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15107         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15108         elf_dynamic_do_##reloc function.
15109
15110 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15111
15112         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15113         is sufficient, at least on modern CPUs.
15114
15115         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15116
15117         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15118         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15119
15120         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15121         __expl_finite.
15122         * math/bits/math-finite.h: Add entries for exp.
15123         * math/e_expl.c: Add __*_finite alias.
15124         * sysdeps/i386/fpu/e_exp.S: Likewise.
15125         * sysdeps/i386/fpu/e_expf.S: Likewise.
15126         * sysdeps/i386/fpu/e_expl.c: Likewise.
15127         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15128         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15129         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15130         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15131         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15132         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15133         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15134
15135         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15136         is sufficient, at least on modern CPUs.
15137
15138         * ctype/ctype-info.c (__ctype_init): Define.
15139         * include/ctype.h (__ctype_init): Declare.
15140         (__ctype_b_loc): The variable is always initialized.
15141         (__ctype_toupper_loc): Likewise.
15142         (__ctype_tolower_loc): Likewise.
15143         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15144         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15145
15146 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15147
15148         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15149
15150         * configure.in: Also look in $cxxmachine/include for C++ system
15151         headers.
15152
15153 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15154
15155         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15156         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15157         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15158         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15159         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15160         (USE_AS_WMEMCMP): New macro.
15161         Fixing indents.
15162         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15163         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15164         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15165         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15166         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15167         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15168         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15169         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15170         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15171         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15172         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15173         (USE_AS_WMEMCMP): New macro.
15174         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15175         * sysdeps/string/test-memcmp.c: Update.
15176         Fix simple_wmemcmp.
15177         Add new tests.
15178         * wcsmbs/wmemcmp.c: Update.
15179         (WMEMCMP): New macro.
15180         Fix overflow bug.
15181
15182 2011-10-12  Andreas Jaeger  <aj@suse.de>
15183
15184         [BZ #13268]
15185         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15186
15187 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15188
15189         * libio/iofwide.c (do_length): Avoid warning.
15190
15191         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15192
15193 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15194
15195         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15196
15197         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15198         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15199         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15200         * sysdeps/i386/i686/fpu/e_log.S: New file.
15201         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15202         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15203
15204         * ctype/ctype.h: Add support for inlined isXXX functions when
15205         compiling C++ code.
15206
15207 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15208
15209         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15210
15211         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15212
15213 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15214
15215         [BZ #13291]
15216         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15217
15218 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15219
15220         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15221         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15222         feraiseexcept.
15223
15224         * sysdeps/x86_64/memrchr.S: Check for zero size.
15225
15226         * string/stratcliff.c: Add memrchr tests.
15227
15228 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15229
15230         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15231         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15232         rawmemchr-sse2 rawmemchr-sse2-bsf.
15233         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15234         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15235         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15236         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15237         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15238         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15239         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15240         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15241         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15242         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15243         * string/memrchr.c (MEMRCHR): New macro.
15244
15245 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15246
15247         Add integration with gcc's -ffinite-math-only and optimize wrapper
15248         functions in libm.
15249         * Versions.def: Define GLIBC_2.15 version for libm.
15250         * math/Makefile (headers): Add bits/math-finite.h.
15251         * math/bits/math-finite.h: New file.
15252         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15253         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15254         * math/e_acoshl.c: Add __*_finite alias.
15255         * math/e_acosl.c: Likewise.
15256         * math/e_asinl.c: Likewise.
15257         * math/e_atan2l.c: Likewise.
15258         * math/e_atanhl.c: Likewise.
15259         * math/e_coshl.c: Likewise.
15260         * math/e_exp10.c: Likewise.
15261         * math/e_exp10f.c: Likewise.
15262         * math/e_exp10l.c: Likewise.
15263         * math/e_exp2l.c: Likewise.
15264         * math/e_fmodl.c: Likewise.
15265         * math/e_gammal_r.c: Likewise.
15266         * math/e_hypotl.c: Likewise.
15267         * math/e_j0l.c: Likewise.
15268         * math/e_j1l.c: Likewise.
15269         * math/e_jnl.c: Likewise.
15270         * math/e_lgammal_r.c: Likewise.
15271         * math/e_log10l.c: Likewise.
15272         * math/e_log2l.c: Likewise.
15273         * math/e_logl.c: Likewise.
15274         * math/e_powl.c: Likewise.
15275         * math/e_sinhl.c: Likewise.
15276         * math/e_sqrtl.c: Likewise.
15277         * math/e_scalb.c: Completely rewritten and optimized.
15278         * math/e_scalbf.c: Likewise.
15279         * math/e_scalbl.c: Likewise.
15280         * math/w_acos.c: Likewise.
15281         * math/w_acosf.c: Likewise.
15282         * math/w_acosl.c: Likewise.
15283         * math/w_acosh.c: Likewise.
15284         * math/w_acoshf.c: Likewise.
15285         * math/w_acoshl.c: Likewise.
15286         * math/w_asin.c: Likewise.
15287         * math/w_asinf.c: Likewise.
15288         * math/w_asinl.c: Likewise.
15289         * math/w_atan2.c: Likewise.
15290         * math/w_atan2f.c: Likewise.
15291         * math/w_atan2l.c: Likewise.
15292         * math/w_atanh.c: Likewise.
15293         * math/w_atanhf.c: Likewise.
15294         * math/w_atanhl.c: Likewise.
15295         * math/w_exp10.c: Likewise.
15296         * math/w_exp10f.c: Likewise.
15297         * math/w_exp10l.c: Likewise.
15298         * math/w_fmod.c: Likewise.
15299         * math/w_fmodf.c: Likewise.
15300         * math/w_fmodl.c: Likewise.
15301         * math/w_j0.c: Likewise.
15302         * math/w_j0f.c: Likewise.
15303         * math/w_j0l.c: Likewise.
15304         * math/w_j1.c: Likewise.
15305         * math/w_j1f.c: Likewise.
15306         * math/w_j1l.c: Likewise.
15307         * math/w_jn.c: Likewise.
15308         * math/w_jnf.c: Likewise.
15309         * math/w_log.c: Likewise.
15310         * math/w_logf.c: Likewise.
15311         * math/w_logl.c: Likewise.
15312         * math/w_log10.c: Likewise.
15313         * math/w_log10f.c: Likewise.
15314         * math/w_log10l.c: Likewise.
15315         * math/w_log2.c: Likewise.
15316         * math/w_log2f.c: Likewise.
15317         * math/w_log2l.c: Likewise.
15318         * math/w_pow.c: Likewise.
15319         * math/w_powf.c: Likewise.
15320         * math/w_powl.c: Likewise.
15321         * math/w_remainder.c: Likewise.
15322         * math/w_remainderf.c: Likewise.
15323         * math/w_remainderl.c: Likewise.
15324         * math/w_scalb.c: Likewise.
15325         * math/w_scalbf.c: Likewise.
15326         * math/w_scalbl.c: Likewise.
15327         * math/w_sqrt.c: Likewise.
15328         * math/w_sqrtf.c: Likewise.
15329         * math/w_sqrtl.c: Likewise.
15330         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15331         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15332         used.
15333         * math/math_private.h: Declare __kernel_standard_f.
15334         * math/w_cosh.c: Remove cruft and optimize a bit.
15335         * math/w_coshf.c: Likewise.
15336         * math/w_coshl.c: Likewise.
15337         * math/w_exp2.c: Likewise.
15338         * math/w_exp2f.c: Likewise.
15339         * math/w_exp2l.c: Likewise.
15340         * math/w_hypot.c: Likewise.
15341         * math/w_hypotf.c: Likewise.
15342         * math/w_hypotl.c: Likewise.
15343         * math/w_lgamma.c: Likewise.
15344         * math/w_lgamma_r.c: Likewise.
15345         * math/w_lgammaf.c: Likewise.
15346         * math/w_lgammaf_r.c: Likewise.
15347         * math/w_lgammal.c: Likewise.
15348         * math/w_lgammal_r.c: Likewise.
15349         * math/w_sinh.c: Likewise.
15350         * math/w_sinhf.c: Likewise.
15351         * math/w_sinhl.c: Likewise.
15352         * math/w_tgamma.c: Likewise.
15353         * math/w_tgammaf.c: Likewise.
15354         * math/w_tgammal.c: Likewise.
15355         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15356         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15357         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15358         Minor optimizations.  Pretty printing.  Remove cruft.
15359         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15360         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15361         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15362         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15363         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15364         * sysdeps/i386/fpu/e_asin.S: Likewise.
15365         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15366         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15367         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15368         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15369         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15370         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15371         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15372         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15373         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15374         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15375         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15376         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15377         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15378         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15379         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15380         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15381         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15382         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15383         * sysdeps/i386/fpu/e_log.S: Likewise.
15384         * sysdeps/i386/fpu/e_log10.S: Likewise.
15385         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15386         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15387         * sysdeps/i386/fpu/e_log2.S: Likewise.
15388         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15389         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15390         * sysdeps/i386/fpu/e_logf.S: Likewise.
15391         * sysdeps/i386/fpu/e_logl.S: Likewise.
15392         * sysdeps/i386/fpu/e_pow.S: Likewise.
15393         * sysdeps/i386/fpu/e_powf.S: Likewise.
15394         * sysdeps/i386/fpu/e_powl.S: Likewise.
15395         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15396         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15397         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15398         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15399         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15400         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15401         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15402         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15403         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15404         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15405         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15406         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15407         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15408         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15409         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15410         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15411         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15412         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15413         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15414         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15415         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15416         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15417         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15418         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15419         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15420         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15421         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15422         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15423         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15424         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15425         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15426         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15427         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15428         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15429         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15430         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15431         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15432         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15433         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15434         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15435         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15436         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15437         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15438         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15439         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15440         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15441         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15442         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15443         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15444         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15445         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15446         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15447         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15448         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15449         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15450         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15451         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15452         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15453         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15454         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15455         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15456         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15457         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15458         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15459         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15460         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15461         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15462         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15463         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15464         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15465         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15466         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15467         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15468         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15469         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15470         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15471         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15472         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15473         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15474         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15475         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15476         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15477         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15478         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15479         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15480         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15481         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15482         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15483         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15484         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15485         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15486         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15487         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15488         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15489         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15490         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15491         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15492         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15493         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15494         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15495         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15496         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15497         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15498         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15499         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15500         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15501         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15502         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15503         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15504         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15505         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15506         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15507         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15508         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15509         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15510         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15511         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15512         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15513         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15514         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15515         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15516         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15517         (__isnanf): Likewise.
15518         (__isinf_ns): Likewise.
15519         (__isinf_nsf): Likewise.
15520         (__finite): Likewise.
15521         (__finitef): Likewise.
15522         (__ieee754_sqrt): Define as macro.
15523         (__ieee754_sqrtf): Define as macro.
15524         (__ieee754_sqrtl): Define as macro.
15525         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15526         inlined copy.
15527         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15528         __FINITE_MATH_ONLY__ consistent.
15529         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15530
15531 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15532
15533         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15534         of rawmemchr.
15535
15536         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15537
15538 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15539
15540         * po/ja.po: Update from translation team.
15541
15542 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15543
15544         * locale/programs/locarchive.c (prepare_address_space): New function.
15545         (create_archive, enlarge_archive, open_archive): Use it.
15546
15547         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15548         inside [SHARED], where it is used.
15549
15550         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15551
15552         * nss/getent.c (netgroup_keys): Remove unused variable.
15553         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15554
15555 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15556
15557         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15558         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15559         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15560         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15561         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15562         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15563         * math/Makefile (libm-calls): Add s_isinf_ns.
15564         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15565         * math/multc3.c: Likewise.
15566         * math/s_casin.c: Likewise.
15567         * math/s_casinf.c: Likewise.
15568         * math/s_casinl.c: Likewise.
15569         * math/s_ccos.c: Likewise.
15570         * math/s_ccosf.c: Likewise.
15571         * math/s_ccosl.c: Likewise.
15572         * math/s_ctan.c: Likewise.
15573         * math/s_ctanf.c: Likewise.
15574         * math/s_ctanh.c: Likewise.
15575         * math/s_ctanhf.c: Likewise.
15576         * math/s_ctanhl.c: Likewise.
15577         * math/s_ctanl.c: Likewise.
15578         * math/w_fmod.c: Likewise.
15579         * math/w_fmodf.c: Likewise.
15580         * math/w_fmodl.c: Likewise.
15581         * math/w_remainder.c: Likewise.
15582         * math/w_remainderf.c: Likewise.
15583         * math/w_remainderl.c: Likewise.
15584         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15585         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15586         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15587         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15588         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15589         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15590         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15591         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15592
15593         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15594         of the number.
15595         * stdio-common/printf_fphex.c: Likewise.
15596         * stdio-common/printf_size.c: Likewise.
15597
15598         * math/e_exp10.c: Include math_private.h using <...> not "...".
15599         * math/e_exp10f.c: Likewise.
15600         * math/e_exp10l.c: Likewise.
15601         * math/e_exp2l.c: Likewise.
15602         * math/e_j0l.c: Likewise.
15603         * math/e_j1l.c: Likewise.
15604         * math/e_jnl.c: Likewise.
15605         * math/e_lgammal_r.c: Likewise.
15606         * math/e_rem_pio2l.c: Likewise.
15607         * math/e_scalb.c: Likewise.
15608         * math/e_scalbf.c: Likewise.
15609         * math/e_scalbl.c: Likewise.
15610         * math/k_cosl.c: Likewise.
15611         * math/k_sinl.c: Likewise.
15612         * math/k_tanl.c: Likewise.
15613         * math/s_cacoshf.c: Likewise.
15614         * math/s_catan.c: Likewise.
15615         * math/s_catanf.c: Likewise.
15616         * math/s_catanh.c: Likewise.
15617         * math/s_catanhf.c: Likewise.
15618         * math/s_catanhl.c: Likewise.
15619         * math/s_catanl.c: Likewise.
15620         * math/s_ccosh.c: Likewise.
15621         * math/s_ccoshf.c: Likewise.
15622         * math/s_ccoshl.c: Likewise.
15623         * math/s_cexp.c: Likewise.
15624         * math/s_cexpf.c: Likewise.
15625         * math/s_cexpl.c: Likewise.
15626         * math/s_clog.c: Likewise.
15627         * math/s_clog10.c: Likewise.
15628         * math/s_clog10f.c: Likewise.
15629         * math/s_clog10l.c: Likewise.
15630         * math/s_clogf.c: Likewise.
15631         * math/s_clogl.c: Likewise.
15632         * math/s_csin.c: Likewise.
15633         * math/s_csinf.c: Likewise.
15634         * math/s_csinh.c: Likewise.
15635         * math/s_csinhf.c: Likewise.
15636         * math/s_csinhl.c: Likewise.
15637         * math/s_csinl.c: Likewise.
15638         * math/s_csqrt.c: Likewise.
15639         * math/s_csqrtf.c: Likewise.
15640         * math/s_csqrtl.c: Likewise.
15641         * math/s_ctan.c: Likewise.
15642         * math/s_ctanf.c: Likewise.
15643         * math/s_ctanh.c: Likewise.
15644         * math/s_ctanhf.c: Likewise.
15645         * math/s_ctanhl.c: Likewise.
15646         * math/s_ctanl.c: Likewise.
15647         * math/s_ldexp.c: Likewise.
15648         * math/s_ldexpf.c: Likewise.
15649         * math/s_ldexpl.c: Likewise.
15650         * math/s_significand.c: Likewise.
15651         * math/s_significandf.c: Likewise.
15652         * math/s_significandl.c: Likewise.
15653         * math/w_acos.c: Likewise.
15654         * math/w_acosf.c: Likewise.
15655         * math/w_acosh.c: Likewise.
15656         * math/w_acoshf.c: Likewise.
15657         * math/w_acoshl.c: Likewise.
15658         * math/w_acosl.c: Likewise.
15659         * math/w_asin.c: Likewise.
15660         * math/w_asinf.c: Likewise.
15661         * math/w_asinl.c: Likewise.
15662         * math/w_atan2.c: Likewise.
15663         * math/w_atan2f.c: Likewise.
15664         * math/w_atan2l.c: Likewise.
15665         * math/w_atanh.c: Likewise.
15666         * math/w_atanhf.c: Likewise.
15667         * math/w_atanhl.c: Likewise.
15668         * math/w_cosh.c: Likewise.
15669         * math/w_coshf.c: Likewise.
15670         * math/w_coshl.c: Likewise.
15671         * math/w_dremf.c: Likewise.
15672         * math/w_exp10.c: Likewise.
15673         * math/w_exp10f.c: Likewise.
15674         * math/w_exp10l.c: Likewise.
15675         * math/w_exp2.c: Likewise.
15676         * math/w_exp2f.c: Likewise.
15677         * math/w_fmod.c: Likewise.
15678         * math/w_fmodf.c: Likewise.
15679         * math/w_fmodl.c: Likewise.
15680         * math/w_hypot.c: Likewise.
15681         * math/w_hypotf.c: Likewise.
15682         * math/w_hypotl.c: Likewise.
15683         * math/w_j0.c: Likewise.
15684         * math/w_j0f.c: Likewise.
15685         * math/w_j0l.c: Likewise.
15686         * math/w_j1.c: Likewise.
15687         * math/w_j1f.c: Likewise.
15688         * math/w_j1l.c: Likewise.
15689         * math/w_jn.c: Likewise.
15690         * math/w_jnf.c: Likewise.
15691         * math/w_jnl.c: Likewise.
15692         * math/w_lgamma.c: Likewise.
15693         * math/w_lgamma_r.c: Likewise.
15694         * math/w_lgammaf.c: Likewise.
15695         * math/w_lgammaf_r.c: Likewise.
15696         * math/w_lgammal.c: Likewise.
15697         * math/w_lgammal_r.c: Likewise.
15698         * math/w_log.c: Likewise.
15699         * math/w_log10.c: Likewise.
15700         * math/w_log10f.c: Likewise.
15701         * math/w_log10l.c: Likewise.
15702         * math/w_log2.c: Likewise.
15703         * math/w_log2f.c: Likewise.
15704         * math/w_log2l.c: Likewise.
15705         * math/w_logf.c: Likewise.
15706         * math/w_logl.c: Likewise.
15707         * math/w_pow.c: Likewise.
15708         * math/w_powf.c: Likewise.
15709         * math/w_powl.c: Likewise.
15710         * math/w_remainder.c: Likewise.
15711         * math/w_remainderf.c: Likewise.
15712         * math/w_remainderl.c: Likewise.
15713         * math/w_scalb.c: Likewise.
15714         * math/w_scalbf.c: Likewise.
15715         * math/w_scalbl.c: Likewise.
15716         * math/w_sinh.c: Likewise.
15717         * math/w_sinhf.c: Likewise.
15718         * math/w_sinhl.c: Likewise.
15719         * math/w_sqrt.c: Likewise.
15720         * math/w_sqrtf.c: Likewise.
15721         * math/w_sqrtl.c: Likewise.
15722         * math/w_tgamma.c: Likewise.
15723         * math/w_tgammaf.c: Likewise.
15724         * math/w_tgammal.c: Likewise.
15725
15726         * po/ja.po: Update from translation team.
15727
15728 2011-09-29  Andreas Jaeger  <aj@suse.de>
15729
15730         [BZ #13179]
15731         * sunrpc/netname.c (netname2host): Fix logic.
15732
15733         [BZ #6779]
15734         [BZ #6783]
15735         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15736         correctly.
15737         * math/w_remainder.c (__remainder): Likewise.
15738         * math/w_remainderf.c (__remainderf): Likewise.
15739         * math/libm-test.inc (remainder_test): Add test cases.
15740
15741 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15742
15743         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15744         sdiv_qrnnd.
15745
15746 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15747
15748         * string/test-memcmp.c: Avoid unncessary #defines.
15749         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15750
15751 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15752
15753         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15754         Use new sse2 version for core i3 - i7 as it's faster
15755         than sse42 version.
15756         (bit_Prefer_PMINUB_for_stringop): New.
15757         * sysdeps/x86_64/rawmemchr.S: Update.
15758         Replace with faster SSE2 version.
15759         * sysdeps/x86_64/memrchr.S: New file.
15760         * sysdeps/x86_64/memchr.S: Update.
15761         Replace with faster SSE2 version.
15762
15763 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15764
15765         * elf/dl-load.c (lose): Add cast to avoid warning.
15766
15767 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15768
15769         * po/ca.po: Update from translation team.
15770
15771         * inet/getnetgrent_r.c: Hook up nscd.
15772         * nscd/Makefile (routines): Add nscd_netgroup.
15773         (nscd-modules): Add netgroupcache.
15774         (CFLAGS-netgroupcache.c): Define.
15775         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15776         (cache_search): Add const to second parameter.
15777         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15778         INNETGR.
15779         (dbs): Add netgrdb entry.
15780         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15781         (verify_persistent_db): Handle netgrdb.
15782         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15783         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15784         GETFDNETGR.
15785         (netgroup_response_header): Define.
15786         (innetgroup_response_header): Define.
15787         (datahead): Add netgroup_response_header and innetgroup_response_header
15788         elements.
15789         * nscd/nscd.conf: Add entries for netgroup cache.
15790         * nscd/nscd.h (dbtype): Add netgrdb.
15791         (_PATH_NSCD_NETGROUP_DB): Define.
15792         (netgroup_iov_disabled): Declare.
15793         (xmalloc, xcalloc, xrealloc): Move declarations here.
15794         (cache_search): Adjust prototype.
15795         Add netgroup-related prototypes.
15796         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15797         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15798         (__nscd_innetgr): Declare.
15799         * nscd/selinux.c (perms): Use access_vector_t as element type and
15800         add netgroup-related initializers.
15801         * nscd/netgroupcache.c: New file.
15802         * nscd/nscd_netgroup.c: New file.
15803         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15804         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15805         For four parameters use innetgr.
15806         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15807         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15808         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15809         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15810
15811         * nscd/connections.c (register_traced_file): Don't register file
15812         for disabled databases.
15813
15814 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15815
15816         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15817
15818         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15819         from tree and freeing node.
15820
15821 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15822
15823         * nss/nsswitch.c (__nss_database_lookup): Handle
15824         nss_parse_service_list out of memory case.
15825
15826 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15827
15828         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15829         out of memory case.
15830
15831 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15832
15833         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15834         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15835         pass it down.
15836         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15837         elf_machine_rela, elf_machine_lazy_rel.
15838         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15839         (ELF_DYNAMIC_DO_REL): Likewise.
15840         (ELF_DYNAMIC_DO_RELA): Likewise.
15841         (ELF_DYNAMIC_RELOCATE): Likewise.
15842         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15843         to ELF_DYNAMIC_DO_REL.
15844         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15845         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15846         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15847         elf_machine_rela.
15848         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15849         skip_ifunc, don't call ifunc function if non-zero.
15850         (elf_machine_rela): Likewise.
15851         (elf_machine_lazy_rel): Likewise.
15852         (elf_machine_lazy_rela): Likewise.
15853         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15854         (elf_machine_lazy_rel): Likewise.
15855         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15856         Likewise.
15857         (elf_machine_lazy_rel): Likewise.
15858         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15859         Likewise.
15860         (elf_machine_lazy_rel): Likewise.
15861         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15862         (elf_machine_lazy_rel): Likewise.
15863         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15864         (elf_machine_lazy_rel): Likewise.
15865         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15866         (elf_machine_lazy_rel): Likewise.
15867         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15868         (elf_machine_lazy_rel): Likewise.
15869         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15870         (elf_machine_lazy_rel): Likewise.
15871         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15872         (elf_machine_lazy_rel): Likewise.
15873
15874 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15875
15876         * nss/nss_files/files-init.c (_nss_files_init): Use static
15877         initialization for all the *_traced_file variables.
15878
15879 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15880
15881         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15882
15883 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15884
15885         [BZ #13226]
15886         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15887
15888 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15889
15890         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15891         Reread the line before reparsing it.
15892
15893 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15894
15895         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15896
15897 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15898             Maxim Kuvyrkov  <maxim@codesourcery.com>
15899             Joseph Myers  <joseph@codesourcery.com>
15900
15901         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15902         if needed for __stack_chk_guard.
15903
15904 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15905
15906         * sysdeps/posix/spawni.c (script_execute): Always define it.
15907         It will be optimized away if unused.
15908         (maybe_script_execute): New function.
15909         (__spawni): Call it.
15910
15911         * Makerules: Don't include tls.make.
15912         (config-tls): Always set to thread.
15913         * tls.make.c: File removed.
15914
15915 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15916
15917         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15918         * config.make.in (CPPFLAGS-config): New substituted variable.
15919
15920 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15921
15922         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15923
15924         [BZ #13192]
15925         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15926         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15927
15928 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15929
15930         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15931         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15932         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15933         (CALL_FAIL): Likewise.
15934         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15935         (CALL_FAIL): Macro removed.
15936         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15937
15938 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15939
15940         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15941         for __FINITE_MATH_ONLY__ == 1.
15942
15943 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15944
15945         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15946         __ieee754_sqrt instead of sqrt.
15947         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15948         __ieee754_sqrtf instead of sqrtf.
15949         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15950         __floorf instead of floorf.
15951         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15952         __floorf, __truncf instead of floorf, truncf.
15953
15954 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15955
15956         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15957
15958         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15959         __extern_always_inline.
15960         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15961         32-bit.
15962
15963 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15964
15965         * elf/rtld.c (dl_main): Also relocate in dependency order when
15966         doing symbol dependency testing.
15967
15968 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15969
15970         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15971         Always define `refsym'.
15972
15973 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15974
15975         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15976         (__FD_ELT): Renamed from __FDELT.
15977         * misc/bits/select2.h (__FD_ELT): Likewise.
15978         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15979         __FD_MASK instead of __FDELT, __FDMASK.
15980         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15981         Likewise.
15982         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15983         Likewise.
15984
15985         * elf/Makefile (gen-ldd): Fix pattern.
15986
15987         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15988         (init_tls): Likewise.
15989
15990 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15991
15992         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15993
15994 2011-09-12  Andreas Schwab  <schwab@redhat.com>
15995
15996         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
15997         `struct cmsghdr *' instead of `void *'.
15998         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
15999         Likewise.
16000
16001 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16002
16003         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16004         if non-absolute.
16005         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16006         ldd_rewrite_script.
16007
16008 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16009
16010         * configure.in: Remove --with-tls option.
16011         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16012         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16013         out in case it is missing.
16014         * sysdeps/ia64/elf/configure.in: Likewise.
16015         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16016         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16017         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16018         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16019         * sysdeps/sh/elf/configure.in: Likewise.
16020         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16021         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16022         * sysdeps/x86_64/elf/configure.in: Likewise.
16023         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16024         * sysdeps/mach/hurd/tls.h: Likewise.
16025
16026         [BZ #13067]
16027         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16028
16029         [BZ #13090]
16030         * configure.in: Fix use of AC_INIT.
16031
16032         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16033
16034 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16035
16036         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16037         __set_errno.
16038         * malloc/hooks.c: Likewise.
16039
16040         [BZ #11929]
16041         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16042         variables statically.
16043         (narenas): Initialize.
16044         (list_lock): Initialize.
16045         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16046         initializtion of main_arena and list_lock.  Small cleanups.
16047         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16048         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16049         Add initializers to main_arena and mp_.
16050         (malloc_state): Remove pagesize member.  Change all users to use
16051         GLRO(dl_pagesize).
16052
16053         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16054         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16055         is always initialized.
16056
16057         * malloc/malloc.c: Removed unused configurations and dead code.
16058         * malloc/arena.c: Likewise.
16059         * malloc/hooks.c: Likewise.
16060         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16061
16062         * include/tls.h: Removed.  USE___THREAD must always be defined.
16063         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16064         * elf/dl-libc.c: Likewise.
16065         * elf/dl-tsd.c: Likewise.
16066         * include/errno.h: Likewise.
16067         * include/netdb.h: Likewise.
16068         * include/resolv.h: Likewise.
16069         * inet/herrno-loc.c: Likewise.
16070         * inet/herrno.c: Likewise.
16071         * malloc/arena.c: Likewise.
16072         * malloc/hooks.c: Likewise.
16073         * malloc/malloc.c: Likewise.
16074         * resolv/res-state.c: Likewise.
16075         * resolv/res_libc.c: Likewise.
16076         * sysdeps/i386/dl-machine.h: Likewise.
16077         * sysdeps/ia64/dl-machine.h: Likewise.
16078         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16079         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16080         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16081         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16082         * sysdeps/sh/dl-machine.h: Likewise.
16083         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16084         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16085         * sysdeps/unix/i386/sysdep.S: Likewise.
16086         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16087         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16088         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16089         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16090         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16091         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16092         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16093         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16094         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16095         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16096         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16097         * sysdeps/x86_64/dl-machine.h: Likewise.
16098         * tls.make.c: Likewise.
16099
16100         * configure.in: Remove --with-__thread option.  Make tests for
16101         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16102         tls_model attribute fail if no support is available.  Remove
16103         USE_IN_LIBIO.
16104         * Makeconfig: Adjust for dropped configure option.  All features are
16105         now mandatory.
16106         * Makerules: Likewise.
16107         * Versions.def: Likewise.
16108         * argp/argp-fmtstream.c: Likewise.
16109         * argp/argp-fmtstream.h: Likewise.
16110         * argp/argp-help.c: Likewise.
16111         * assert/assert.c: Likewise.
16112         * config.h.in: Likewise.
16113         * config.make.in: Likewise.
16114         * configure: Likewise.
16115         * configure.in: Likewise.
16116         * csu/Versions: Likewise.
16117         * csu/init.c: Likewise.
16118         * elf/tst-audit2.c: Likewise.
16119         * elf/tst-tls10.c: Likewise.
16120         * elf/tst-tls10.h: Likewise.
16121         * elf/tst-tls11.c: Likewise.
16122         * elf/tst-tls12.c: Likewise.
16123         * elf/tst-tls14.c: Likewise.
16124         * elf/tst-tlsmod11.c: Likewise.
16125         * elf/tst-tlsmod12.c: Likewise.
16126         * elf/tst-tlsmod13.c: Likewise.
16127         * elf/tst-tlsmod13a.c: Likewise.
16128         * elf/tst-tlsmod14a.c: Likewise.
16129         * elf/tst-tlsmod15b.c: Likewise.
16130         * elf/tst-tlsmod16a.c: Likewise.
16131         * elf/tst-tlsmod16b.c: Likewise.
16132         * elf/tst-tlsmod7.c: Likewise.
16133         * elf/tst-tlsmod8.c: Likewise.
16134         * elf/tst-tlsmod9.c: Likewise.
16135         * gmon/gmon.c: Likewise.
16136         * grp/fgetgrent_r.c: Likewise.
16137         * grp/putgrent.c: Likewise.
16138         * hurd/fopenport.c: Likewise.
16139         * include/libc-symbols.h: Likewise.
16140         * include/tls.h: Likewise.
16141         * intl/gettextP.h: Likewise.
16142         * intl/loadinfo.h: Likewise.
16143         * locale/global-locale.c: Likewise.
16144         * locale/localeinfo.h: Likewise.
16145         * mach/devstream.c: Likewise.
16146         * malloc/arena.c: Likewise.
16147         * malloc/set-freeres.c: Likewise.
16148         * misc/err.c: Likewise.
16149         * misc/getttyent.c: Likewise.
16150         * misc/mntent_r.c: Likewise.
16151         * posix/getopt.c: Likewise.
16152         * posix/wordexp.c: Likewise.
16153         * pwd/fgetpwent_r.c: Likewise.
16154         * resolv/Versions: Likewise.
16155         * resolv/res_hconf.c: Likewise.
16156         * shadow/fgetspent_r.c: Likewise.
16157         * shadow/putspent.c: Likewise.
16158         * stdio-common/printf_fphex.c: Likewise.
16159         * stdio-common/tmpfile.c: Likewise.
16160         * stdlib/abort.c: Likewise.
16161         * stdlib/fmtmsg.c: Likewise.
16162         * sunrpc/auth_unix.c: Likewise.
16163         * sunrpc/clnt_perr.c: Likewise.
16164         * sunrpc/clnt_tcp.c: Likewise.
16165         * sunrpc/clnt_udp.c: Likewise.
16166         * sunrpc/clnt_unix.c: Likewise.
16167         * sunrpc/openchild.c: Likewise.
16168         * sunrpc/svc_simple.c: Likewise.
16169         * sunrpc/svc_tcp.c: Likewise.
16170         * sunrpc/svc_udp.c: Likewise.
16171         * sunrpc/svc_unix.c: Likewise.
16172         * sunrpc/xdr.c: Likewise.
16173         * sunrpc/xdr_array.c: Likewise.
16174         * sunrpc/xdr_rec.c: Likewise.
16175         * sunrpc/xdr_ref.c: Likewise.
16176         * sunrpc/xdr_stdio.c: Likewise.
16177
16178 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16179
16180         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16181
16182 2011-07-03  Andreas Jaeger  <aj@suse.de>
16183
16184         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16185         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16186         regenerate with gen-libm-tests.pl.
16187
16188 2010-05-12  Petr Baudis  <pasky@suse.cz>
16189
16190         [BZ #11589]
16191         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16192         around j0() zero points by switching to j1().
16193         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16194         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16195         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16196         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16197
16198 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16199
16200         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16201         instead of 0.
16202         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16203         instead of 0.                              .
16204         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16205         Patch in part by Pavel Roskin <proski@gnu.org>.
16206
16207         [BZ #13138]
16208         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16209         realloc.
16210         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16211         Free memory block if necessary.
16212
16213         [BZ #12847]
16214         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16215         be NULL.  Don't lock in this case.
16216
16217 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16218
16219         * elf/elf.h (ELFOSABI_GNU): New macro.
16220         (ELFOSABI_LINUX): Define to that.
16221
16222 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16223
16224         * string/strncat.c (strncat): Undef the symbol in case it has been
16225         defined in bits/string.h.
16226
16227 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16228
16229         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16230
16231         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16232         link map.
16233
16234 2011-08-17  Andreas Jaeger  <aj@suse.de>
16235
16236         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16237
16238 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16239             Ian Lance Taylor  <iant@google.com>
16240
16241         * math/libm-test.inc (lround_test): New testcase.
16242         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16243
16244 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16245
16246         * Makefile: Remove support for automatic cvs check-ins.
16247         * Makerules: Likewise.
16248         * config.make.in: Likewise.
16249         * configure.in: Likewise.
16250         * intl/Makefile: Likewise.
16251         * locale/Makefile: Likewise.
16252         * po/Makefile: Likewise.
16253         * posix/Makefile: Likewise.
16254         * sysdeps/gnu/Makefile: Likewise.
16255         * sysdeps/mach/hurd/Makefile: Likewise.
16256         * sysdeps/sparc/sparc32/Makefile: Likewise.
16257
16258         [BZ #13118]
16259         * posix/Makefile (bug-regex32-ENV): Define.
16260         Patch by John Stanley <jpsinthemix@verizon.net>.
16261
16262         * misc/Makefile (headers): Add bits/select2.h.
16263         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16264         * misc/bits/select2.h: New file.
16265         * include/bits/select2.h: New file.
16266         * debug/Makefile (routines): Add fdelt_chk.
16267         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16268         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16269         FD_ISSET.
16270         * debug/fdelt_chk.c: New file.
16271
16272         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16273         * wcsmbs/test-wmemcmp.c: Likewise.
16274         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16275         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16276
16277 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16278
16279         * string/Makefile (strop-tests): Add memcmp.
16280         * string/test-wmemcmp.c: New file.
16281         * string/test-memcmp.c: Add wmemcmp support.
16282
16283 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16284
16285         [BZ #13153]
16286         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16287         2011-07-19 change.
16288
16289         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16290         garbage value in a __mach_port_mod_refs call in the cases of the
16291         task-self and thread-self ports.
16292
16293 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16294
16295         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16296
16297 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16298
16299         * elf/dl-load.c (lose): Check for non-null L.
16300
16301 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16302
16303         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16304
16305         * elf/dl-libc.c (dlerror_run): Pass back error code from
16306         dl_catch_error.
16307
16308         [BZ #13123]
16309         * elf/dl-load.c (lose): Free l_origin if it is valid.
16310
16311         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16312         names.
16313         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16314         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16315         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16316         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16317         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16318         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16319
16320 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16321
16322         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16323         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16324         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16325         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16326         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16327         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16328         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16329         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16330         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16331         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16332
16333 2011-08-15  Alan Modra  <amodra@gmail.com>
16334
16335         [BZ #13092]
16336         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16337         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16338         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16339         ppc_mcount to static-only-routines.
16340         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16341         __mcount_internal.
16342         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16343         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16344
16345 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16346
16347         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16348         for finite and infinity parameters.
16349
16350 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16351
16352         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16353         and add nop instructions for throughput optimization.
16354         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16355
16356 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16357
16358         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16359         aligned copy for power7 with vector-scalar instructions.
16360         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16361
16362 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16363
16364         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16365         AVX check.
16366
16367 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16368
16369         [BZ #13144]
16370         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16371         last change.
16372
16373 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16374
16375         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16376         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16377         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16378         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16379         clock_gettime.
16380
16381 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16382
16383         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16384         Forgot to demangle the pointer.
16385
16386         * sysdeps/i386/sysdep.h: Define atom_text_section.
16387         * sysdeps/x86_64/sysdep.h: Likewise.
16388         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16389         section with atom_text_section.
16390         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16391         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16392         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16393         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16394         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16395
16396         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16397         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16398         already be defined.  Change to take two parameters and don't assign
16399         result to variable.  Adjust all users.
16400         Define INTERNAL_GETTIME if not already defined.
16401         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16402         call.
16403         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16404         HAVE_CLOCK_GETTIME_VSYSCALL.
16405         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16406
16407         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16408         gettimeofday vsyscall, just use time.
16409
16410 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16411
16412         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16413         <errno.h>.
16414
16415 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16416
16417         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16418         syscall on x86-64.
16419         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16420         syscall.
16421         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16422         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16423         syscall if possible.
16424
16425 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16426
16427         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16428         e_ident.  Don't pass to find_mapsXX.
16429         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16430
16431 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16432
16433         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16434         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16435         * sysdeps/x86_64/multiarch/strchr.S: Update.
16436         Check bit_slow_BSF bit.
16437         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16438         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16439         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16440
16441 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16442
16443         [BZ #13134]
16444         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16445         before glibc 2.15.
16446         (tryshell): Define.
16447         (__spawni): Change last parameter to be flag.  Test
16448         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16449         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16450         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16451         * posix/spawni.c: Likewise.
16452         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16453         * posix/spawnp.c: Likewise.  Change normal version to use
16454         SPAWN_XFLAGS_USE_PATH.
16455         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16456         SPAWN_XFLAGS_TRY_SHELL.
16457
16458         [BZ #13150]
16459         * posix/glob.h: Remove gcc 1.x support.
16460
16461         [BZ #13068]
16462         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16463
16464 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16465
16466         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16467         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16468         strrchr-sse2-bsf
16469         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16470         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16471         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16472         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16473         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16474         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16475
16476 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16477
16478         * sysdeps/x86_64/wcscmp.S: New file.
16479
16480         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16481         wcscmp-c wcscmp-sse2
16482         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16483         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16484         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16485         * wcsmbs/wcscmp.c: Allow renaming.
16486
16487 2011-09-05  David S. Miller  <davem@davemloft.net>
16488
16489         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16490         stack slot, rather than the struct return pointer slot.
16491         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16492         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16494         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16495
16496 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16497
16498         * po/ja.po: Update from translation team.
16499
16500         [BZ #13144]
16501         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16502         kernel in 64-bit binaries.
16503
16504 2011-09-01  David S. Miller  <davem@davemloft.net>
16505
16506         * elf/elf.h (HWCAP_SPARC_*): Move to..
16507         * sysdeps/sparc/sysdep.h: this new file and add new values.
16508         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16509         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16510         _DL_HWCAP_COUNT to 24.
16511         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16512         entries.
16513         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16514         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16515         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16516         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16517         instead of magic constants.
16518         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16519
16520 2011-08-31  David S. Miller  <davem@davemloft.net>
16521
16522         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16523         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16524         Reimplement to do errno handling inline.
16525         (SYSCALL_ERROR_HANDLER): New macro.
16526         (__SYSCALL_STRING): Do not do errno handling in asm.
16527         (__CLONE_SYSCALL_STRING): Delete.
16528         (__INTERNAL_SYSCALL_STRING): Delete.
16529         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16530         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16531         (PSEUDO): Reimplement to do errno handling inline.
16532         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16533         (SYSCALL_ERROR_HANDLER): New macro.
16534         (__SYSCALL_STRING): Do not do errno handling in asm.
16535         (__CLONE_SYSCALL_STRING): Delete.
16536         (__INTERNAL_SYSCALL_STRING): Delete.
16537         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16538         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16539         i386.
16540         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16541         (inline_syscall*): Add 'err' argument.
16542         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16543         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16544         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16545         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16546
16547         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16548         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16549
16550 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16551
16552         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16553
16554 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16555
16556         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16557         directive.
16558
16559 2011-08-24  David S. Miller  <davem@davemloft.net>
16560
16561         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16562
16563 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16564
16565         * elf/Makefile: Add rules to build and run unload8 test.
16566         * elf/unload8.c: New file.
16567         * elf/unload8mod1.c: New file.
16568         * elf/unload8mod1x.c: New file.
16569         * elf/unload8mod2.c: New file.
16570         * elf/unload8mod3.c: New file.
16571
16572         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16573         it wasn't used.
16574
16575 2011-08-23  David S. Miller  <davem@davemloft.net>
16576
16577         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16578         subtract stack bias.
16579         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16580         %sp not %fp in calculations.
16581         (_JMPBUF_UNWINDS_ADJ): Likewise.
16582
16583         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16584         (aio_suspend): Call it to force an exception region around the
16585         AIO_MISC_WAIT() invocation.
16586
16587 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16588
16589         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16590         backslash.
16591
16592 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16593
16594         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16595         protection macro.
16596         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16597         and <dl-machine.h>.
16598         (Elf64_FuncDesc): Remove.
16599
16600 2011-08-22  David S. Miller  <davem@davemloft.net>
16601
16602         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16603         sigaltstack check, add missing cfi directives.
16604         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16605         missing cfi directives, and sigaltstack handling.
16606
16607 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16608
16609         [BZ #11724]
16610         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16611         object is seen twice.
16612         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16613
16614         * elf/Makefile (distribute): Add tst-initorder2.c.
16615         (tests): Add tst-initorder2.
16616         (modules-names): Add tst-initorder2a tst-initorder2b
16617         tst-initorder2c tst-initorder2d.  Add rules to build them.
16618         ($(objpfx)tst-initorder2.out): New rule.
16619         * elf/tst-initorder2.c: New file.
16620         * elf/tst-initorder2.exp: New file.
16621
16622 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16623
16624         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16625
16626         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16627         dependencies back to end of function.
16628
16629         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16630         $(elfobjdir)/ld.so.
16631
16632 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16633
16634         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16635         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16636         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16637         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16638         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16639         of __vdso_gettimeofday.
16640         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16641         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16642         attribute_hidden.
16643         (_libc_vdso_platform_setup): Remove initialization of
16644         __vdso_gettimeofday and __vdso_time.
16645
16646 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16647
16648         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16649         and fgetc_unlocked.
16650         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16651         getc_unlocked.
16652
16653         * elf/dl-open.c (add_to_global): Report additions to the global scope
16654         for LD_DEBUG=scopes.
16655         (dl_open_worker): Also print scope of newly loaded dependencies.
16656         (_dl_show_scope): Indicate if there is no scope.
16657
16658         [BZ #13114]
16659         * stdio-common/Makefile (tests): Add bug24.
16660         * stdio-common/bug24.c: New file.
16661
16662 2011-08-19  Andreas Jaeger  <aj@suse.de>
16663
16664         [BZ #13114]
16665         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16666         non-existant file when using close-on-exec mode.
16667
16668 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16669
16670         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16671         the very first instruction.
16672
16673         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16674         the CFI state in the end.
16675         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16676         inclusion of dl-trampoline.h.
16677         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16678
16679 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16680
16681         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16682         expectations for long double.
16683
16684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16685         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16686
16687 2011-08-14  David S. Miller  <davem@davemloft.net>
16688
16689         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16690         artificual limit depends upon the system page size.
16691
16692 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16693
16694         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16695         * resolv/Makefile: Define CFLAGS-libresolv.
16696
16697 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16698
16699         * nss/makedb.c (compute_tables): Make variables used in nested
16700         function static.
16701
16702 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16703
16704         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16705         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16706         if buffer was too small.
16707
16708         * elf/pldd.c (main): Attach to all threads in the process.
16709         Rewrite /proc handling to use *at functions.
16710
16711 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16712
16713         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16714         specifies first scope to show.
16715         (dl_open_worker): Update callers.  Move printing scope of new
16716         object to before the relocation.
16717         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16718         * sysdeps/generic/ldsodefs.h: Update declaration.
16719
16720         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16721         string for the scope number.
16722
16723 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16724
16725         * nscd/servicescache.c (cache_addserv): Make sure written is always
16726         initialized.
16727
16728 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16729
16730         * sysdeps/i386/i486/bits/atomic.h
16731         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16732         statement expression, so as to suppress "set but not used" warning.
16733         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16734
16735         * string/strncat.c (STRNCAT): Use prototype definition.
16736
16737         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16738         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16739         -Iprograms here.
16740         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16741         (localedef-modules): Add localedef.
16742         (locale-modules): Add locale.
16743
16744         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16745         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16746         to avoid a warning.
16747
16748 2011-08-14  David S. Miller  <davem@davemloft.net>
16749
16750         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16751         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16752
16753 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16754
16755         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16756         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16757         * elf/rtld.c (dl_main): Set l_name of vDSO.
16758         Call _dl_show_scope when DL_DEBUG_SCOPES.
16759         (process_dl_debug): Recognize scopes flag and also set it for all.
16760         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16761         Declare _dl_show_scope.
16762
16763         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16764         (do_dlopen): Pass caller_dlopen to dl_open.
16765         (__libc_dlopen_mode): Initialize caller_dlopen.
16766
16767         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16768         of libc.  Make tolower call locale-independent.  Optimize a bit by
16769         using isdigit instead of isalnum.
16770         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16771
16772 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16773
16774         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16775         was a dependency or dynamically loaded.
16776
16777 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16778
16779         * intl/l10nflist.c: Allow architecture-specific pop function.
16780         * sysdeps/x86_64/l10nflist.c: New file.
16781
16782         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16783         classification.
16784
16785 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16786
16787         * include/dirent.h: Add libc_hidden_proto for scandirat and
16788         scandirat64.  Don't declare __scandirat64.
16789         * dirent/scandirat.c: Add libc_hidden_def.
16790         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16791         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16792
16793 2011-08-10  David S. Miller  <davem@davemloft.net>
16794
16795         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16796         enum.
16797         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16798         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16799         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16800
16801 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16802
16803         * Versions.def [libc]: Add GLIBC_2.15.
16804         * dirent/Makefile (routines): Add scandirat and scandirat64.
16805         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16806         GLIBC_2.15.
16807         * dirent/dirent.h: Declare scandirat and scandirat64.
16808         * dirent/scandirat.c: New file.
16809         * dirent/scandirat64.c: New file.
16810         * sysdeps/wordsize-64/scandirat.c: New file.
16811         * sysdeps/wordsize-64/scandirat64.c: New file.
16812         * dirent/opendir.c: Define opendirat.
16813         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16814         using scandirat.
16815         * dirent/scandir64.c: Adjust for scandir.c change.
16816         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16817         __scandirat64, and __scandir_cancel_handler.
16818         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16819         additional parameter and use openat instead of open (outside of ld.so).
16820         Add new __opendir as wrapper around __opendirat.
16821         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16822         here without requiring old scandirat implementation.
16823
16824 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16825
16826         * dirent/scandir.c (cancel_handler): Renamed to
16827         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16828         defined.  Adjust users.
16829         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16830         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16831
16832 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16833
16834         * string/test-string.h (IMPL): Use __STRING to expand name and then
16835         stringify it.
16836
16837         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16838         of cleanups.
16839
16840 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16841
16842         * string/Makefile: Update.
16843         (strop-tests): Append strncat.
16844         * string/test-wcscmp.c: New file.
16845         New comprehensive test for wcscmp.
16846         * string/test-strcmp.c: Update.
16847         (WIDE): New define.
16848
16849 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16850
16851         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16852         line.
16853
16854 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16855
16856         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16857         encoding to ACE if AI_IDN.
16858
16859 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16860
16861         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16862         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16863
16864 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16865
16866         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16867         Fix overflow bug in strncat.
16868         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16869
16870         * string/test-strncat.c: Update.
16871         Add new tests for checking overflow bugs.
16872
16873 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16874
16875         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16876         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16877         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16878         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16879         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16880         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16881         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16882         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16883         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16884
16885         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16886         (USE_AS_STRCAT): Define.
16887         Add strcat and strncat support.
16888         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16889
16890 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16891
16892         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16893         __n bigger than INT_MAX+1.
16894         (__strncmp_g): Likewise.
16895
16896 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16897
16898         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16899         * libio/stido.h: Likewise.
16900
16901         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16902         (AF_NFC): Define.
16903         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16904         (AF_NFC): Define.
16905
16906         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16907         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16908         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16909         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16910         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16911
16912         [BZ #13021]
16913         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16914         installed.
16915
16916         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16917         typo.
16918         (_dl_x86_64_save_sse): Likewise.
16919
16920 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16921
16922         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16923         OSXSAVE.
16924         (_dl_x86_64_save_sse): Likewise.
16925
16926         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16927
16928         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16929
16930 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16931
16932         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16933         change.
16934         (_dl_x86_64_save_sse): Use correct AVX check.
16935
16936 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16937
16938         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16939         bug in strncpy/strncat.
16940         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16941
16942 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16943
16944         * string/tester.c (test_strcat): Add tests for different alignments
16945         of source and destination.
16946         (test_strncat): Likewise.
16947
16948 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16949
16950         [BZ #12852]
16951         * posix/glob.c (glob): Check passed in values before using them in
16952         expressions to avoid some overflows.
16953         (glob_in_dir): Likewise.
16954
16955         [BZ #13007]
16956         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16957         check for AVX enablement so that we don't crash with old kernels and
16958         new hardware.
16959         * elf/tst-audit4.c: Add same checks here.
16960         * elf/tst-audit6.c: Likewise.
16961
16962         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16963
16964 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16965
16966         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16967
16968 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16969
16970         * po/cs.po: Update from translation team.
16971         * po/bg.po: Likewise.
16972
16973 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16974
16975         * misc/sys/cdefs.h: Add support for const attribute.
16976         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16977         to gnu_dev_{major,minor,makedev} functions.
16978
16979 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16980
16981         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16982
16983 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16984
16985         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16986         strlen results.
16987
16988 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16989
16990         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16991         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16992         register in order to avoid conflicts with the soft frame pointer
16993         being held in r11 when necessary.
16994         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16995         (INTERNAL_VSYSCALL_NCS): Likewise.
16996
16997 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
16998
16999         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17000         * elf/dl-fini.c (_dl_fini): Adjust caller.
17001         * elf/dl-close.c (_dl_close_worker): Likewise.
17002         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17003
17004 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17005
17006         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17007         "aux_cache->nlibs < 0".
17008
17009         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17010         in the reload-count case.
17011
17012 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17013
17014         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17015         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17016         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17017         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17018         * sysdeps/x86_64/multiarch/strcat.S: New file.
17019         * sysdeps/x86_64/multiarch/strncat.S: New file.
17020         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17021         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17022         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17023         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17024         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17025         (USE_AS_STRCAT): Define.
17026         Add strcat and strncat support.
17027         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17028         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17029         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17030         * string/strncat.c: Update.
17031         (USE_AS_STRNCAT): Define.
17032         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17033         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17034         and i7.
17035         * sysdeps/x86_64/multiarch/init-arch.h
17036         (bit_Prefer_PMINUB_for_stringop): New.
17037         (index_Prefer_PMINUB_for_stringop): Likewise.
17038         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17039         bit_Prefer_PMINUB_for_stringop.
17040
17041 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17042
17043         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17044         buffer64.
17045         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17046         of casting of buffer.
17047         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17048         buffer32 and buffer64.
17049         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17050         writes instead of casting of buffer.
17051         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17052         buffer32.
17053         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17054         casting of buffer.
17055
17056 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17057
17058         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17059
17060 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17061
17062         * nscd/nscd.c (termination_handler): Don't do anything for a database
17063         if it has not yet been initialized.
17064
17065 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17066
17067         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17068
17069 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17070
17071         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17072
17073 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17074
17075         * po/nl.po: Update from translation team.
17076         * po/sv.po: Likewise.
17077
17078 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17079
17080         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17081         now disallowed by GCC.
17082
17083         * configure.in (use-default-link): Default to yes if a test -shared
17084         link meets our qualifications.
17085         * configure: Regenerated.
17086
17087         * config.make.in (output-format): New variable.
17088         * configure.in: Check for ld --print-output-format support.
17089         * configure: Regenerated.
17090         * Makerules ($(common-objpfx)format.lds)
17091         [$(output-format) != unknown]: Just use $(output-format),
17092         instead of the linker-script munging.
17093
17094 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17095
17096         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17097         of $(common-objpfx)shlib.lds.
17098         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17099
17100         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17101         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17102
17103         * configure.in (-z relro check): Adjust test code to add a large
17104         writable data section after it.
17105         * configure: Regenerated.
17106
17107 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17108
17109         * configure.in (-z relro check): Fix test code to make the variable
17110         truly const.
17111         * configure: Regenerated.
17112
17113 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17114
17115         * nscd/nscd.h (struct traced_file): Define.
17116         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17117         elements.  Add traced_files.
17118         (inotify_fd): Declare.
17119         (register_traced_file): Declare.
17120         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17121         (inotify_fd): Export.
17122         (resolv_conf_descr): Remove.
17123         (nscd_init): Move inotify descriptor creation to main.
17124         Don't register files for notification here.
17125         (register_traced_file): New function.
17126         (invalidate_cache): Don't use reset_res to determine whether to call
17127         res_init, go through the list of registered files.
17128         (main_loop_poll): The inotify descriptors are now stored in the
17129         structures for the traced files.
17130         (main_loop_epoll): Likewise
17131         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17132         to __nss_disable_nscd.
17133         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17134         for a database anymore.  Check the records for all the registered
17135         files instead.
17136         * nss/Makefile (libnss_files-routines): Add files-init.
17137         (libnss_db-routines): Add db-init.
17138         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17139         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17140         * nss/nss_db/db-init.c: New file.
17141         * nss/nss_files/files-init.c: New file.
17142         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17143         __nss_lookup_function.
17144         (__nss_lookup_function): Call nss_load_library.
17145         (nss_load_all_libraries): New function.
17146         (__nss_disable_nscd): Take parameter with callback function for files
17147         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17148         used for the cached services.
17149         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17150         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17151         options for features to all the files in nscd.
17152
17153         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17154
17155 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17156
17157         * csu/elf-init.c (__libc_csu_init): Comment typo.
17158
17159 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17160
17161         * po/pl.po: Update from translation team.
17162         * po/ja.po: Likewise.
17163         * po/ru.po: Likewise.
17164         * po/ko.po: Likewise.
17165         * po/fr.po: Likewise.
17166
17167 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17168
17169         * configure.in (.ctors/.dtors header and trailer check):
17170         Use an empirical test on a built program.
17171         * configure: Regenerated.
17172
17173         * configure.in (-z relro check): Use an empirical test on a built DSO.
17174         Detect, but do not require, on ia64.
17175         * configure: Regenerated.
17176
17177         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17178         Update tests that use readelf to use $READELF instead.
17179         * configure: Regenerated.
17180
17181 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17182
17183         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17184         if the result is not used.
17185
17186 2011-07-05  Andreas Jaeger  <aj@suse.de>
17187
17188         [BZ#9696]
17189         * stdlib/tst-strtod.c: Add testcase.
17190
17191 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17192
17193         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17194         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17195         The latter has a higher limit.  Take additional parameter to pass to
17196         the new function.
17197         (__pathconf): Pass file to __statfs_link_max.
17198         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17199         __statfs_link_max.
17200         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17201         __statfs_link_max.
17202
17203         [BZ #12868]
17204         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17205         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17206         Handle Lustre.
17207         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17208         (__statfs_filesize_max): Likewise.
17209         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17210
17211 2011-07-05  Andreas Jaeger  <aj@suse.de>
17212
17213         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17214
17215 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17216
17217         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17218         `status' variable.
17219         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17220         Likewise.
17221
17222 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17223
17224         * Makefile (strop-tests): Add strncat.
17225         * string/test-strncat.c: New file.
17226
17227 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17228
17229         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17230
17231 2011-06-21  Andreas Jaeger  <aj@suse.de>
17232
17233         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17234         Copy rule from iconvdata/Makefile.
17235
17236 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17237
17238         [BZ #12922]
17239         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17240         but no long options are defined, just return 'W'.
17241
17242 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17243
17244         [BZ #9696]
17245         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17246
17247 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17248
17249         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17250         netgroups to read.
17251         (innetgr): Likewise.
17252
17253 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17254
17255         * config.make.in (install_root): Default to $(DESTDIR).
17256
17257 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17258
17259         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17260
17261 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17262
17263         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17264
17265         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17266         containing directory rather than embedding absolute directory names.
17267
17268         * scripts/check-local-headers.sh: Rewritten using awk.
17269         Match by word, not by line.  Print error messages for matches.
17270         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17271
17272         * Makerules [shlib-lds-flags empty]:
17273         ($(common-objpfx)libc_pic.opts): New target.
17274         ($(common-objpfx)libc_pic.os.clean): New target.
17275         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17276
17277         * config.make.in (OBJCOPY): New variable.
17278         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17279         * configure: Regenerated.
17280
17281         * config.make.in (use-default-link): New variable.
17282         * configure.in (use_default_link): Grok --with-default-link to set it.
17283         * configure: Regenerated.
17284         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17285         (shlib-lds, shlib-lds-flags): Define to empty.
17286
17287         * Makerules (shlib-lds): New variable.
17288         (shlib-lds-flags): New variable.
17289         (build-shlib, build-moduile, build-module-asneeded): Use it.
17290         ($(common-objpfx)libc.so): Use $(shlib-lds).
17291         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17292         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17293
17294         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17295         DT_FLAGS/DT_FLAGS_1 with zero flags.
17296
17297         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17298         linker script munging.
17299
17300 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17301
17302         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17303         as 128-bit value.
17304         * crypt/sha512.c (sha512_process_block): Perform total addition using
17305         128-bit if possible.
17306         (__sha512_finish_ctx): Likewise.
17307         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17308         as 64-bit value.
17309         * crypt/sha256.c (SWAP64): Define.
17310         (sha256_process_block): Perform total addition using 64-bit if
17311         possible.
17312         (__sha256_finish_ctx): Likewise.
17313
17314 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17315
17316         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17317         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17318         * nscd/hstcache.c (cache_addhst): Likewise.
17319         * nscd/grpcache.c (cache_addgr): Likewise.
17320         * nscd/aicache.c (addhstaiX): Likewise
17321         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17322
17323 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17324
17325         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17326         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17327         * nscd/hstcache.c (cache_addhst): Likewise.
17328         * nscd/grpcache.c (cache_addgr): Likewise.
17329         * nscd/aicache.c (addhstaiX): Likewise
17330
17331 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17332
17333         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17334         domain only when needed.
17335
17336 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17337
17338         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17339         is always restored.
17340
17341 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17342
17343         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17344         are re-adding the entry.
17345         * nscd/servicescache.c (cache_addserv): Likewise.
17346
17347 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17348
17349         * sysdeps/generic/dl-irel.h: fix protection against multiple
17350         inclusions.
17351         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17352
17353 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17354
17355         [BZ #12935]
17356         * malloc/memusage.sh: Fix quoting in message.
17357         * debug/xtrace.sh: Likewise.
17358
17359         * configure.in: Remove support for --experimental-malloc option, make
17360         it the default.
17361         * config.make.in: Likewise.
17362         * malloc/Makefile: Likewise.
17363
17364 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17365
17366         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17367         two-byte characters.
17368
17369 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17370
17371         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17372         AC_CACHE_CHECK invocation.
17373         * configure: Regenerated.
17374
17375         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17376
17377 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17378
17379         [BZ #12350]
17380         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17381         bit from old_res_options.
17382
17383         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17384
17385         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17386         value type for setfct.
17387
17388 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17389
17390         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17391         __gettimeofday instead of gettimeofday.
17392
17393 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17394
17395         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17396
17397 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17398
17399         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17400
17401         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17402         info.
17403
17404 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17405
17406         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17407         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17408         strcpy-sse2-unaligned strncpy-sse2-unaligned
17409         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17410         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17411         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17412         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17413         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17414         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17415         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17416         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17417         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17418         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17419         (STRCPY): Support SSE2 and SSSE3 versions.
17420
17421 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17422
17423         [BZ #12874]
17424         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17425         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17426         kernels which artificially limit size of requests.
17427
17428 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17429
17430         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17431         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17432         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17433         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17434         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17435         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17436         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17437         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17438         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17439         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17440         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17441         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17442         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17443         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17444         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17445         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17446         Enable unaligned load optimization for Intel Core i3, i5 and i7
17447         processors.
17448         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17449         Define.
17450         (index_Fast_Unaligned_Load): Define.
17451         (HAS_FAST_UNALIGNED_LOAD): Define.
17452
17453 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17454
17455         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17456
17457 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17458
17459         [BZ #12907]
17460         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17461         until it is clear that the information is realy needed.
17462         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17463
17464 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17465
17466         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17467
17468 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17469
17470         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17471         /sys/devices/system/cpu/online if it is usable.
17472
17473         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17474         reading the information from the /proc filesystem to once a second.
17475
17476 2011-06-21  Andreas Jaeger  <aj@suse.de>
17477
17478         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17479         NULL after inclusion of kernel headers.
17480
17481 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17482
17483         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17484         calls to internal_setent.
17485
17486         [BZ #12885]
17487         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17488         addresses using gethostbyname4_r ignore IPv4 addresses.
17489
17490         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17491         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17492
17493         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17494
17495 2011-06-20  David S. Miller  <davem@davemloft.net>
17496
17497         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17498         inclusions.
17499         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17500
17501         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17502         (elf_irel): Use it.
17503         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17504         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17505         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17506         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17507         * sysdeps/x86_64/dl-irel.h: Likewise.
17508
17509         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17510         * elf/dl-sym.c: Likewise.
17511
17512 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17513
17514         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17515         need to dereference resplen2.
17516
17517 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17518
17519         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17520
17521 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17522
17523         * Makeconfig: Define vardbdir and inst_vardbdir.
17524         * nss/Makefile: Add rules to install db-Makefile.
17525
17526         * nss/nss_db/db-XXX.c: Cleanup.
17527
17528         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17529         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17530         GLIBC_PRIVATE.
17531         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17532         * nss/makedb.c: Implement -g option to specify that value strings
17533         are generated and should not be added to table iterated over for
17534         get*ent calls.
17535         * nss/nss_db/db-initgroups.c: New file.
17536
17537         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17538         interface.
17539
17540         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17541         (internal_getgrouplist): Adjust to name change.
17542         Update use_initgroups_entry if this is not the first call.
17543         * nss/databases.def: Add initgroups entry.
17544
17545         * nss/makedb.c (compute_tables): Check result of multiple hash table
17546         sizes to minimize maximum chain length.
17547
17548 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17549
17550         * Versions.def: Add entry for libnss_db.
17551         * shlib-versions: Likewise.
17552         * nss/Makefile: Add rules to build libnss_db.
17553         * nss/Versions: Add libnss_db information.  Organize libnss_files
17554         entries better.
17555         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17556         makedb progra.  Some minor improvements to generate smaller files.
17557         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17558         here from...
17559         * nss/makedb.c: ...here.
17560         Improve database format to be smaller and require less memory at
17561         runtime.
17562         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17563         db anymore.
17564         * nss/nss_db/db-netgrp.c: Likewise.
17565         * nss/nss_db/db-open.c: Likewise.
17566         * nss/nss_files/flies-XXX.x: Adjust comments.
17567         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17568         * nss/nss_files/files-grp.c: Likewise.
17569         * nss/nss_files/files-hosts.c: Likewise.
17570         * nss/nss_files/files-network.c: Likewise.
17571         * nss/nss_files/files-proto.c: Likewise.
17572         * nss/nss_files/files-pwd.c: Likewise.
17573         * nss/nss_files/files-rpc.c: Likewise.
17574         * nss/nss_files/files-service.c: Likewise.
17575         * nss/nss_files/files-sgrp.c: Likewise.
17576         * nss/nss_files/files-spwd.c: Likewise.
17577         * nss/nss_db/db-alias.c: Removed.
17578         * nss/nss_db/dummy-db.h: Removed.
17579
17580 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17581
17582         * nss/makedb.c: Rewritten to not use database library.
17583         * nss/Makefile: Update to build new makedb program.
17584
17585 2011-06-14  Andreas Jaeger  <aj@suse.de>
17586
17587         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17588         memset declaration.
17589
17590 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17591
17592         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17593         tmpbuf.
17594
17595 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17596
17597         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17598         * elf/Makefile ($(objpfx)ld.so): Likewise.
17599
17600         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17601         Don't list ld.so twice in dependencies.
17602
17603         * posix/bug-regex31.c: Include <stdlib.h>.
17604
17605         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17606
17607         * nis/nss_compat/compat-spwd.c
17608         (getspent_next_nss_netgr): Remove unused variable.
17609         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17610
17611         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17612         nonmembers" output to use the right array.
17613
17614         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17615
17616         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17617
17618         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17619         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17620         * catgets/gencat.c (read_input_file): Likewise.
17621         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17622
17623         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17624         variable definition inside #if's controlling its use.
17625
17626         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17627
17628         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17629
17630         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17631
17632         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17633         unreachable code.
17634
17635         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17636
17637         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17638         * configure: Regenerated.
17639
17640         * Makerules: Revert last change.
17641         * elf/Makefile: Likewise.
17642
17643 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17644
17645         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17646         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17647         (reloc-link): Likewise.
17648
17649 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17650
17651         * elf/Makefile: Add rules to build pldd.
17652         * elf/pldd.c: New file.
17653         * elf/pldd-xx.c: New file.
17654
17655 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17656
17657         * version.h: Update for 2.15 development version.
17658
17659 2011-06-07  David S. Miller  <davem@davemloft.net>
17660
17661         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17662         ifuncs.
17663         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17664         elf_machine_lazy_rel): Likewise.
17665         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17666         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17667         elf_machine_lazy_rel): Likewise.
17668         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17669         dl_hwcap via passed in argument.
17670         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17671         Likewise.
17672
17673 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17674
17675         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17676
17677 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17678
17679         [BZ #12849]
17680         * manual/fdl-1.1.texi: New file, verbatim from:
17681         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17682         * manual/lgpl-2.1.texi: New file, verbatim from:
17683         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17684         * manual/Makefile (licenses): New variable, list those new file names.
17685         (texis): Use it.
17686         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17687
17688         * manual/fdl.texi: File removed.
17689         * manual/lesser.texi: File removed.
17690         * manual/libc.texinfo (Copying, Documentation License):
17691         Use new @include file names, put @appendix directive before @include.
17692
17693 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17694
17695         [BZ #12841]
17696         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17697         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17698         (mq_open): Add __NTH.
17699
17700 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17701
17702         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17703         Assume Intel Core i3/i5/i7 processor if AVX is available.
17704
17705 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17706
17707         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17708         typo.
17709
17710 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17711
17712         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17713         memory.  Use alloca_account.  Fix memory leak when retrying.
17714
17715 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17716
17717         * version.h (RELEASE): Bump for 2.14 release.
17718         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17719
17720         * config.make.in (RANLIB): Remove entry.
17721
17722 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17723
17724         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17725         (libc.pot): Work around missing support for .ksh extension in xgettext.
17726
17727         [BZ #12684]
17728         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17729         if both request failed.
17730         (send_dg): In case of server errors clear resplen or *resplen2.
17731
17732         [BZ #12454]
17733         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17734         when there are multiple maps.
17735         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17736         (_dl_fini): Remove test here.
17737
17738         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17739
17740 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17741
17742         [BZ #12350]
17743         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17744         bit from old_res_options.
17745         (gaih_inet): Likewise.
17746
17747         [BZ #11099]
17748         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17749         as signed.
17750
17751         * resolv/res_init.c (res_setoptions): Make the code more compact.
17752
17753         [BZ #11558]
17754         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17755         set RES_USEVC.
17756
17757         [BZ #11634]
17758         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17759
17760         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17761
17762         [BZ #11781]
17763         * malloc/malloc.h: Declare malloc hook variables as volatile.
17764
17765         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17766         in last patch.
17767
17768         [BZ #11799]
17769         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17770         raise in the comment.
17771         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17772         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17773         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17774
17775 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17776
17777         [BZ #12811]
17778         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17779         grow the buffers more if it already has to be sufficient.
17780         (build_wcs_upper_buffer): Likewise.
17781         * posix/regexec.c (check_matching): Likewise.
17782         (clean_state_log_if_needed): Likewise.
17783         (extend_buffers): Don't enlarge buffers beyond size of the input
17784         buffer.
17785         Patches mostly by Emil Wojak <emil@wojak.eu>.
17786         * posix/bug-regex32.c: New file.
17787         * posix/Makefile (tests): Add bug-regex32.
17788
17789         * locale/findlocale.c (_nl_find_locale): Return right away if
17790         _nl_explode_name failed.
17791         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17792
17793         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17794
17795         * debug/xtrace.sh: Unify messages.
17796         * malloc/memusage.sh: Likewise.
17797
17798         [BZ #12813]
17799         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17800         time symbol from vDSO.  Substitute with vsyscall if not available.
17801         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17802         __vdso_time.
17803
17804         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17805         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17806         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17807         Add sendmmsg and internal_sendmmsg.
17808         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17809         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17810         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17811
17812         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17813         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17814         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17815
17816 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17817
17818         [BZ #12813]
17819         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17820         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17821         available.
17822         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17823         __vdso_getcpu.
17824
17825         [BZ #12814]
17826         * iconvdata/Makefile (tests): Add bug-iconv9.
17827         * iconvdata/bug-iconv9.c: New file.
17828
17829 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17830
17831         [BZ #12814]
17832         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17833
17834 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17835
17836         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17837         (struct user_regs_struct): Change intcs field back to cs.
17838
17839 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17840
17841         * po/ja.po: Update from translation team.
17842
17843 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17844
17845         [BZ #12795]
17846         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17847         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17848
17849 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17850
17851         * stdlib/longlong.h: Update from GCC.
17852
17853 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17854
17855         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17856         parameter name.
17857         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17858         Add parameter name.
17859         (__sysconf): Pass it down.
17860
17861 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17862
17863         [BZ #12671]
17864         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17865         some situations.
17866         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17867         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17868         add in in __libc_use_alloca calls.  Adjust callers.
17869         (glob): Use malloc in some situations.
17870
17871         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17872         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17873         pltexit.
17874
17875 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17876
17877         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17878         and CLOCK_BOOTTIME_ALARM.
17879
17880         [BZ #12782]
17881         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17882         is returned.
17883
17884         * string/_strerror.c (__strerror_r): Print negative errors as signed
17885         numbers.
17886
17887         [BZ #12777]
17888         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17889         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17890         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17891
17892         * configure.in: Fix typo in redirection and correct removal of test
17893         files in two cases.
17894
17895         [BZ #12788]
17896         * locale/setlocale.c (new_composite_name): Fix test to check for
17897         identical name of all categories.
17898
17899         [BZ #12792]
17900         * libio/filedoalloc.c (local_isatty): New function.
17901         (_IO_file_doallocate): Use local_isatty.
17902         * stdio-common/perror.c (perror): In case a new stream is used
17903         forward the stream error.
17904         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17905         error flag.
17906
17907 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17908
17909         [BZ #11869]
17910         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17911         alloca.
17912         * include/alloca.h (extend_alloca_account): Define.
17913
17914         [BZ #11857]
17915         * posix/regex.h: Fix comments with documentation of user-accessible
17916         fields after compilation and describe correct free'ing of pattern
17917         after re_compile_pattern.
17918         Patch by Reuben Thomas <rrt@sc3d.org>.
17919
17920 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17921
17922         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17923         and -mno-altivec to prevent the compiler from using Altivec and/or
17924         VSX instructions when the corresponding registers are not available.
17925
17926 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17927
17928         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17929
17930 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17931
17932         * libio/freopen.c (freopen): Use __dup2, not dup2.
17933         * libio/freopen64.c (freopen64): Likewise.
17934
17935 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17936
17937         [BZ #12775]
17938         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17939         * math/Makefile (tests): Add test-powl.
17940         (CFLAGS-test-powl.c): Define.
17941         * math/test-powl.c: New file.
17942
17943 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17944
17945         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17946
17947 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17948
17949         [BZ #11837]
17950         * iconvdata/gb18030.c: Update to GB18020-2005.
17951
17952 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17953
17954         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17955         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17956         Patch by Aharon Robbins <arnold@skeeve.com>.
17957
17958         [BZ #11892]
17959         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17960         on the stack.
17961
17962         [BZ #11895]
17963         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17964         through underflows.
17965
17966         [BZ #12766]
17967         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17968         point to strings before performing equality test for error_one_per_line
17969         mode.
17970
17971         [BZ #11697]
17972         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17973
17974         [BZ #11820]
17975         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17976         (struct user_fpregs_struct): Avoid __uint*_t types.
17977
17978         [BZ #6420]
17979         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17980         symbol info.  Use it instead of calling _dl_addr locally.
17981         (lock_and_info): New function.
17982         (tr_freehook): Call lock_and_info and pass symbol info as additional
17983         parameter to tr_where.
17984         (tr_mallochook): Likewise.
17985         (tr_reallochook): Likewise.
17986         (tr_memalignhook): Likewise.
17987
17988         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17989         used and couldn't be at all thread-safe.
17990
17991 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17992
17993         * libio/freopen.c (freopen): Don't close old file descriptor
17994         before the new one is opened.  Instead dup the new file descriptor
17995         to the old one after the new stream is created.
17996         * libio/freopen64.c (freopen64): Likewise.
17997         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
17998         * libio/fileops.c (_IO_new_file_close_it): Handle new
17999         _IO_FLAGS2_NOCLOSE flag.
18000         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18001         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18002         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18003         _IO_FLAGS2_NOCLOSE flag.
18004         * include/unistd.h: Add hidden_proto for dup3.
18005         Define __have_dup3.
18006         * io/dup3.c: Define hidden symbol.
18007         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18008
18009         [BZ #7101]
18010         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18011         when an incomplete long option is used.
18012         * posix/tst-getopt_long1.c: New file.
18013         * posix/Makefile (tests): Add tst-getopt_long1.
18014
18015         [BZ #10138]
18016         * scripts/config.guess: Update from autoconf-2.68.
18017         * scripts/config.sub: Likewise.
18018
18019         [BZ #10157]
18020         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18021         tests into ...
18022         (has_cpuclock): ...this.  New function.
18023         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18024         macro here based on has_cpuclock code.
18025
18026         [BZ #10149]
18027         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18028         First byte (not low byte) is now always NUL.
18029         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18030
18031         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18032         Use non-cancelable interfaces.
18033
18034         [BZ #9809]
18035         * locale/iso-639.def: Add entry for Sorani.
18036
18037         [BZ #11901]
18038         * include/stdlib.h: Move include protection to the right place.
18039         Define abort_msg_s.  Declare __abort_msg with it.
18040         * stdlib/abort.c (__abort_msg): Adjust type.
18041         * assert/assert.c (__assert_fail_base): New function.  Majority
18042         of code from __assert_fail.  Allocate memory for __abort_msg with
18043         mmap.
18044         (__assert_fail): Now call __assert_fail_base.
18045         * assert/assert-perr.c: Remove bulk of implementation.  Use
18046         __assert_fail_base.
18047         * include/assert.hL Declare __assert_fail_base.
18048         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18049         mmap.
18050         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18051
18052 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18053
18054         [BZ #11952]
18055         [BZ #12453]
18056         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18057         until all modules are registered in the DTV.
18058         * elf/Makefile: Add rules to build and run tst-tls19.
18059         * elf/tst-tls19.c: New file.
18060         * elf/tst-tls19mod1.c: New file.
18061         * elf/tst-tls19mod2.c: New file.
18062         * elf/tst-tls19mod3.c: New file.
18063         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18064
18065         [BZ #12083]
18066         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18067         correctly.
18068
18069         [BZ #12601]
18070         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18071         two-byte sequence errors.
18072         * iconvdata/Makefile (tests): Add bug-iconv8.
18073         * iconvdata/bug-iconv8.c: New file.
18074
18075         [BZ #12626]
18076         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18077         buf2 definition.
18078
18079         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18080
18081         [BZ #12432]
18082         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18083         (dummy_getcfa): New function.
18084         (init): Get _Unwind_GetCFA address, use dummy if not found.
18085         (backtrace_helper): In recursion check, also check whether CFA changes.
18086         (__backtrace): Completely initialize arg.
18087
18088         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18089         storing incomplete byte sequence in state object.  Avoid testing for
18090         guaranteed too small input if we know there is enough data available.
18091
18092 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18093
18094         * Makeconfig (+link-pie): Indent.
18095         * Rules (binaries-pie): Define if $(have-fpie) and
18096         $(build-shared).
18097         (binaries-shared): Also filter out $(binaries-pie).
18098         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18099         * nscd/Makefile (others-pie): Add nscd.
18100         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18101         ($(objpfx)nscd): Remove command override.
18102         * login/Makefile (others-pie): Add pt_chown.
18103         ($(objpfx)pt_chown): Remove command override.
18104         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18105         remove command overrides.
18106
18107 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18108
18109         * libio/tst_putwc.c: Fix error messages.
18110
18111         [BZ #12724]
18112         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18113         currently writing and seek to current position when not.
18114         * libio/Makefile (tests): Add bug-fclose1.
18115         * libio/bug-fclose1.c: New file.
18116
18117 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18118
18119         [BZ #12511]
18120         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18121         don't set DF_1_NODELETE here.
18122         (do_lookup_x): When entering new entry test for copy relocation
18123         and if necessary set DF_1_NODELETE flag.
18124         * elf/tst-unique4.cc: New file.
18125         * elf/tst-unique4.h: New file.
18126         * elf/tst-unique4lib.cc: New file.
18127         * elf/Makefile: Add rules to build and run tst-unique4.
18128         Patch by Piotr Bury <pbury@goahead.com>.
18129
18130 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18131
18132         [BZ #12052]
18133         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18134
18135         [BZ #12625]
18136         * misc/mntent_r.c (addmntent): Flush the stream after the output
18137
18138         [BZ #12393]
18139         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18140         (is_trusted_path_normalize): Skip initial colon.  Append slash
18141         to empty buffer.  Duplicate is_trusted_path code but allow
18142         constructed patch to be prefix.
18143         (is_dst): Allow $ORIGIN followed by /.
18144         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18145         Correct testing of result of is_trusted_path_normalize
18146         (decompose_rpath): Fix warning.
18147
18148 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18149
18150         [BZ #11257]
18151         * grp/initgroups.c (internal_getgrouplist): When we found the service
18152         list through the initgroups entry in nsswitch.conf do not always
18153         continue on a successful lookup.  Don't always use the
18154         __nss_group_database value if it is set.
18155         * nss/nsswitch.conf (initgroups): Change action for successful db
18156         lookup to continue for compatibility.
18157
18158 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18159
18160         [BZ #11532]
18161         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18162         and CP774 modules.
18163         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18164         and CP774 modules.
18165         * iconvdata/tst-tables.sh: Likewise.
18166         * iconvdata/cp770.c: New file.
18167         * iconvdata/cp771.c: New file.
18168         * iconvdata/cp772.c: New file.
18169         * iconvdata/cp773.c: New file.
18170         * iconvdata/cp774.c: New file.
18171         * iconvdata/testdata/CP770: New file.
18172         * iconvdata/testdata/CP770..UTF8: New file.
18173         * iconvdata/testdata/CP771: New file.
18174         * iconvdata/testdata/CP771..UTF8: New file.
18175         * iconvdata/testdata/CP772: New file.
18176         * iconvdata/testdata/CP772..UTF8: New file.
18177         * iconvdata/testdata/CP773: New file.
18178         * iconvdata/testdata/CP773..UTF8: New file.
18179         * iconvdata/testdata/CP774: New file.
18180         * iconvdata/testdata/CP774..UTF8: New file.
18181
18182         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18183         END CHARMAP line.
18184         * iconvdata/gen-8bit-gap.sh: Likewise.
18185         * iconvdata/gen-8bit.sh: Likewise.
18186
18187         * locale/iso-639.def: Add ary entry.
18188
18189         [BZ #11258]
18190         * locale/C-translit.h.in: Add U20A1 transliteration.
18191
18192         [BZ #12178]
18193         * locale/iso-639.def: Add wae entry.
18194         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18195
18196         [BZ #12545]
18197         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18198         for n.
18199
18200         [BZ #12711]
18201         * locale/C-translit.h.in: Add entry for U20B9.
18202         Patch by pravin.d.s@gmail.com.
18203
18204 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18205
18206         [BZ #12713]
18207         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18208         ENAMETOOLONG use generic getcwd.
18209         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18210         in rtld.  Use *stat64.
18211         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18212         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18213         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18214         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18215         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18216         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18217         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18218         __fstatat64 macros.
18219         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18220         * dirent/rewinddir.c: Add libc_hidden_def.
18221         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18222         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18223
18224         * include/dirent.h (__alloc_dir): Add flags parameter.
18225         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18226         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18227         __alloc_dir.
18228         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18229         from fdopendir if O_CLOEXEC is already set.
18230
18231 2011-03-15  Alan Modra  <amodra@gmail.com>
18232
18233         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18234         l_tls_firstbyte_offset non-zero.  Save padding offset in
18235         l_tls_firstbyte_offset for later use.
18236         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18237         freeing static tls block.
18238
18239 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18240
18241         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18242         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18243         being defined by the kernel headers.
18244
18245 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18246
18247         [BZ #12734]
18248         * resolv/resolv.h: Define RES_NOTLDQUERY.
18249         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18250         no-tld-query and set RES_NOTLDQUERY.
18251         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18252         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18253         modern BIND to search name as TLD unless forbidden.
18254
18255 2011-05-07  Petr Baudis  <pasky@suse.cz>
18256             Ulrich Drepper  <drepper@gmail.com>
18257
18258         [BZ #12393]
18259         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18260         (is_trusted_path): ...to here.
18261         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18262         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18263         using is_trusted_path_normalize() in setuid scripts.
18264
18265 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18266
18267         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18268         __BEGIN/__END_DECLS.
18269
18270 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18271
18272         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18273         NSS_STATUS_NOTFOUND if no record was found.
18274
18275 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18276
18277         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18278         (headers-not-in-tirpc): Remove rpc/netdb.h
18279         * resolv/netdb.h: Revert last change.
18280
18281 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18282
18283         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18284         circular dependency between libgcc.a and libc.a.
18285
18286 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18287
18288         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18289         * nis/Makefile: Don't install rpcsvc/*.
18290         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18291         instead of <rpc/types.h>.
18292         (MAXHOSTNAMELEN): Define.
18293
18294 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18295
18296         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18297
18298 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18299
18300         [BZ #12714]
18301         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18302         gethostbyname4_r when IPv6 results are possible.
18303
18304 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18305
18306         [BZ #12723]
18307         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18308         _PC_PIPE_BUF handling.
18309
18310 2011-04-30  Bruno Haible  <bruno@clisp.org>
18311
18312         [BZ #12717]
18313         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18314         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18315         to 'int'.
18316         * inet/getnameinfo.c (getnameinfo): Likewise.
18317
18318 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18319
18320         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18321         to groups setting in database lookup.
18322         * nss/nsswitch.conf: Add initgroups entry.
18323
18324 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18325
18326         [BZ #12685]
18327         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18328         mode string.
18329         Patch by Eric Blake <eblake@redhat.com>.
18330
18331 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18332
18333         * sunrpc/Makefile (need-export-routines): Add svc_run.
18334         (routines): Remove svc_run.
18335         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18336         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18337         * sunrpc/svc_run.c (svc_run): Likewise.
18338         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18339
18340 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18341
18342         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18343         problem in reallocation in last patch.
18344
18345 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18346
18347         * sunrpc/Makefile: Move inclusion of Rules.
18348
18349 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18350
18351         * nss/nss_files/files-initgroups.c: New file.
18352         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18353         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18354         _nss_files_initgroups_dyn.
18355
18356 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18357
18358         * elf/elf.h (R_ARM_IRELATIVE): Define.
18359
18360 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18361
18362         * po/ru.po: Update from translation team.
18363
18364 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18365
18366         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18367         dependencies.
18368
18369 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18370
18371         [BZ #12653]
18372         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18373         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18374         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18375         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18376         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18377
18378 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18379
18380         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18381         differing bytes.
18382         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18383         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18384         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18385
18386 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18387
18388         [BZ #12420]
18389         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18390         storing it.
18391         * stdlib/bug-getcontext.c: New file.
18392         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18393
18394 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18395
18396         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18397         instructions into .machine "z9-109".
18398         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18399         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18400
18401 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18402
18403         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18404         between environment variables and auxiliary vector.
18405
18406 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18407
18408         * Makefile: Add rules to build linkobj/libc.so.
18409         * include/libc-symbols.h: Define libc_hidden_nolink.
18410         * include/rpc/auth.h: Mark functions which are to be hidden.
18411         * include/rpc/auth_des.h: Likewise.
18412         * include/rpc/auth_unix.h: Likewise.
18413         * include/rpc/clnt.h: Likewise.
18414         * include/rpc/des_crypt.h: Likewise.
18415         * include/rpc/key_prot.h: Likewise.
18416         * include/rpc/pmap_clnt.h: Likewise.
18417         * include/rpc/pmap_prot.h: Likewise.
18418         * include/rpc/pmap_rmt.h: Likewise.
18419         * include/rpc/rpc_msg.h: Likewise.
18420         * include/rpc/svc.h: Likewise.
18421         * include/rpc/svc_auth.h: Likewise.
18422         * include/rpc/xdr.h: Likewise.
18423         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18424         * nss/Makefile: Likewise.
18425         * sunrpc/Makefile: Don't install headers.  Build library with normal
18426         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18427         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18428         for the compat linking library.  Remove use of INTDEF/INTUSE.
18429         * sunrpc/auth_none.c: Likewise.
18430         * sunrpc/auth_unix.c: Likewise.
18431         * sunrpc/authdes_prot.c: Likewise.
18432         * sunrpc/authuxprot.c: Likewise.
18433         * sunrpc/clnt_gen.c: Likewise.
18434         * sunrpc/clnt_perr.c: Likewise.
18435         * sunrpc/clnt_raw.c: Likewise.
18436         * sunrpc/clnt_simp.c: Likewise.
18437         * sunrpc/clnt_tcp.c: Likewise.
18438         * sunrpc/clnt_udp.c: Likewise.
18439         * sunrpc/clnt_unix.c: Likewise.
18440         * sunrpc/des_crypt.c: Likewise.
18441         * sunrpc/des_soft.c: Likewise.
18442         * sunrpc/get_myaddr.c: Likewise.
18443         * sunrpc/key_call.c: Likewise.
18444         * sunrpc/key_prot.c: Likewise.
18445         * sunrpc/netname.c: Likewise.
18446         * sunrpc/pm_getmaps.c: Likewise.
18447         * sunrpc/pm_getport.c: Likewise.
18448         * sunrpc/pmap_clnt.c: Likewise.
18449         * sunrpc/pmap_prot.c: Likewise.
18450         * sunrpc/pmap_prot2.c: Likewise.
18451         * sunrpc/pmap_rmt.c: Likewise.
18452         * sunrpc/publickey.c: Likewise.
18453         * sunrpc/rpc_cmsg.c: Likewise.
18454         * sunrpc/rpc_common.c: Likewise.
18455         * sunrpc/rpc_dtable.c: Likewise.
18456         * sunrpc/rpc_prot.c: Likewise.
18457         * sunrpc/rpc_thread.c: Likewise.
18458         * sunrpc/rtime.c: Likewise.
18459         * sunrpc/svc.c: Likewise.
18460         * sunrpc/svc_auth.c: Likewise.
18461         * sunrpc/svc_authux.c: Likewise.
18462         * sunrpc/svc_raw.c: Likewise.
18463         * sunrpc/svc_run.c: Likewise.
18464         * sunrpc/svc_simple.c: Likewise.
18465         * sunrpc/svc_tcp.c: Likewise.
18466         * sunrpc/svc_udp.c: Likewise.
18467         * sunrpc/svc_unix.c: Likewise.
18468         * sunrpc/svcauth_des.c: Likewise.
18469         * sunrpc/xcrypt.c: Likewise.
18470         * sunrpc/xdr.c: Likewise.
18471         * sunrpc/xdr_array.c: Likewise.
18472         * sunrpc/xdr_float.c: Likewise.
18473         * sunrpc/xdr_intXX_t.c: Likewise.
18474         * sunrpc/xdr_mem.c: Likewise.
18475         * sunrpc/xdr_rec.c: Likewise.
18476         * sunrpc/xdr_ref.c: Likewise.
18477         * sunrpc/xdr_sizeof.c: Likewise.
18478         * sunrpc/xdr_stdio.c: Likewise.
18479
18480 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18481
18482         [BZ #12650]
18483         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18484         * sysdeps/ia64/dl-tls.h: Likewise.
18485         * sysdeps/powerpc/dl-tls.h: Likewise.
18486         * sysdeps/s390/dl-tls.h: Likewise.
18487         * sysdeps/sh/dl-tls.h: Likewise.
18488         * sysdeps/sparc/dl-tls.h: Likewise.
18489         * sysdeps/x86_64/dl-tls.h: Likewise.
18490         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18491
18492 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18493
18494         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18495         rpath element also skip the following colon.
18496         (expand_dynamic_string_token): Add is_path parameter and pass
18497         down to DL_DST_REQUIRED and _dl_dst_substitute.
18498         (decompose_rpath): Call expand_dynamic_string_token with
18499         non-zero is_path.  Ignore empty rpaths.
18500         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18501         with zero is_path.
18502
18503 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18504
18505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18506         Make cancelable.
18507
18508 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18509
18510         [BZ #12655]
18511         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18512         Patch by Filipe David Manana <fdmanana@apache.org>.
18513
18514 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18515
18516         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18517         Maintain aligned stack.
18518         (CHECK_RSP): Remove unused macro.
18519
18520 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18521
18522         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18523         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18524
18525 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18526
18527         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18528
18529         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18530
18531 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18532
18533         [BZ #12518]
18534         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18535         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18536         * sysdeps/x86_64/memmove.c: New file.
18537         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18538         (memcpy): Renamed to ...
18539         (__new_memcpy): This.
18540         (memcpy): Provide GLIBC_2_14 memcpy.
18541         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18542         (memcpy): Provide GLIBC_2_2_5 memcpy.
18543
18544 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18545
18546         [BZ #12631]
18547         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18548
18549 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18550
18551         * misc/syncfs.c: New file.
18552         * misc/Makefile (routines): Add syncfs.
18553         * posix/unistd.h: Declare syncfs.
18554         * sysdeps/unix/syscalls.list: Add syncfs.
18555
18556 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18557
18558         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18559         open_by_handle_at.
18560         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18561         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18562         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18563         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18564         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18565         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18566         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18567
18568 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18569
18570         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18571         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18572         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18573         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18574         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18575         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18576         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18577
18578         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18579         sync_file_range.c with -fexceptions.
18580         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18581         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18582         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18583         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18584         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18585         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18586         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18587         sync_file_range as cancellation point
18588         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18589         now a wrapper around __call_sync_file_range with cancellation handling.
18590         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18591         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18592         function name to __call_sync_file_range.
18593         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18594         Add call_sync_file_range.
18595
18596 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18597
18598         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18599         bits/timex.h.
18600
18601 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18602
18603         * iconv/iconv.h: Fix typo in comment.
18604         * io/fcntl.h: Likewise.
18605         * libio/stdio.h: Likewise.
18606         * posix/spawn.h: Likewise.
18607         * posix/unistd.h: Likewise.
18608         * stdlib/stdlib.h: Likewise.
18609         * time/time.h: Likewise.
18610         * wcsmbs/wchar.h: Likewise.
18611
18612         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18613         open_by_handle): Add.
18614         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18615         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18616         Augment a few comments.
18617         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18618         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18619         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18620         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18621         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18622         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18623         open_by_handle.
18624
18625         * io/fcntl.h (AT_EMPTY_PATH): Define.
18626
18627 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18628
18629         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18630         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18631         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18632         to...
18633         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18634         * Versions.def: Add GLIBC_2.14.
18635         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18636         Export.
18637
18638 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18639
18640         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18641         round counter.
18642         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18643
18644 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18645
18646         [BZ #12597]
18647         * string/test-strncmp.c (do_page_test): New function.
18648         (check2): Likewise.
18649         (test_main): Call check2.
18650         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18651
18652 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18653
18654         [BZ #12587]
18655         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18656         Handle cache information in CPU leaf 4.
18657         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18658
18659 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18660
18661         [BZ #12583]
18662         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18663         character representation.
18664         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18665
18666 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18667
18668         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18669         END(__isnan) to END(__isnanf) to match function entry point/label
18670         EALIGN(__isnanf,...).
18671
18672 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18673
18674         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18675
18676 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18677
18678         [BZ #12510]
18679         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18680         copy from the symbol referenced in the relocation to initialize the
18681         used variable.
18682         Patch by Piotr Bury <pbury@goahead.com>.
18683         * elf/Makefile: Add rules to build and tst-unique3.
18684         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18685         * elf/tst-unique3.cc: New file.
18686         * elf/tst-unique3.h: New file.
18687         * elf/tst-unique3lib.cc: New file.
18688         * elf/tst-unique3lib2.cc: New file.
18689
18690         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18691
18692 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18693
18694         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18695         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18696         to _start.
18697
18698 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18699
18700         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18701         to-be-loaded object along a path to loader is ld.so.
18702
18703 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18704             Ulrich Drepper  <drepper@gmail.com>
18705
18706         * sysdeps/x86_64/memset.S: After aligning destination, code
18707         branches to different locations depending on the value of
18708         misalignment, when multiarch is enabled. Fix this.
18709
18710 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18711
18712         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18713         Set _x86_64_preferred_memory_instruction for AMD processsors.
18714         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18715         Set bit_Prefer_SSE_for_memop for AMD processors.
18716
18717 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18718
18719         * libio/fmemopen.c (fmemopen): Optimize a bit.
18720
18721 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18722
18723         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18724
18725 2011-03-03  Roland McGrath  <roland@redhat.com>
18726
18727         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18728
18729 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18730
18731         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18732         __bzero_ultra1 instead of __memset_ultra1.
18733
18734 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18735             Ulrich Drepper  <drepper@gmail.com>
18736
18737         [BZ #12509]
18738         * include/link.h (struct link_map): Add l_orig_initfini.
18739         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18740         returning unsuccessfully.
18741         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18742         close of a file loaded at startup, restore the original l_initfini
18743         list.
18744         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18745         list, store the pointer.
18746         * elf/Makefile ($(objpfx)noload-mem): New rule.
18747         (noload-ENV): Define.
18748         (tests): Add $(objpfx)noload-mem.
18749         * elf/noload.c: Include <memcheck.h>.
18750         (main): Call mtrace.  Close all opened handles.
18751
18752 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18753
18754         [BZ #12454]
18755         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18756         dependencies are missing.
18757
18758 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18759
18760         Fix __if_freereq crash: Unlike the generic version which uses free,
18761         Hurd needs munmap.
18762         * sysdeps/mach/hurd/ifreq.h: New file.
18763
18764 2011-01-27  Petr Baudis  <pasky@suse.cz>
18765             Ulrich Drepper  <drepper@gmail.com>
18766
18767         [BZ 12445]#
18768         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18769         to extend_alloca().
18770         * stdio-common/bug23.c: New file.
18771         * stdio-common/Makefile (tests): Add bug23.
18772
18773 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18774             Ulrich Drepper  <drepper@gmail.com>
18775
18776         [BZ #12489]
18777         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18778         before performing relro protection.  At old place add assertion
18779         to make sure nothing changed.
18780
18781 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18782             Glauber de Oliveira Costa  <glommer@gmail.com>
18783
18784         * elf/elf.h: Add new ARM TLS relocs.
18785
18786 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18787
18788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18789         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18790         cast from r3.
18791         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18792         'tests' variable.
18793         * sysdeps/wordsize-64/tst-writev.c: New file.
18794
18795 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18796
18797         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18798         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18799         insns in _dl_start to prevent a TOC reference before relocs are
18800         resolved.
18801
18802 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18803
18804         [BZ #12469]
18805         * Makeconfig: Remove RANLIB definition.
18806         * Makerules: Don't use RANLIB.
18807         * aclocal.m4: Remove ranlib test.
18808         * configure.in: No need to check for ranlib.
18809         * elf/rtld-Rules: Don't use RANLIB.
18810
18811 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18812
18813         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18814         protection macro.
18815         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18816         inclusion protection macro.
18817
18818         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18819         SIGRTMIN and SIGRTMAX and print information in that case only when
18820         SIGRTMIN is defined.
18821
18822 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18823
18824         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18825         arginfo fn returning -1.
18826
18827         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18828         and thousands string is zero terminated.
18829
18830 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18831
18832         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18833         sysdeps/unix/sysv/linux/bits/socket.h.
18834
18835 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18836
18837         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18838         (__CPU_COUNT): Remove old macros.
18839         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18840         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18841         (__CPU_ALLOC, __CPU_FREE): Add macros.
18842         (__sched_cpualloc, __sched_cpufree): Add declarations.
18843
18844 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18845
18846         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18847         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18848         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18849         (readdhstai): Return value of addhstaiX call.
18850         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18851         (addgrbyX): Return value returned by cache_addgr.
18852         (readdgrbyname): Return value returned by addgrbyX.
18853         (readdgrbygid): Likewise.
18854         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18855         (addpwbyX): Return value returned by cache_addpw.
18856         (readdpwbyname): Return value returned by addhstbyX.
18857         (readdpwbyuid): Likewise.
18858         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18859         (addservbyX): Return value returned by cache_addserv.
18860         (readdservbyname): Return value returned by addservbyX:
18861         (readdservbyport): Likewise.
18862         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18863         (addhstbyX): Return value returned by cache_addhst.
18864         (readdhstbyname): Return value returned by addhstbyX.
18865         (readdhstbyaddr): Likewise.
18866         (readdhstbynamev6): Likewise.
18867         (readdhstbyaddrv6): Likewise.
18868         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18869         (readdinitgroups): Return value returned by addinitgroupsX.
18870         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18871         (prune_cache): Keep track of timeout value of re-added entries.
18872         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18873         * nscd/nscd.h: Adjust prototypes of readd* functions.
18874
18875 2011-02-04  Roland McGrath  <roland@redhat.com>
18876
18877         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18878         (nis_stats): Likewise.
18879         * nis/nis_modify.c (nis_modify): Likewise.
18880         * nis/nis_remove.c (nis_remove): Likewise.
18881         * nis/nis_add.c (nis_add): Likewise.
18882
18883         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18884
18885         * posix/fnmatch_loop.c: Add some consts.
18886
18887         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18888
18889 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18890
18891         [BZ #12460]
18892         * config.make.in (config-cflags-novzeroupper): Define.
18893         * configure.in: Substitute libc_cv_cc_novzeroupper.
18894         * elf/Makefile (AVX-CFLAGS): Define.
18895         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18896         (CFLAGS-tst-auditmod4a.c): Likewise.
18897         (CFLAGS-tst-auditmod4b.c): Likewise.
18898         (CFLAGS-tst-auditmod6b.c): Likewise.
18899         (CFLAGS-tst-auditmod6c.c): Likewise.
18900         (CFLAGS-tst-auditmod7b.c): Likewise.
18901         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18902
18903 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18904
18905         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18906         function to the callback.
18907         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18908
18909 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18910
18911         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18912         of errno.
18913
18914 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18915
18916         [BZ #11724]
18917         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18918         of constructors.
18919         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18920         of destructors.
18921         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18922
18923         [BZ #11724]
18924         * elf/Makefile: Add rules to build and run new test.
18925         * elf/tst-initorder.c: New file.
18926         * elf/tst-initorder.exp: New file.
18927         * elf/tst-initordera1.c: New file.
18928         * elf/tst-initordera2.c: New file.
18929         * elf/tst-initordera3.c: New file.
18930         * elf/tst-initordera4.c: New file.
18931         * elf/tst-initorderb1.c: New file.
18932         * elf/tst-initorderb2.c: New file.
18933         * elf/tst-order-a1.c: New file.
18934         * elf/tst-order-a2.c: New file.
18935         * elf/tst-order-a3.c: New file.
18936         * elf/tst-order-a4.c: New file.
18937         * elf/tst-order-b1.c: New file.
18938         * elf/tst-order-b2.c: New file.
18939         * elf/tst-order-main.c: New file.
18940         New test case by George Gensure <werkt0@gmail.com>.
18941
18942 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18943
18944         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18945         decoding ACE if AI_CANONIDN.
18946
18947 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18948
18949         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18950
18951 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18952
18953         * version.h (RELEASE): Bump for 2.13 release.
18954         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18955
18956         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18957
18958         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18959         MADV_NOHUGEPAGE.
18960         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18961         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18962         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18963         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18964         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18965         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18966
18967         * posix/getconf.c: Update copyright year.
18968         * catgets/gencat.c: Likewise.
18969         * csu/version.c: Likewise.
18970         * debug/catchsegv.sh: Likewise.
18971         * debug/xtrace.sh: Likewise.
18972         * elf/ldconfig.c: Likewise.
18973         * elf/ldd.bash.in: Likewise.
18974         * elf/sprof.c (print_version): Likewise.
18975         * iconv/iconv_prog.c: Likewise.
18976         * iconv/iconvconfig.c: Likewise.
18977         * locale/programs/locale.c: Likewise.
18978         * locale/programs/localedef.c: Likewise.
18979         * malloc/memusage.sh: Likewise.
18980         * malloc/mtrace.pl: Likewise.
18981         * nscd/nscd.c (print_version): Likewise.
18982         * nss/getent.c: Likewise.
18983
18984         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18985         PF_CAIF, and PF_ALG.
18986         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18987
18988 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18989
18990         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18991         (modules-names): Use them.
18992         (ifunc-test-modules, ifunc-pie-tests): Define.
18993         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18994         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
18995         (test-extras): Likewise.
18996         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
18997         $(compile-command.c).
18998         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
18999         (all-built-dso): Define.
19000         (check-textrel.out, check-execstack.out): Depend on it.
19001
19002         * configure.in: Don't override --enable-multi-arch.
19003
19004 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19005
19006         [BZ #6812]
19007         * nscd/hstcache.c (tryagain): Define.
19008         (cache_addhst): Return tryagain not notfound for temporary errors.
19009         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19010         failed.
19011
19012 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19013
19014         [BZ #10563]
19015         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19016         to make the syscall.
19017         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19018
19019         [BZ #12378]
19020         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19021         and fall back to matching as normal character if the string ends before
19022         the matching ']' is found.  This is what POSIX requires.
19023         * posix/testfnm.c: Adjust test result.
19024         * posix/globtest.sh: Adjust test result.  Add new test.
19025         * posix/tst-fnmatch.input: Likewise.
19026         * posix/tst-fnmatch2.c: Add new test.
19027
19028 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19029
19030         * elf/Makefile (check-execstack): Revert last change.  Depend on
19031         check-execstack.h.
19032         (check-execstack.h): New target.
19033         (generated): Add check-execstack.h.
19034         * elf/check-execstack.c: Include "check-execstack.h".
19035         (main): Revert last change.
19036         (handle_file): Return zero if GNU_STACK is absent and
19037         DEFAULT_STACK_PERMS doesn't include PF_X.
19038
19039 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19040
19041         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19042         in child fails because the descriptor is already closed.
19043         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19044         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19045         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19046
19047         [BZ #12397]
19048         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19049         syscall.
19050
19051         [BZ #10484]
19052         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19053         temporary buffer used to handle multi lookups locally.
19054         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19055
19056 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19057
19058         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19059         loader is ld.so.
19060
19061 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19062
19063         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19064         alignment for SSE2.
19065
19066 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19067
19068         [BZ #12394]
19069         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19070         characters.  When rounding increased number of integer digits recompute
19071         number of groups.
19072         * stdio-common/tst-grouping.c: New file.
19073         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19074
19075 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19076
19077         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19078         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19079
19080         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19081         void.
19082         * bits/select.h: Likewise.
19083
19084 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19085
19086         * po/ja.po: Update from translation team.
19087
19088 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19089
19090         [BZ #11155]
19091         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19092         implementation just like for lxstat, fxstatat, et al.
19093
19094 2010-12-27  Jim Meyering  <meyering@redhat.com>
19095
19096         [BZ #12348]
19097         * posix/regexec.c (build_trtable): Return failure indication upon
19098         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19099
19100 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19101
19102         [BZ #12201]
19103         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19104         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19105         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19106         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19107
19108         [BZ #12207]
19109         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19110
19111         [BZ #12204]
19112         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19113         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19114
19115 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19116
19117         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19118         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19119         script has SORT_BY_INIT_PRIORITY.
19120         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19121         NO_CTORS_DTORS_SECTIONS is defined.
19122         * elf/soinit.c: Likewise.
19123         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19124         NO_CTORS_DTORS_SECTIONS is defined.
19125         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19126         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19127         * sysdeps/sh/init-first.c: Likewise.
19128         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19129
19130 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19131
19132         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19133         always use the slow path.
19134
19135 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19136
19137         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19138         similar rule which adds the sysdep directories to the header search in
19139         order to pick up the correct platform stackinfo.h.
19140         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19141         perform test if it is, otherwise return successfully without testing.
19142         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19143         DEFAULT_STACK_PERMS define in stackinfo.h.
19144         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19145         defined in stackinfo.h.
19146         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19147         DEFAULT_STACK_PERMS defined in stackinfo.h.
19148         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19149         * sysdeps/ia64/stackinfo.h: Likewise.
19150         * sysdeps/s390/stackinfo.h: Likewise.
19151         * sysdeps/sh/stackinfo.h: Likewise.
19152         * sysdeps/sparc/stackinfo.h: Likewise.
19153         * sysdeps/x86_64/stackinfo.h: Likewise.
19154         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19155         PF_X for powerpc64.  Retain PF_X for powerpc32.
19156
19157 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19158
19159         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19160         accurately.
19161         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19162         GETDENTS_64BIT_ALIGNED.
19163
19164 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19165
19166         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19167
19168 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19169
19170         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19171         _GNU_SOURCE.
19172
19173         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19174         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19175         Remove __restrict.
19176         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19177         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19178
19179 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19180
19181         [BZ #11655]
19182         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19183         are initialized.
19184
19185 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19186
19187         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19188
19189 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19190
19191         * po/it.po: Update from translation team.
19192
19193 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19194
19195         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19196         unused codes.
19197
19198 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19199
19200         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19201
19202 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19203
19204         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19205         specially.
19206         (gaih_getanswer_slice): Likewise.
19207
19208 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19209
19210         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19211
19212 2010-05-31  Petr Baudis  <pasky@suse.cz>
19213
19214         [BZ #11149]
19215         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19216         silently even in the chroot mode.
19217
19218 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19219
19220         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19221         last patch a bit.  Pretty printing
19222
19223 2010-05-31  Petr Baudis <pasky@suse.cz>
19224
19225         [BZ #10085]
19226         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19227         initialization of skip_initgroups_dyn.
19228
19229 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19230
19231         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19232         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19233
19234 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19235
19236         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19237
19238 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19239
19240         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19241         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19242         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19243         ($(objpfx)tst-fnmatch-mem): New rule.
19244         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19245         * posix/tst-fnmatch.c (main): Call mtrace.
19246
19247 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19248
19249         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19250         Support Intel processor model 6 and model 0x2c.
19251
19252 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19253
19254         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19255           signed comparison.
19256
19257 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19258
19259         [BZ #12205]
19260         * string/test-strncasecmp.c (check_result): New function.
19261         (do_one_test): Use it.
19262         (check1): New function.
19263         (test_main): Use it.
19264         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19265         Support strcasecmp and strncasecmp.
19266
19267 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19268
19269         [BZ #12194]
19270         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19271         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19272
19273 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19274
19275         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19276         IFUNC support.
19277         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19278         memset-x86-64.
19279         * sysdeps/x86_64/multiarch/bzero.S: New file.
19280         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19281         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19282         * sysdeps/x86_64/multiarch/memset.S: New file.
19283         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19284         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19285         Set bit_Prefer_SSE_for_memop for Intel processors.
19286         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19287         Define.
19288         (index_Prefer_SSE_for_memop): Define.
19289         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19290
19291 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19292
19293         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19294         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19295
19296 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19297
19298         [BZ #12191]
19299         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19300         (__x86_64_raw_data_cache_size_half): Likewise.
19301         (__x86_64_raw_shared_cache_size): Likewise.
19302         (__x86_64_raw_shared_cache_size_half): Likewise.
19303
19304         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19305         (__x86_64_raw_data_cache_size_half): Likewise.
19306         (__x86_64_raw_shared_cache_size): Likewise.
19307         (__x86_64_raw_shared_cache_size_half): Likewise.
19308         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19309         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19310         and __x86_64_raw_shared_cache_size_half.  Round
19311         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19312         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19313         to multiple of 256 bytes.
19314
19315 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19316
19317         [BZ #12167]
19318         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19319         of inacessible symlinks.  Verify result of symlink before returning it.
19320         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19321         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19322
19323 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19324
19325         * math/math.h (isinf): Fix typo in comment.
19326
19327 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19328
19329         * po/da.po: Update from translation team.
19330
19331 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19332
19333         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19334         is added to the list.
19335
19336 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19337             Ulrich Drepper  <drepper@gmail.com>
19338
19339         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19340         the global list here.  Move code to...
19341         (_dl_add_to_namespace_list): ...here.  New function.
19342         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19343         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19344         * elf/dl-load.c (lose): Don't remove the element from the list.
19345         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19346         (_dl_map_object): Likewise.
19347
19348 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19349
19350         [BZ #12159]
19351         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19352         into all bytes of SSE register.
19353         Patch by Richard Li <richardpku@gmail.com>.
19354
19355 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19356
19357         [BZ #12140]
19358         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19359         perturbing.
19360
19361 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19362
19363         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19364         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19365         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19366         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19368         submachine.
19369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19370
19371 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19372
19373         * include/dlfcn.h (__RTLD_SECURE): Define.
19374         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19375         mode & __RTLD_SECURE instead.
19376         (open_path): Rename preloaded parameter to secure.
19377         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19378         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19379         * elf/dl-deps.c (openaux): Likewise.
19380         * elf/rtld.c (struct map_args): Remove is_preloaded.
19381         (map_doit): Don't use it.
19382         (dl_main): Likewise.
19383         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19384         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19385
19386 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19387
19388         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19389         (sysd-rules-targets): Remove duplicates.
19390         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19391         rtld-%.$o dependency.
19392
19393 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19394
19395         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19396         _dl_map_object do it.
19397
19398 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19399
19400         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19401         fast fma builtins, define the macros in the C99 standard.
19402         (FP_FAST_FMAF): Likewise.
19403         (FP_FAST_FMAL): Likewise.
19404         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19405
19406         * bits/mathdef.h: Update copyright year.
19407         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19408
19409 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19410
19411         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19412         builtins, define the macros in the C99 standard.
19413         (FP_FAST_FMAF): Likewise.
19414         (FP_FAST_FMAL): Likewise.
19415         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19416         multiply/add.
19417         (FP_FAST_FMAF): Likewise.
19418
19419 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19420
19421         [BZ #3268]
19422         * math/libm-test.inc (fma_test): Some new testcases.
19423         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19424         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19425         y and infinite z.  Do multiplication by C already in long double.
19426         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19427         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19428         y and infinite z.  Do bitwise or of inexact bit into u.d.
19429         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19430         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19431         * sysdeps/i386/fpu/s_fma.S: Removed.
19432         * sysdeps/i386/fpu/s_fmal.S: Removed.
19433
19434 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19435
19436         [BZ #3268]
19437         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19438         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19439         computation is not scheduled after fetestexcept.  Fix value
19440         of minimum denormal long double.
19441
19442 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19443
19444         [BZ #3268]
19445         * math/libm-test.inc (fma_test): Add some more tests.
19446         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19447         correctly.
19448
19449 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19450
19451         * scripts/data/localplt-s390-linux-gnu.data: New file.
19452         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19453
19454 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19455
19456         [BZ #3268]
19457         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19458         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19459         instead of dbl-64.
19460         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19461         inlines.
19462         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19463         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19464         if one of x and y is very large and the other is subnormal.
19465         * sysdeps/s390/fpu/s_fmaf.c: New file.
19466         * sysdeps/s390/fpu/s_fma.c: New file.
19467         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19468         * sysdeps/powerpc/fpu/s_fma.S: New file.
19469         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19470         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19471         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19472
19473 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19474
19475         [BZ #3268]
19476         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19477         fma tests.
19478         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19479         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19480         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19481         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19482         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19483         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19484         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19485
19486 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19487
19488         [BZ #12078]
19489         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19490         * posix/bug-regex31.input: Add test case.
19491
19492 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19493
19494         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19495         * posix/bug-regex31.input: New file.
19496
19497         [BZ #12078]
19498         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19499         (parse_sub_exp): Fix last change, use postorder.
19500
19501         * posix/bug-regex31.c: New file.
19502         * posix/Makefile: Add rules to build and run bug-regex31.
19503
19504         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19505
19506         [BZ #12078]
19507         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19508
19509         [BZ #12108]
19510         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19511         to have entries in sys_siglist.
19512
19513         [BZ #12093]
19514         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19515         be NULL.
19516
19517 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19518
19519         [BZ #3268]
19520         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19521         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19522         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19523         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19524         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19525         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19526         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19527         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19528         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19529         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19530         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19531         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19532         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19533         * math/ftestexcept.c (fetestexcept): Likewise.
19534         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19535         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19536         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19537         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19538         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19539         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19540         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19541
19542 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19543
19544         [BZ #12107]
19545         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19546         newline.
19547
19548 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19549
19550         * string/bug-strstr1.c: New file.
19551         * string/Makefile: Add rules to build and run bug-strstr1.
19552
19553 2010-10-05  Eric Blake  <eblake@redhat.com>
19554
19555         [BZ #12092]
19556         * string/str-two-way.h (two_way_long_needle): Always clear memory
19557         when skipping input due to the shift table.
19558
19559 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19560
19561         [BZ #12005]
19562         * malloc/mcheck.c: Handle large requests.
19563
19564         [BZ #12077]
19565         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19566         for strncmp and strncasecmp.
19567         * string/stratcliff.c: Add tests for strcmp and strncmp.
19568         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19569
19570 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19571
19572         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19573         __set_fpscr.
19574
19575 2010-09-30  Andreas Jaeger  <aj@suse.de>
19576
19577         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19578         (CGROUP_SUPER_MAGIC): Define.
19579         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19580         Handle btrfs and cgroup file systems.
19581         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19582         Likewise.
19583
19584 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19585
19586         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19587         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19588
19589 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19590
19591         [BZ #12067]
19592         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19593         trying to locate the ELF header.
19594
19595 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19596
19597         [BZ #11611]
19598         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19599         Mask out sign-bit copies when constructing f_fsid.
19600
19601 2010-09-24  Petr Baudis <pasky@suse.cz>
19602
19603         * debug/stack_chk_fail_local.c: Add missing licence exception.
19604         * debug/warning-nop.c: Likewise.
19605
19606 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19607
19608         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19609         implementing getdents64 using getdents syscall, set d_type if
19610         __ASSUME_GETDENTS32_D_TYPE.
19611
19612 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19613
19614         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19615         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19616
19617 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19618
19619         [BZ #12037]
19620         * posix/unistd.h: Undo change of feature selection for ftruncate from
19621         2010-01-11.
19622
19623 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19624
19625         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19626         detection.
19627
19628 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19629
19630         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19631         fanotify_mark.
19632         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19633
19634 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19635
19636         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19637         variables after CHECK_SP call.
19638         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19639
19640 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19641             Ulrich Drepper  <drepper@redhat.com>
19642
19643         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19644         re-relocationg ld.so.
19645         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19646         _dl_init_paths call.
19647         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19648         here anymore.
19649
19650 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19651
19652         * resolv/res_init.c (__res_vinit): Count the default server we added.
19653
19654 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19655             Ulrich Drepper  <drepper@redhat.com>
19656
19657         [BZ #11968]
19658         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19659         (____longjmp_chk): Use %ebx for saving value across system call.
19660         Add unwind info.
19661
19662 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19663
19664         * manual/Makefile: Don't mix pattern rules with normal rules.
19665
19666 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19667
19668         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19669         operation.
19670         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19671         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19672         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19673         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19674         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19675         Likewise.
19676
19677 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19678
19679         [BZ #11979]
19680         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19681         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19682
19683 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19684
19685         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19686         * sysdeps/x86_64/addmul_1.S: Likewise.
19687         * sysdeps/x86_64/lshift.S: Likewise.
19688         * sysdeps/x86_64/mul_1.S: Likewise.
19689         * sysdeps/x86_64/rshift.S: Likewise.
19690         * sysdeps/x86_64/sub_n.S: Likewise.
19691         * sysdeps/x86_64/submul_1.S: Likewise.
19692
19693 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19694
19695         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19696         Define __sched_param instead of SCHED_* and sched_param when
19697         <bits/sched.h> is included with __need_schedparam defined.
19698         * bits/sched.h [__need_schedparam]
19699         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19700         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19701         (__defined_schedparam): Define to 1.
19702         (__sched_param): New structure, identical to sched_param.
19703         (__need_schedparam): Undefine.
19704
19705 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19706
19707         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19708         (epoll_create1): Declare.
19709
19710         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19711
19712 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19713
19714         [BZ #7066]
19715         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19716         shifting retval into place.
19717
19718 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19719
19720         * nis/rpcsvc/nis.h: Update copyright notice.
19721         * nis/rpcsvc/nis.x: Likewise.
19722         * nis/rpcsvc/nis_callback.h: Likewise.
19723         * nis/rpcsvc/nis_callback.x: Likewise.
19724         * nis/rpcsvc/nis_object.x: Likewise.
19725         * nis/rpcsvc/nis_tags.h: Likewise.
19726         * nis/rpcsvc/yp.h: Likewise.
19727         * nis/rpcsvc/yp.x: Likewise.
19728         * nis/rpcsvc/ypupd.h: Likewise.
19729         * nis/yp_xdr.c: Likewise.
19730         * nis/ypupdate_xdr.c: Likewise.
19731
19732         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19733         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19734         (pmap_getport): Use __libc_rpc_getport.
19735         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19736         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19737         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19738
19739 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19740
19741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19742         fanotify_mark.
19743
19744 2010-08-27  Roland McGrath  <roland@redhat.com>
19745
19746         * sysdeps/i386/i686/multiarch/Makefile
19747         (CFLAGS-varshift.c): New variable.
19748
19749 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19750
19751         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19752         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19753
19754         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19755
19756         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19757
19758 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19759
19760         * sysdeps/x86_64/strlen.S: Unroll the loop.
19761         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19762         strlen-sse2 strlen-sse2-bsf.
19763         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19764         __strlen_no_bsf if bit_Slow_BSF is set.
19765         (__strlen_sse42): Removed.
19766         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19767         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19768
19769 2010-08-25  Roland McGrath  <roland@redhat.com>
19770
19771         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19772         * sysdeps/x86_64/multiarch/varshift.c: New file.
19773         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19774         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19775         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19776         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19777
19778 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19779
19780         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19781         strlen-sse2 strlen-sse2-bsf.
19782         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19783         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19784         (__strlen_sse2): Removed.
19785         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19786         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19787         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19788         bit_Slow_BSF for Atom.
19789         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19790         (index_Slow_BSF): Define.
19791         (HAS_SLOW_BSF): Define.
19792
19793 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19794
19795         [BZ #10851]
19796         * resolv/res_init.c (__res_vinit): When no server address at all
19797         is given default to loopback.
19798
19799 2010-08-24  Roland McGrath  <roland@redhat.com>
19800
19801         * configure.in: Remove config-name.h generation.
19802         * configure: Regenerated.
19803         * config-name.in: File removed.
19804         * scripts/config-uname.sh: New file.
19805         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19806         ($(objdir)config-name.h): New target.
19807
19808         * sunrpc/rpc_parse.h: Avoid nested comment.
19809
19810 2010-08-24  Richard Henderson  <rth@redhat.com>
19811             Ulrich Drepper  <drepper@redhat.com>
19812             H.J. Lu  <hongjiu.lu@intel.com>
19813
19814         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19815         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19816         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19817         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19818         _mm_alignr_epi8 with _mm_loadu_si128.
19819         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19820         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19821         (__m128i_shift_right): Removed.
19822         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19823         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19824         * sysdeps/x86_64/multiarch/varshift.h: New file.
19825         * sysdeps/x86_64/multiarch/varshift.S: New file.
19826
19827 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19828
19829         * configure.in: Move assembler checks to before sysdep dir checking.
19830
19831 2010-08-20  Petr Baudis  <pasky@suse.cz>
19832
19833         * LICENSES: Sync the sunrpc license.
19834
19835 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19836
19837         * sunrpc/auth_des.c: Update copyright notice once again.
19838         * sunrpc/auth_none.c: Likewise.
19839         * sunrpc/auth_unix.c: Likewise.
19840         * sunrpc/authdes_prot.c: Likewise.
19841         * sunrpc/authuxprot.c: Likewise.
19842         * sunrpc/bindrsvprt.c: Likewise.
19843         * sunrpc/clnt_gen.c: Likewise.
19844         * sunrpc/clnt_perr.c: Likewise.
19845         * sunrpc/clnt_raw.c: Likewise.
19846         * sunrpc/clnt_simp.c: Likewise.
19847         * sunrpc/clnt_tcp.c: Likewise.
19848         * sunrpc/clnt_udp.c: Likewise.
19849         * sunrpc/clnt_unix.c: Likewise.
19850         * sunrpc/des_crypt.c: Likewise.
19851         * sunrpc/des_soft.c: Likewise.
19852         * sunrpc/get_myaddr.c: Likewise.
19853         * sunrpc/getrpcport.c: Likewise.
19854         * sunrpc/key_call.c: Likewise.
19855         * sunrpc/key_prot.c: Likewise.
19856         * sunrpc/openchild.c: Likewise.
19857         * sunrpc/pm_getmaps.c: Likewise.
19858         * sunrpc/pm_getport.c: Likewise.
19859         * sunrpc/pmap_clnt.c: Likewise.
19860         * sunrpc/pmap_prot.c: Likewise.
19861         * sunrpc/pmap_prot2.c: Likewise.
19862         * sunrpc/pmap_rmt.c: Likewise.
19863         * sunrpc/rpc/auth.h: Likewise.
19864         * sunrpc/rpc/auth_unix.h: Likewise.
19865         * sunrpc/rpc/clnt.h: Likewise.
19866         * sunrpc/rpc/des_crypt.h: Likewise.
19867         * sunrpc/rpc/key_prot.h: Likewise.
19868         * sunrpc/rpc/netdb.h: Likewise.
19869         * sunrpc/rpc/pmap_clnt.h: Likewise.
19870         * sunrpc/rpc/pmap_prot.h: Likewise.
19871         * sunrpc/rpc/pmap_rmt.h: Likewise.
19872         * sunrpc/rpc/rpc.h: Likewise.
19873         * sunrpc/rpc/rpc_des.h: Likewise.
19874         * sunrpc/rpc/rpc_msg.h: Likewise.
19875         * sunrpc/rpc/svc.h: Likewise.
19876         * sunrpc/rpc/svc_auth.h: Likewise.
19877         * sunrpc/rpc/types.h: Likewise.
19878         * sunrpc/rpc/xdr.h: Likewise.
19879         * sunrpc/rpc_clntout.c: Likewise.
19880         * sunrpc/rpc_cmsg.c: Likewise.
19881         * sunrpc/rpc_common.c: Likewise.
19882         * sunrpc/rpc_cout.c: Likewise.
19883         * sunrpc/rpc_dtable.c: Likewise.
19884         * sunrpc/rpc_hout.c: Likewise.
19885         * sunrpc/rpc_main.c: Likewise.
19886         * sunrpc/rpc_parse.c: Likewise.
19887         * sunrpc/rpc_parse.h: Likewise.
19888         * sunrpc/rpc_prot.c: Likewise.
19889         * sunrpc/rpc_sample.c: Likewise.
19890         * sunrpc/rpc_scan.c: Likewise.
19891         * sunrpc/rpc_scan.h: Likewise.
19892         * sunrpc/rpc_svcout.c: Likewise.
19893         * sunrpc/rpc_tblout.c: Likewise.
19894         * sunrpc/rpc_util.c: Likewise.
19895         * sunrpc/rpc_util.h: Likewise.
19896         * sunrpc/rpcinfo.c: Likewise.
19897         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19898         * sunrpc/rpcsvc/key_prot.x: Likewise.
19899         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19900         * sunrpc/rpcsvc/mount.x: Likewise.
19901         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19902         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19903         * sunrpc/rpcsvc/rex.x: Likewise.
19904         * sunrpc/rpcsvc/rstat.x: Likewise.
19905         * sunrpc/rpcsvc/rusers.x: Likewise.
19906         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19907         * sunrpc/rpcsvc/spray.x: Likewise.
19908         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19909         * sunrpc/rtime.c: Likewise.
19910         * sunrpc/svc.c: Likewise.
19911         * sunrpc/svc_auth.c: Likewise.
19912         * sunrpc/svc_authux.c: Likewise.
19913         * sunrpc/svc_raw.c: Likewise.
19914         * sunrpc/svc_run.c: Likewise.
19915         * sunrpc/svc_simple.c: Likewise.
19916         * sunrpc/svc_tcp.c: Likewise.
19917         * sunrpc/svc_udp.c: Likewise.
19918         * sunrpc/svc_unix.c: Likewise.
19919         * sunrpc/svcauth_des.c: Likewise.
19920         * sunrpc/xcrypt.c: Likewise.
19921         * sunrpc/xdr.c: Likewise.
19922         * sunrpc/xdr_array.c: Likewise.
19923         * sunrpc/xdr_float.c: Likewise.
19924         * sunrpc/xdr_mem.c: Likewise.
19925         * sunrpc/xdr_rec.c: Likewise.
19926         * sunrpc/xdr_ref.c: Likewise.
19927         * sunrpc/xdr_sizeof.c: Likewise.
19928         * sunrpc/xdr_stdio.c: Likewise.
19929
19930         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19931         handling.
19932
19933 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19934
19935         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19936
19937 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19938
19939         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19940         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19941         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19942         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19943         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19944         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19945         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19946         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19947         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19948         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19949         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19950         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19951         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19952         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19953
19954 2010-07-26  Anton Blanchard  <anton@samba.org>
19955
19956         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19957         * malloc/arena.c (heap_trim): Likewise.
19958
19959 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19960
19961         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19962         here.  Not...
19963         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19964         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19965
19966 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19967
19968         * sysdeps/i386/elf/Makefile: New file.
19969
19970 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19971
19972         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19973         from fanotify_init.
19974         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19975         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19976
19977 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19978
19979         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19980         of strncasecmp_l.
19981         * sysdeps/multiarch/strcmp.S: Likewise.
19982
19983 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19984
19985         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19986         strncase_l-nonascii.
19987         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19988         Add strncase_l-ssse3.
19989         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19990         * sysdeps/x86_64/strcmp.S: Likewise.
19991         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19992         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19993         * sysdeps/x86_64/strncase.S: New file.
19994         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
19995         * sysdeps/x86_64/strncase_l.S: New file.
19996         * string/Makefile (strop-tests): Add strncasecmp.
19997         * string/test-strncasecmp.c: New file.
19998
19999         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20000         warning.
20001
20002         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20003         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20004
20005 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20006
20007         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20008
20009 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20010
20011         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20012         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20013         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20014
20015 2010-05-01  Alan Modra  <amodra@gmail.com>
20016
20017         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20018         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20019         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20020         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20021         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20022         tidying.  Don't tail-call __sigjmp_save for static lib.
20023         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20024         save location.
20025         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20026         (CALL_MCOUNT): Add eh info, and nop after bl.
20027         (TAIL_CALL_SYSCALL_ERROR): New macro.
20028         (PSEUDO_RET): Use it.
20029         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20030         Correct save location of integer regs and cr.
20031         (_dl_profile_resolve): Correct cr save location.  Delete nops
20032         after bl when SHARED.  Reduce cfi size a little by better
20033         placement of cfi directives.
20034         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20035         make a stack frame.  Instead use parm save area as a temp.
20036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20037         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20039         Don't make a stack frame for parent, use parm save area.
20040         Increase child stack frame to 112 bytes.  Don't save unused reg,
20041         and adjust reg usage.  Set up cfi on error recovery and
20042         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20044         (__makecontext): Add dummy nop after jump to exit.
20045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20046         Use correct parm save area and cr save, reduce stack frame.
20047         Correct cfi for possible PSEUDO_RET frame setup.
20048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20049         Branch to local label emitted by PSEUDO_RET rather than
20050         __syscall_error.
20051
20052 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20053
20054         [BZ #11904]
20055         * locale/programs/locale.c (print_assignment): New function.
20056         (show_locale_vars): Use it.
20057
20058 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20059
20060         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20061         field.
20062         (struct statfs64): Likewise.
20063         (_STATFS_F_FLAGS): Define.
20064         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20065         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20066         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20067         (ST_VALID): Define locally.
20068         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20069         __statvfs_getflags, use the provided value.
20070         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20071         __ASSUME_STATFS_F_FLAGS.
20072
20073         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20074
20075         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20076         Add sys/fanotify.h.
20077         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20078         fanotify_mask for GLIBC_2.13.
20079         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20080         fanotify_init and fanotify_mark.
20081         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20082         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20083
20084         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20085         Add prlimit.
20086         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20087         prlimit64 for GLIBC_2.13.
20088         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20089         prlimit64.
20090         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20091         syscall.
20092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20093         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20094         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20095         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20096         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20097         add prlimit alias.
20098         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20099
20100         [BZ #11903]
20101         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20102         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20103
20104         * nss/Makefile: Add rules to build and run tst-nss-test1.
20105         * shlib-versions: Add entry for libnss_test1.
20106         * nss/nss_test1.c: New file.
20107         * nss/tst-nss-test1.c: New file.
20108
20109         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20110         (__nss_configure_lookup): Set appropriate entry in
20111         __nss_configure_lookup to true.
20112         * nss/nsswitch.h: Define enum with indeces of databases in
20113         databases and __nss_database_custom arrays.  Declare
20114         __nss_database_custom.
20115         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20116         to avoid using nscd when custom rules are installed.
20117         * nss/getXXbyYY_r.c: Likewise.
20118         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20119
20120         * nss/nss_files/files-parse.c: Whitespace fixes.
20121
20122 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20123
20124         [BZ #11883]
20125         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20126         * posix/fnmatch_loop.c: Likewise.
20127
20128 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20129
20130         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20131         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20132         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20133         * Versions.def [GLIBC_2.13]: Add.
20134
20135 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20136
20137         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20138         Also fail if tpwd after pwuid call is NULL.
20139
20140 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20141
20142         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20143         when converting to ms.
20144
20145 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20146
20147         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20148         EOPNOTSUPP errors with ENOTTY.
20149         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20150         EOPNOTSUPP errors with ENOTTY.
20151
20152 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20153
20154         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20155         Add strcasecmp_l-ssse3.
20156         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20157         strcasecmp.
20158         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20159         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20160         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20161
20162 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20163
20164         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20165
20166         * string/Makefile (strop-tests): Add strcasecmp.
20167         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20168         strcasecmp_l-nonascii.
20169         (gen-as-const-headers): Add locale-defines.sym.
20170         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20171         * sysdeps/x86_64/strcasecmp.S: New file.
20172         * sysdeps/x86_64/strcasecmp_l.S: New file.
20173         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20174         * sysdeps/x86_64/locale-defines.sym: New file.
20175         * string/test-strcasecmp.c: New file.
20176
20177         * string/test-strcasestr.c: Test both ends of the range of characters.
20178         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20179
20180 2010-07-29  Roland McGrath  <roland@redhat.com>
20181
20182         [BZ #11856]
20183         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20184
20185 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20186
20187         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20188         for ld.so.
20189
20190 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20191
20192         * manual/memory.texi (Malloc Tunable Parameters): Document
20193         M_PERTURB.
20194
20195 2010-07-26  Roland McGrath  <roland@redhat.com>
20196
20197         [BZ #11840]
20198         * configure.in (-fgnu89-inline check): Set and substitute
20199         gnu89_inline, not libc_cv_gnu89_inline.
20200         * configure: Regenerated.
20201         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20202
20203 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20204
20205         * string/test-strnlen.c: New file.
20206         * string/Makefile (strop-tests): Add strnlen.
20207         * string/tester.c (test_strnlen): Add a few more test cases.
20208         * string/tst-strlen.c: Better error reporting.
20209
20210         * sysdeps/x86_64/strnlen.S: New file.
20211
20212 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20213
20214         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20215         lower-latency instructions.
20216
20217 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20218
20219         * string/test-strcasestr.c: New file.
20220         * string/test-strstr.c: New file.
20221         * string/Makefile (strop-tests): Add strstr and strcasestr.
20222         * string/str-two-way.h: Don't undefine MAX.
20223         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20224
20225 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20226
20227         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20228         strcasestr-nonascii.
20229         (CFLAGS-strcasestr-nonascii.c): Define.
20230         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20231         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20232         Remove unused attribute.
20233
20234 2010-07-20  Roland McGrath  <roland@redhat.com>
20235
20236         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20237         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20238         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20239         like LD_HWCAP_MASK can disable hwcaps.
20240
20241 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20242
20243         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20244
20245 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20246
20247         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20248         call in strcasestr.
20249         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20250         __strcasestr_sse42_nonascii.
20251         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20252         strcasestr-nonascii.c.
20253         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20254
20255 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20256
20257         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20258         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20259         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20260         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20261
20262 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20263
20264         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20265         fcntl.
20266
20267 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20268
20269         [BZ #11577]
20270         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20271         dl_signal_cerror.
20272
20273 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20274
20275         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20276         _PC_PIPE_BUF using F_GETPIPE_SZ.
20277
20278 2010-07-05  Roland McGrath  <roland@redhat.com>
20279
20280         * manual/arith.texi (Rounding Functions): Fix rint description
20281         implicit in round description.
20282
20283 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20284
20285         * elf/Makefile: Fix linking for a few tests to make recent linker
20286         happy.
20287
20288 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20289
20290         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20291         $(common-objpfx)libc_nonshared.a.
20292
20293 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20294
20295         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20296         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20297         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20298         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20299         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20300         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20301         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20302         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20317         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20318         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20319         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20320         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20321         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20322         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20323         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20324         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20325         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20326         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20327         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20328         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20343
20344 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20345
20346         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20347         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20348         * string/memmove.c (memmove): Renamed to ...
20349         (MEMMOVE): ...this.  Default to memmove.
20350         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20351         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20352         (END_CHK): Define.
20353         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20354         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20355         mempcpy-ssse3-back memmove-ssse3-back.
20356         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20357         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20358         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20359         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20360         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20361         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20362         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20363         * sysdeps/x86_64/multiarch/memmove.c: New file.
20364         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20365         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20366         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20367         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20368         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20369         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20370         Define.
20371         (index_Fast_Copy_Backward): Define.
20372         (HAS_ARCH_FEATURE): Define.
20373         (HAS_FAST_REP_STRING): Define.
20374         (HAS_FAST_COPY_BACKWARD): Define.
20375
20376 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20377
20378         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20379         Restore proper fallback handling.
20380
20381 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20382
20383         [BZ #11701]
20384         * posix/group_member.c (__group_member): Correct checking loop.
20385
20386         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20387         OOM in getpwuid_r correctly.  Return error number when the caller
20388         should return, otherwise -1.
20389         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20390         call returning > 0 value.
20391         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20392
20393 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20394
20395         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20396         libc_nonshared.a from targets in modules-names.
20397
20398 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20399
20400         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20401         requires it.
20402
20403 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20404
20405         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20406         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20407         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20408         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20409
20410 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20411
20412         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20413
20414 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20415
20416         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20417         and F_GETPIPE_SZ.
20418         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20419         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20420         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20421         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20422         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20423         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20424
20425 2010-06-14  Roland McGrath  <roland@redhat.com>
20426
20427         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20428
20429 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20430
20431         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20432         __REDIRECT followed by __THROW.
20433         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20434         * posix/getopt.h (getopt): Likewise.
20435
20436 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20437
20438         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20439         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20440         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20441         in AT_FLAGS.
20442         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20443         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20444
20445 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20446
20447         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20448
20449 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20450
20451         [BZ #11640]
20452         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20453         Properly check family and model.
20454
20455 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20456
20457         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20458
20459 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20460
20461         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20462
20463 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20464
20465         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20466         symbol reference.
20467
20468 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20469
20470         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20471         symbol reference.
20472
20473 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20474
20475         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20476         and internal_recvmmsg.
20477         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20478         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20479         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20480         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20481
20482         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20483         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20484         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20485
20486 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20487
20488         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20489
20490 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20491
20492         POWER7 optimizations.
20493         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20494         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20495
20496 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20497
20498         * version.h: Update for 2.13 development version.
20499
20500 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20501
20502         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20503         exceptions.  Return 0.
20504
20505 2010-05-07  Roland McGrath  <roland@redhat.com>
20506
20507         * elf/ldconfig.c (main): Add a const.
20508
20509 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20510
20511         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20512         (args_options): Add no-idn option.
20513         (ahosts_keys_int): Add idn_flags to ai_flags.
20514         (parse_option): Handle 'i' option to clear idn_flags.
20515
20516         * malloc/malloc.c (_int_free): Possible race in the most recently
20517         added check.  Only act on the data if no current modification
20518         happened.
20519
20520 See ChangeLog.17 for earlier changes.