Alsways include <bits/types.h> in <fcntl.h>.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-20  Roland McGrath  <roland@hack.frob.com>
2
3         * io/fcntl.h: Move include of <bits/types.h> to the top and
4         include it unconditionally.
5
6 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * wcsmbs/Makefile (tests-ifunc): New variable.
9         (tests): Add $(tests-ifunc).
10         * wcsmbs/test-wcschr-ifunc.c: New file.
11         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
12         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
13         * wcsmbs/test-wcslen-ifunc.c: Likewise.
14         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
15         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
16
17         * string/Makefile (tests-ifunc): New variable.
18         (tests): Add $(tests-ifunc).
19         * string/test-memccpy.c (TEST_NAME): New macro.
20         * string/test-memchr.c (TEST_NAME): Likewise.
21         * string/test-memcmp.c (TEST_NAME): Likewise.
22         * string/test-memcpy.c (TEST_NAME): Likewise.
23         * string/test-memmem.c (TEST_NAME): Likewise.
24         * string/test-memmove.c (TEST_NAME): Likewise.
25         * string/test-memset.c (TEST_NAME): Likewise.
26         * string/test-rawmemchr.c (TEST_NAME): Likewise.
27         * string/test-stpcpy.c (TEST_NAME): Likewise.
28         * string/test-stpncpy.c (TEST_NAME): Likewise.
29         * string/test-strcasecmp.c (TEST_NAME): Likewise.
30         * string/test-strcasestr.c (TEST_NAME): Likewise.
31         * string/test-strcat.c (TEST_NAME): Likewise.
32         * string/test-strchr.c (TEST_NAME): Likewise.
33         * string/test-strcmp.c(TEST_NAME): Likewise.
34         * string/test-strcpy.c (TEST_NAME): Likewise.
35         * string/test-strcspn.c (TEST_NAME): Likewise.
36         * string/test-strlen.c (TEST_NAME): Likewise.
37         * string/test-strncasecmp.c (TEST_NAME): Likewise.
38         * string/test-strncmp.c (TEST_NAME): Likewise.
39         * string/test-strncpy.c (TEST_NAME): Likewise.
40         * string/test-strnlen.c (TEST_NAME): Likewise.
41         * string/test-strpbrk.c (TEST_NAME): Likewise.
42         * string/test-strrchr.c (TEST_NAME): Likewise.
43         * string/test-strspn.c (TEST_NAME): Likewise.
44         * string/test-strstr.c (TEST_NAME): Likewise.
45         * string/test-bcopy-ifunc.c: New file.
46         * string/test-bzero-ifunc.c: Likewise.
47         * string/test-memccpy-ifunc.c: Likewise.
48         * string/test-memchr-ifunc.c: Likewise.
49         * string/test-memcmp-ifunc.c: Likewise.
50         * string/test-memcpy-ifunc.c: Likewise.
51         * string/test-memmem-ifunc.c: Likewise.
52         * string/test-memmove-ifunc.c: Likewise.
53         * string/test-mempcpy-ifunc.c: Likewise.
54         * string/test-memset-ifunc.c: Likewise.
55         * string/test-rawmemchr-ifunc.c: Likewise.
56         * string/test-stpcpy-ifunc.c: Likewise.
57         * string/test-stpncpy-ifunc.c: Likewise.
58         * string/test-strcasecmp-ifunc.c: Likewise.
59         * string/test-strcasestr-ifunc.c: Likewise.
60         * string/test-strcat-ifunc.c: Likewise.
61         * string/test-strchr-ifunc.c: Likewise.
62         * string/test-strchrnul-ifunc.c: Likewise.
63         * string/test-strcmp-ifunc.c: Likewise.
64         * string/test-strcpy-ifunc.c: Likewise.
65         * string/test-strcspn-ifunc.c: Likewise.
66         * string/test-strlen-ifunc.c: Likewise.
67         * string/test-strncasecmp-ifunc.c: Likewise.
68         * string/test-strncat-ifunc.c: Likewise.
69         * string/test-strncmp-ifunc.c: Likewise.
70         * string/test-strncpy-ifunc.c: Likewise.
71         * string/test-strnlen-ifunc.c: Likewise.
72         * string/test-strpbrk-ifunc.c: Likewise.
73         * string/test-strrchr-ifunc.c: Likewise.
74         * string/test-strspn-ifunc.c: Likewise.
75         * string/test-strstr-ifunc.c: Likewise.
76
77         * debug/Makefile (tests-ifunc): New variable.
78         (tests): Add $(tests-ifunc).
79         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
80         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
81         * debug/test-stpcpy_chk-ifunc.c: New file.
82         * debug/test-strcpy_chk-ifunc.c: Likewise.
83
84 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
85
86         [BZ #13601]
87         * elf/dl-load.c (open_verify): Retry read if the entire ELF
88         header is not read in.
89
90 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
91
92         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
93         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
94         directly.  Pass built executable to script as
95         $(built-program-cmd).
96         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
97         $testprogram without using LD_LIBRARY_PATH and $ldso.
98
99         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
100         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
101         $(rtld-installed-name).
102         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
103         (rtld_installed_name): Likewise.
104         (library_path): Likewise.
105         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
106         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
107         $(run-program-prefix) to tst-tables.sh.
108         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
109         it to run tst-table-from and tst-table-to.
110         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
111         Pass it to tst-table.sh.
112         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
113         $(run-program-prefix) to tst-gettext.sh.
114         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
115         tst-translit.sh.
116         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
117         tst-gettext2.sh.
118         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
119         to run tst-gettext.
120         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
121         to run tst-gettext2.
122         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
123         to run tst-translit.
124         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
125         $(run-program-prefix) to tst-mtrace.sh.
126         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
127         to run tst-mtrace.
128         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
129         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
130         $(rtld-installed-name).
131         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
132         (rtld_installed_name): Likewise.
133         (run_program_prefix): New variable.  Use it to run wordexp-test.
134
135         * Makeconfig (ARCH): Remove all definitions.
136         (machine): Likewise.
137         [ARCH]: Remove conditional code.
138         [!objdir]: Give error.
139         [!objdir] (objpfx): Remove.
140         [!objdir] (common-objpfx): Likewise.
141         [!objdir] (common-objdir): Likewise.
142         * configure.in (config_makefile): Remove.  Hardcode Makefile in
143         AC_CONFIG_FILES call.
144         * configure: Regenerated.
145
146         [BZ #13888]
147         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
148         or TMPDIR.
149         (testout): Likewise.
150
151         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
152         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
153         $(rtld-installed-name).
154         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
155         (rtld_installed_name): Likwise.
156         (runit): Remove function.
157         (run_getconf): New variable,  Use it for running getconf binary.
158
159 2012-10-19  Jim Blandy  <jimb@codesourcery.com>
160             Joseph Myers  <joseph@codesourcery.com>
161
162         * localedata/tst-wctype.sh (run_program_prefix): Remove variable.
163         (tst_wctype): New variable.  Use it directly to run test program
164         instead of passing test program name as argument.
165
166 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
167
168         [BZ #14716]
169         * string/test-memmem.c (check_result): New function.
170         (do_one_test): Use it.
171         (check1): New function.
172         (test_main): Use it.
173
174 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
175
176         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
177
178 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
179
180         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
181         (_G_LSEEK64): Likewise.
182         (_G_MMAP64): Likewise.
183         (_G_FSTAT64): Likewise.
184         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
185         (_G_LSEEK64): Likewise.
186         (_G_MMAP64): Likewise.
187         (_G_FSTAT64): Likewise.
188         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
189         unconditional.  Call __mmap64 directly.
190         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
191         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
192         __lseek64 directly.
193         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
194         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
195         __mmap64 directly.
196         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
197         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
198         __lseek64 directly.
199         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
200         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
201         __lseek64 directly.
202         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
203         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
204         __lseek64 directly.
205         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
206         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
207         __fxstat64 directly.
208         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
209         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
210         unconditional.
211         (freopen64) [!_G_OPEN64]: Remove conditional code.
212         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
213         unconditional.
214         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
215         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
216         unconditional.
217         (ftello64) [!_G_LSEEK64]: Remove conditional code.
218         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
219         unconditional.
220         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
221         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
222         unconditional.
223         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
224         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
225         unconditional.
226         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
227         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
228         unconditional.
229         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
230         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
231         unconditional.
232         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
233
234 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
235
236         [BZ #12140]
237         * manual/memory.texi (Malloc Tunable Parameters): Add note
238         about free list pointers overwriting some perturb bytes.
239         Wording suggested by Roland McGrath.
240
241 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
242
243         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
244         (lgamma_test): Likewise.
245         (tgamma_test): Likewise.
246
247 2012-10-16  Florian Weimer  <fweimer@redhat.com>
248
249         [BZ #14700]
250         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
251         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
252
253 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
254
255         * NEWS: Mention BZ #14716.
256         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
257         when removing AVAILABLE1_USES_J macro.
258
259 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
260
261         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
262         (__bswap_64): __uint64_t for unsigned 64-bit int.
263
264 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
265
266         * include/string.h (memmem): Declare libc hidden alias.
267         * string/memmem.c (memmem): Define libc hidden alias.
268         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
269         __read, __close instead of open, read, close.
270
271 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
272
273         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
274         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
275         global and hidden.
276         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
277         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
278         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
279         Likewise.
280         (__rawmemchr_sse2): Likewise.
281         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
282         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
283         (__strchr_sse2): Likewise.
284         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
285         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
286         (__strcasecmp_sse2): Likewise.
287         (__strncasecmp_sse2): Likewise.
288         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
289         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
290         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
291         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
292         (__strrchr_sse2): Likewise.
293         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
294         ifunc-impl-list.c.
295         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
296         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
297         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
298         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
299         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
300         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
301         * sysdeps/x86_64/multiarch/memset.S: Likewise.
302         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
303         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
304         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
305         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
306         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
307         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
308         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
309         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
310         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
311         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
312         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
313         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
314         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
315         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
316         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
317         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
318         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
319         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
320         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
321         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
322         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
323         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
324         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
325
326         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
327         global and hidden.
328         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
329         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
330         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
331         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
332         Likewise.
333         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
334         Likewise.
335         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
336         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
337         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
338         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
339         ifunc-impl-list.c.
340         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
341         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
342         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
343         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
344         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
345         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
346         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
347         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
348         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
349         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
350         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
351         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
352         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
353         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
354         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
355         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
356         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
357         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
358         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
359         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
360         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
361         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
362         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
363         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
364         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
365         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
366         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
367         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
368         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
369         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
370         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
371         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
372         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
373         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
374         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
375         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
376         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
377         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
378         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
379         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
380         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
381
382         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
383         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
384         * include/ifunc-impl-list.h: New file.
385         * misc/ifunc-impl-list.c: Likewise.
386         * misc/Makefile (routines): Add ifunc-impl-list.
387         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
388         * string/test-string.h: Include <ifunc-impl-list.h>.
389         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
390         impl_array): New variables.
391         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
392         are defined.
393         (test_init): Call __libc_ifunc_impl_list to initialize
394         func_list if TEST_IFUNC and TEST_NAME are defined.
395
396         * string/Makefile (strop-tests): Add bcopy and bzero.
397         * string/test-bcopy.c: New file.
398         * string/test-bzero.c: Likewise.
399         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
400         defined.
401         * string/test-memset.c: Support bzero test if TEST_BZERO is
402         defined.
403         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
404         __libc_memmove.
405         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
406         __libc_memset.
407         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
408         of memset.
409
410 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
411
412         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
413         * configure: Regenerated.
414
415         * Makeconfig (+link-static-before-libc): Don't include
416         $(link-static-libc).
417
418         * libio/libio.h (_IO_pos_t): Remove.
419
420 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
421
422         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
423         McGrath.
424
425 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
426
427         * crypt/crypt-entry.c: Include fips-private.h.
428         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
429         * crypt/md5c-test.c (main): Tolerate disabled MD5.
430         * sysdeps/unix/sysv/linux/fips-private.h: New file.
431         * sysdeps/generic/fips-private.h: New file, dummy fallback.
432
433 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
434
435         * crypt/crypt-private.h: Include stdbool.h.
436         (_ufc_setup_salt_r): Return bool.
437         * crypt/crypt-entry.c: Include errno.h.
438         (__crypt_r): Return NULL with EINVAL for bad salt.
439         * crypt/crypt_util.c (bad_for_salt): New.
440         (_ufc_setup_salt_r): Check that salt is long enough and within
441         the specified alphabet.
442         * crypt/badsalttest.c: New file.
443         * crypt/Makefile (tests): Add it.
444         ($(objpfx)badsalttest): New.
445
446 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
447
448         * NEWS: Add entry for BZ #14602.
449
450 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
451
452         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
453         type-generic.
454         * math/libm-test.inc: Update comment listing what functions and
455         macros are tested.
456         (isgreater_test): New function.
457         (isgreaterequal_test): Likewise.
458         (isless_test): Likewise.
459         (islessequal_test): Likewise.
460         (islessgreater_test): Likewise.
461         (isunordered_test): Likewise.
462         (main): Call the new functions.
463
464 2012-10-09  Roland McGrath  <roland@hack.frob.com>
465
466         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
467         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
468         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
469         * sysdeps/i386/configure: Regenerated.
470         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
471         * sysdeps/mach/configure: Regenerated.
472         * sysdeps/mach/hurd/configure: Regenerated.
473         * sysdeps/powerpc/configure: Regenerated.
474         * sysdeps/powerpc/powerpc32/configure: Regenerated.
475         * sysdeps/powerpc/powerpc64/configure: Regenerated.
476         * sysdeps/s390/s390-32/configure: Regenerated.
477         * sysdeps/s390/s390-64/configure: Regenerated.
478         * sysdeps/sh/configure: Regenerated.
479         * sysdeps/sparc/configure: Regenerated.
480         * sysdeps/unix/sysv/linux/configure: Regenerated.
481         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
482         * sysdeps/x86_64/configure: Regenerated.
483
484         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
485         defined.  Don't check if MAP is NULL.
486
487 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
488
489         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
490         (_G_stat64): Likewise.
491         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
492         (_G_stat64): Likewise.
493         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
494         instead of struct _G_stat64.
495         * libio/fileops.c (mmap_remap_check): Likewise.
496         (decide_maybe_mmap): Likewise.
497         (_IO_new_file_seekoff): Likewise.
498         (_IO_file_stat): Likewise.
499         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
500         _G_off64_t.
501         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
502         instead of struct _G_stat64.
503         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
504
505 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
506
507         [BZ #14602]
508         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
509         Replace with ...
510         (CHECK_EOL): New macro.
511         (two_way_short_needle): Check beginning of haystack for EOL.  Use
512         CHECK_EOL.
513         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
514         Replace with CHECK_EOL.
515         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
516         Replace with CHECK_EOL.
517
518 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
519
520         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
521         type-generic.
522         * math/libm-test.inc: Update comment listing what functions and
523         macros are tested.
524         (finite_test): New function.
525         (isinf_test): Likewise.
526         (isnan_test): Likewise.
527         (fpclassify_test): Test subnormal input.
528         (isfinite_test): Likewise.
529         (isnormal_test): Likewise.
530         (main): Call the new functions.
531
532 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
533
534         [BZ #14660]
535         * Makerules (%.dynsym): Force C locale when running
536         $(OBJDUMP) --dynamic-syms.
537
538 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
539
540         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
541         <stdint.h>.
542
543 2012-10-06  David S. Miller  <davem@davemloft.net>
544
545         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
546         upper 32-bits of the length value in %o2 since we use branch-on-register
547         tests which consider the entire 64-bit register.
548
549 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
550
551         * string/test-strstr.c (check2): Add a test for page boundary.
552
553 2012-10-05  David S. Miller  <davem@davemloft.net>
554
555         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
556         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
557         file.
558         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
559         sysdep_routines.
560         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
561         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
562         and bzero when HWCAP_SPARC_CRYPTO is present.
563
564 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
565
566         [BZ #14602]
567         * string/test-strstr.c (check2): New function.
568         (test_main): Call check2.
569
570         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
571         and bug-strchr1.
572         * string/bug-strcasestr1.c (do_test): Moved to ...
573         * string/test-strcasestr.c (check1): Here.  New function.
574         (do_one_test): Break out result checking code into ...
575         (check_result): This.  New function.
576         (do_one_test): Call check_result.
577         (test_main): Call check1.
578         * string/bug-strchr1.c (do_test): Moved to ...
579         * string/test-strchr.c (check1): Here.  New function.
580         (do_one_test): Break out result checking code into ...
581         (check_result): This.  New function.
582         (do_one_test): Call check_result.
583         (test_main): Call check1.
584         * string/bug-strstr1.c (main): Moved to ...
585         * string/test-strchr.c (check1): Here.  New function.
586         (do_one_test): Break out result checking code into ...
587         (check_result): This.  New function.
588         (do_one_test): Call check_result.
589         (test_main): Call check1.
590         * string/bug-strcasestr1.c: Removed.
591         * string/bug-strchr1.c: Likewise.
592         * string/bug-strstr1.c: Likewise.
593
594         * elf/Makefile (dl-routines): Add hwcaps.
595         * elf/dl-support.c (_dl_important_hwcaps): Removed.
596         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
597         (_dl_important_hwcaps): Moved to ...
598         * elf/dl-hwcaps.c: Here.  New file.
599         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
600
601         [BZ #14557]
602         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
603         if IS_IN_rtld isn't defined.
604
605         * elf/dl-support.c (_dl_sysinfo_map): New.
606         Include "get-dynamic-info.h" and "setup-vdso.h".
607         (_dl_non_dynamic_init): Call setup_vdso.
608         * elf/dynamic-link.h: Don't include <assert.h>.
609         (elf_get_dynamic_info): Moved to ...
610         * elf/get-dynamic-info.h: Here.  New file.
611         * elf/dynamic-link.h: Include "get-dynamic-info.h".
612         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
613         * elf/setup-vdso.h: Here.  New file.
614         * elf/rtld.c: Include "setup-vdso.h".
615         (dl_main): Call setup_vdso.
616
617 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
618
619         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
620         creal in comment listing functions tested.  List finite, isinf,
621         isnan, isless, islessequal, isgreater, isgreaterequal,
622         islessgreater, isunordered, lgamma_r and pow10 as functions and
623         macros not tested.  Mention which functions not tested are aliases
624         for other functions.  Fix typo.  Note that signs of NaNs are not
625         tested.
626
627         * scripts/config.guess: Update from config.git.
628         * scripts/config.sub: Likewise.
629
630 2012-10-04  Roland McGrath  <roland@hack.frob.com>
631
632         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
633         * misc/madvise.c (madvise): Renamed to __madvise.
634         Make madvise a weak alias.
635         * include/sys/mman.h: Declare __madvise.
636         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
637         * sysdeps/unix/syscalls.list
638         (madvise): Make __madvise the strong name, and madvise a weak alias.
639         * sysdeps/unix/sysv/linux/syscalls.list
640         (madvise, mmap): Remove redundant entries.
641         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
642         * malloc/malloc.c (mtrim): Likewise.
643         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
644
645 2012-10-03  Roland McGrath  <roland@hack.frob.com>
646
647         * sysdeps/mach/hurd/dl-cache.c: File removed.
648         * config.h.in (USE_LDCONFIG): New #undef.
649         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
650         * configure: Regenerated.
651         * elf/Makefile (dl-routines): Add dl-cache only under
652         [$(use-ldconfig) = yes].
653         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
654         cache on [USE_LDCONFIG].
655         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
656         [USE_LDCONFIG].
657         * elf/rtld.c (dl_main): Likewise.
658
659 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
660
661         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
662         _SC_LEVEL4_CACHE_LINESIZE.
663
664 2012-10-03  Roland McGrath  <roland@hack.frob.com>
665
666         * sysdeps/unix/bsd/confstr.h: File removed.
667
668 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
669
670         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
671         sys/sdt-config.h.
672
673 2012-10-02  Roland McGrath  <roland@hack.frob.com>
674
675         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
676         Make 'mapoff' field ElfW(Off) rather than off_t.
677
678 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
679
680         * nscd/Makefile: Remove nscd-cflags and all its users.
681         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
682         (CFLAGS-nonlib): Add compiler flags for nscd modules.
683
684         [BZ #10631]
685         * malloc.c (malloc_printerr): Clarify error message.
686
687 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
688
689         [BZ #14648]
690         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
691         Set bit_FMA_Usable if FMA is supported.
692         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
693         macro.
694         (bit_FMA4_Usable): Updated.
695         (index_FMA_Usable): New macro.
696         (CPUID_FMA): Likewise
697         (HAS_FMA): Defined with bit_FMA_Usable.
698
699 2012-10-01  Roland McGrath  <roland@hack.frob.com>
700
701         * bits/types.h (__swblk_t): Type removed.
702         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
703         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
704         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
705         (__SWBLK_T_TYPE): Likewise.
706         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
707         (__SWBLK_T_TYPE): Likewise.
708         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
709         (__SWBLK_T_TYPE): Likewise.
710         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
711         (__SWBLK_T_TYPE): Likewise.
712
713 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
714             Honza Horak <hhorak@redhat.com>
715
716         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
717         (xdr_mapname): Use YPMAXMAP as maxsize.
718         (xdr_peername): Use YPMAXPEER as maxsize.
719         (xdr_keydat): Use YPAXRECORD as maxsize.
720         (xdr_valdat): Use YPMAXRECORD as maxsize.
721
722 2012-10-01  Roland McGrath  <roland@hack.frob.com>
723
724         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
725
726         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
727         * csu/init-first.c: ... here.
728         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
729         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
730         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
731         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
732         * sysdeps/i386/init-first.c: File removed.
733         * sysdeps/sh/init-first.c: File removed.
734
735 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
736
737         [BZ #14645]
738         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
739         if x * y might underflow to zero and z is zero.
740         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
741         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
742         * math/libm-test.inc (min_subnorm_value): New variable.
743         (fma_test): Add more tests.
744         (fma_test_towardzero): Likewise.
745         (fma_test_downward): Likewise
746         (fma_test_upward): Likewise.
747         (initialize): Set min_subnorm_value.
748
749 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
750
751         [BZ #14638]
752         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
753         0 + 0.
754         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
755         mode for addition resulting in exact zero.
756         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
757         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
758         exact 0 + 0.
759         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
760         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
761         * math/libm-test.inc (fma_test): Add more tests.
762         (fma_test_towardzero): New function.
763         (fma_test_downward): Likewise.
764         (fma_test_upward): Likewise.
765         (main): Call the new functions.
766
767 2012-09-28  David S. Miller  <davem@davemloft.net>
768
769         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
770
771 2012-09-28  Roland McGrath  <roland@hack.frob.com>
772
773         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
774         instead of SIGALRM.
775
776         * sysdeps/gnu/_G_config.h: Moved to ...
777         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
778         * sysdeps/mach/hurd/_G_config.h: Moved to ...
779         * sysdeps/generic/_G_config.h: ... here.
780
781         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
782
783         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
784
785         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
786         Conditionalize target on [libnss_test1.so-version].
787
788         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
789
790         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
791         (elfobjdir): Move out of conditionals.
792
793         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
794         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
795         (__nss_lookup_function): Conditionalize label remove_from_tree on
796         [!DO_STATIC_NSS || SHARED], matching its only use.
797
798 2012-09-28  David S. Miller  <davem@davemloft.net>
799
800         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
801         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
802         file.
803         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
804         sysdep_routines.
805         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
806         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
807         when HWCAP_SPARC_CRYPTO is present.
808
809 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
810
811         * io/tst-mknodat.c: Create a FIFO instead of a socket.
812
813 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
814
815         [BZ #6530]
816         * stdio-common/vfprintf.c (process_string_arg): Revert
817         2000-07-22 change.
818
819 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
820
821         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
822         for testcase.
823         * stdio-common/tst-sprintf.c: Include <locale.h>
824         (main): Test sprintf's handling of incomplete multibyte
825         characters.
826
827 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
828
829         * elf/dl-runtime.c (VERSYMIDX): Removed.
830         * elf/dl-version.c (VERSYMIDX): Likewise.
831         * elf/do-rel.h (VERSYMIDX): Likewise.
832         (VALIDX): Likewise.
833         * elf/dynamic-link.h (VERSYMIDX): Likewise.
834         * elf/rtld.c (VALIDX): Likewise.
835         (ADDRIDX): Likewise.
836         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
837         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
838         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
839         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
840         (VALIDX): Likewise.
841         (ADDRIDX): Likewise.
842
843 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
844
845         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
846
847 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
848
849         [BZ #11438]
850         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
851         to global scope.
852         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
853         addresses are in the same scope as 192.0.2/24.
854         * posix/gai.conf: Document new scope table defaults.
855
856 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
857
858         [BZ #5298]
859         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
860         for ftell.  Compute offsets from write pointers instead.
861         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
862
863 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
864
865         [BZ #14543]
866         * libio/Makefile (tests): New test case tst-fseek.
867         * libio/tst-fseek.c: New test case to verify that fseek/ftell
868         combination works in wide mode.
869         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
870         state when the external buffer state changes.
871
872 2012-09-27  David S. Miller  <davem@davemloft.net>
873
874         [BZ #14376]
875         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
876         pass reloc->r_addend in as the 'high' argument to
877         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
878
879         * sysdeps/sparc/fpu/libm-test-ulps: Update.
880
881 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
882
883         * rt/tst-aio2.c: Include <pthread.h>.
884         * rt/tst-aio3.c: Likewise.
885
886 2012-09-27  Steve Ellcey  <sellcey@mips.com>
887
888         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
889
890 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
891
892         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
893         contents on [SHARED].
894
895 2012-09-26  Marek Polacek  <polacek@redhat.com>
896
897         [BZ #14530]
898         [BZ #13741]
899         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
900         for C++ and GCC <4.3 as well as for non GCC compilers.
901
902 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
903
904         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
905
906 2012-09-25  Roland McGrath  <roland@hack.frob.com>
907
908         * Makefile.in (all, install): Declare with .PHONY.
909         Reported by Michael Hope <michael.hope@linaro.org>.
910
911 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
912
913         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
914         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
915         system header.
916         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
917         Likewise.
918         (sydep_routines): Add the new and the internal functions.
919         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
920         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
922         (GLIBC_2.17): Add the new function.
923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
924         (GLIBC_2.17): Likewise.
925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
926         (GLIBC_2.17): Likewise.
927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
928         (GLIBC_2.17): Likewise.
929         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
930
931 2012-09-25  Alan Modra  <amodra@gmail.com>
932
933         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
934         Add release barrier before setting once_control to say
935         initialisation is done.  Add hints on lwarx.  Use macro in
936         place of isync.
937         (clear_once_control): Add release barrier.
938
939 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
940
941         [BZ #13629]
942         * math/s_clog.c (__clog): Handle more values close to |z| = 1
943         specially.
944         * math/s_clog10.c (__clog10): Likewise.
945         * math/s_clog10f.c (__clog10f): Likewise.
946         * math/s_clog10l.c (__clog10l): Likewise.
947         * math/s_clogf.c (__clogf): Likewise.
948         * math/s_clogl.c (__clogl): Likewise.
949         * math/Makefile (libm-calls): Add x2y2m1.
950         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
951         (__x2y2m1): Likewise.
952         (__x2y2m1l): Likewise.
953         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
954         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
955         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
956         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
957         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
958         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
959         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
960         * sysdeps/i386/fpu/libm-test-ulps: Update.
961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
962
963         [BZ #14621]
964         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
965         int as type of variable DEPTH.
966         (glob): Use size_t instead of int as type of variables NEWCOUNT
967         and OLD_PATHC.
968
969 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
970
971         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
972         Add s_sincosf-sse2.
973         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
974         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
975         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
976         macros for using routine as __sincosf_ia32.
977         Use macro for function declaration and weak_alias.
978         * sysdeps/i386/fpu/libm-test-ulps: Update.
979
980         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
981         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
982
983         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
984         subnormal argument.
985         * math/s_cexpf.c (__cexpf): Likewise.
986         * math/s_csinf.c (__csinf): Likewise.
987         * math/s_csinhf.c (__csinhf): Likewise.
988         * math/s_ctanf.c (__ctanf): Likewise.
989         * math/s_ctanhf.c (__ctanhf): Likewise.
990         * math/s_ccosh.c (__ccoshf): Likewise.
991         * math/s_cexp.c (__cexpl): Likewise.
992         * math/s_csin.c (__csin): Likewise.
993         * math/s_csinh.c (__csinh): Likewise.
994         * math/s_ctan.c (__ctan): Likewise.
995         * math/s_ctanh.c (ctanh): Likewise.
996         * math/s_ccoshl.c (__ccoshl): Likewise.
997         * math/s_cexpl.c (__cexpl): Likewise.
998         * math/s_csinl.c (__csinl): Likewise.
999         * math/s_csinhl.c (__csinhl): Likewise.
1000         * math/s_ctanl.c (__ctanl): Likewise.
1001         * math/s_ctanhl.c (__ctanhl): Likewise.
1002
1003 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1004
1005         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1006         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1007         (_IO_off_t): Define to __off_t, not _G_off_t.
1008         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1009         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1010         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1011         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1012         type of __dummy and __dummy2 fields.
1013         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1014         (_G_ssize_t): Likewise.
1015         (_G_off_t): Likewise.
1016         (_G_pid_t): Likewise.
1017         (_G_uid_t): Likewise.
1018         (_G_wchar_t): Likewise.
1019         (_G_wint_t): Likewise.
1020         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1021         (_G_ssize_t): Likewise.
1022         (_G_off_t): Likewise.
1023         (_G_pid_t): Likewise.
1024         (_G_uid_t): Likewise.
1025         (_G_wchar_t): Likewise.
1026         (_G_wint_t): Likewise.
1027         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1028         (_G_ssize_t): Likewise.
1029         (_G_off_t): Likewise.
1030         (_G_pid_t): Likewise.
1031         (_G_uid_t): Likewise.
1032         (_G_wchar_t): Likewise.
1033         (_G_wint_t): Likewise.
1034
1035 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1036
1037         * malloc/arena.c: Include malloc-sysdep.h.
1038         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1039         is sufficient to shrink the heap or an unmap is needed.
1040         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1041         new function check_may_shrink_heap.
1042         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1043         new function check_may_shrink_heap.
1044
1045 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1046
1047         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1048         comments.
1049
1050 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1051
1052         * catgets/test-gencat.sh: Add "set -e".
1053         * elf/tst-pathopt.sh: Likewise.
1054         * grp/tst_fgetgrent.sh: Likewise.
1055         * iconvdata/run-iconv-test.sh: Likewise.
1056         * intl/tst-gettext.sh: Likewise.
1057         * intl/tst-gettext2.sh: Likewise.
1058         * intl/tst-gettext4.sh: Likewise.
1059         * intl/tst-gettext6.sh: Likewise.
1060         * intl/tst-translit.sh: Likewise.
1061         * io/ftwtest-sh: Likewise.
1062         * libio/test-freopen.sh: Likewise.
1063         * malloc/tst-mtrace.sh: Likewise.
1064         * posix/globtest.sh: Likewise.
1065         * posix/tst-getconf.sh: Likewise.
1066         * posix/wordexp-tst.sh: Likewise.
1067         * stdio-common/tst-printf.sh: Likewise.
1068         * stdio-common/tst-unbputc.sh: Likewise.
1069         * stdlib/tst-fmtmsg.sh: Likewise.
1070         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1071         * catgets/Makefile: Do not specify -e option when running
1072         testsuite shell scripts.
1073         * elf/Makefile: Likewise.
1074         * grp/Makefile: Likewise.
1075         * iconvdata/Makefile: Likewise.
1076         * intl/Makefile: Likewise.
1077         * io/Makefile: Likewise.
1078         * libio/Makefile: Likewise.
1079         * malloc/Makefile: Likewise.
1080         * posix/Makefile: Likewise.
1081         * stdio-common/Makefile: Likewise.
1082         * stdlib/Makefile: Likewise.
1083         * sysdeps/x86_64/Makefile: Likewise.
1084
1085         * io/ftwtest-sh: Add copyright header.
1086         * posix/globtest.sh: Likewise.
1087         * posix/tst-getconf.sh: Likewise.
1088         * posix/wordexp-tst.sh: Likewise.
1089         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1090
1091 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1092
1093         [BZ #13679]
1094         * Makeconfig (+link): Defined as $(+link-static) if
1095         $(build-shared) isn't yes.
1096         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1097         isn't yes.
1098         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1099
1100         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1101
1102         [BZ #14562]
1103         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1104         new chunk size with MALLOC_ALIGN_MASK.
1105
1106 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1107
1108         [BZ #5044]
1109         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1110         <rounding-mode.h>.
1111         (__printf_fphex): Determine rounding using get_rounding_mode and
1112         round_away.
1113         * stdio-common/tst-printf-round.c (struct hex_test): New
1114         structure.
1115         (hex_tests): New variable.
1116         (test_hex_in_one_mode): New function.
1117         (do_test): Also run tests for hex float output.
1118
1119 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1120
1121         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1122         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1123         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1124         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1125         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1126         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1127         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1128         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1129
1130 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1131
1132         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1133         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1134         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1135         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1136
1137 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1138
1139         [BZ #14579]
1140         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1141         mode only.
1142         * elf/tst-rtld-load-self.sh: New test.
1143         * elf/Makefile: Run it.
1144
1145 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1146
1147         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1148         (tst-writev-ENV): Remove.
1149         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1150
1151 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1152
1153         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1154
1155 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1156
1157         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1158         unconditional.
1159         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1160         Likewise.
1161         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1162         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1163         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1164         Likewise.
1165
1166 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1167
1168         [BZ #14587]
1169         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1170         * config.make.in (have-cpp-asm-debuginfo): Removed.
1171         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1172         * configure: Regenerated.
1173
1174 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1175
1176         [BZ #5044]
1177         * stdio-common/printf_fp.c: Include <stdbool.h> and
1178         <rounding-mode.h>.
1179         (___printf_fp): Determine rounding using get_rounding_mode and
1180         round_away.
1181         * stdio-common/tst-printf-round.c: New file.
1182         * stdio-common/Makefile (tests): Add tst-printf-round.
1183         (link-libm): New variable.
1184         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1185
1186 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1187
1188         [BZ #14576]
1189         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1190         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1191         Likewise.
1192         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1193         Likewise.
1194
1195 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1196
1197         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1198         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1199         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1200         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1201
1202 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1203
1204         [BZ #14518]
1205         * include/rounding-mode.h: New file.
1206         * sysdeps/generic/get-rounding-mode.h: Likewise.
1207         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1208         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1209         (MAX_VALUE): New macro.
1210         (MIN_VALUE): Likewise.
1211         (overflow_value): New function.
1212         (underflow_value): Likewise.
1213         (round_and_return): Use overflow_value and underflow_value to
1214         determine return values in overflow and underflow cases.  Use
1215         round_away to determine rounding depending on rounding mode.
1216         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1217         determine return values in overflow and underflow cases.
1218         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1219         (struct test_results): New structure.
1220         (struct test): Use struct test_results to store expected results
1221         for all rounding modes.
1222         (TEST): Include expected results for all rounding modes.
1223         (test_in_one_mode): New function.
1224         (do_test): Use test_in_one_mode to compute and check results.
1225         Check results for all rounding modes.
1226         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1227         $(link-libm).
1228
1229 2012-12-09  Allan McRae  <allan@archlinux.org>
1230
1231         * sysdeps/i386/fpu/libm-test-ulps: Update
1232
1233 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1234
1235         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1236         (_G_int32_t): Likewise.
1237         (_G_uint16_t): Likewise.
1238         (_G_uint32_t): Likewise.
1239         (_G_HAVE_BOOL): Likewise.
1240         (_G_HAVE_ATEXIT): Likewise.
1241         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1242         (_G_HAVE_IO_FILE_OPEN): Likewise.
1243         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1244         (_G_int32_t): Likewise.
1245         (_G_uint16_t): Likewise.
1246         (_G_uint32_t): Likewise.
1247         (_G_HAVE_BOOL): Likewise.
1248         (_G_HAVE_ATEXIT): Likewise.
1249         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1250         (_G_HAVE_IO_FILE_OPEN): Likewise.
1251         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1252         (_G_int32_t): Likewise.
1253         (_G_uint16_t): Likewise.
1254         (_G_uint32_t): Likewise.
1255         (_G_HAVE_BOOL): Likewise.
1256         (_G_HAVE_ATEXIT): Likewise.
1257         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1258         (_G_HAVE_IO_FILE_OPEN): Likewise.
1259
1260 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1261
1262         * csu/libc-tls.c: Update copyright years.
1263
1264 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1265
1266         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1267         [!_G_USING_THUNKS]: Remove conditional code.
1268         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1269         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1270
1271         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1272         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1273         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1274         (_G_VTABLE_LABEL_PREFIX): Likewise.
1275         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1276         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1277         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1278         (_G_VTABLE_LABEL_PREFIX): Likewise.
1279         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1280         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1281         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1282         (_G_VTABLE_LABEL_PREFIX): Likewise.
1283         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1284
1285 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1286
1287         * libio/Makefile: Include ../Makeconfig before tests.
1288         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1289         only if $(build-shared) is yes.
1290
1291         * iconv/gconv_db.c: Update copyright years.
1292
1293 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1294
1295         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1296         unwind info if defined PIC. Fix special cases description.
1297         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1298
1299         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1300         DP_HI_MASK entry.
1301         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1302
1303 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1304
1305         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1306
1307         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1308         is NULL.
1309
1310         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1311         (LDLIBS-tst-chk4): This.
1312         (LDFLAGS-tst-chk5): Renamed to ...
1313         (LDLIBS-tst-chk5): This.
1314         (LDFLAGS-tst-chk6): Renamed to ...
1315         (LDLIBS-tst-chk6): This.
1316         (LDFLAGS-tst-lfschk4): Renamed to ...
1317         (LDLIBS-tst-lfschk4): This.
1318         (LDFLAGS-tst-lfschk5): Renamed to ...
1319         (LDLIBS-tst-lfschk5): This.
1320         (LDFLAGS-tst-lfschk6): Renamed to ...
1321         (LDLIBS-tst-lfschk6): This.
1322
1323         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1324         on $(common-objpfx)soversions.mk.
1325
1326 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1327
1328         [BZ #10014]
1329         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1330         example host name.
1331
1332 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1333
1334         * malloc/arena.c (arena_get_retry): New function that gets
1335         another arena for the caller to try its request on.
1336         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1337         current arena cannot fulfill the request.
1338         (__libc_memalign): Likewise.
1339         (__libc_memalign): Likewise.
1340         (__libc_pvalloc): Likewise.
1341         (__libc_calloc): Likewise.
1342
1343 2012-09-05  John Tobey  <john.tobey@gmail.com>
1344
1345         [BZ #13542]
1346         * manual/arith.texi (Operations on Complex): Fix description
1347         of carg branch cut.
1348
1349 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1350
1351         [BZ #10014]
1352         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1353         host name.
1354
1355         [BZ #10038]
1356         * manual/memory.texi (Memory): Make order of menu items match
1357         order of sections.
1358
1359 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1360
1361         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1362         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1363         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1364
1365 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1366
1367         * csu/libc-tls.c (static_dtv): Renamed to ...
1368         (_dl_static_dtv): This.  Make it global.
1369         (_dl_initial_dtv): Removed.
1370         (__libc_setup_tls): Updated.
1371         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1372         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1373         DL_INITIAL_DTV.
1374
1375 2012-09-06  Petr Machata  <pmachata@redhat.com>
1376
1377         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1378         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1379         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1380         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1381
1382 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1383
1384         [BZ #14545]
1385         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1386         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1387         freeing dtv[-1].
1388
1389 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1390
1391         [BZ #14544]
1392         * Makeconfig (link-static-before-libc): Replace $(+prector)
1393         with $(+prectorT).
1394         (link-static-after-libc): Replace $(+postctor) with
1395         $(+postctorT).
1396         (link-bounded): Replace $(+prector)/$(+postctor) with
1397         $(+prectorT)/$(+postctorT).
1398         (+prectorT): New macro.
1399         (+postctorT): Likewise.
1400
1401 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1402
1403         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1404         (round_str): Handle values above the maximum for IBM long double
1405         as inexact.
1406         * stdlib/tst-strtod-round.c (tests): Regenerated.
1407
1408 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1409
1410         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1411         assembler flag.
1412         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1413         zarch_nohighgprs around the zarch optimized routines.
1414         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1415         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1416         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1417         for zarch.
1418
1419 2012-09-05  David S. Miller  <davem@davemloft.net>
1420
1421         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1422
1423         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1424         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1425         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1426         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1427         entries.
1428
1429 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1430
1431         * malloc/arena.c: Fold copyright years.
1432         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1433
1434 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1435
1436         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1437
1438 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1439
1440         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1441
1442 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1443
1444         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1445         change internal state upon failure.
1446
1447 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1448
1449         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1450         * malloc/memusage.c (mmap): Likewise.
1451         (mmap64, mremap): Likewise.  Adjust name in comment.
1452
1453 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1454
1455         * libio/fileops.c: Fix typos in comments.
1456         * libio/oldfileops.c: Likewise.
1457         * libio/wfileops.c: Likewise.
1458
1459 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1460
1461         [BZ #1349]
1462         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1463         (tst-malloc-usable-ENV): Set environment for test case.
1464         * malloc/hooks.c (malloc_check_get_size): New function to get
1465         requested size.
1466         * malloc/malloc.c (musable): Use malloc_check_get_size.
1467         * malloc/tst-malloc-usable.c: New test case.
1468
1469 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1470
1471         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1472
1473 2012-09-05  Allan McRae  <allan@archlinux.org>
1474
1475         [BZ #13966]
1476         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1477         determine header location.
1478         * configure: Regenerated.
1479
1480 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1481
1482         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1483         float format.
1484         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1485         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1486         format.
1487         (test): Regenerate.
1488
1489 2012-09-04  David S. Miller  <davem@davemloft.net>
1490
1491         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1492         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1493         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1494
1495 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1496
1497         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1498         failures.
1499
1500         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1501
1502 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1503
1504         [BZ #9914]
1505         * libio/iogetdelim.c: Include <limits.h>.
1506         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1507         + len + 1 would overflow.
1508
1509 2012-09-03  Andreas Jaeger  <aj@suse.de>
1510
1511         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1512         * sysdeps/i386/fpu/libm-test-ulps: Update.
1513
1514 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1515
1516         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1517         Add s_sinf-sse2, s_conf-sse2.
1518
1519         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1520         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1521         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1522         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1523
1524         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1525         for using routine as __sinf_ia32.
1526         Use macro for function declaration and weak_alias.
1527         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1528         for using routine as __cosf_ia32.
1529         Use macro for function declaration and weak_alias.
1530
1531         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1532         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1533
1534         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1535         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1536         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1537
1538         * math/libm-test.inc (cos_test): Add more test cases.
1539         (sin_test): Likewise.
1540         (sincos_test): Likewise.
1541
1542 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1543
1544         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1545         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1546         hidden.
1547         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1548
1549 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1550
1551         [BZ #14538]
1552         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1553         first element of the GOT.
1554         (elf_machine_load_address): Return the difference between
1555         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1556
1557 2012-09-01  Allan McRae  <allan@archlinux.org>
1558
1559         [BZ #13412]
1560         * configure.in (AWK): Require gawk version 3.0 or later.
1561         * configure: Regenerated.
1562
1563 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1564
1565         * sysdeps/unix/sysv/linux/kernel-features.h
1566         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1567         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1568         [__NR_clock_getres]: Make code unconditional.
1569         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1570         (clock_getcpuclockid): Remove code left unreachable by removal of
1571         conditionals.
1572         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1573         code unconditional.
1574         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1575         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1576         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1577         Make code unconditional.
1578         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1579         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1580         * sysdeps/unix/sysv/linux/clock_settime.c
1581         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1582         conditional code.
1583         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1584         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1585
1586 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1587
1588         [BZ #14476]
1589         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1590         scripts/test-installation.pl.
1591
1592         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1593         and $ld_so_version if it is set.
1594
1595 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1596
1597         [BZ #14516]
1598         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1599         failure if reading from procfs failed.
1600         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1601
1602 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1603
1604         * sysdeps/unix/sysv/linux/kernel-features.h
1605         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1606         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1607         Remove conditional code.
1608         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1609         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1610         Remove conditional code.
1611         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1612         * sysdeps/unix/sysv/linux/i386/fxstat.c
1613         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1614         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1615         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1616         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1617         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1618         * sysdeps/unix/sysv/linux/i386/lxstat.c
1619         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1620         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1621         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1622         Remove conditional code.
1623         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1624         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1625         Remove conditional code.
1626         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1627         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1628         <kernel-features.h>.
1629         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1630         Remove.
1631         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1632         Remove conditional code.
1633         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1634         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1635         Remove conditional.
1636
1637 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1638
1639         [BZ #5400]
1640         * NEWS: Add fixed bug number.
1641
1642 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1643
1644         [BZ #14519]
1645         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1646         underflowing exponent in case of negative sign.
1647         * stdlib/tst-strtod-round-data: Add more tests.
1648         * stdlib/tst-strtod-round.c (tests): Regenerated.
1649
1650         [BZ #3479]
1651         * stdlib/strtod_l.c (NDIG): Remove.
1652         (HEXNDIG): Likewise.
1653         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1654         smallest representable value.
1655         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1656         lie within an exact representation of 1/2 ulp of the result.
1657         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1658         unconditionally.
1659         (TENS_P9_IDX): Define unconditionally.
1660         (TENS_P9_SIZE): Likewise.
1661         (TENS_P10_IDX): Likewise.
1662         (TENS_P10_SIZE): Likewise.
1663         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1664         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1665         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1666         entries for 10^2^13 and 10^2^14.
1667         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1668         (TENS_P13_IDX): Define.
1669         (TENS_P13_SIZE): Likewise.
1670         (TENS_P14_IDX): Likewise.
1671         (TENS_P14_SIZE): Likewise.
1672         (_fpioconst_pow10): Change array size to
1673         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1674         unconditional.
1675         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1676         1024]: Add entries for 10^2^13 and 10^2^14.
1677         [LAST_POW10 > _LAST_POW10]: Remove #error.
1678         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1679         (_fpioconst_pow10): Change array size to
1680         FPIOCONST_POW10_ARRAY_SIZE.
1681         * stdlib/gen-fpioconst.c: New file.
1682         * stdlib/gen-tst-strtod-round.c: Likewise.
1683         * stdlib/tst-strtod-round-data: Likewise.
1684         * stdlib/tst-strtod-round.c: Likewise.
1685         * stdlib/Makefile (tests): Add tst-strtod-round.
1686
1687         [BZ #14459]
1688         * stdlib/strtod_l.c: Include <stdint.h>.
1689         (NDEBUG): Do not define.
1690         (round_and_return): Change EXPONENT parameter to type intmax_t.
1691         Rearrange calculations to avoid internal overflow possibilities.
1692         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1693         Rearrange calculations to avoid internal overflow possibilities.
1694         Assert that number fits inside MPNSIZE limbs.
1695         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1696         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1697         calculations and add assertions to avoid internal overflow
1698         possibilities.  Add casts to avoid signed/unsigned operations.
1699         * stdlib/tst-strtod-overflow.c: New file.
1700         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1701
1702 2012-08-25  Marek Polacek  <polacek@redhat.com>
1703
1704         * time/time.h: Fix some typos in comments.
1705
1706 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1707
1708         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1709         * posix/tst-rfc3484-2.c: Likewise.
1710         * posix/tst-rfc3484-3.c: Likewise.
1711
1712 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1713
1714         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1715         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1716
1717 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1720         #include of fxstatat64.c.
1721
1722 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1723
1724         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1725         * shadow/getspent_r.c: Likewise.
1726         * shadow/getspnam.c: Likewise.
1727         * shadow/getspnam_r.c: Likewise.
1728         * gshadow/getsgent.c: Likewise.
1729         * gshadow/getsgent_r.c: Likewise.
1730         * gshadow/getsgnam.c: Likewise.
1731         * gshadow/getsgnam_r.c: Likewise.
1732         * inet/getnetbyad.c: Likewise.
1733         * inet/getnetbyad_r.c: Likewise.
1734         * inet/getnetbynm.c: Likewise.
1735         * inet/getnetbynm_r.c: Likewise.
1736         * inet/getnetent.c: Likewise.
1737         * inet/getnetent_r.c: Likewise.
1738         * inet/getproto.c: Likewise.
1739         * inet/getproto_r.c: Likewise.
1740         * inet/getprtent.c: Likewise.
1741         * inet/getprtent_r.c: Likewise.
1742         * inet/getprtname.c: Likewise.
1743         * inet/getprtname_r.c: Likewise.
1744         * inet/getrpcbyname.c: Likewise.
1745         * inet/getrpcbyname_r.c: Likewise.
1746         * inet/getrpcbynumber.c: Likewise.
1747         * inet/getrpcbynumber_r.c: Likewise.
1748         * inet/getrpcent.c: Likewise.
1749         * inet/getrpcent_r.c: Likewise.
1750         * inet/getaliasent.c: Likewise.
1751         * inet/getaliasent_r.c: Likewise.
1752         * inet/getaliasname.c: Likewise.
1753         * inet/getaliasname_r.c: Likewise.
1754         * nscd/getgrgid_r.c: Likewise.
1755         * nscd/getgrnam_r.c: Likewise.
1756         * nscd/gethstbyad_r.c: Likewise.
1757         * nscd/gethstbynm3_r.c: Likewise.
1758         * nscd/getpwnam_r.c: Likewise.
1759         * nscd/getpwuid_r.c: Likewise.
1760         * nscd/getsrvbynm_r.c: Likewise.
1761         * nscd/getsrvbypt_r.c: Likewise.
1762         * nscd/gai.c: Likewise.
1763
1764         * configure.in (build_nscd): New substituted variable, set
1765         by --disable-build-nscd and defaults to $use_nscd.
1766         * configure: Regenerated.
1767         * config.make.in (build-nscd): New substituted variable.
1768         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1769         Change conditional to require [$(build-nscd) = yes] as well.
1770         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1771
1772         [BZ# 13696]
1773         * configure.in (use_nscd): New substituted variable, set by
1774         --disable-nscd.  If enabled, define USE_NSCD.
1775         * configure: Regenerated.
1776         * config.h.in: Add USE_NSCD.
1777         * config.make.in (use-nscd): New substituted variable.
1778         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1779         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1780         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1781         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1782         (CFLAGS-getgrnam_r.c): Likewise.
1783         (CFLAGS-initgroups.c): Likewise.
1784         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1785         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1786         Variables removed.
1787         * inet/getnetgrent_r.c
1788         (nscd_setnetgrent): New function, broken out of ...
1789         (setnetgrent): ... here.  Call it.
1790         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1791         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1792         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1793         * nscd/Makefile (routines, aux): Move definitions after include of
1794         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1795         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1796         Conditionalize on [USE_NSCD].
1797         (is_nscd, nscd_init_cb): Likewise.
1798         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1799         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1800         * nss/nss_db/db-init.c: Likewise.
1801         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1802         [USE_NSCD].
1803         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1804         (make_request): Use it.
1805         (cache_valid_p): New function.
1806         (__check_pf): Use it.
1807         * NEWS: Add item for --disable-nscd.
1808
1809 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1810
1811         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1812         to support sed >= 4.2.1-20-ga9bf076.
1813         * configure: Regenerated.
1814
1815 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1816
1817         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1818         Conditionalize whole body on [IREL].
1819
1820 2012-08-22  Jeff Law <law@redhat.com>
1821
1822         [BZ #14505]
1823         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1824         if the family is PF_UNSPEC.
1825
1826 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1827
1828         * Makerules (lib-version): Rename from V.
1829         (install-lib-nosubdir): Change V to lib-version.
1830
1831 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1832
1833         [BZ #14252]
1834         * powerpc32/power6/wcschr.c: New file.
1835         * powerpc32/power6/wcscpy.c: New file.
1836         * powerpc32/power6/wcsrchr.c: New file.
1837         * powerpc64/power6/wcschr.c: New file.
1838         * powerpc64/power6/wcscpy.c: New file.
1839         * powerpc64/power6/wcsrchr.c: New file.
1840
1841 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1842
1843         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1844         (two_way_short_needle): Use it.
1845         * string/strstr.c (AVAILABLE1_USES_J): Define.
1846         * string/strcasestr.c: Likewise.
1847
1848         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1849         array references.
1850         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1851
1852         [BZ #11607]
1853         * NEWS: Add an entry.
1854         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1855         define their defaults.
1856         (two_way_short_needle): Detect end-of-string on-the-fly.
1857         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1858         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1859         * string/bug-strcasestr1.c: New test.
1860         * string/Makefile: Run it.
1861
1862 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1863
1864         [BZ #11607]
1865         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1866         the first character.
1867
1868 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1869
1870         * csu/elf-init.c (__libc_csu_irel): Function removed.
1871         * csu/libc-start.c (apply_irel): New function.
1872         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1873
1874 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1875
1876         * sysdeps/unix/sysv/linux/kernel-features.h
1877         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1878         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1879         <kernel-features.h>.
1880         [__NR_fadvise64_64]: Make code unconditional.
1881         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1882         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1883         !__NR_fadvise64_64)]: Likewise.
1884         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1885         !__NR_fadvise64_64))]: Likewise.
1886         [__NR_fadvise64]: Make code unconditional.
1887         [!__NR_fadvise64]: Remove conditional code.
1888         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1889         <kernel-features.h>.
1890         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1891         unconditional.
1892         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1893         conditional code.
1894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1895         not include <kernel-features.h>.
1896         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1897         unconditional.
1898         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1899         conditional code.
1900         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1901         include <kernel-features.h>.
1902         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1903         unconditional.
1904         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1905         conditional code.
1906
1907 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1908
1909         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1910         slight instruction rearrangements per scrollpipe analysis.
1911         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1912
1913 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1914
1915         * manual/syslog.texi (syslog; vsyslog, closelog):
1916         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1917         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1918
1919         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1920         DSOCAPS to match condition on defining it.
1921
1922 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1923
1924         * sysdeps/unix/sysv/linux/kernel-features.h
1925         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1927         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1928         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1930         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1931         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1933         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1934         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1935
1936         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1937         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1938
1939         * sysdeps/unix/sysv/linux/kernel-features.h
1940         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1941         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1942         unconditional.
1943         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1944         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1945         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1946         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1947         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1948         Make code unconditional.
1949         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1950         (__mmap64) [!__NR_mmap2]: Likewise.
1951         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1952         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1953         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1954         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1955         [__NR_mmap2]: Make code unconditional.
1956         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1957         (__mmap64) [!__NR_mmap2]: Likewise.
1958
1959 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1960
1961         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1962
1963 2012-08-18  Andreas Jaeger  <aj@suse.de>
1964
1965         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1966
1967 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1968
1969         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1970         * include/unistd.h (__have_sock_cloexec): Likewise.
1971         (__have_pipe2): Likewise.
1972         (__have_dup3): Likewise.
1973
1974 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1975
1976         [BZ #9685]
1977         * include/unistd.h (__have_pipe2): Change define into an extern int.
1978         (__have_dup3): Likewise.
1979         * socket/have_sock_cloexec.c: Include fcntl.h.
1980         (__have_pipe2): New variable.
1981         (__have_dup3): Likewise.
1982
1983 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1984
1985         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1986
1987 2012-08-17  Marek Polacek  <polacek@redhat.com>
1988
1989         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
1990         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
1991
1992 2012-08-17  Roland McGrath  <roland@hack.frob.com>
1993
1994         * configure.in: Add AC_SUBST for sysheaders.
1995         * configure: Regenerated.
1996         * config.make.in (sysheaders): New substituted variable.
1997
1998         * sysdeps/unix/mkfifo.c: Moved ...
1999         * sysdeps/posix/mkfifo.c: ... here.
2000         * sysdeps/unix/mkfifoat.c: Moved ...
2001         * sysdeps/posix/mkfifoat.c: ... here.
2002
2003         * sysdeps/unix/utime.c: Moved ...
2004         * sysdeps/posix/utime.c: ... here.
2005
2006         * sysdeps/unix/time.c: Moved ...
2007         * sysdeps/posix/time.c: ... here.
2008         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2009         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2010
2011         * sysdeps/unix/nice.c: Moved ...
2012         * sysdeps/posix/nice.c: ... here.
2013
2014         * sysdeps/unix/alarm.c: Moved ...
2015         * sysdeps/posix/alarm.c: ... here.
2016
2017         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2018
2019 2012-08-17  Jeff Law <law@redhat.com>
2020
2021         * intl/Makefile (codeset_mo): New variable.
2022         ($(codeset_mo)): New target.
2023         (tst-codeset.out): Depend on that.  Remove explicit rule.
2024         (tst-gettext3.out, tst-gettext5.out): Likewise.
2025         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2026         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2027         * intl/tst-codeset.sh: Remove.
2028         * intl/tst-gettext3.sh: Likewise.
2029         * intl/tst-gettext5.sh: Likewise.
2030
2031 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2032
2033         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2034         * sysdeps/unix/syscalls.list: ... here.
2035
2036         * sysdeps/posix/getaddrinfo.c
2037         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2038         (gaiconf_init, gaiconf_reload): Use them.
2039         [!_STATBUF_ST_NSEC]
2040         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2041         Define using time_t rather than struct timespec.
2042
2043         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2044         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2045         Macros removed.
2046         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2047         [!NO_THREADS].
2048         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2049         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2050         Likewise.
2051
2052         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2053         __libc_cleanup_push argument.
2054
2055         * bits/param.h: New file.
2056         * misc/sys/param.h: New file.
2057         * include/sys/param.h: New file.
2058         * misc/Makefile (headers): Add bits/param.h.
2059         * sysdeps/generic/sys/param.h: File removed.
2060         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2061         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2062         * sysdeps/mach/hurd/bits/param.h: New file.
2063         * sysdeps/mach/hurd/sys/param.h: New file.
2064
2065         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2066         last change.
2067
2068         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2069         [_IO_MTSAFE_IO].
2070         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2071         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2072         New macros.
2073
2074         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2075         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2076         rather than -D_IO_MTSAFE_IO conditionally.
2077         * stdio-common/Makefile (CPPFLAGS): Likewise.
2078         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2079         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2080         Use $(libio-mtsafe).
2081         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2082         of -D_IO_MTSAFE_IO.
2083         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2084         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2085         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2086         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2087         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2088         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2089         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2090         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2091         (CFLAGS-fread_u_chk.c): Likewise.
2092         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2093         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2094         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2095         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2096         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2097         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2098         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2099         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2100         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2101
2102         * libio/Makefile: Test [$(libc-reentrant) = yes]
2103         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2104
2105         * Makeconfig
2106         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2107         * sysdeps/pthread/configure: File removed.
2108         * sysdeps/pthread/Makeconfig: New file.
2109         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2110         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2111
2112 2012-08-16  Gary Benson  <gbenson@redhat.com>
2113
2114         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2115         unmapping the first object in a namespace.
2116
2117 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2118
2119         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2120         (__internal_setnetgrent): ... this.  Add internal_function to
2121         definition.  Add libc_hidden_def.
2122         (setnetgrent): Update caller.
2123         (internal_endnetgrent): Renamed to ...
2124         (__internal_endnetgrent): ... this.  Add internal_function to
2125         definition.  Add libc_hidden_def.
2126         (endnetgrent): Update caller.
2127         (internal_getnetgrent_r): Renamed to ...
2128         (__internal_getnetgrent_r): ... this.  Add internal_function to
2129         definition.  Add libc_hidden_def.
2130         (__getnetgrent_r): Update caller.
2131         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2132
2133 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2134
2135         * stdlib/longlong.h: Update from GCC.
2136
2137 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2138
2139         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2140         on _QL, which is set by umul_ppmm but never used.
2141         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2142         variables, which are set by GMP macros but never used.
2143         * stdio-common/_itowa.c (_itowa): Likewise.
2144         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2145         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2146
2147 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2148
2149         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2150         struct La_sh_regs is not constant.
2151         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2152         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2153         and struct La_sparc64_regs are not constant.
2154
2155 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2156
2157         * sysdeps/unix/sysv/linux/kernel-features.h
2158         (__ASSUME_POSIX_TIMERS): Remove.
2159         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2160         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2161         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2162         Make code unconditional.
2163         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2164         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2165         Make code unconditional.
2166         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2167         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2168         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2169         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2170         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2171         Make code unconditional.
2172         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2173         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2174         (__libc_missing_posix_timers): Remove.
2175
2176 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2177
2178         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2179         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2180
2181         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2182
2183         * elf/dl-sym.c: Include <stdlib.h>.
2184
2185         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2186         constants, which avoids warnings in 32-bit builds.
2187
2188         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2189         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2190
2191         * misc/lseek.c: File moved to ...
2192         * io/lseek.c: ... here.
2193
2194         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2195
2196         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2197         shifting LEN more than 31 bits at once.
2198
2199 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2200
2201         [BZ #14195]
2202         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2203         segmentation fault for a case of two empty input strings.
2204         * string/test-strncasecmp.c (check1): Renamed to...
2205         (bz12205): ...this.
2206         (bz14195): Add new testcase for two empty input strings and N > 0.
2207         (test_main): Call new testcase, adapt for renamed function.
2208
2209 2012-08-15  Andreas Jaeger  <aj@suse.de>
2210
2211         [BZ #14090]
2212         * crypt/md5test2.c: New test, based on test supplied by Serge
2213         Belyshev <belyshev@depni.sinp.msu.ru>.
2214         * crypt/Makefile (xtests): Add md5test-giant..
2215         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2216
2217 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2218
2219         [BZ #14090]
2220         * crypt/md5.c (md5_process_block): Don't assume the buffer
2221         length is less than 2**32.
2222         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2223         length is less than 2**64.
2224
2225 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2226
2227         * string/str-two-way.h: Include <sys/param.h>.
2228         (MAX): Macro removed.
2229
2230         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2231         Move #define and #undef of memmove to just before and after
2232         including <string.h>.
2233
2234         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2235         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2236         and after including <string.h>.  Move declarations of
2237         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2238         to before #include "string/memmove.c".
2239
2240         * include/dirent.h: Declare __getdirentries.
2241
2242         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2243         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2244
2245 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2246
2247         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2248         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2249         * sysdeps/i386/configure: Regenerated.
2250         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2251         STABS_CURRENT_FILE, and STABS_FUN.
2252         (END): Remove call to STABS_FUN_END.
2253         (STABS_CURRENT_FILE1): Delete.
2254         (STABS_CURRENT_FILE): Likewise.
2255         (STABS_FUN): Likewise.
2256         (STABS_FUN_END): Likewise.
2257         (STABS_FUN2): Likewise.
2258         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2259         * sysdeps/x86_64/configure: Regenerated.
2260
2261 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2262
2263         * elf/dl-open.c: Include <atomic.h>.
2264         * elf/dl-lookup.c: Likewise.
2265
2266 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2267
2268         * sysdeps/unix/sysv/linux/kernel-features.h
2269         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2270         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2271         unconditionally.
2272         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2273         unconditionally.
2274         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2275         condition on __ASSUME_CLONE_THREAD_FLAGS.
2276
2277 2012-08-14  Andreas Jaeger  <aj@suse.de>
2278
2279         * sysdeps/i386/fpu/libm-test-ulps: Update.
2280
2281 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2282
2283         * include/atomic.h (atomic_exchange_and_add): Split into ...
2284         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2285         New atomic macros.
2286
2287 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2288
2289         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2290
2291 2012-08-13  Jeff Law <law@redhat.com>
2292
2293         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2294         null byte in the output string.
2295
2296 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2297
2298         * sysdeps/unix/sysv/linux/kernel-features.h
2299         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2300         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2301         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2302         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2303         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2304         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2305         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2306
2307 2012-08-09  Jeff Law <law@redhat.com>
2308
2309         [BZ #13939]
2310         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2311         When avoid_arena is set, don't retry in the that arena.  Pick the
2312         next one, whatever it might be.
2313         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2314         (arena_lock): Pass in new parameter to arena_get2.
2315         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2316         arena_get2.
2317         (__libc_malloc): Unify retrying after main arena failure with
2318         __libc_memalign version.
2319         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2320
2321 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2322
2323         [BZ #14166]
2324         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2325         to __redirect_strstr.
2326         (__strstr_sse42): Use typeof __redirect_strstr.
2327         (__strstr_ia32): Likewise.
2328         (__libc_strstr): New prototype.
2329         (strstr): Renamed to ...
2330         (__libc_strstr): This.
2331         (strstr): New strong alias of __libc_strstr.
2332         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2333         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2334         __redirect_time.
2335         Include <time.h>.
2336         (__libc_time): New prototype.
2337         (time_ifunc): Replace time with __libc_time.
2338         (time): New strong alias and hidden definition of __libc_time.
2339         (__GI_time): Remove strong alias.
2340         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2341         Include <stddef.h>.
2342         (memmove): Redefined to __redirect_memmove.
2343         (__memmove_sse2): Use typeof __redirect_memmove.
2344         (__memmove_ssse3): Likewise.
2345         (__memmove_ssse3_back): Likewise.
2346         (__libc_memmove): New prototype.
2347         (memmove): Renamed to ...
2348         (__libc_memmove): This.
2349         (memmove): New strong alias of __libc_memmove.
2350
2351 2012-08-08  Mark Salter  <msalter@redhat.com>
2352
2353         * elf/elf.h
2354         (R_MN10300_TLS_GD): Define.
2355         (R_MN10300_TLS_LD): Likewise.
2356         (R_MN10300_TLS_LDO): Likewise.
2357         (R_MN10300_TLS_GOTIE): Likewise.
2358         (R_MN10300_TLS_IE): Likewise.
2359         (R_MN10300_TLS_LE): Likewise.
2360         (R_MN10300_TLS_DTPMOD): Likewise.
2361         (R_MN10300_TLS_DTPOFF): Likewise.
2362         (R_MN10300_TLS_TPOFF): Likewise.
2363         (R_MN10300_SYM_DIFF): Likewise.
2364         (R_MN10300_ALIGN): Likewise.
2365         (R_MN10300_NUM): Update.
2366
2367 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2368
2369         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2370         Remove.
2371
2372 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2373
2374         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2375
2376         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2377         sysdeps/unix -> sysdeps/posix move.
2378         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2379
2380 2012-08-07      Allan McRae     <allan@archlinux.org>
2381
2382         [BZ #14303]
2383         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2384         (SUNOS_CPP): Likewise.
2385         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2386         not found.
2387         (open_input): Call CPP using execvp.
2388
2389 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2390
2391         * sysdeps/unix/sysv/linux/kernel-features.h
2392         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2393         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2394         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2395         (__ASSUME_WAITID_SYSCALL): Likewise.
2396         * sysdeps/unix/sysv/linux/dl-execstack.c
2397         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2398         code unconditional.
2399         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2400         conditional code.
2401         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2402         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2403         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2404         code.
2405         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2406         unconditional.
2407         [__ASSUME_WAITID_SYSCALL]: Likewise.
2408         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2409
2410 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2411
2412         * sysdeps/unix/closedir.c: Renamed to ...
2413         * sysdeps/posix/closedir.c: ... here.
2414         * sysdeps/unix/dirfd.c: Renamed to ...
2415         * sysdeps/posix/dirfd.c: ... here.
2416         * sysdeps/unix/dirstream.h: Renamed to ...
2417         * sysdeps/posix/dirstream.h: ... here.
2418         * sysdeps/unix/fdopendir.c: Renamed to ...
2419         * sysdeps/posix/fdopendir.c: ... here.
2420         * sysdeps/unix/opendir.c: Renamed to ...
2421         * sysdeps/posix/opendir.c: ... here.
2422         * sysdeps/unix/readdir.c: Renamed to ...
2423         * sysdeps/posix/readdir.c: ... here.
2424         * sysdeps/unix/readdir_r.c: Renamed to ...
2425         * sysdeps/posix/readdir_r.c: ... here.
2426         * sysdeps/unix/rewinddir.c: Renamed to ...
2427         * sysdeps/posix/rewinddir.c: ... here.
2428         * sysdeps/unix/seekdir.c: Renamed to ...
2429         * sysdeps/posix/seekdir.c: ... here.
2430         * sysdeps/unix/telldir.c: Renamed to ...
2431         * sysdeps/posix/telldir.c: ... here.
2432         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2433         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2434         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2435         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2436
2437         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2438         * bits/fcntl.h: ... here.
2439
2440         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2441         not 0.
2442         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2443         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2444         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2445         (struct flock): Move l_start, l_len to the beginning.
2446         Use __pid_t for l_pid.
2447         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2448         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2449         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2450         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2451         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2452         [__USE_LARGEFILE64] (struct flock64): New type.
2453         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2454
2455         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2456         * bits/dirent.h: ... here.
2457
2458         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2459         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2460
2461 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2462
2463         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2464         Change from 2.6.0 to 2.6.16.
2465         * sysdeps/unix/sysv/linux/configure: Regenerated.
2466         * sysdeps/unix/sysv/linux/kernel-features.h
2467         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2468         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2469         version.
2470         (__ASSUME_UTIMES): Likewise.
2471         (__ASSUME_CLONE_STOPPED): Remove.
2472         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2473         architectures, not kernel version.
2474         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2475         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2476         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2477         (__ASSUME_WAITID_SYSCALL): Likewise.
2478         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2479         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2480         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2481         refer to older versions.
2482
2483 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2484
2485         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2486         Define alphasort64 as an alias.
2487         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2488         Define versionsort64 as an alias.
2489         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2490         Define scandir64 as an alias.
2491         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2492         Define scandirat64 as an alias.
2493         * dirent/alphasort64.c (alphasort64):
2494         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2495         * dirent/versionsort64.c: Likewise.
2496         * dirent/scandir64.c: Likewise.
2497         * dirent/scandirat64.c: Likewise.
2498         * sysdeps/wordsize-64/alphasort.c: File removed.
2499         * sysdeps/wordsize-64/alphasort64.c: File removed.
2500         * sysdeps/wordsize-64/scandir.c: File removed.
2501         * sysdeps/wordsize-64/scandir64.c: File removed.
2502         * sysdeps/wordsize-64/scandirat.c: File removed.
2503         * sysdeps/wordsize-64/scandirat64.c: File removed.
2504         * sysdeps/wordsize-64/versionsort.c: File removed.
2505         * sysdeps/wordsize-64/versionsort64.c: File removed.
2506         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2507         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2508         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2509         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2510         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2511         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2512         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2513         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2514
2515         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2516         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2517         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2518         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2519         [defined __arch64__ || defined __sparcv9]
2520         (__INO_T_MATCHES_INO64_T): New macro.
2521         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2522         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2523         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2524         * sysdeps/unix/sysv/linux/bits/dirent.h
2525         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2526         (_DIRENT_MATCHES_DIRENT64): New macro.
2527
2528         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2529         Define lockf64 as an alias.
2530         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2531         Define fseeko64 as an alias.
2532         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2533         Define ftello64 as an alias.
2534         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2535         Define _IO_fgetpos64 and fgetpos64 as aliases.
2536         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2537         Define _IO_fsetpos64 and fsetpos64 as aliases.
2538         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2539         Conditionalize body on this.
2540         * libio/fseeko64.c: Likewise.
2541         * libio/ftello64.c: Likewise.
2542         * libio/iofgetpos64.c: Likewise.
2543         * libio/iofsetpos64.c: Likewise.
2544         * sysdeps/wordsize-64/lockf.c: File removed.
2545         * sysdeps/wordsize-64/lockf64.c: File removed.
2546         * sysdeps/wordsize-64/fseeko.c: File removed.
2547         * sysdeps/wordsize-64/fseeko64.c: File removed.
2548         * sysdeps/wordsize-64/ftello.c: File removed.
2549         * sysdeps/wordsize-64/ftello64.c: File removed.
2550         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2551         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2552         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2553         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2554         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2555         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2556         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2557         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2558         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2559         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2560         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2561         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2562         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2563         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2564
2565         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2566         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2567         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2568         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2569         [defined __arch64__ || defined __sparcv9]
2570         (__OFF_T_MATCHES_OFF64_T): New macro.
2571         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2572         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2573         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2574         (__OFF_T_MATCHES_OFF64_T): New macro.
2575
2576 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2577
2578         * stdlib/secure-getenv.c (__secure_getenv): Replace
2579         GLIBC_2_16 with GLIBC_2_17.
2580
2581 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2582
2583         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2584         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2585
2586 2012-08-03  David S. Miller  <davem@davemloft.net>
2587
2588         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2589
2590 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2591
2592         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2593         Remove.
2594         (__ASSUME_CORRECT_SI_PID): Likewise.
2595         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2596         (__ASSUME_TMPFS_NAME): Likewise.
2597         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2598         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2599         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2600         (HAVE_AUX_SECURE): Make definition unconditional.
2601         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2602         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2603
2604 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2605
2606         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2607         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2608         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2609         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2610         __eloop_threshold instead of SYMLOOP_MAX.
2611
2612         * sysdeps/generic/eloop-threshold.h: New file.
2613         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2614         of MAXSYMLINKS.
2615         * elf/chroot_canon.c (chroot_canon): Likewise.
2616
2617 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2618
2619         [BZ #13717]
2620         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2621         Change to 2.6.0 everywhere.
2622         * sysdeps/unix/sysv/linux/configure: Regenerated.
2623         * sysdeps/unix/sysv/linux/kernel-features.h
2624         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2625         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2626         kernel versions.
2627         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2628         (__ASSUME_FUTEX_REQUEUE): Remove.
2629         (__ASSUME_STATFS64): Define unconditionally.
2630         (__ASSUME_AT_SECURE): Likewise.
2631         (__ASSUME_CORRECT_SI_PID): Likewise.
2632         (__ASSUME_TGKILL): Define without depending on kernel version for
2633         i386.
2634         (__ASSUME_UTIMES): Likewise.
2635         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2636         kernel version.
2637         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2638         (__ASSUME_TMPFS_NAME): Likewise.
2639         * README: Update reference to Linux kernel versions.
2640
2641 2012-08-02  Marek Polacek  <polacek@redhat.com>
2642
2643         [BZ# 14150]
2644         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2645         libc_cv_asm_type_prefix with %.
2646         * configure: Regenerated.
2647         * include/libc-symbols.h: Remove comment about
2648         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2649         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2650         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2651         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2652         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2653         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2654         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2655         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2656         * elf/tst-unique2mod1.c: Likewise.
2657         * elf/tst-unique1mod2.c: Likewise.
2658         * elf/tst-unique1mod1.c: Likewise.
2659         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2660         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2661         Replace ASM_TYPE_DIRECTIVE with .type.
2662         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2663         * sysdeps/i386/sysdep.h: Likewise.
2664         * sysdeps/x86_64/sysdep.h: Likewise.
2665         * sysdeps/sh/sysdep.h: Likewise.
2666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2667         Do not define ASM_TYPE_DIRECTIVE.
2668         * sysdeps/powerpc/sysdep.h: Likewise.
2669         * sysdeps/powerpc/powerpc32/sysdep.h:
2670         Replace ASM_TYPE_DIRECTIVE with .type.
2671         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2672         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2673         * sysdeps/i386/fpu/e_powf.S: Likewise.
2674         * sysdeps/i386/fpu/e_expl.S: Likewise.
2675         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2676         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2677         * sysdeps/i386/fpu/e_pow.S: Likewise.
2678         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2679         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2680         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2681         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2682         * sysdeps/i386/fpu/e_log2.S: Likewise.
2683         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2684         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2685         * sysdeps/i386/fpu/e_powl.S: Likewise.
2686         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2687         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2688         * sysdeps/i386/fpu/e_logl.S: Likewise.
2689         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2690         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2691         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2692         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2693         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2694         * sysdeps/i386/fpu/e_log.S: Likewise.
2695         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2696         * sysdeps/i386/fpu/e_logf.S: Likewise.
2697         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2698         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2699         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2700         * sysdeps/i386/fpu/e_log10.S: Likewise.
2701         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2702         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2703         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2704         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2705         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2706         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2707         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2708         * sysdeps/i386/i686/strtok.S: Likewise.
2709         * sysdeps/i386/i386-mcount.S: Likewise.
2710         * sysdeps/i386/strtok.S: Likewise.
2711         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2712         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2713         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2714         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2715         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2716         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2717         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2718         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2719         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2720         * sysdeps/x86_64/_mcount.S: Likewise.
2721         * sysdeps/x86_64/strtok.S: Likewise.
2722         * sysdeps/sh/_mcount.S: Likewise.
2723
2724 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2725
2726         * libio/iofopen.c: Include <fcntl.h>.
2727         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2728         (_IO_fopen64, fopen64): Define as aliases.
2729         * libio/iofopen64.c: Include <fcntl.h>.
2730         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2731         Conditionalize body on this.
2732         * sysdeps/wordsize-64/iofopen.c: File removed.
2733         * sysdeps/wordsize-64/iofopen64.c: File removed.
2734
2735 2012-08-01  Marek Polacek  <polacek@redhat.com>
2736
2737         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2738         Use dlfcn directly instead of a variable.
2739         (binfmt-subdir): Do not define.
2740         (dlfcn): Likewise.
2741
2742 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2743
2744         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2745         Remove all definitions.
2746         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2747         <kernel-features.h>.
2748         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2749         (miss_F_GETOWN_EX): Remove all definitions.
2750         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2751         macro definition.
2752         [!__ASSUME_FCNTL64]: Remove conditional code.
2753         [__ASSUME_FCNTL64]: Make code unconditional.
2754         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2755         <kernel-features.h>.
2756         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2757         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2758         (lockf64) [__NR_fcntl64]: Make code unconditional.
2759         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2760
2761         * sysdeps/unix/sysv/linux/kernel-features.h
2762         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2763         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2764         Make code unconditional.
2765         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2766         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2768         [__NR_vfork]: Make code unconditional.
2769         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2770         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2772         [__NR_vfork]: Make code unconditional.
2773         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2774         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2775
2776 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2777
2778         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2779         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2780
2781         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2782         Define mkstemp64 as an alias.
2783         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2784         Define mkstemps64 as an alias.
2785         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2786         Define mkostemp64 as an alias.
2787         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2788         Define mkostemps64 as an alias.
2789         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2790         Conditionalize body on this.
2791         * misc/mkostemp64.c: Likewise.
2792         * misc/mkostemps64.c: Likewise.
2793         * misc/mkstemps64.c: Likewise.
2794         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2795         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2796         * sysdeps/wordsize-64/mkostemp.c: File removed.
2797         * sysdeps/wordsize-64/mkstemp.c: File removed.
2798         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2799         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2800         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2801         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2802
2803         [BZ #14138]
2804         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2805         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2806         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2807         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2808
2809         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2810         compat_symbol macros from <shlib-compat.h> rather than the underlying
2811         default_symbol_version and symbol_version macros, so that DEFAULT
2812         lines in shlib-versions are respected.
2813         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2814
2815 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2816
2817         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2818         Declare with warn_unused_result.
2819         (setgid, setregid, setegid, setresgid): Likewise.
2820         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2821         Likewise.
2822         * WUR-REPORT: Remove set*id functions.
2823
2824 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2825
2826         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2827
2828 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2829
2830         * include/sys/socket.h (__libc_accept, __libc_accept4):
2831         Add attribute_hidden.
2832         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2833
2834         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2835         use of PTR_MANGLE.
2836         * inet/getnetgrent_r.c (setup): Likewise.
2837
2838         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2839
2840 2012-07-31  David S. Miller  <davem@davemloft.net>
2841
2842         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2843
2844 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2845
2846         [BZ #13629]
2847         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2848         value between 1.0 and 2.0 and smaller part has absolute value less
2849         than 1.0.
2850         * math/s_clog10.c (__clog10): Likewise.
2851         * math/s_clog10f.c (__clog10f): Likewise.
2852         * math/s_clog10l.c (__clog10l): Likewise.
2853         * math/s_clogf.c (__clogf): Likewise.
2854         * math/s_clogl.c (__clogl): Likewise.
2855         * math/libm-test.inc (clog_test): Add more tests.
2856         (clog10_test): Likewise.
2857         * sysdeps/i386/fpu/libm-test-ulps: Update.
2858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2859
2860 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2861
2862         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2863         Exit with zero in case no suitable GID is found, and write a
2864         message to standard error.
2865
2866 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2867
2868         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2869         rather than to 1.
2870         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2871         (MAXPATHLEN): Removed.
2872         (NOGROUP, NODEV): New macros.
2873         (setbit, clrbit, isset, isclr): New macros.
2874         (howmany, roundup, powerof2): New macros.
2875         (DEV_BSIZE): New macro.
2876
2877         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2878         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2879
2880         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2881         definition on [!__NO_LONG_DOUBLE_MATH].
2882
2883         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2884         PTR_MANGLE and PTR_DEMANGLE.
2885
2886         * socket/accept4.c (accept4): Rename to __libc_accept4.
2887         Define accept4 as a weak alias.
2888
2889         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2890         on [_DIRENT_HAVE_D_TYPE].
2891         * io/ftw.c (ftw_dir): Likewise.
2892
2893         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2894
2895         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2896
2897         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2898         Use the BSD numbers rather than the arbitrary ones we had.
2899         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2900         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2901         (SIGXCPU, SIGXFSZ): New macros.
2902         (_NSIG): Now 32.
2903
2904         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2905         initializer on [_LIBC_REENTRANT].
2906
2907         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2908         definitions inside [_POSIX_MAPPED_FILES].
2909
2910         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2911
2912         * dirent/opendir.c: Include <fcntl.h>.
2913
2914         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2915         (__libc_getspecific): Likewise.
2916         (__libc_key_create): Likewise.
2917
2918         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2919         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2920         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2921         (tmpfile64): Define as alias.
2922         * sysdeps/wordsize-64/tmpfile.c: File removed.
2923         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2924         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2925         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2926
2927         * stdio-common/vfscanf.c: Include <stdbool.h>.
2928         * nss/makedb.c: Likewise.
2929         * stdio-common/_i18n_number.h: Likewise.
2930         * argp/argp-help.c: Likewise.
2931         * posix/wordexp.c: Likewise.
2932         * sysdeps/posix/spawni.c: Likewise.
2933         * nss/nss_files/files-initgroups.c: Likewise.
2934         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2935         * nss/nss_files/files-initgroups.c: Likewise.
2936         * nss/nss_db/db-netgrp.c: Likewise.
2937         * nss/nss_db/db-initgroups.c: Likewise.
2938         * io/fchmodat.c: Include <sys/stat.h>.
2939
2940         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2941         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2942
2943         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2944         [HAVE_MMAP].
2945
2946         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2947         Add multiple inclusion protection.
2948
2949 2012-07-27  David S. Miller  <davem@davemloft.net>
2950
2951         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2952
2953 2012-07-27  Gary Benson  <gbenson@redhat.com>
2954
2955         [BZ #14298]
2956         * elf/rtld.c: Include <stap-probe.h>.
2957         (dl_main): Added static probes "init_start" and "init_complete".
2958         * elf/dl-load.c: Include <stap-probe.h>.
2959         (lose): Take new parameter "nsid".
2960         Added static probe "map_failed".
2961         (_dl_map_object_from_fd): Pass namespace id to lose.
2962         Added static probe "map_start".
2963         (open_verify): Pass namespace id to lose.
2964         * elf/dl-open.c: Include <stap-probe.h>.
2965         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2966         and "reloc_complete".
2967         * elf/dl-close.c: Include <stap-probe.h>.
2968         (_dl_close_worker): Added static probes "unmap_start" and
2969         "unmap_complete".
2970         * elf/rtld-debugger-interface.txt: New file documenting the above.
2971
2972 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2973
2974         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2975         rather than a string variable.
2976         * sunrpc/rpc_main.c (h_output): Likewise.
2977         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2978
2979 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2980
2981         * inet/check_native.c: New file.
2982
2983 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2984
2985         [BZ #13629]
2986         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2987         if larger part has absolute value 1.0.
2988         * math/s_clog10.c (__clog10): Likewise.
2989         * math/s_clog10f.c (__clog10f): Likewise.
2990         * math/s_clog10l.c (__clog10l): Likewise.
2991         * math/s_clogf.c (__clogf): Likewise.
2992         * math/s_clogl.c (__clogl): Likewise.
2993         * math/libm-test.inc (clog_test): Add more tests.
2994         (clog10_test): Likewise.
2995         * sysdeps/i386/fpu/libm-test-ulps: Update.
2996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2997
2998         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
2999         (pltexit): Likewise.
3000         (La_regs): Likewise.
3001         (La_retval): Likewise.
3002         (int_retval): Likewise.
3003         Update #error for removed macros to refer only to definitions in
3004         tst-audit.h.
3005         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3006         macro.
3007         (pltexit): Likewise.
3008         (La_regs): Likewise.
3009         (La_retval): Likewise.
3010         (int_retval): Likewise.
3011         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3012         macro.
3013         (pltexit): Likewise.
3014         (La_regs): Likewise.
3015         (La_retval): Likewise.
3016         (int_retval): Likewise.
3017         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3018         macro.
3019         (pltexit): Likewise.
3020         (La_regs): Likewise.
3021         (La_retval): Likewise.
3022         (int_retval): Likewise.
3023         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3024         macro.
3025         (pltexit): Likewise.
3026         (La_regs): Likewise.
3027         (La_retval): Likewise.
3028         (int_retval): Likewise.
3029         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3030         macro.
3031         (pltexit): Likewise.
3032         (La_regs): Likewise.
3033         (La_retval): Likewise.
3034         (int_retval): Likewise.
3035         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3036         macro.
3037         (pltexit): Likewise.
3038         (La_regs): Likewise.
3039         (La_retval): Likewise.
3040         (int_retval): Likewise.
3041         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3042         macro definitions in tst-audit.h.
3043         * sysdeps/i386/tst-audit.h: New file.
3044         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3045         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3046         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3047         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3048         * sysdeps/sh/tst-audit.h: Likewise.
3049         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3050         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3051         * sysdeps/x86_64/tst-audit.h: Likewise.
3052
3053 2012-07-26  Andreas Jaeger  <aj@suse.de>
3054
3055         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3056         ptrace.
3057
3058         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3059         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3060         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3061         PTRACE_O_MASK.
3062         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3063         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3064         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3065
3066         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3067         value.
3068
3069         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3070         _sigsys.
3071         (si_call_addr, si_syscall, si_arch): Define new macro.
3072         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3073         _sigsys.
3074         (si_call_addr, si_syscall, si_arch): Define new marcro.
3075         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3076         _sigsys.
3077         (si_call_addr, si_syscall, si_arch): Define new macro.
3078         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3079         _sigsys.
3080         (si_call_addr, si_syscall, si_arch): Define new macro.
3081
3082 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3083
3084         [BZ #13717]
3085         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3086         Change to 2.4.21 where previously 2.4.1.
3087         * sysdeps/unix/sysv/linux/configure: Regenerated.
3088         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3089         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3090         Linux kernel version.
3091         (__ASSUME_STD_AUXV): Remove.
3092         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3093         kernel version.
3094         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3095         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3096         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3097         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3098         (__ASSUME_NETLINK_SUPPORT): Likewise.
3099         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3100         (__no_netlink_support): Remove conditional definition.
3101         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3102         Remove.
3103         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3104         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3105         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3106         (if_nameindex_ioctl): Remove.
3107         (if_nameindex_netlink): Do not handle __no_netlink_support.
3108         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3109         code.
3110         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3111         Remove conditional code.
3112         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3113         code.
3114         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3115         unconditional.
3116         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3117         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3118         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3119         Remove.
3120         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3121         [!__ASSUME_STD_AUXV]: Remove conditional code.
3122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3123         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3124         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3126         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3127         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3128         code.
3129         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3131         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3132         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3133         conditional code.
3134         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3136         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3137         code.
3138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3139         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3140         conditional code.
3141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3142         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3143         code unconditional.
3144         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3145         conditional code.
3146         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3147         unconditional.
3148         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3149         conditional code.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3151         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3152         unconditional.
3153         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3154         conditional code.
3155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3156         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3157         code unconditional.
3158         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3159         conditional code.
3160         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3161         unconditional.
3162         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3163         conditional code.
3164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3165         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3166         code unconditional.
3167         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3168         conditional code.
3169         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3170         unconditional.
3171         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3172         conditional code.
3173
3174 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3175
3176         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3177         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3178         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3179         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3180         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3181         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3182         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3183         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3184         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3185         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3186         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3187         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3188         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3189         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3190         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3191         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3192         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3193         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3194         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3195         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3196         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3197         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3198         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3199
3200 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3201
3202         * Versions.def: Add GLIBC_2.17.
3203         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3204         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3205         Introduce __libc_secure_getenv.
3206         * stdlib/Versions (2.17): Add secure_getenv
3207         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3208         * stdlib/secure-getenv.c: Rename __secure_getenv to
3209         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3210         symbol __secure_getenv for GLIBC_2.0.
3211         * stdlib/tst-secure-getenv.c: New.
3212         * stdlib/Makefile (tests): Add testcase.
3213         * manual/startup.texi (Environment Access): Document
3214         secure_getenv.
3215         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3216         __libc_secure_getenv.
3217         * inet/ruserpass.c (ruserpass): Likewise.
3218         * malloc/mtrace.c (mtrace): Likewise.
3219         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3220         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3221         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3222         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3223         HAVE_SECURE_GETENV.
3224         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3225         __secure_getenv to __libc_secure_getenv.
3226         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3228         Likewise.
3229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3230         Likewise.
3231         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3233         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3234         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3235         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3236         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3237         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3238
3239 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3240
3241         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3242         (struct La_i86_retval): Likewise.
3243         (struct La_x86_64_regs): Likewise.
3244         (struct La_x86_64_retval): Likewise.
3245         (struct La_x32_regs): Likewise.
3246         (struct La_x32_retval): Likewise.
3247         (struct La_ppc32_regs): Likewise.
3248         (struct La_ppc32_retval): Likewise.
3249         (struct La_ppc64_regs): Likewise.
3250         (struct La_ppc64_retval): Likewise.
3251         (struct La_sh_regs): Likewise.
3252         (struct La_sh_retval): Likewise.
3253         (struct La_s390_32_regs): Likewise.
3254         (struct La_s390_32_retval): Likewise.
3255         (struct La_s390_64_regs): Likewise.
3256         (struct La_s390_64_retval): Likewise.
3257         (struct La_sparc32_regs): Likewise.
3258         (struct La_sparc32_retval): Likewise.
3259         (struct La_sparc64_regs): Likewise.
3260         (struct La_sparc64_retval): Likewise.
3261         (struct audit_ifaces): Remove architecture-specific pltenter and
3262         pltexit members.
3263         * sysdeps/i386/ldsodefs.h: New file.
3264         * sysdeps/powerpc/ldsodefs.h: Likewise.
3265         * sysdeps/s390/ldsodefs.h: Likewise.
3266         * sysdeps/sh/ldsodefs.h: Likewise.
3267         * sysdeps/sparc/ldsodefs.h: Likewise.
3268         * sysdeps/x86_64/ldsodefs.h: Likewise.
3269
3270 2012-07-25  Marek Polacek  <polacek@redhat.com>
3271
3272         [BZ #6808]
3273         * math/libm-test.inc (yn_test): Add another test.
3274         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3275         to ERANGE when the result is +-Inf.
3276         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3277         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3278         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3279         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3280
3281 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3282
3283         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3284         equal to 0.
3285         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3286         clock_t.
3287         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3288
3289 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3290
3291         * configure.in <sysdeps resolving>: Correct printing
3292         Implies_before.
3293         * configure: Regenerate.
3294
3295 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3296
3297         * math/w_ilogb.c: Include <limits.h>.
3298         * math/w_ilogbl.c: Likewise.
3299
3300 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3301
3302         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3303         va_copy.  Document allowing for unavailable va_copy only as
3304         pre-C99 compatibility.
3305         * manual/string.texi (Copying and Concatenation): Use va_copy
3306         instead of __va_copy in concat example.
3307
3308 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3309
3310         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3311         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3312         it if not null.
3313
3314         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3315         with O_NOLINK passed to __file_name_lookup.
3316
3317         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3318         with O_NOLINK passed to __file_name_lookup.
3319
3320         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3321         negative N or less than NGIDS.
3322
3323         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3324         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3325         enough.  Use memcpy instead of strncpy.
3326
3327 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3328
3329         * elf/Makefile (check-data): Remove.
3330         (localplt.data): New vpath directive.
3331         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3332         instead of $(check-data).
3333         * scripts/data/localplt-generic.data: Move to ...
3334         * sysdeps/generic/localplt.data: ... here.
3335         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3336         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3337         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3339         ... here.
3340         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3342         ... here.
3343         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3345         ... here.
3346         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3348         ... here.
3349         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3350         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3351         ... here.
3352         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3353         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3354         ... here.
3355
3356 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3357
3358         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3359         PPC32 and PPC64 files.
3360         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3361         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3362
3363 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3364
3365         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3366         __makecontext_ret to ...
3367         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3368         ... here and call exit if uc_link is NULL.  New file.
3369         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3370         __makecontext_ret.S.
3371         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3372         __makecontext_ret to ...
3373         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3374         ... here and call exit if uc_link is NULL.  New file.
3375         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3376         __makecontext_ret.S.
3377
3378 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3379
3380         * elf/elf.h (R_390_IRELATIVE): New definition.
3381         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3382         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3383         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3384         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3385         (elf_machine_lazy_rel): Likewise.
3386         * sysdeps/s390/dl-irel.h: New file.
3387         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3388         * sysdeps/s390/s390-64/memset.S: New asm code.
3389         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3390         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3391         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3392         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3393         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3394         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3395         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3396         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3397         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3398         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3399         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3400         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3401         * sysdeps/s390/s390-32/memset.S: New asm code.
3402         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3403
3404 2012-07-17  Marek Polacek  <polacek@redhat.com>
3405
3406         [BZ #14349]
3407         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3408         * sysdeps/s390/s390-64/configure.in: Likewise.
3409         * sysdeps/sparc/configure.in: Likewise.
3410         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3411         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3412         * sysdeps/i386/configure.in: Likewise.
3413         * sysdeps/x86_64/configure.in: Likewise.
3414         * sysdeps/sh/configure.in: Likewise.
3415         * sysdeps/s390/s390-32/configure: Regenerated.
3416         * sysdeps/s390/s390-64/configure: Likewise.
3417         * sysdeps/x86_64/configure: Likewise.
3418         * sysdeps/sh/configure: Likewise.
3419         * sysdeps/powerpc/powerpc64/configure: Likewise.
3420         * sysdeps/powerpc/powerpc32/configure: Likewise.
3421         * sysdeps/sparc/configure: Likwise.
3422         * sysdeps/i386/configure: Likewise.
3423
3424         * elf/dl-open.c: Comment fixes.
3425
3426 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3427
3428         * Makefile [CXX] (check-data): Remove.
3429         [CXX] (c++-types.data): New vpath directive.
3430         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3431         vpath.  Do not allow for C++ type data being missing.
3432         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3433         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3434         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3435         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3436         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3437         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3438         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3440         ... here.
3441         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3443         ... here.
3444         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3445         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3446         ... here.
3447         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3448         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3449         ... here.
3450         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3451         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3452         ... here.
3453         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3454         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3455         ... here.
3456         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3457         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3458         ... here.
3459         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3460         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3461
3462         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3463         definitions to architecture-specific files.
3464         (TLS_IE): Likewise.
3465         (TLS_LD): Likewise.
3466         (TLS_GD): Likewise.
3467         * sysdeps/i386/tls-macros.h: New file.
3468         * sysdeps/powerpc/tls-macros.h: Likewise.
3469         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3470         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3471         * sysdeps/sh/tls-macros.h: Likewise.
3472         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3473         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3474         * sysdeps/x86_64/tls-macros.h: Likewise.
3475
3476 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3477
3478         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3479         zero value for regular exit case.
3480
3481         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3482         (__start_context): Preserve zero value for regular exit case.
3483
3484 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3485             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3486
3487         * manual/setjmp.texi (setcontext): Clarify normal process
3488         termination when uc_link is the null pointer.
3489         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3490         exit call.
3491
3492 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3493
3494         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3495         preprocessor.  Test for each exception mask separately.
3496
3497 2012-07-16  Andreas Jaeger  <aj@suse.de>
3498
3499         * po/ru.po: Update from translation team.
3500
3501 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3502
3503         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3504         equal to 0.
3505         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3506         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3507         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3508         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3509         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3510
3511 2012-07-13  Andreas Jaeger  <aj@suse.de>
3512
3513         * po/fr.po: Update from translation team.
3514
3515 2012-07-12  Marek Polacek  <polacek@redhat.com>
3516
3517         [BZ #14173]
3518         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3519         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3520         loop condition.
3521
3522 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3523
3524         [BZ #13717]
3525         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3526         Change to 2.4.1 where previously 2.4.0.
3527         * sysdeps/unix/sysv/linux/configure: Regenerated.
3528         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3529         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3530         version.
3531         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3532         (__ASSUME_AT_CLKTCK): Remove.
3533         (__ASSUME_AT_PAGESIZE): Likewise.
3534         (__ASSUME_AT_XID): Likewise.
3535         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3536         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3537         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3538         unconditionally.
3539         (HAVE_AUX_PAGESIZE): Likewise.
3540         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3541         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3542         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3543
3544 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3545
3546         [BZ #14307]
3547         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3548         the temporary buffer used to invoke __gethostbyname2_r,
3549         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3550         host_data / struct gaih_addrtuple.
3551         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3552         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3553         header file nss/nsswitch.h.
3554         * nss/nsswitch.h (global scope): Add definition of implementation
3555         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3556         resolv/nss_dns/dns-host.c).
3557
3558 2012-07-11  Andreas Jaeger  <aj@suse.de>
3559
3560         * po/fr.po: Update from translation team.
3561
3562         * po/sv.po: Update from translation team
3563         * po/fr.po: Another update from translation team.
3564
3565 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3566
3567         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3568         for subnormals or multiply small sinh result by itself.
3569         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3570         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3571
3572 2012-07-11  David S. Miller  <davem@davemloft.net>
3573
3574         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3575
3576 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3577
3578         [BZ #14347]
3579         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3580         (INTERNAL_MARK): Shift it here.
3581
3582 2012-07-10  Marek Polacek  <polacek@redhat.com>
3583
3584         [BZ #14151]
3585         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3586         libc_cv_asm_global_directive with .globl.
3587         * configure: Regenerated.
3588         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3589         with .globl.
3590         * sysdeps/i386/configure: Regenerated.
3591         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3592         with .globl.
3593         * sysdeps/x86_64/configure: Regenerated.
3594         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3595         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3596         * elf/tst-unique2mod2.c: Likewise.
3597         * elf/tst-unique2mod1.c: Likewise.
3598         * elf/tst-unique1mod2.c: Likewise.
3599         * elf/tst-unique1mod1.c: Likewise.
3600         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3601         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3602         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3603         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3604         * sysdeps/mach/sysdep.h: Likewise.
3605         * sysdeps/i386/sysdep.h: Likewise.
3606         * sysdeps/i386/i386-mcount.S: Likewise.
3607         * sysdeps/x86_64/_mcount.S: Likewise.
3608         * sysdeps/x86_64/sysdep.h: Likewise.
3609         * sysdeps/sh/_mcount.S: Likewise.
3610         * sysdeps/sh/sysdep.h: Likewise.
3611         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3612         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3613         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3614         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3615         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3616         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3617         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3618         * locale/localeinfo.h: Likewise.
3619         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3620         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3621
3622 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3623
3624         [BZ #14336]
3625         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3626         system".
3627         * manual/message.texi (The Uniforum approach): Likewise.
3628         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3629         (glibc iconv Implementation): Likewise.
3630
3631 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3632
3633         [BZ #14337]
3634         * math/s_clog.c (__clog): Avoid scaling a value down where that
3635         could result in underflow.
3636         * math/s_clog10.c (__clog10): Likewise.
3637         * math/s_clog10f.c (__clog10f): Likewise.
3638         * math/s_clog10l.c (__clog10l): Likewise.
3639         * math/s_clogf.c (__clogf): Likewise.
3640         * math/s_clogl.c (__clogl): Likewise.
3641         * math/libm-test.inc (clog_test): Add more tests.
3642         (clog10_test): Likewise.
3643         * sysdeps/i386/fpu/libm-test-ulps: Update.
3644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3645
3646 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3647
3648         [BZ #14283]
3649         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3650         by 7 not 8 to examine high bit of fractional part.
3651
3652         [BZ #14042]
3653         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3654         for call to __mcount_internal.
3655         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3656         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3657         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3658
3659 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3660
3661         [BZ #14154]
3662         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3663         approximation for values within 0x1p-13f of an odd multiple of
3664         pi/4.
3665         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3666         exception.  Add more tests.
3667         * sysdeps/i386/fpu/libm-test-ulps: Update.
3668
3669         [BZ #6778]
3670         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3671         inputs and return -1 for them.  Do not check for +Inf in case not
3672         reachable for +Inf.
3673         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3674         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not 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         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3679         define.
3680         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3681         and return -1 for them.  Do not check for +Inf in case not
3682         reachable for +Inf.
3683         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3684         spurious underflow.
3685         * sysdeps/i386/fpu/libm-test-ulps: Update.
3686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3687
3688 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3689
3690         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3691
3692 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3693
3694         [BZ #14157]
3695         [BZ #14331]
3696         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3697         could result in spurious underflow.  Scale down values above
3698         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3699         * math/s_csqrtf.c (__csqrtf): Likewise.
3700         * math/s_csqrtl.c (__csqrtl): Likewise.
3701         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3702         spurious underflow.
3703         * sysdeps/i386/fpu/libm-test-ulps: Update.
3704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3705
3706 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3707
3708         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3709         xopen-msg.sed.
3710         * catgets/xopen-msg.awk: New file.
3711         * catgets/xopen-msg.sed: Removed.
3712
3713         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3714         po2text.sed.
3715         * intl/po2test.awk: New file.
3716         * intl/po2test.sed: Removed.
3717
3718 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3719
3720         [BZ #14328]
3721         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3722         or multiply small sinh result by itself.
3723         * math/s_ctanf.c (__ctanf): Likewise.
3724         * math/s_ctanh.c (__ctanh): Likewise.
3725         * math/s_ctanhf.c (__ctanhf): Likewise.
3726         * math/s_ctanhl.c (__ctanhl): Likewise.
3727         * math/s_ctanl.c (__ctanl): Likewise.
3728         * math/libm-test.inc (ctan_test_tonearest): New function.
3729         (ctan_test_towardzero): Likewise.
3730         (ctan_test_downward): Likewise.
3731         (ctan_test_upward): Likewise.
3732         (ctanh_test_tonearest): Likewise.
3733         (ctanh_test_towardzero): Likewise.
3734         (ctanh_test_downward): Likewise.
3735         (ctanh_test_upward): Likewise.
3736         (main): Call these new functions.
3737         * sysdeps/i386/fpu/libm-test-ulps: Update.
3738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3739
3740 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3741
3742         * .gitignore: Delete /ports entry.
3743
3744 2012-07-03  Andreas Jaeger  <aj@suse.de>
3745
3746         * po/bg.po: Update from translation team.
3747         * po/cs.po: Likewise.
3748         * po/de.po: Likewise.
3749         * po/hr.po: Likewise.
3750         * po/nl.pl: Likewise.
3751         * po/pl.po: Likewise.
3752         * po/vi.po: Likewise.
3753
3754 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3755
3756         * Makeconfig [!+link] (+link-before-libc): New variable.
3757         [!+link] (+link-after-libc): Likewise.
3758         [!+link] (+link-tests): Likewise.
3759         [!+link] (+link): Define in terms of $(+link-before-libc) and
3760         $(+link-after-libc).
3761         [!+link-static] (+link-static-before-libc): New variable.
3762         [!+link-static] (+link-static-after-libc): Likewise.
3763         [!+link-static] (+link-static-tests): Likewise.
3764         [!+link-static] (+link-static): Define in terms of
3765         $(+link-static-before-libc) and $(+link-static-after-libc).
3766         [build-shared] (link-libc-before-gnulib): New variable.
3767         [build-shared] (link-libc-tests): Likewise.
3768         [build-shared] (link-libc): Define in terms of
3769         $(link-libc-before-gnulib).
3770         [!build-shared] (link-libc-tests): New variable.
3771         (link-libc-static-tests): New variable.
3772         [!gnulib] (gnulib-arch): New variable.
3773         [!gnulib] (gnulib-tests): Likewise.
3774         [!gnulib] (static-gnulib-arch): Likewise.
3775         [!gnulib] (static-gnulib-tests): Likewise.
3776         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3777         Define with "=" instead of ":=".
3778         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3779         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3780         * Rules (binaries-all-notests): New variable.
3781         (binaries-all-tests): Likewise.
3782         (binaries-static-notests): Likewise.
3783         (binaries-static-tests): Likewise.
3784         (binaries-all): Define using $(binaries-all-notests) and
3785         $(binaries-all-tests).
3786         (binaries-static): Define using $(binaries-static-notests) and
3787         $(binaries-static-tests).
3788         (binaries-shared-tests): New variable.
3789         (binaries-shared-notests): Likewise.
3790         (binaries-shared): Remove variable.
3791         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3792         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3793         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3794         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3795         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3796         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3797         * elf/Makefile (sln-modules): New variable.
3798         (extra-objs): Add $(sln-modules:=.o).
3799         (ldconfig-modules): Add static-stubs.
3800         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3801         * elf/static-stubs.c: New file.
3802
3803         [BZ #14283]
3804         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3805         by 7 not 8 to examine high bit of fractional part.  Use volatile
3806         variables when splitting into final array of floats if
3807         __FLT_EVAL_METHOD__ != 0.
3808         * math/libm-test.inc (cos_test): Add another test.
3809         (sin_test): Likewise.
3810         * sysdeps/i386/fpu/libm-test-ulps: Update.
3811
3812         [BZ #14273]
3813         * math/libm-test.inc (cosh_test): Add more tests.
3814
3815         * version.h (RELEASE): Set to "development".
3816         (VERSION): Set to "2.16.90".
3817
3818 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3819
3820         * NEWS: Update copyright. Remove last-updated date.
3821         Mention math library bug fixes and timezone data changes.
3822         * README: Mention GNU/Hurd, x32, and HPPA support status.
3823
3824 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3825
3826         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3827
3828 2012-06-27  Andreas Jaeger  <aj@suse.de>
3829
3830         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3831
3832 2012-06-25  Andreas Jaeger  <aj@suse.de>
3833
3834         * sysdeps/s390/fpu/libm-test-ulps: Update.
3835
3836 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3837             Thomas Schwinge  <thomas@codesourcery.com>
3838
3839         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3840         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3841         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3842         fanotify_mark.
3843
3844 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3845
3846         * sysdeps/mach/start.c: Remove file.
3847         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3848         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3849         * sysdeps/sh/init-first.c: Likewise.
3850
3851         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3852         registers for frame unwinding purposes, add CFI directives.
3853         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3854         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3855         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3856         Likewise.
3857
3858         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3859         __fortify_fail returning.
3860         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3861
3862         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3863         sysdeps/sh/____longjmp_chk.S.
3864         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3865         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3866         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3867         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3868
3869         * sysdeps/sh/abort-instr.h: New file.
3870         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3871         process in case exit returns.
3872
3873         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3874         initialize the GOT register before use.
3875
3876         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3877         calculation of ARGC > 4.
3878
3879         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3880         meaningful names to some local labels.
3881
3882 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3883             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3884
3885         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3886         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3887         (__arch_compare_and_exchange_val_16_acq): Likewise.
3888         (__arch_compare_and_exchange_val_32_acq): Likewise.
3889         (atomic_exchange_and_add): Fix gUSA sequence.
3890         (atomic_add): Likewise.
3891         (atomic_add_negative): Likewise.
3892         (atomic_add_zero): Likewise.
3893         (atomic_bit_test_set): Likewise.
3894
3895 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3896
3897         [BZ #13579]
3898         * include/link.h (struct link_map): Add l_free_initfini.
3899         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3900         l_initfini.
3901         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3902         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3903         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3904         set.
3905
3906 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3907
3908         * configure.in: Use AC_LANG_SOURCE.
3909         * configure: Regenerate.
3910
3911 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3912
3913         * configure.in (libc_cv_localstatedir): New substituted variable.
3914         * configure: Regenerated.
3915         * config.make.in (localstatedir): New variable, substituted from
3916         libc_cv_localstatedir.
3917         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3918         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3919         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3920         * sysdeps/gnu/configure: Regenerated.
3921
3922 2012-06-21  Jeff Law  <law@redhat.com>
3923
3924         [BZ #14277]
3925         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3926         free.  Simplify list management for _LIBC case.
3927
3928 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3929
3930         [BZ #14273]
3931         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3932         Clear sign bit of 64-bit integer value before comparing against
3933         overflow value.
3934
3935         * sysdeps/mach/configure: Regenerated.
3936
3937 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3938
3939         [BZ #14278]
3940         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3941
3942 2012-06-21  Jeff Law  <law@redhat.com>
3943
3944         [BZ #13882]
3945         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3946         uint16_t for elements in the "seen" array to avoid char overflows.
3947         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3948         * elf/dl-open.c (dl_open_worker): Likewise.
3949
3950 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3951
3952         * scripts/list-sources.sh: Scan PORTS for translations.
3953         * po/libc.pot: Regenerated.
3954
3955 2012-06-21  Andreas Jaeger  <aj@suse.de>
3956
3957         [BZ #12194]
3958         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3959         warning.
3960         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3961         * bits/byteswap-16.h (__bswap_16): Likewise.
3962         * bits/byteswap.h (__bswap_constant_16): Likewise.
3963
3964 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3965
3966         [BZ #14117]
3967         * sysdeps/i386/fpu_control.h: Removed.
3968         * sysdeps/x86_64/fpu_control.h: Moved to ...
3969         * sysdeps/x86/fpu_control.h: Here.
3970
3971         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3972         (_FPU_SETCW): Likewise.
3973
3974 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3975
3976         [BZ #14117]
3977         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3978         * sysdeps/x86/fpu/bits/mathinline.h: This.
3979         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3980
3981         [BZ #14050]
3982         [BZ #14117]
3983         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3984         functions if __x86_64__ is defined.
3985
3986 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3987
3988         * string/endian.h: Add !__ASSEMBLER__ condition for including
3989         conversion interfaces.
3990
3991 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
3992
3993         [BZ #14241]
3994         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
3995         of ABS(x) in calculating zero to negative powers other than odd
3996         integers.
3997         * math/libm-test.inc (pow_test): Add more tests.
3998
3999 2012-06-15  Andreas Jaeger  <aj@suse.de>
4000
4001         * manual/contrib.texi (Contributors): Update entry of Liubov
4002         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4003         Machado Filho.
4004
4005 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4006
4007         * string/string.h: Add __wur to GNU version of strerror_r.
4008
4009 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4010
4011         [BZ #14229]
4012         * string/Makefile (tests): Add tst-strtok_r.
4013         * string/tst-strtok_r.c: New file.
4014         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4015         RAX_LP/RDX_LP on SAVE_PTR.
4016
4017 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4018
4019         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4020
4021 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4022
4023         * libm_test.inc (csqrt_test): Allow more spurious underflow
4024         exceptions.
4025         (j0_test): Likewise.
4026         (j1_test): Likewise.
4027         (y0_test): Likewise.
4028         (y1_test): Likewise.
4029
4030 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4031
4032         * po/Makefile (libc.pot): Use UTF-8 charset.
4033
4034 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4035
4036         [BZ #14210]
4037         Suppress sign-conversion warning from FD_SET.
4038         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4039         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4040         not unsigned long int.
4041         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4042
4043 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4044
4045         [BZ #14050]
4046         [BZ #14117]
4047         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4048         __extern_always_inline instead of __extern_inline.
4049         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4050         (__signbit): Likewise.
4051         (__signbitl): Support C++ namespace.
4052         (lrintf): New inline function.
4053         (lrint): Likewise.
4054         (llrintf): Likewise.
4055         (llrint): Likewise.
4056         (fmaxf): Likewise.
4057         (fmax): Likewise.
4058         (fminf): Likewise.
4059         (fmin): Likewise.
4060         (rint): Likewise.
4061         (rintf): Likewise.
4062         (ceil): Likewise.
4063         (ceilf): Likewise.
4064         (floor): Likewise.
4065         (floorf): Likewise.
4066         (nearbyint): Likewise.
4067         (nearbyintf): Likewise.
4068
4069 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4070
4071         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4072         non-default versions.
4073
4074 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4075
4076         [BZ #14218]
4077         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4078
4079 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4080
4081         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4082         (FE_UPWARD, FE_DOWNWARD): Don't define.
4083         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4084         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4085
4086         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4087         reading it.
4088         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4089         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4090
4091 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4092
4093         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4094         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4095         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4096         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4097
4098 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4099
4100         [BZ #14117]
4101         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4102         * sysdeps/i386/fpu/Implies: New file.
4103         * sysdeps/x86_64/fpu/Implies: Likewise.
4104         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4105         * sysdeps/x86/fpu/bits/fenv.h: This.
4106
4107         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4108         __SSE_MATH__.
4109
4110 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4111
4112         [BZ #14134]
4113         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4114         character 0xffff that matches the last element of the
4115         conversion table.
4116
4117 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4118
4119         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4120         fmodl commit.
4121
4122 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4123
4124         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4125         values higher than 25.6283.
4126
4127 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4128
4129         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4130         subnormal exponent extraction and add some __builtin_expect.
4131         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4132         Fix for subnormal mantissa calculation.
4133
4134 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4135
4136         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4137         cpu2 is -1 and errno is not ENOSYS.
4138
4139 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4140
4141         [BZ #14117]
4142         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4143         * sysdeps/x86/bits/string.h: This.
4144         * sysdeps/x86_64/bits/string.h: Removed.
4145
4146         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4147         if not compiling for x86-64, but compiling for >= i486.
4148
4149         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4150         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4151
4152         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4153         New macro from Linux kernel 3.4.0.
4154         (FP_XSTATE_MAGIC2): Likewise.
4155         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4156         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4157         (struct _fpx_sw_bytes): New struct.
4158         (struct _xsave_hdr): Likewise.
4159         (struct _ymmh_state): Likewise.
4160         (struct _xstate): Likewise.
4161
4162         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4163         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4164         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4165         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4166         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4167         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4168
4169         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4170         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4171         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4172         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4173         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4174         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4175
4176 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4177
4178         [BZ #13743]
4179         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4180         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4181         (sysdep_headers): Include sys/platform/ppc.h.
4182         * sysdeps/powerpc/test-gettimebase.c: Test for
4183         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4184         * manual/Makefile (appendices): Include platform.texi.
4185         * manual/contrib.texi (Contributors): Update @node pointers.
4186         * manual/maint.texi (Maintenance): Likewise.
4187         (Platform): New node.
4188         * manual/platform.texi: New file.  Document the new features.
4189
4190 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4191             Jakub Jelinek  <jakub@redhat.com>
4192
4193         [BZ #14188]
4194         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4195         where __builtin_expect is unavailable.
4196
4197 2012-06-03  David S. Miller  <davem@davemloft.net>
4198
4199         * stdlib/longlong.h: Updated from GCC.
4200
4201 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4202
4203         [BZ #14042]
4204         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4205         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4206         __mcount_internal.
4207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4208         (GLIBC_2.16): Likewise.
4209
4210 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4211
4212         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4213
4214 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4215
4216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4217         (default-abi): New variable.
4218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4219         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4220         variable.
4221         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4222         Likewise.
4223         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4224         Likewise.
4225         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4226         Likewise.
4227
4228         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4229         definition.  Document in comment.
4230
4231 2012-06-01  David S. Miller  <davem@davemloft.net>
4232
4233         * stdlib/longlong.h: Updated from GCC.
4234
4235 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4236
4237         [BZ #14117]
4238         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4239         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4240         sys/debugreg.h sys/io.h here.
4241         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4242         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4243         sys/io.h.
4244         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4245         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4246         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4247         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4248         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4249         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4250
4251         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4252         Define only if __x86_64__ is defined.
4253
4254 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4255
4256         [BZ #14048]
4257         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4258         Use int64_t for variable i.
4259         * math/libm-test.inc (fmod_test): Add more tests.
4260
4261         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4262         z computation is not scheduled after fetestexcept.
4263         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4264         Use math_force_eval instead of asm to ensure calculation scheduled
4265         before exception test.
4266         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4267         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4268
4269 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4270
4271         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4272         computation is not scheduled after fetestexcept.
4273
4274 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4275
4276         [BZ #14117]
4277         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4278         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4279
4280 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4281
4282         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4283         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4284
4285 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4286
4287         [BZ #14117]
4288         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4289         <bits/wordsize.h>.
4290         (__WCHAR_MIN): Support __WORDSIZE == 64.
4291         (__WCHAR_MAX): Likewise.
4292
4293         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4294         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4295
4296         [BZ #14183]
4297         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4298         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4299
4300         [BZ #14117]
4301         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4302         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4303
4304         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4305         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4306
4307         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4308         Defined to 1 if __x86_64__ isn't defined.
4309         (_STAT_VER_LINUX_OLD): New.
4310         (st_atime): Remove duplicate.
4311         (st_mtime): Likewise.
4312         (st_ctime): Likewise.
4313
4314 2012-05-31  David S. Miller  <davem@davemloft.net>
4315
4316         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4317         entries.
4318
4319 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4320
4321         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4322         gen-libm-test.pl.
4323
4324         [BZ #14132]
4325         * elf/dl-reloc.c: Include <_itoa.h>.
4326         (_dl_reloc_bad_type): Remove use of INTUSE.
4327         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4328         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4329         * stdio-common/psiginfo.c (psiginfo): Likewise.
4330         * stdio-common/psignal.c (psignal): Likewise.
4331         * string/strsignal.c (strsignal): Likewise.
4332         * include/signal.h (_sys_siglist): Declare hidden proto.
4333         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4334         INTVARDEF with libc_hidden_data_def.
4335         * stdio-common/itoa-udigits.c: Likewise.
4336         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4337         (_itoa_lower_digits_internal): Remove declaration.
4338         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4339         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4340         (_sys_sigabbrev_internal): Remove aliases.
4341         (_sys_siglist): Define hidden alias.
4342
4343 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4344
4345         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4346         bits/sysctl.h.
4347
4348 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4349
4350         [BZ #14117]
4351         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4352         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4353
4354         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4355         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4356         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4357         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4358         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4359         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4360
4361         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4362         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4363         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4364
4365         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4366         with __addr.
4367         (insw): Likewise.
4368         (insl): Likewise.
4369         (outsb): Likewise.
4370         (outsw): Likewise.
4371         (outsl): Likewise.
4372
4373         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4374         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4375         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4376
4377         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4378         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4379         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4380         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4381         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4382         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4383
4384         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4385         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4386
4387         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4388         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4389
4390         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4391         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4392         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4393
4394         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4395         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4396         to ...
4397         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4398
4399         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4400         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4401         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4402
4403         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4404         for x86-64.
4405         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4406
4407 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4408
4409         * math/math.h (M_El): Use two more decimal places.
4410         (M_LOG2El): Likewise.
4411         (M_LOG10El): Likewise.
4412         (M_LN2l): Likewise.
4413         (M_LN10l): Likewise.
4414         (M_PIl): Likewise.
4415         (M_PI_2l): Likewise.
4416         (M_PI_4l): Likewise.
4417         (M_1_PIl): Likewise.
4418         (M_2_PIl): Likewise.
4419         (M_2_SQRTPIl): Likewise.
4420         (M_SQRT2l): Likewise.
4421         (M_SQRT1_2l): Likewise.
4422
4423 2012-05-31  David S. Miller  <davem@davemloft.net>
4424
4425         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4426         values between float registers.
4427         * sysdeps/sparc/sparc64/memset.S: Likewise.
4428         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4429
4430 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4431
4432         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4433         -D_FORTIFY_SOURCE=1.
4434         (CPPFLAGS-tst-longjmp_chk.c): Define.
4435         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4436         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4437         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4438         CFLAGS-tst-wchar-h.c.
4439
4440 2012-05-31  Marek Polacek  <polacek@redhat.com>
4441
4442         [BZ #14132]
4443         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4444         __endmntent_internal): Remove declaration.
4445         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4446         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4447         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4448
4449 2012-05-30  David S. Miller  <davem@davemloft.net>
4450
4451         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4452         (___Q_simulate_exceptions): Use real FP ops rather than writing
4453         into the %fsr.
4454         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4455         Likewise.
4456
4457 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4458
4459         [BZ #14117]
4460         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4461         * sysdeps/x86/bits/xtitypes.h: This.
4462
4463         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4464         * sysdeps/x86/bits/wordsize.h: This.
4465
4466         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4467         * sysdeps/x86/bits/huge_vall.h: This.
4468
4469         * sysdeps/i386/bits/select.h: Removed.
4470         * sysdeps/x86_64/bits/select.h: Renamed to ...
4471         * sysdeps/x86/bits/select.h: This.
4472
4473         * sysdeps/i386/bits/setjmp.h: Removed.
4474         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4475         * sysdeps/x86/bits/setjmp.h: This.
4476
4477         * sysdeps/i386/bits/mathdef.h: Removed.
4478         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4479         * sysdeps/x86/bits/mathdef.h: This.
4480
4481 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4482
4483         [BZ #14132]
4484         * include/sys/socket.h (__connect_internal)
4485         (__libc_sa_len_internal): Remove declaration.
4486         (__connect, __libc_sa_len): Declare hidden_proto.
4487         (SA_LEN): Remove use of INTUSE.
4488         * socket/connect.c: Add libc_hidden_def.
4489         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4490         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4491         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4492         alias.
4493         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4494         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4495         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4496         of adding _internal alias.
4497
4498 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4499
4500         [BZ #14117]
4501         * sysdeps/i386/bits/link.h: Removed.
4502         * sysdeps/i386/bits/linkmap.h: Likewise.
4503         * sysdeps/x86_64/bits/link.h: Renamed to ...
4504         * sysdeps/x86/bits/link.h: This.
4505         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4506         * sysdeps/x86/bits/linkmap.h: This.
4507
4508         * sysdeps/i386/bits/endian.h: Removed.
4509         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4510         * sysdeps/x86/bits/endian.h: This.
4511
4512         * sysdeps/i386/bits/byteswap.h: Removed.
4513         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4514         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4515         * sysdeps/x86/bits/byteswap.h: This.
4516         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4517         * sysdeps/x86/bits/byteswap-16.h: This.
4518         * sysdeps/i386/Implies: Add x86.
4519         * sysdeps/x86_64/Implies: Likewise.
4520
4521 2012-05-30  David S. Miller  <davem@davemloft.net>
4522
4523         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4524         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4525         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4526         (FP_TRAPPING_EXCEPTIONS): Define.
4527         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4528         (FP_TRAPPING_EXCEPTIONS): Define.
4529         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4530         subnormals only when inexact has been signalled or underflow
4531         exceptions are enabled.
4532         (_FP_PACK_CANONICAL): Likewise.
4533
4534 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4535
4536         [BZ #14183]
4537         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4538         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4539
4540 2012-05-30  Richard Henderson  <rth@twiddle.net>
4541
4542         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4543         with #ifndef NOT_IN_libc.
4544
4545         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4546         marked to avoid plt entry.
4547
4548 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4549
4550         [BZ #14112]
4551         * Makeconfig (default-abi): New macro.
4552         (abi-includes): Likewise.
4553         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4554         $(abi-$(default-abi)-lib-soname) for soname if defined.
4555         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4556         abi-variants.
4557         * Makefile (installed-stubs): Likewise.
4558         * include/stubs-biarch.h: Removed.
4559         * scripts/lib-names.awk: Only handle one library at a time.
4560         * scripts/soversions.awk: Remove WORDSIZE support.
4561         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4562         entries.
4563         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4564         Removed.
4565         (syscall-list-default-condition): Likewise.
4566         (syscall-list-default-condition): Likewise.
4567         (syscall-list-includes): Likewise.
4568         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4569         syscall-list-* with abi-*.  Handle undefined abi-variants.
4570         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4571         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4572         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4573         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4574         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4575         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4576         Removed.
4577         (syscall-list-32-options): Likewise.
4578         (syscall-list-32-condition): Likewise.
4579         (syscall-list-64-options): Likewise.
4580         (syscall-list-64-condition): Likewise.
4581         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4582         macro.
4583         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4584         Renamed to ...
4585         (abi-*): This.
4586         (abi-64-ld-soname): New macro.
4587         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4588         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4589         Renamed to ...
4590         (abi-*): This.
4591         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4592         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4593
4594 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4595
4596         * sysdeps/unix/sysv/linux/kernel-features.h
4597         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4598         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4599         include <kernel-features.h>.
4600         [!__NR_ftruncate64]: Remove conditional code.
4601         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4602         [__NR_ftruncate64]: Make code unconditional.
4603         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4604         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4605         include <kernel-features.h>.
4606         [!__NR_ftruncate64]: Remove conditional code.
4607         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4608         [__NR_ftruncate64]: Make code unconditional.
4609         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4611         include <kernel-features.h>.
4612         [!__NR_ftruncate64]: Remove conditional code.
4613         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4614         [__NR_ftruncate64]: Make code unconditional.
4615         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4617         include <kernel-features.h>.
4618         [!__NR_ftruncate64]: Remove conditional code.
4619         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4620         [__NR_ftruncate64]: Make code unconditional.
4621         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4622
4623         * configure.in (libc_cv_fpie): Weaken to a compile test using
4624         LIBC_TRY_CC_OPTION.
4625         * configure: Regenerated.
4626
4627 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4628
4629         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4630         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4631         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4632         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4633         Refreshed.
4634         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4635         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4636         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4637         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4638         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4639         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4640         Refreshed.
4641
4642 2012-05-27  David S. Miller  <davem@davemloft.net>
4643
4644         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4645         (___Q_zero): New.
4646         (__Q_simulate_exceptions): Return void.  Change to simulate
4647         exceptions by writing into the %fsr.
4648         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4649         (__Qp_handle_exceptions): Likewise.
4650         (numbers): Delete.
4651         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4652         __Qp_handle_exceptions.
4653         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4654         __Qp_handle_exceptions.
4655         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4656         as unused and give dummy FP_RND_NEAREST initializer.
4657         (FP_INHIBIT_RESULTS): Define.
4658         (___Q_simulate_exceptions): Update declaration.
4659         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4660         formatting.
4661         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4662         as unused and give dummy FP_RND_NEAREST initializer.
4663         (__Qp_handle_exceptions): Update declaration.
4664         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4665         formatting.
4666
4667 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4668
4669         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4670         the temporary FPU control word.
4671         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4672         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4673         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4674         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4675         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4676         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4677         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4678         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4679         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4680         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4681         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4682
4683 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4684
4685         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4686         fields.
4687
4688 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4689
4690         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4691         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4692         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4693         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4694         Likewise.
4695         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4696         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4697         Likewise.
4698
4699 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4700
4701         * po/h.po: Update from translation team.
4702
4703 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4704
4705         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4706
4707         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4708         handling of denormals.
4709         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4710         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4711         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4712         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4713         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4714         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4715         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4716         Likewise.
4717
4718 2012-05-26  Marek Polacek  <polacek@redhat.com>
4719
4720         [BZ #14152]
4721         * math/libm-test.inc (fma_test): Don't always expect underflow
4722         exception.
4723
4724 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4725
4726         [BZ #12416]
4727         * elf/tst-execstack.c: Include stackinfo.h.
4728         (do_test): Adjust test case to ensure that pthread_getattr_np
4729         behaviour remains the same after marking stack executable.
4730
4731 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4732
4733         * sysdeps/unix/sysv/linux/kernel-features.h
4734         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4735         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4736         kernel-features.h.
4737         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4738         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4739         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4740         kernel-features.h.
4741         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4742         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4743
4744 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4745
4746         * configure.in: Define the default includes to being none.
4747         * configure: Regenerated.
4748
4749 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4750
4751         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4752         * sysdeps/x86_64/setjmp.S: Likewise.
4753         * sysdeps/i386/bsd-setjmp.S: Likewise.
4754         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4755         * sysdeps/i386/setjmp.S: Likewise.
4756         * sysdeps/i386/__longjmp.S: Likewise.
4757         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4758         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4759
4760         * include/stap-probe.h: New file.
4761         * configure.in: Handle --enable-systemtap.
4762         * configure: Regenerated.
4763         * config.h.in (USE_STAP_PROBE): New #undef.
4764         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4765         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4766         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4767
4768 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4769
4770         [BZ #13717]
4771         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4772         to 2.4.0 where earlier.
4773         * sysdeps/unix/sysv/linux/configure: Regenerated.
4774         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4775         <kernel-features.h>.
4776         [__ASSUME_32BITUIDS]: Make code unconditional.
4777         [!__ASSUME_32BITUIDS]: Remove conditional code.
4778         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4779         <kernel-features.h>.
4780         [__ASSUME_32BITUIDS]: Make code unconditional.
4781         [!__ASSUME_32BITUIDS]: Remove conditional code.
4782         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4783         [__ASSUME_32BITUIDS]: Make code unconditional.
4784         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4785         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4786         <kernel-features.h>.
4787         [__ASSUME_32BITUIDS]: Make code unconditional.
4788         [!__ASSUME_32BITUIDS]: Remove conditional code.
4789         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4790         <kernel-features.h>.
4791         [__ASSUME_32BITUIDS]: Make code unconditional.
4792         [!__ASSUME_32BITUIDS]: Remove conditional code.
4793         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4794         <kernel-features.h>.
4795         [__ASSUME_32BITUIDS]: Make code unconditional.
4796         [!__ASSUME_32BITUIDS]: Remove conditional code.
4797         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4798         <kernel-features.h>.
4799         [__ASSUME_32BITUIDS]: Make code unconditional.
4800         [!__ASSUME_32BITUIDS]: Remove conditional code.
4801         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4802         <kernel-features.h>.
4803         [__ASSUME_32BITUIDS]: Make code unconditional.
4804         [!__ASSUME_32BITUIDS]: Remove conditional code.
4805         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4806         <kernel-features.h>.
4807         [__ASSUME_32BITUIDS]: Make code unconditional.
4808         [!__ASSUME_32BITUIDS]: Remove conditional code.
4809         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4810         <kernel-features.h>.
4811         [__ASSUME_32BITUIDS]: Make code unconditional.
4812         [!__ASSUME_32BITUIDS]: Remove conditional code.
4813         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4814         <kernel-features.h>.
4815         [__ASSUME_32BITUIDS]: Make code unconditional.
4816         [!__ASSUME_32BITUIDS]: Remove conditional code.
4817         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4818         <kernel-features.h>.
4819         [__ASSUME_32BITUIDS]: Make code unconditional.
4820         [!__ASSUME_32BITUIDS]: Remove conditional code.
4821         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4822         <kernel-features.h>.
4823         [__ASSUME_32BITUIDS]: Make code unconditional.
4824         [!__ASSUME_32BITUIDS]: Remove conditional code.
4825         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4826         <kernel-features.h>.
4827         [__NR_setresgid] (__setresgid): Do not declare.
4828         [__ASSUME_32BITUIDS]: Make code unconditional.
4829         [!__ASSUME_32BITUIDS]: Remove conditional code.
4830         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4831         <kernel-features.h>.
4832         [__NR_setresuid] (__setresuid): Do not declare.
4833         [__ASSUME_32BITUIDS]: Make code unconditional.
4834         [!__ASSUME_32BITUIDS]: Remove conditional code.
4835         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4836         <kernel-features.h>.
4837         [__ASSUME_32BITUIDS]: Make code unconditional.
4838         [!__ASSUME_32BITUIDS]: Remove conditional code.
4839         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4840         <kernel-features.h>.
4841         [__ASSUME_32BITUIDS]: Make code unconditional.
4842         [!__ASSUME_32BITUIDS]: Remove conditional code.
4843         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4844         <kernel-features.h>.
4845         [__ASSUME_32BITUIDS]: Make code unconditional.
4846         [!__ASSUME_32BITUIDS]: Remove conditional code.
4847         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4848         <kernel-features.h>.
4849         [__ASSUME_32BITUIDS]: Make code unconditional.
4850         [!__ASSUME_32BITUIDS]: Remove conditional code.
4851         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4852         <kernel-features.h>.
4853         [__ASSUME_32BITUIDS]: Make code unconditional.
4854         [!__ASSUME_32BITUIDS]: Remove conditional code.
4855         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4856         <kernel-features.h>.
4857         [__ASSUME_32BITUIDS]: Make code unconditional.
4858         [!__ASSUME_32BITUIDS]: Remove conditional code.
4859         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4860         <kernel-features.h>.
4861         [__ASSUME_32BITUIDS]: Make code unconditional.
4862         [!__ASSUME_32BITUIDS]: Remove conditional code.
4863         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4864         <kernel-features.h>.
4865         [__ASSUME_32BITUIDS]: Make code unconditional.
4866         [!__ASSUME_32BITUIDS]: Remove conditional code.
4867         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4868         <kernel-features.h>.
4869         [__ASSUME_32BITUIDS]: Make code unconditional.
4870         [!__ASSUME_32BITUIDS]: Remove conditional code.
4871         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4872         <kernel-features.h>.
4873         [__ASSUME_32BITUIDS]: Make code unconditional.
4874         [!__ASSUME_32BITUIDS]: Remove conditional code.
4875         * sysdeps/unix/sysv/linux/kernel-features.h
4876         (__ASSUME_SETRESUID_SYSCALL): Remove.
4877         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4878         (__ASSUME_32BITUIDS): Likewise.
4879         (__ASSUME_LDT_WORKS): Likewise.
4880         (__ASSUME_O_DIRECTORY): Likewise.
4881         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4882         architecture but not kernel version.
4883         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4884         (__ASSUME_MMAP2_SYSCALL): Likewise.
4885         (__ASSUME_STAT64_SYSCALL): Likewise.
4886         (__ASSUME_IPC64): Likewise.
4887         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4888         <kernel-features.h>.
4889         [__ASSUME_32BITUIDS]: Make code unconditional.
4890         [!__ASSUME_32BITUIDS]: Remove conditional code.
4891         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4892         <kernel-features.h>.
4893         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4894         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4895         132096]: Remove conditional code.
4896         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4897         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4898         <kernel-features.h>.
4899         [__ASSUME_32BITUIDS]: Make code unconditional.
4900         [!__ASSUME_32BITUIDS]: Remove conditional code.
4901         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4902         <kernel-features.h>.
4903         [__ASSUME_32BITUIDS]: Make code unconditional.
4904         [!__ASSUME_32BITUIDS]: Remove conditional code.
4905         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4906         <kernel-features.h>.
4907         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4908         unconditional.
4909         (__setresgid): Do not declare.
4910         [__ASSUME_32BITUIDS]: Make code unconditional.
4911         [!__ASSUME_32BITUIDS]: Remove conditional code.
4912         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4913         <kernel-features.h>.
4914         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4915         unconditional.
4916         (__setresuid): Do not declare.
4917         [__ASSUME_32BITUIDS]: Make code unconditional.
4918         [!__ASSUME_32BITUIDS]: Remove conditional code.
4919         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4920         <kernel-features.h>.
4921         [__ASSUME_32BITUIDS]: Make code unconditional.
4922         [!__ASSUME_32BITUIDS]: Remove conditional code.
4923         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4924         <kernel-features.h>.
4925         [__ASSUME_32BITUIDS]: Make code unconditional.
4926         [!__ASSUME_32BITUIDS]: Remove conditional code.
4927
4928 2012-05-25  Richard Henderson  <rth@twiddle.net>
4929
4930         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4931         dl_hwcap to ifunc resolver.
4932         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4933         elf_ifunc_invoke.
4934         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4935         dl_hwcap to ifunc resolver.
4936         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4937
4938 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4939
4940         [BZ #14153]
4941         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4942         for |x| <= 2**-26, not 2**-57.
4943         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4944         exception.
4945
4946 2012-05-24  Jeff Law  <law@redhat.com>
4947
4948         * stdio-common/Makefile (tests): Add bug25.
4949         * stdio-common/bug25.c: New test.
4950
4951 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4952
4953         [BZ #13576]
4954         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4955         multiple of MALLOC_ALIGNMENT in size.
4956         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4957
4958 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4959
4960         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4961         Require >= 256.
4962         (FILENAME_MAX): Use macro-int-constant.
4963         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4964         (_IOFBF): Use macro-int-constant.
4965         (_IOLBF): Likewise.
4966         (_IONBF): Likewise.
4967         (SEEK_CUR): Likewise.
4968         (SEEK_END): Likewise.
4969         (SEEK_SET): Likewise.
4970         (TMP_MAX): Likewise.
4971         (EOF): Use macro-int-constant.  Require < 0.
4972         (NULL): Use macro-constant.  Require == 0.
4973         (stdin): Require type to be FILE *.
4974         (stdout): Likewise.
4975         (stderr): Likewise.
4976         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4977         macro-int-constant.
4978         (EXIT_SUCCESS): Likewise.
4979         (NULL): Use macro-constant.  Require == 0.
4980         (RAND_MAX): Use macro-int-constant.
4981         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4982         [C99-based standards] (strtof): Require function.
4983         [C99-based standards] (strtold): Likewise.
4984         [C99-based standards] (strtoll): Likewise.
4985         [C99-based standards] (strtoull): Likewise.
4986         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4987         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4988         [ISO || ISO99 || ISO11] (math.h): Likewise.
4989         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
4990         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4991         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4992
4993 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
4994
4995         [BZ #14132]
4996         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
4997         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
4998         * intl/dgettext.c (DCGETTEXT): Likewise.
4999         * intl/gettext.c (DCGETTEXT): Likewise.
5000         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5001         * posix/regex_internal.h (gettext): Likewise.
5002         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5003         Remove declaration.
5004         * include/argz.h (__argz_count_internal)
5005         (__argz_stringify_internal): Remove declaration.
5006         (__argz_count, __argz_stringify): Declare hidden proto.
5007         * intl/dcgettext.c: Remove use of INTDEF.
5008         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5009         * string/argz-stringify.c: Likewise.
5010         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5011         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5012         Declare hidden proto.
5013         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5014         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5015         Declare hidden proto.
5016         * include/stdio.h (__asprintf_internal): Don't declare.
5017         (__asprintf): Don't define as macro.  Declare hidden proto.
5018         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5019         (__fsetlocking): Declare hidden proto.
5020         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5021         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5022         hidden proto.
5023         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5024         (_IO_setlinebuf): Remove use of INTUSE.
5025         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5026         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5027         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5028         Remove declaration.
5029         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5030         (_IO_do_flush): Remove use of INTUSE.
5031         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5032         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5033         (_IO_adjust_column, _IO_least_wmarker)
5034         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5035         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5036         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5037         (_IO_default_doallocate, _IO_wdefault_doallocate)
5038         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5039         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5040         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5041         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5042         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5043         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5044         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5045         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5046         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5047         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5048         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5049         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5050         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5051         proto.
5052         (_IO_flush_all_internal, _IO_adjust_column_internal)
5053         (_IO_default_uflow_internal, _IO_default_finish_internal)
5054         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5055         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5056         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5057         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5058         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5059         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5060         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5061         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5062         (_IO_file_close_internal, _IO_file_close_it_internal)
5063         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5064         (_IO_file_init_internal, _IO_file_attach_internal)
5065         (_IO_file_fopen_internal, _IO_file_read_internal)
5066         (_IO_file_sync_internal, _IO_file_seek_internal)
5067         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5068         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5069         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5070         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5071         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5072         (_IO_list_all_internal, _IO_link_in_internal)
5073         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5074         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5075         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5076         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5077         (_IO_do_write_internal, _IO_padn_internal)
5078         (_IO_getline_info_internal, _IO_getline_internal)
5079         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5080         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5081         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5082         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5083         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5084         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5085         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5086         with libc_hidden_ver, remove use of INTUSE.
5087         * libio/genops.c: Likewise.
5088         * libio/freopen.c: Likewise.
5089         * libio/freopen64.c: Likewise.
5090         * libio/iofclose.c: Likewise.
5091         * libio/iofdopen.c: Likewise.
5092         * libio/iofflush.c: Likewise.
5093         * libio/iofflush_u.c: Likewise.
5094         * libio/iofgets.c: Likewise.
5095         * libio/iofgets_u.c: Likewise.
5096         * libio/iofopen.c: Likewise.
5097         * libio/iofopncook.c: Likewise.
5098         * libio/iofread.c: Likewise.
5099         * libio/iofread_u.c: Likewise.
5100         * libio/ioftell.c: Likewise.
5101         * libio/iofwrite.c: Likewise.
5102         * libio/iogetline.c: Likewise.
5103         * libio/iogets.c: Likewise.
5104         * libio/iogetwline.c: Likewise.
5105         * libio/iopadn.c: Likewise.
5106         * libio/iopopen.c: Likewise.
5107         * libio/ioseekoff.c: Likewise.
5108         * libio/ioseekpos.c: Likewise.
5109         * libio/iosetbuffer.c: Likewise.
5110         * libio/iosetvbuf.c: Likewise.
5111         * libio/ioungetc.c: Likewise.
5112         * libio/ioungetwc.c: Likewise.
5113         * libio/iovdprintf.c: Likewise.
5114         * libio/iovsprintf.c: Likewise.
5115         * libio/iovsscanf.c: Likewise.
5116         * libio/memstream.c: Likewise.
5117         * libio/obprintf.c: Likewise.
5118         * libio/oldfileops.c: Likewise.
5119         * libio/oldiofclose.c: Likewise.
5120         * libio/oldiofdopen.c: Likewise.
5121         * libio/oldiofopen.c: Likewise.
5122         * libio/oldiopopen.c: Likewise.
5123         * libio/oldstdfiles.c: Likewise.
5124         * libio/putc.c: Likewise.
5125         * libio/setbuf.c: Likewise.
5126         * libio/setlinebuf.c: Likewise.
5127         * libio/stdfiles.c: Likewise.
5128         * libio/strops.c: Likewise.
5129         * libio/vasprintf.c: Likewise.
5130         * libio/vscanf.c: Likewise.
5131         * libio/vsnprintf.c: Likewise.
5132         * libio/vswprintf.c: Likewise.
5133         * libio/wfiledoalloc.c: Likewise.
5134         * libio/wfileops.c: Likewise.
5135         * libio/wgenops.c: Likewise.
5136         * libio/wmemstream.c: Likewise.
5137         * libio/wstrops.c: Likewise.
5138         * libio/__fpurge.c: Likewise.
5139         * libio/__fsetlocking.c: Likewise.
5140         * assert/assert.c: Likewise.
5141         * debug/fgets_chk.c: Likewise.
5142         * debug/fgets_u_chk.c: Likewise.
5143         * debug/fread_chk.c: Likewise.
5144         * debug/fread_u_chk.c: Likewise.
5145         * debug/gets_chk.c: Likewise.
5146         * debug/obprintf_chk.c: Likewise.
5147         * debug/vasprintf_chk.c: Likewise.
5148         * debug/vdprintf_chk.c: Likewise.
5149         * debug/vsnprintf_chk.c: Likewise.
5150         * debug/vsprintf_chk.c: Likewise.
5151         * malloc/mtrace.c: Likewise.
5152         * misc/error.c: Likewise.
5153         * misc/syslog.c: Likewise.
5154         * stdio-common/asprintf.c: Likewise.
5155         * stdio-common/fxprintf.c: Likewise.
5156         * stdio-common/getw.c: Likewise.
5157         * stdio-common/isoc99_fscanf.c: Likewise.
5158         * stdio-common/isoc99_scanf.c: Likewise.
5159         * stdio-common/isoc99_vfscanf.c: Likewise.
5160         * stdio-common/isoc99_vscanf.c: Likewise.
5161         * stdio-common/isoc99_vsscanf.c: Likewise.
5162         * stdio-common/printf-prs.c: Likewise.
5163         * stdio-common/printf_fp.c: Likewise.
5164         * stdio-common/printf_fphex.c: Likewise.
5165         * stdio-common/printf_size.c: Likewise.
5166         * stdio-common/putw.c: Likewise.
5167         * stdio-common/scanf.c: Likewise.
5168         * stdio-common/sprintf.c: Likewise.
5169         * stdio-common/tmpfile.c: Likewise.
5170         * stdio-common/vfprintf.c: Likewise.
5171         * stdio-common/vfscanf.c: Likewise.
5172         * stdlib/strfmon_l.c: Likewise.
5173         * sunrpc/openchild.c: Likewise.
5174         * sunrpc/xdr_stdio.c: Likewise.
5175         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5176         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5177
5178 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5179
5180         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5181
5182         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5183         in the third column, to generate for the shared library an IFUNC
5184         that uses _dl_vdso_vsym.
5185         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5186         * Makeconfig (object-suffixes-noshared): New variable.
5187
5188         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5189         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5190         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5191         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5192
5193         [BZ #14132]
5194         * include/sys/time.h (__gettimeofday): Remove macro.
5195         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5196         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5197         Remove INTDEF.
5198         (__gettimeofday): Add libc_hidden_def.
5199         (gettimeofday): Add libc_hidden_weak.
5200         * sysdeps/mach/gettimeofday.c: Likewise.
5201         * sysdeps/posix/gettimeofday.c: Likewise.
5202         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5203         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5204         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5205         (__gettimeofday_internal): Remove strong_alias.
5206         (__gettimeofday): Add libc_hidden_def.
5207         (gettimeofday): Add libc_hidden_weak.
5208         * sysdeps/unix/syscalls.list (gettimeofday):
5209         Remove __gettimeofday_internal alias.
5210
5211 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5212             H.J. Lu  <hongjiu.lu@intel.com>
5213
5214         [BZ #12495]
5215         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5216         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5217         (largebin_index_32_big): New.
5218         (largebin_index): Use it for 16-byte alignment.
5219         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5220         correction with front_misalign.
5221
5222 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5223
5224         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5225         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5226         Likewise.
5227         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5228         Likewise.
5229         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5230         Likewise.
5231         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5232         Likewise.
5233         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5234         Likewise.
5235         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5236         Likewise.
5237         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5238         Likewise.
5239         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5240         Likewise.
5241         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5242         Likewise.
5243         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5244         Likewise.
5245         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5246         Likewise.
5247         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5248         Likewise.
5249
5250         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5251         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5252
5253 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5254
5255         [BZ #10846]
5256         [BZ #14036]
5257         * math/libm-test.inc (exp_test): Add test from bug 14036.
5258         (pow_test): Add test from bug 10846.
5259
5260         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5261         and other flags.
5262         (special_function): Do not include flags in test name.
5263         (parse_args): Likewise.
5264         * sysdeps/i386/fpu/libm-test-ulps: Update.
5265         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5266         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5267         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5269
5270         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5271         exceptions.
5272         * math/libm-test.inc ("Philosophy"): Update comment about
5273         exception testing.
5274         (UNDERFLOW_EXCEPTION): New macro.
5275         (UNDERFLOW_EXCEPTION_OK): Likewise.
5276         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5277         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5278         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5279         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5280         (INVALID_EXCEPTION_OK): Update value.
5281         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5282         (OVERFLOW_EXCEPTION_OK): Likewise.
5283         (IGNORE_ZERO_INF_SIGN): Likewise.
5284         (test_exceptions): Handle underflow exceptions.
5285         (acos_test): Update for underflow exception expectations.
5286         (cexp_test): Likewise.
5287         (clog_test): Likewise.
5288         (clog10_test): Likewise.
5289         (csqrt_test): Likewise.
5290         (ctan_test): Likewise.
5291         (ctanh_test): Likewise.
5292         (exp_test): Likewise.
5293         (exp10_test): Likewise.
5294         (exp2_test): Likewise.
5295         (expm1_test): Likewise.
5296         (fma_test): Likewise.
5297         (j0_test): Likewise.
5298         (jn_test): Likewise.
5299         (nexttoward_test): Likewise.
5300         (pow_test): Likewise.
5301         (scalbn_test): Likewise.
5302         (scalbln_test): Likewise.
5303         (tan_test): Likewise.
5304         (y1_test): Likewise.
5305         * sysdeps/i386/fpu/libm-test-ulps: Update.
5306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5307
5308 2012-05-23  David S. Miller  <davem@davemloft.net>
5309
5310         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5311         (__libc_sigaction): Remove unused local variables.
5312
5313 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5314
5315         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5316
5317 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5318
5319         mktime: avoid signed integer overflow
5320         * time/mktime.c (__mktime_internal): Do not mishandle the case
5321         where diff == INT_MIN.
5322
5323         mktime: simplify computation of average
5324         * time/mktime.c (ranged_convert): Use new time_t_avg function
5325         instead of rolling our own (probably-slower) code.
5326
5327         mktime: do not assume signed right shift propagates sign bit
5328         * time/mktime.c (isdst_differ): New static function.
5329         (__mktime_internal): No need to normalize tm_isdst now.
5330         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5331         tm_isdst values.
5332
5333         mktime: merge another wrapv change from gnulib
5334         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5335         from some compilers.
5336
5337         mktime: remove incorrect attempt at unusual arithmetics
5338         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5339         The code didn't really work on such machines anyway.
5340         (TYPE_MINIMUM): Assume two's complement.
5341         (twos_complement_arithmetic): Verify that long_int and time_t
5342         are two's complement (or unsigned, in the latter case).
5343
5344         mktime: check signed shifts on long_int and time_t, too
5345         * time/mktime.c (SHR): Check that shifts work as desired
5346         on the types long_int and time_t too, as SHR is used on
5347         such types.
5348
5349         mktime: do not assume 'long' is wide enough
5350         * time/mktime.c (verify): Move decl up.
5351         (long_int): New type.
5352         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5353         to remove assumption in the code that 'long' is wide enough to
5354         store year values.  This assumption is not true on x32 and on
5355         some non-glibc platforms.
5356
5357         mktime: merge wrapv change from gnulib
5358         * time/mktime.c (WRAPV): New macro.
5359         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5360         (guess_time_tm, __mktime_internal): Do not assume that signed
5361         integer overflow wraps around; modern compilers generate code
5362         where this assumption is no longer valid.
5363
5364 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5365
5366         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5367         Replace "jmp L(pseudo_end)" with "ret".
5368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5369         Likewise.
5370
5371 2012-05-23  Andreas Jaeger  <aj@suse.de>
5372
5373         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5374         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5375
5376 2012-05-23  Andreas Jaeger  <aj@suse.de>
5377             Maximilian Attems  <max@stro.at>
5378
5379         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5380         New macros.
5381
5382 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5383
5384         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5385         code so that pseudo_end is just ret and the stack pointer is
5386         correct also for static library in error case.
5387
5388 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5389
5390         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5391         move to syscalls.list.
5392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5396
5397         * manual/install.texi (Running make install): Do not mention Linux
5398         kernel version for which pt_chown is not needed.
5399         (Linux): Do not mention problems with nscd with 2.0 kernels.
5400         * INSTALL: Regenerated.
5401
5402 2012-05-23  Andreas Jaeger  <aj@suse.de>
5403
5404         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5405         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5406         macro.
5407         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5408         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5409         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5410         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5411         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5412         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5413         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5414         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5415         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5416         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5417         * sysdeps/unix/sysv/linux/bits/in.h
5418         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5419
5420 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5421
5422         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5423         (PREPARE_VERSION): Just use assert instead, it will be elided
5424         under [NDEBUG] anyway.
5425
5426 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5427
5428         * sysdeps/unix/sysv/linux/Makefile: Include
5429         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5430         (sysdep_routines): Remove sysctl.
5431         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5432         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5433         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5434         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5435         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5436
5437 2012-05-22  Andreas Jaeger  <aj@suse.de>
5438
5439         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5440         that pseudo_end is just ret and the stack pointer is correct also
5441         for static library in error case.
5442
5443 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5444
5445         [BZ #14122]
5446         * nss/nsswitch.c (defconfig_entries): New variable.
5447         (__nss_database_lookup): Don't leak defconfig entries.
5448         (nss_parse_service_list): Don't leak on error paths.
5449         (free_database_entries): New function.
5450         (free_defconfig): New function.
5451         (free_mem): Move common code to free_database_entries.
5452
5453 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5454
5455         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5456         Add arch_prctl.
5457         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5458
5459         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5460         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5461         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5462         New macro.
5463         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5464         (INTERNAL_SYSCALL_TYPES): Likewise.
5465         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5466         (LOAD_REGS_TYPES_[1-6]): Likewise.
5467         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5468         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5469
5470 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5471
5472         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5473         copysignl for GLIBC_2_0.
5474         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5475         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5476         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5477         logbl for GLIBC_2_0.
5478         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5479         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5480
5481 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5482
5483         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5484         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5485
5486         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5487         Use "neg %eax".
5488
5489         * time/mktime.c: Update copyright years.
5490
5491 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5492
5493         mktime: merge comment-quoting-style change from gnulib
5494         * time/mktime.c: Quote 'like this' in comments.
5495         The GNU coding standards suggest that we no longer quote `like this',
5496         as "`" and "'" are typically rendered asymmetrically nowadays.
5497         The typical gnulib style is to quote 'like this' when quoting
5498         code, and "like this" when quoting English.
5499
5500         * time/mktime.c (compile-command): Add "-I.".
5501
5502         mktime: merge mktime-internal.h change from gnulib
5503         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5504
5505         mktime: merge time_r change from gnulib
5506         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5507
5508         mktime: merge DEBUG change from gnulib
5509         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5510         case system <time.h> has a #define.
5511
5512         mktime: merge <sys/types.h> change from gnulib
5513         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5514         since <time.t> is now guaranteed to define time_t.
5515
5516         mktime: merge HAVE_CONFIG_H change from gnulib
5517         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5518
5519 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5520
5521         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5522         Use "neg %eax".
5523
5524         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5525         __rlim_t cast.
5526         (struct rusage): Use anonymous union to pad each field to
5527         __syscall_slong_t.
5528
5529 2012-05-21  David S. Miller  <davem@davemloft.net>
5530
5531         * Makefules (o-iterator): Remove .s cases.
5532         (compile-command.s): Delete.
5533         (COMPILE.s): Delete.
5534         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5535
5536 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5537
5538         * configure.in (libc_cv_predef_stack_protector): Only consider
5539         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5540         * configure: Regenerated.
5541
5542 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5543
5544         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5545         New macro.  Use R*LP on int and pointer.
5546         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5547         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5548         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5549         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5550
5551         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5552         [__WORDSIZE_TIME64_COMPAT32] instead of
5553         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5554         (struct utmp): Likewise.
5555         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5556         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5557         Renamed to ...
5558         (__WORDSIZE_TIME64_COMPAT32): This.
5559         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5560         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5561         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5562         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5563         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5564         (__WORDSIZE_TIME64_COMPAT32): New macro.
5565
5566 2012-05-21  Andreas Jaeger  <aj@suse.de>
5567
5568         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5569         only if [SHARED]. Add prototype for __wcschr_ia32.
5570
5571 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5572
5573         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5574         of %rbp unmolested in the jmp_buf while mangling the low bits.
5575         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5576         unmolested high bits of %rbp while demangling the low bits.
5577         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5578
5579 2012-05-21  Andreas Jaeger  <aj@suse.de>
5580
5581         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5582         * sunrpc/svc_simple.c: Use it for registerrpc.
5583         * sunrpc/xcrypt.c: Use it for passwd2des.
5584
5585         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5586
5587 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5590         Don't define if [__SYSCALL_WORDSIZE != 32].
5591         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5592         New macro.
5593
5594 2012-05-21  Bruno Haible  <bruno@clisp.org>
5595             Andreas Jaeger  <aj@suse.de>
5596
5597         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5598         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5599         inptr and inend for must_buffer_ch.
5600         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5601         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5602         * stdio-common/Makefile (tests): Remove bug15.
5603         (bug15-ENV): Remove macro.
5604         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5605         anymore.
5606
5607 2012-05-19  Andreas Jaeger  <aj@suse.de>
5608             Roland McGrath  <roland@hack.frob.com>
5609
5610         * manual/contrib.texi: Completely rewritten. It contains now an
5611         alphabetical list of contributors and their contributions.
5612
5613 2012-05-21  Richard Henderson  <rth@twiddle.net>
5614
5615         * misc/getauxval.c (__getauxval): Use unsigned long int.
5616         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5617         (getauxval): Use unsigned long int.
5618
5619 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5620
5621         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5622
5623 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5624
5625         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5626         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5627         __alignof__ (long double).
5628
5629 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5630
5631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5632
5633 2012-05-20  Richard Henderson  <rth@twiddle.net>
5634
5635         * misc/getauxval.c: New file.
5636         * misc/sys/auxv.h: New file.
5637         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5638         (routines): Add getauxval.
5639         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5640         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5641         * elf/dl-sysdep.c (_dl_auxv): Remove.
5642         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5643         * elf/dl-support.c (_dl_auxv): New variable.
5644         (_dl_aux_init): Initialize it.
5645         * manual/startup.texi (Auxiliary Vector): New node.
5646         * sysdeps/generic/bits/hwcap.h: New file.
5647         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5648         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5649         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5650         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5651         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5652         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5654         Update.
5655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5657         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5658         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5659         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5660         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5661         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5662         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5663
5664 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5665
5666         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5667
5668 2012-05-19  David S. Miller  <davem@davemloft.net>
5669
5670         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5671
5672 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5673
5674         [BZ #14123]
5675         * math/s_ccosh.c: Include <float.h>
5676         (__ccosh): Avoid internal overflow calculating sinh and cosh
5677         values before multiplying by sin and cos values.
5678         * math/s_ccoshf.c: Likewise.
5679         * math/s_ccoshl.c: Likewise.
5680         * math/s_csin.c: Likewise.
5681         * math/s_csinf.c: Likewise.
5682         * math/s_csinl.c: Likewise.
5683         * math/s_csinh.c: Likewise.
5684         * math/s_csinhf.c: Likewise.
5685         * math/s_csinhl.c: Likewise.
5686         * math/libm-test.inc (ccos_test): Add more tests.
5687         (ccosh_test): Likewise.
5688         (csin_test): Likewise.
5689         (csinh_test): Likewise.
5690         * sysdeps/i386/fpu/libm-test-ulps: Update.
5691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5692
5693 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5694
5695         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5696         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5697
5698         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5699
5700 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5701
5702         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5703         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5704         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5705         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5706         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5707         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5708         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5709         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5710         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5711         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5712         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5713         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5714         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5715         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5716         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5717         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5718         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5719         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5720         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5721         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5722         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5723         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5724         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5725         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5726         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5727         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5728         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5729         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5730         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5731         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5732         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5733
5734 2012-05-18  Andreas Jaeger  <aj@suse.de>
5735
5736         * csu/.gitignore: Delete.
5737
5738 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5739
5740         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5741         (timex): Use __syscall_slong_t.
5742
5743 2012-05-18  Andreas Jaeger  <aj@suse.de>
5744             Carlos O'Donell  <carlos_odonell@mentor.com>
5745
5746         * manual/install.texi (Configuring and compiling): Update
5747         description about files modified in the source directory.
5748         * INSTALL: Regenerated.
5749
5750 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5751
5752         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5753         value.  Use "or" to set return value to -1.
5754         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5755         negate return value.
5756
5757 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5758
5759         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5760         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5761         failure if the compiler has Graphite support disabled.
5762         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5763         Likewise.
5764         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5765         CFLAGS-memmove.c): Likewise.
5766         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5767         Likewise.
5768
5769 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5770
5771         * sysdeps/x86_64/x32/_itoa.h: New file.
5772
5773         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5774         getdents system call only if kernel and user dirents have the
5775         same d_ino and d_off.
5776
5777         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5778         LLONG_MAX != LONG_MAX.
5779         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5780         (_fitoa_word): Likewise.
5781
5782         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5783         years.
5784         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5785         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5786         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5787
5788         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5789         include <bits/wordsize.h>.  Check __x86_64__ instead of
5790         __WORDSIZE.
5791         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5792         if __x86_64__ is defined.  Use anonymous union on fpstate.
5793
5794         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5795         anonymous union.
5796
5797 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5798
5799         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5800         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5801         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5802         Refer to _rtld_local_ro instead of _rtld_global_ro.
5803         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5804         Likewise.
5805         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5806         Likewise.
5807         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5808         Likewise.
5809         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5810         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5811         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5812
5813         * sysdeps/powerpc/powerpc32/dl-machine.c
5814         (__elf_machine_runtime_setup) [PROF]: Don't reference
5815         _dl_prof_resolve.
5816
5817 2012-05-18  Andreas Jaeger  <aj@suse.de>
5818
5819         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5820         function only available for GCCs before 3.4 since GCC 3.4
5821         introduced a builtin.
5822         (lrint): Likewise.
5823         (llrintf): Likewise.
5824         (llrint): Likewise.
5825         (fmaxf): Likewise.
5826         (fmax): Likewise.
5827         (fminf): Likewise.
5828         (fmin): Likewise.
5829         (rint): Likewise.
5830         (rintf): Likewise.
5831         (nearbyint): Likewise.
5832         (nearbyintf): Likewise.
5833         (ceil): Likewise.
5834         (ceilf): Likewise.
5835         (floor): Likewise.
5836         (floorf): Likewise.
5837
5838 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5839
5840         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5841         on both fields and cast pointer to __syscall_ulong_t.
5842
5843         * bits/types.h (__fsword_t): New type.
5844         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5845         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5846         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5847         (__FSWORD_T_TYPE): Likewise.
5848         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5849         (__FSWORD_T_TYPE): Likewise.
5850         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5851         (__FSWORD_T_TYPE): Likewise.
5852         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5853         (__FSWORD_T_TYPE): Likewise.
5854         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5855         __SWORD_TYPE with __fsword_t.
5856         (statfs64): Likewise.
5857
5858 2012-05-17  David S. Miller  <davem@davemloft.net>
5859
5860         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5861
5862 2012-05-17  Andreas Jaeger  <aj@suse.de>
5863
5864         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5865         warning.
5866
5867 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5868
5869         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5870
5871 2012-05-17  Andreas Jaeger  <aj@suse.de>
5872
5873         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5874         when it is used.
5875
5876 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5877
5878         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5879
5880 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5881
5882         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5883         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5884
5885 2012-05-17  Andreas Jaeger  <aj@suse.de>
5886             Carlos O'Donell  <carlos_odonell@mentor.com>
5887
5888         [BZ #14059]
5889         * sysdeps/x86_64/multiarch/init-arch.h
5890         (bit_YMM_Usable): Rename to...
5891         (bit_AVX_Usable): ... this.
5892         (bit_FMA4_Usable): New macro.
5893         (bit_XMM_state): New macro.
5894         (bit_YMM_state): New macro.
5895         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5896         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5897         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5898         (CPUID_OSXSAVE): New macro.
5899         (CPUID_AVX): New macro.
5900         (CPUID_FMA4): New macro.
5901         (index_YMM_Usable): Rename to...
5902         (index_AVX_Usable): ... this.
5903         (HAS_AVX): Use HAS_ARCH_FEATURE.
5904         (HAS_FMA4): Likewise.
5905         (HAS_YMM_USABLE): Remove.
5906         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5907         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5908         are present.
5909         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5910         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5911         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5912         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5913         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5914
5915 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5916
5917         * math/libm-test.c: Support platforms without multiple rounding modes.
5918         * math/bug-nextafter.c: Support platforms without FP exceptions.
5919         * math/bug-nexttoward.c: Likewise.
5920         * math/test-fenv.c: Likewise.
5921         * math/test-misc.c: Likewise.
5922         * stdlib/bug-getcontext.c: Likewise.
5923
5924 2012-05-17  Andreas Jaeger  <aj@suse.de>
5925
5926         * manual/examples/search.c (critter_cmp): Change signature to
5927         avoid warnings.
5928         * manual/string.texi (Collation Functions): Likewise.
5929
5930 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5931
5932         * bits/types.h: Fold copyright years.
5933         * bits/typesizes.h: Likewise.
5934         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5935         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5936         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5937         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5938         * time/time.h: Likewise.
5939
5940 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5941
5942         [BZ #208]
5943         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5944         in instead of returning them.  Return void.
5945         (__libc_mallinfo): Accumulate over all arenas.
5946         (__malloc_stats): Adjust for change in int_mallinfo interface.
5947
5948 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5949
5950         [BZ #10375]
5951         * configure.in (NM): Add AC_CHECK_TOOL for it.
5952         (libc_extra_cflags): New substituted variable.
5953         Check for -fstack-protector being used implicitly.
5954         * configure: Regenerated.
5955         * config.make.in (config-extra-cflags): New variable,
5956         gets @libc_extra_cflags@.
5957         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5958
5959         [BZ #10375]
5960         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5961         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5962         * configure: Regenerated.
5963         * config.make.in (CPPUNDEFS): New substituted variable.
5964         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5965         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5966         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5967
5968 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5969
5970         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5971         (mq_attr): Use __syscall_slong_t.
5972
5973 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5974
5975         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5976         Check __x86_64__ instead of __WORDSIZE.
5977         (_STAT_VER_LINUX): Likewise.
5978         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5979         __syscall_ulong_t and __syscall_slong_t.
5980         (stat64): Likewise.
5981
5982 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5983
5984         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5985
5986 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5987
5988         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5989
5990 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5991
5992         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
5993         __syscall_ulong_t.
5994
5995         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
5996         include <bits/wordsize.h>.  Check __x86_64__ instead of
5997         __WORDSIZE.
5998         (greg_t): Use "__extension__ long long int" if __x86_64__ is
5999         defined.
6000         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6001
6002         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6003         include <bits/wordsize.h>.  Check __x86_64__ instead of
6004         __WORDSIZE.
6005         (user_regs_struct): Use "__extension__ unsigned long long"
6006         instead of "unsigned long" if __x86_64__ is defined.
6007         (user): Likewise.  Pad after pointer field if __ILP32__ is
6008         defined.
6009
6010 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6011
6012         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6013         versions 5 to 9.
6014         * configure: Regenerated.
6015         * manual/install.texi (texinfo): Increase version requirement to
6016         4.5 or later.
6017         * INSTALL: Regenerated.
6018
6019         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6020
6021 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6022
6023         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6024
6025         * sysdeps/x86_64/x32/ffs.c: New file.
6026
6027         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6028         __syscall_ulong_t.
6029         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6030         defined.  Use __syscall_ulong_t.
6031         (shminfo): Use __syscall_ulong_t.
6032         (shm_info): Likewise.
6033
6034         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6035         __syscall_ulong_t.
6036
6037         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6038         <bits/wordsize.h>.
6039         (msgqnum_t): Use __syscall_ulong_t.
6040         (msglen_t): Likewise.
6041         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6042         __syscall_ulong_t.
6043
6044         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6045         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6046
6047         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6048
6049         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6050         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6051
6052         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6053         __syscall_slong_t.
6054
6055         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6056         include <bits/wordsize.h>.  Check __x86_64__ instead of
6057         __WORDSIZE.
6058
6059         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6060         "unsigned long long int" if __x86_64__ is defined.
6061         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6062
6063         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6064         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6065         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6066
6067         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6068         <stdint.h>.
6069         (GET_PC): Cast to uintptr_t first.
6070         (GET_FRAME): Likewise.
6071         (GET_STACK): Likewise.
6072
6073         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6074         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6075         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6076         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6077         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6078         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6079         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6080         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6081         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6082         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6083         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6084         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6085         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6086         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6087         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6088         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6089         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6090         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6091         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6092         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6093         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6094         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6095         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6096         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6097         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6098         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6099         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6100         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6101         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6102
6103 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6104
6105         * Makerules (+depfiles): Also collect depfiles from .oS in
6106         $(extra-objs).
6107         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6108         .oS, $(libnldbl-routines)).
6109
6110         * Makerules (native-compile-mkdep-flags): Define.
6111         * sunrpc/Makefile (extra-objs): Add $(addprefix
6112         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6113         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6114         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6115         calling $(make-target-directory).
6116
6117 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6118
6119         * bits/types.h (__snseconds_t): Removed.
6120         * time/time.h (struct timespec): Replace __snseconds_t with
6121         __syscall_slong_t.
6122         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6123         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6124         Likewise.
6125         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6126         (__SNSECONDS_T_TYPE): Likewise.
6127         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6128         (__SNSECONDS_T_TYPE): Likewise.
6129         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6130         (__SNSECONDS_T_TYPE): Likewise.
6131
6132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6133
6134         * sysdeps/mach/hurd/bits/typesizes.h
6135         (__SYSCALL_SLONG_TYPE): New macro.
6136         (__SYSCALL_ULONG_TYPE): Likewise.
6137
6138 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6139
6140         * bits/types.h (__syscall_slong_t): New type.
6141         (__syscall_ulong_t): Likewise.
6142
6143         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6144         (__SYSCALL_ULONG_TYPE): Likewise.
6145         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6146         (__SYSCALL_SLONG_TYPE): Likewise.
6147         (__SYSCALL_ULONG_TYPE): Likewise.
6148         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6149         (__SYSCALL_SLONG_TYPE): Likewise.
6150         (__SYSCALL_ULONG_TYPE): Likewise.
6151         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6152         (__SYSCALL_SLONG_TYPE): Likewise.
6153         (__SYSCALL_ULONG_TYPE): Likewise.
6154
6155 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6156
6157         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6158         Add sigaltstack-offsets.sym.
6159         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6160         <sigaltstack-offsets.h>.
6161         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6162         longjmp_msg pointer.
6163         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6164         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6165         signal stack.
6166         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6167
6168 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6169
6170         * elf/stackguard-macros.h: Remove file.
6171         * sysdeps/generic/stackguard-macros.h: New file.
6172         * sysdeps/i386/stackguard-macros.h: Likewise.
6173         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6174         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6175         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6176         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6177         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6178         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6179         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6180         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6181         <elf/stackguard-macros.h>.
6182
6183         [BZ #14109]
6184         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6185         __aligned__ in attribute.
6186         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6187         (gregset_t): Likewise.
6188
6189 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6190
6191         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6192         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6193         * sysdeps/x86_64/x32/Implies-after: New file.
6194
6195 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6196
6197         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6198         and access return value for _dl_profile_fixup.  Use R10_LP to
6199         load frame size.
6200
6201 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6202
6203         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6204
6205 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6206
6207         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6208         * sysdeps/x86_64/x32/sysdep.h: New file.
6209
6210 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6211
6212         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6213         * sysdeps/x86_64/setjmp.S: Likewise.
6214
6215 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6216
6217         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6218         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6219         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6220         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6221         remove unused global constant.
6222
6223 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6224
6225         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6226         include of <not-cancel.h>.
6227
6228 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6229
6230         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6231
6232 2012-05-15  Jeff Law  <law@redhat.com>
6233             Andreas Jaeger  <aj@suse.de>
6234
6235         [BZ #13594]
6236         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6237         out from...
6238         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6239         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6240         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6241         code changing __hst_map_handle.map.
6242
6243 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6244
6245         * configure.in (sysnames): Look for Implies-before and Implies-after
6246         files.
6247         * configure: Regenerated.
6248
6249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6250
6251         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6252         8-byte data alignment with LP_SIZE alignment.
6253
6254 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6255
6256         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6257         into R10_LP.
6258
6259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6260
6261         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6262
6263 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6264
6265         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6266         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6267         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6268         Likewise.
6269         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6270
6271 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6272
6273         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6274         (stackinfo_sub_sp): Likewise.
6275
6276 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6277
6278         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6279         RAX_LP.
6280
6281 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6282
6283         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6284         into R*_LP.
6285
6286 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6287
6288         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6289         sizes into R*_LP.
6290
6291 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6292
6293         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6294
6295 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6296
6297         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6298         into R11_LP and load __x86_64_shared_cache_size_half into
6299         R8_LP.
6300
6301 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6302
6303         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6304         R8_LP.
6305
6306 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6307
6308         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6309         logb for POWER7.
6310         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6311         logbf for POWER7.
6312         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6313         logbl for POWER7.
6314         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6315         powerpc32/power7/fpu/s_logb.c via #include.
6316         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6317         powerpc32/power7/fpu/s_logbf.c via #include.
6318         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6319         powerpc32/power7/fpu/s_logbl.c via #include.
6320
6321 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6322
6323         * README.libm: Remove file.
6324
6325 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6326
6327         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6328         count for x32.  Use R*_LP and omit operand-size suffix.
6329
6330 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6331
6332         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6333         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6334         * sysdeps/x86_64/x32/shlib-versions: New file.
6335
6336 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6337
6338         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6339         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6340         Use _dl_fatal_printf instead.
6341
6342 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6343
6344         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6345         set if not set by the user.  Do not allow for being unset.
6346         * sysdeps/unix/sysv/linux/configure: Regenerated.
6347
6348 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6349
6350         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6351         the `q' suffix from lea and replace .quad with ASM_ADDR.
6352
6353 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6354
6355         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6356         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6357         instead of $17.
6358         (PTR_DEMANGLE): Likewise.
6359
6360 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6361
6362         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6363         (LP_OP): Likewise.
6364         (ASM_ADDR): Likewise.
6365         (RAX_LP): Likewise.
6366         (RBP_LP): Likewise.
6367         (RBX_LP): Likewise.
6368         (RCX_LP): Likewise.
6369         (RDI_LP): Likewise.
6370         (RSI_LP): Likewise.
6371         (RSP_LP): Likewise.
6372         (R8_LP): Likewise.
6373         (R9_LP): Likewise.
6374         (R10_LP): Likewise.
6375         (R10_LP): Likewise.
6376         (R11_LP): Likewise.
6377         (R12_LP): Likewise.
6378         (R13_LP): Likewise.
6379         (R14_LP): Likewise.
6380         (R15_LP): Likewise.
6381
6382 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6383
6384         * sysdeps/x86_64/x32/dl-machine.h: New file.
6385
6386 2012-05-14  Andreas Jaeger  <aj@suse.de>
6387
6388         * manual/Makefile (subdir): Remove export of subdir.
6389         (all): Remove target.
6390         (.PHONY): Remove all from list.
6391         (mkinstalldirs): Remove.
6392         (.PHONY): Remove installdirs from list.
6393         ($(inst_infodir)/libc.info): Use make-target-directory.
6394         (installdirs): Remove.
6395         (subdir_%): Remove.
6396         (glibc-targets): Remove.
6397         (lib): Remove.
6398         (stubs): Remove.
6399         ($(objpfx)stubs ../po/manual.pot): Remove.
6400         ($(objpfx)stamp%): Remove.
6401         (make-target-directory): Remove.
6402         (subdir_install): Remove.
6403         (routines): Remove.
6404         (aux): Remove.
6405         (sources): Remove.
6406         (objects): Remove.
6407         (headers): Remove.
6408
6409         [BZ #13750]
6410         * manual/.gitignore: Remove, it's not needed anymore.
6411         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6412         all files in it.
6413         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6414         directory.
6415         (texis): Renamed to $(objpfx)texis.
6416         (texis-path): New, contains path to generated files.
6417         (chapters.%): Use texis-path for complete path, add extra argument
6418         libc-texinfo.sh.
6419         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6420         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6421         (summary,texi, stamp-summary): Use complete path of
6422         files. Generate files in build dir.
6423         (dir-add.texi): Build in build dir.
6424         (libm-err.texi,stamp-libm-err): Likewise.
6425         (version.texi, stamp-version): Likewise.
6426         (.%c.texi): Likewise.
6427         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6428         (mostlyclean): Remove target.
6429         (realclean): Remove target.
6430         (generated): Add new variable with contents from mostlyclean and
6431         realclean, remove entries duplicated in common-mostlyclean, add
6432         stamp-libm-err and stamp-version.
6433         (generated-dirs): Add libc directory.
6434         ($(inst_infodir)/libc.info): Install files from build dir.
6435
6436         * manual/install.texi (Configuring and compiling): Adjust since
6437         the info files are not part of the tar ball anymore.
6438
6439 2012-05-14  Andreas Jaeger  <aj@suse.de>
6440
6441         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6442         variable.
6443
6444 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6445
6446         [BZ #13717]
6447         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6448         to 2.2.0 where earlier.
6449         * sysdeps/unix/sysv/linux/configure: Regenerated.
6450         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6451         Remove conditional code.
6452         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6453         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6454         Remove conditional code.
6455         [!__NR_lchown]: Likewise.
6456         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6457         [__NR_lchown]: Likewise.
6458         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6459         comment referencing __ASSUME_LCHOWN_SYSCALL.
6460         * sysdeps/unix/sysv/linux/i386/sigaction.c
6461         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6462         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6463         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6464         Remove conditional code.
6465         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6466         (__protocol_available): Remove #if 0 code.
6467         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6468         conditional code.
6469         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6470         * sysdeps/unix/sysv/linux/kernel-features.h
6471         (__ASSUME_GETCWD_SYSCALL): Don't define.
6472         (__ASSUME_REALTIME_SIGNALS): Likewise.
6473         (__ASSUME_PREAD_SYSCALL): Likewise.
6474         (__ASSUME_PWRITE_SYSCALL): Likewise.
6475         (__ASSUME_POLL_SYSCALL): Likewise.
6476         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6477         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6478         non-SPARC.
6479         (__ASSUME_SIOCGIFNAME): Don't define.
6480         (__ASSUME_MSG_NOSIGNAL): Likewise.
6481         (__ASSUME_SENDFILE): Define unconditionally.
6482         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6483         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6484         conditional code.
6485         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6486         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6487         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6488         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6489         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6490         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6491         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6493         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6494         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6496         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6497         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6499         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6500         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6502         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6503         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6505         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6506         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6508         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6509         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6511         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6512         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6514         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6515         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6516         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6517         Remove conditional code.
6518         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6519         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6520         Remove conditional code.
6521         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6522         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6523         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6524         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6525         Remove conditional code.
6526         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6527         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6528         Remove conditional code.
6529         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6530         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6531         Remove conditional code.
6532         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6533         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6534         Remove conditional code.
6535         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6536         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6537         Remove conditional code.
6538         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6539         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6540         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6541         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6542         * sysdeps/unix/sysv/linux/sigaction.c
6543         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6544         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6545         * sysdeps/unix/sysv/linux/sigpending.c
6546         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6547         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6548         * sysdeps/unix/sysv/linux/sigprocmask.c
6549         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6550         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6551         * sysdeps/unix/sysv/linux/sigsuspend.c
6552         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6553         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6554         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6555         (__libc_missing_rt_sigs): Remove.
6556         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6557         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6558         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6559         Remove conditional code.
6560         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6561         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6562         return 1.
6563         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6564         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6565         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6566         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6567
6568 2012-05-14  Andreas Jaeger  <aj@suse.de>
6569
6570         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6571         it's not used in glibc.
6572         (__coshm1): Likewise.
6573         (__acosh1p): Likewise.
6574         (__sgn): Likewise.
6575
6576         * manual/string.texi (Copying and Concatenation): Add missing
6577         variable in concat example.
6578         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6579
6580 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6581
6582         [BZ #14103]
6583         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6584         __builtin_clzl with __builtin_clzll.
6585
6586 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6587
6588         [BZ #14104]
6589         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6590         libc_freeres_ptr.
6591
6592 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6593
6594         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6595         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6596         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6597         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6598
6599 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6600
6601         * NEWS: Update ia64 info.
6602
6603 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6604
6605         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6606         used as bcopy.
6607
6608 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6609
6610         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6611         * sysdeps/unix/syscalls.list (dup3): Likewise.
6612         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6613         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6614
6615 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6616
6617         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6618         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6619
6620 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6621
6622         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6623         thread pointer.
6624         (TLS_IE): Use mov/add instead of movq/addq to load thread
6625         pointer.
6626         (TLS_GD_PREFIX): New.
6627         (TLS_GD): Use it.
6628
6629 2012-05-11  David S. Miller  <davem@davemloft.net>
6630
6631         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6632         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6633         (_FPU_SETCW): Likewise.
6634
6635 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6636
6637         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6638         is 32-byte aligned.
6639
6640 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6641
6642         [BZ #11837]
6643         * iconvdata/gb18030.c: Update tables.
6644         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6645         characters specially.
6646         (BODY for TO_LOOP): Add encoding of missing ranges.
6647
6648 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6649
6650         [BZ #13673]
6651         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6652         * sysdeps/mach/hurd/dup3.c: Likewise.
6653         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6654         * sysdeps/powerpc/memmove.c:: Likewise.
6655
6656 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6657
6658         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6659         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6660
6661 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6662
6663         * elf/elf.h (R_X86_64_RELATIVE64): New.
6664         (R_X86_64_NUM): Updated.
6665         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6666         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6667         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6668         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6669         tst-quad1pie tst-quad2pie
6670         (modules-names): Add tst-quadmod1 tst-quadmod2.
6671         ($(objpfx)tst-quad1): New dependency.
6672         ($(objpfx)tst-quad2): Likewise.
6673         ($(objpfx)tst-quad1pie): Likewise.
6674         ($(objpfx)tst-quad2pie): Likewise.
6675         * sysdeps/x86_64/tst-quad1.c: New file.
6676         * sysdeps/x86_64/tst-quad1pie.c: New file.
6677         * sysdeps/x86_64/tst-quad2.c: Likewise.
6678         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6679         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6680         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6681         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6682         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6683
6684 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6685
6686         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6687         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6688         * streams/stropts.h (t_scalar_t): Define type.
6689
6690         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6691         (_PATH_PRESERVE): Set to "/var/lib".
6692         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6693
6694         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6695         instead of int.
6696
6697         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6698         if __dir_mkfile succeeded.
6699
6700         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6701         checking for _hurd_dtablesize.  Unlock it right after having
6702         finished _hurd_dtable allocation.
6703
6704 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6705
6706         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6707         * sysdeps/mach/hurd/configure: Regenerated.
6708         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6709         special-casing to...
6710         * sysdeps/gnu/configure.in: ... this new file.
6711         * sysdeps/unix/sysv/linux/configure: Regenerated.
6712         * sysdeps/gnu/configure: New generated file.
6713
6714         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6715         for Linux: use nsec instead of usec, as well as:
6716         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6717         members of type struct timespec.
6718         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6719         New macros.
6720         (struct stat64): Likewise.
6721         (_STATBUF_ST_NSEC): New macro.
6722         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6723
6724         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6725         __strtoul_internal rather than strtoul.
6726
6727 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6728
6729         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6730         and reject them.
6731
6732 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6733
6734         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6735         which preserves existing values.
6736         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6737
6738 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6739
6740         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6741         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6742         greater than FD_SETSIZE.
6743
6744 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6745
6746         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6747         allocated, call __vm_protect to finish enabling the existing space, and
6748         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6749         allocate the remainder.
6750
6751 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6752
6753         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6754         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6755
6756 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6757
6758         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6759         sysdeps/mach/hurd/readlink.c.
6760
6761         * posix/tst-sysconf.c (posix_options): Only use
6762         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6763         _POSIX_SYNCHRONIZED_IO when they are defined
6764         * sysdeps/mach/hurd/bits/posix_opt.h:
6765         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6766         (_XOPEN_REALTIME): Undefine macro.
6767         (_XOPEN_REALTIME_THREADS): Undefine macro.
6768         (_XOPEN_SHM): Undefine macro.
6769         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6770         macro to -1.
6771         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6772         macro to -1.
6773         (_POSIX_ASYNC_IO): Undefine macro.
6774         (_POSIX_PRIORITIZED_IO): Undefine macro.
6775         (_POSIX_SPIN_LOCKS): Define macro to -1.
6776
6777         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6778         SA_NODEFER, SA_RESETHAND.
6779         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6780         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6781         F_DUPFD_CLOEXEC.
6782
6783 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6784
6785         * elf/Makefile (pldd-modules): Define unconditionally.
6786
6787 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6788
6789         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6790
6791 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6792
6793         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6794         Return ENOENT when name is empty.
6795         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6796
6797 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6798
6799         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6800
6801         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6802
6803 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6804
6805         Fix mlock in all cases except non-readable pages.
6806         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6807         instead of VM_PROT_ALL as parameter to __vm_wire function.
6808
6809         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6810         (__mkdir): When path is `/', just fail with EEXIST.
6811         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6812
6813 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6814
6815         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6816         <sys/uio.h> (for writev).
6817         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6818         and <sys/param.h> (for MIN).
6819
6820 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6821
6822         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6823         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6824         if interrupted.
6825
6826 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6827
6828         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6829         Depend on against $(link-rpcuserlibs).
6830
6831 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6832
6833         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6834         (__libc_stack_end): Do not use attribute_relro.
6835         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6836         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6837         to libthread-provided value.
6838         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6839         attribute_relro.
6840
6841 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6842
6843         [BZ #3748]
6844         * bits/libc-lock.h (__libc_once_get): New macro.
6845         * sysdeps/mach/bits/libc-lock.h: Likewise.
6846         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6847         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6848         instead of using implementation details.
6849
6850         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6851         * libio/freopen.c: Likewise.
6852         * libio/freopen64.c: Likewise.
6853         * misc/syslog.c: Likewise.
6854         * nscd/connections.c: Likewise.
6855         * nscd/netgroupcache.c: Likewise.
6856         * sysdeps/posix/getcwd.c: Likewise.
6857
6858 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6859
6860         * math/w_ilogbf.c: Add #include <limits.h>.
6861
6862 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6863
6864         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6865         path instead of returning without unlocking.
6866
6867         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6868         immediate-write ioctls.
6869         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6870
6871 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6872
6873         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6874         __builtin_frame_address instead of making assumptions about the
6875         location of the return address relative to DATA.  Force early load of
6876         the return address.
6877         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6878         __builtin_frame_address.
6879
6880         dup3 for GNU Hurd.
6881         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6882         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6883         implement dup3 and do some further code clean-ups.
6884         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6885         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6886
6887 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6888
6889         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6890
6891         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6892         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6893         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6894         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6895         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6896         d->port.lock.
6897
6898         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6899         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6900         when handler == SIG_ERR, not when handler != SIG_ERR.
6901
6902 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6903
6904         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6905         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6906         definitions.
6907
6908         accept4 for GNU Hurd.
6909         * include/sys/socket.h (__libc_accept4): New prototype.
6910         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6911         to implement __libc_accept4.
6912         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6913         __libc_accept4.
6914         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6915
6916         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6917         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6918         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6919         signal-defines.sym.
6920
6921 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6922
6923         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6924
6925 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6926
6927         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6928         assertion on O_CLOEXEC flag.
6929         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6930         * hurd/intern-fd.c: Likewise.
6931         * hurd/port2fd.c: Likewise.
6932
6933 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6934
6935         [BZ #3906]
6936         * bits/in.h (IPV6_PKTINFO): Define new macro.
6937         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6938
6939 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6940
6941         [BZ #13954]
6942         [BZ #13955]
6943         [BZ #13956]
6944         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6945         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6946         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6947         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6948         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6949         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6950         * math/libm-test.inc (logb_test) : Additional logb tests.
6951
6952 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6953             Andreas Jaeger  <aj@suse.de>
6954
6955         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6956         * configure: Regenerated.
6957         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6958         * config.make.in (link-obsolete-rpc): New substituted variable.
6959         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6960         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6961         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6962         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6963         so that libc.a contains the symbols.
6964         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6965         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6966         * sunrpc/auth_none.c: Likewise.
6967         * sunrpc/auth_unix.c: Likewise.
6968         * sunrpc/authdes_prot.c: Likewise.
6969         * sunrpc/authuxprot.c: Likewise.
6970         * sunrpc/clnt_gen.c: Likewise.
6971         * sunrpc/clnt_perr.c: Likewise.
6972         * sunrpc/clnt_raw.c: Likewise.
6973         * sunrpc/clnt_simp.c: Likewise.
6974         * sunrpc/clnt_tcp.c: Likewise.
6975         * sunrpc/clnt_udp.c: Likewise.
6976         * sunrpc/clnt_unix.c: Likewise.
6977         * sunrpc/des_crypt.c: Likewise.
6978         * sunrpc/des_soft.c: Likewise.
6979         * sunrpc/get_myaddr.c: Likewise.
6980         * sunrpc/key_call.c: Likewise.
6981         * sunrpc/key_prot.c: Likewise.
6982         * sunrpc/netname.c: Likewise.
6983         * sunrpc/pm_getmaps.c: Likewise.
6984         * sunrpc/pm_getport.c: Likewise.
6985         * sunrpc/pmap_clnt.c: Likewise.
6986         * sunrpc/pmap_prot.c: Likewise.
6987         * sunrpc/pmap_prot2.c: Likewise.
6988         * sunrpc/pmap_rmt.c: Likewise.
6989         * sunrpc/publickey.c: Likewise.
6990         * sunrpc/rpc_cmsg.c: Likewise.
6991         * sunrpc/rpc_common.c: Likewise.
6992         * sunrpc/rpc_dtable.c: Likewise.
6993         * sunrpc/rpc_prot.c: Likewise.
6994         * sunrpc/rpc_thread.c: Likewise.
6995         * sunrpc/rtime.c: Likewise.
6996         * sunrpc/svc.c: Likewise.
6997         * sunrpc/svc_auth.c: Likewise.
6998         * sunrpc/svc_raw.c: Likewise.
6999         * sunrpc/svc_run.c: Likewise.
7000         * sunrpc/svc_tcp.c: Likewise.
7001         * sunrpc/svc_udp.c: Likewise.
7002         * sunrpc/svc_unix.c: Likewise.
7003         * sunrpc/svcauth_des.c: Likewise.
7004         * sunrpc/xcrypt.c: Likewise.
7005         * sunrpc/xdr.c: Likewise.
7006         * sunrpc/xdr_array.c: Likewise.
7007         * sunrpc/xdr_float.c: Likewise.
7008         * sunrpc/xdr_intXX_t.c: Likewise.
7009         * sunrpc/xdr_mem.c: Likewise.
7010         * sunrpc/xdr_rec.c: Likewise.
7011         * sunrpc/xdr_ref.c: Likewise.
7012         * sunrpc/xdr_sizeof.c: Likewise.
7013         * sunrpc/xdr_stdio.c: Likewise.
7014
7015 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7016
7017         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7018         change.  Update copyright years.
7019
7020 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7021
7022         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7023
7024 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7025             Joseph Myers  <joseph@codesourcery.com>
7026             Paul Pluzhnikov  <ppluzhnikov@google.com>
7027
7028         [BZ #14012]
7029         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7030         requiring rpcgen.
7031         [cross-compiling] (extra-libs): Likewise.
7032         [cross-compiling] (extra-libs-others): Likewise.
7033         [cross-compiling] (librpcsvc-routines): Likewise.
7034         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7035         [cross-compiling] (omit-deps): Likewise.
7036         (sunrpc-CPPFLAGS): New variable.
7037         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7038         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7039         (cross-rpcgen-objs): New variable.
7040         (extra-objs): Append $(cross-rpcgen-objs).
7041         ($(cross-rpcgen-objs)): New rule.
7042         ($(objpfx)cross-rpcgen): Likewise.
7043         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7044         comment.
7045         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7046         ($(objpfx)x%.stmp): Likewise.
7047         * sunrpc/proto.h [IS_IN_build] (_): Define.
7048         [IS_IN_build] (_libc_intl_domainname): Likewise.
7049
7050 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7051
7052         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7053         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7054         and R_X86_64_TPOFF64.
7055
7056 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7057
7058         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7059         sysdeps/unix/sysv/syscalls.list.
7060         (stime): Likewise.
7061         (utime): Likewise.
7062         * sysdeps/unix/sysv/syscalls.list: Remove file.
7063
7064 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7065
7066         [BZ #3440]
7067         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7068         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7069         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7070         (__LC_IDENTIFICATION): Make these macros useful in #if
7071         expressions, as required by C99.
7072
7073 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7074
7075         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7076         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7077         after this.
7078
7079 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7080
7081         * stdlib/longlong.h: Updated from GCC.
7082
7083 2012-05-09  Andreas Jaeger  <aj@suse.de>
7084
7085         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7086         default is first entry.
7087         (run_mode): Set type.
7088         (main): Remove informal message about syslog.
7089         (options): Fix typo.
7090
7091         [BZ #14053]
7092         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7093         to asm.
7094         (lrint): Likewise.
7095         (llrintf): Likewise.
7096         (llrint): Likewise.
7097         (rint): Likewise.
7098         (rintf): Likewise.
7099         (nearbyint): Likewise.
7100         (nearbyintf): Likewise.
7101
7102 2012-05-09  Andreas Jaeger  <aj@suse.de>
7103             Pedro Alves  <palves@redhat.com>
7104
7105         * nscd/nscd.c (run_mode): Use enum.
7106         (main): Cleanup coding style issue.
7107
7108 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7109             Andreas Jaeger  <aj@suse.de>
7110
7111         * nscd/nscd.c (go_background): Replaced with...
7112         (run_mode): ... this.
7113         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7114         (options): Add -F --foreground.
7115         (main): Implement it.
7116         (parse_opt): Parse it.
7117
7118 2012-05-09  Andreas Jaeger  <aj@suse.de>
7119
7120         [BZ #14083]
7121         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7122         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7123         -Wconversion warning.
7124         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7125         Likewise.
7126
7127 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7128
7129         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7130         == 0.
7131         (LC_ALL): Use macro-int-constant.
7132         (LC_COLLATE): Likewise.
7133         (LC_CTYPE): Likewise.
7134         (LC_MESSAGES): Likewise.
7135         (LC_MONETARY): Likewise.
7136         (LC_NUMERIC): Likewise.
7137         (LC_TIME): Likewise.
7138         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7139         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7140         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7141         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7142         Specify type.
7143         [C99-based standards] (float_t): Expect type.
7144         [C99-based standards] (double_t): Expect type.
7145         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7146         type.
7147         [C99-based standards] (HUGE_VALL): Likewise.
7148         [C99-based standards] (INFINITY): Likewise.
7149         [C99-based standards] (NAN): Likewise.
7150         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7151         [C99-based standards] (FP_NAN): Likewise.
7152         [C99-based standards] (FP_NORMAL): Likewise.
7153         [C99-based standards] (FP_SUBNORMAL): Likewise.
7154         [C99-based standards] (FP_ZERO): Likewise.
7155         [C99-based standards] (FP_FAST_FMA): Use
7156         optional-macro-int-constant.  Specify type.  Require == 1.
7157         [C99-based standards] (FP_FAST_FMAF): Likewise.
7158         [C99-based standards] (FP_FAST_FMAL): Likewise.
7159         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7160         [C99-based standards] (FP_ILOGBNAN): Likewise.
7161         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7162         Specify type.
7163         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7164         [C99-based standards] (math_errhandling): Specify type.
7165         [ISO99 || ISO11] (signgam): Do not allow.
7166         [non-C99-based standards] (copysignf): Do not allow.
7167         [non-C99-based standards] (exp2f): Likewise.
7168         [non-C99-based standards] (log2f): Likewise.
7169         [non-C99-based standards] (modff): Allow.
7170         [non-C99-based standards] (erff): Do not allow.
7171         [non-C99-based standards] (erfcf): Likewise.
7172         [non-C99-based standards] (gammaf): Likewise.
7173         [non-C99-based standards] (hypotf): Likewise.
7174         [non-C99-based standards] (j0f): Likewise.
7175         [non-C99-based standards] (j1f): Likewise.
7176         [non-C99-based standards] (jnf): Likewise.
7177         [non-C99-based standards] (lgammaf): Likewise.
7178         [non-C99-based standards] (tgammaf): Likewise.
7179         [non-C99-based standards] (y0f): Likewise.
7180         [non-C99-based standards] (y1f): Likewise.
7181         [non-C99-based standards] (ynf): Likewise.
7182         [non-C99-based standards] (isnanf): Likewise.
7183         [non-C99-based standards] (acoshf): Likewise.
7184         [non-C99-based standards] (asinhf): Likewise.
7185         [non-C99-based standards] (atanhf): Likewise.
7186         [non-C99-based standards] (cbrtf): Likewise.
7187         [non-C99-based standards] (expm1f): Likewise.
7188         [non-C99-based standards] (ilogbf): Likewise.
7189         [non-C99-based standards] (log1pf): Likewise.
7190         [non-C99-based standards] (logbf): Likewise.
7191         [non-C99-based standards] (nextafterf): Likewise.
7192         [non-C99-based standards] (remainderf): Likewise.
7193         [non-C99-based standards] (rintf): Likewise.
7194         [non-C99-based standards] (scalbf): Likewise.
7195         [non-C99-based standards] (copysignl): Likewise.
7196         [non-C99-based standards] (exp2l): Likewise.
7197         [non-C99-based standards] (log2l): Likewise.
7198         [non-C99-based standards] (modfl): Allow.
7199         [non-C99-based standards] (erfl): Do not allow.
7200         [non-C99-based standards] (erfcl): Likewise.
7201         [non-C99-based standards] (gammal): Likewise.
7202         [non-C99-based standards] (hypotl): Likewise.
7203         [non-C99-based standards] (j0l): Likewise.
7204         [non-C99-based standards] (j1l): Likewise.
7205         [non-C99-based standards] (jnl): Likewise.
7206         [non-C99-based standards] (lgammal): Likewise.
7207         [non-C99-based standards] (tgammal): Likewise.
7208         [non-C99-based standards] (y0l): Likewise.
7209         [non-C99-based standards] (y1l): Likewise.
7210         [non-C99-based standards] (ynl): Likewise.
7211         [non-C99-based standards] (isnanl): Likewise.
7212         [non-C99-based standards] (acoshl): Likewise.
7213         [non-C99-based standards] (asinhl): Likewise.
7214         [non-C99-based standards] (atanhl): Likewise.
7215         [non-C99-based standards] (cbrtl): Likewise.
7216         [non-C99-based standards] (expm1l): Likewise.
7217         [non-C99-based standards] (ilogbl): Likewise.
7218         [non-C99-based standards] (log1pl): Likewise.
7219         [non-C99-based standards] (logbl): Likewise.
7220         [non-C99-based standards] (nextafterl): Likewise.
7221         [non-C99-based standards] (remainderl): Likewise.
7222         [non-C99-based standards] (rintl): Likewise.
7223         [non-C99-based standards] (scalbl): Likewise.
7224         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7225         [non-C99-based standards] (FP_*): Do not allow.
7226         [C99-based standards] (FP_*): Change to
7227         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7228         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7229         allow.
7230         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7231         (SIG_ERR): Likewise.
7232         [X/Open-based standards] (SIG_HOLD): Likewise.
7233         (SIG_IGN): Likewise.
7234         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7235         positive value.
7236         (SIGFPE): Likewise.
7237         (SIGILL): Likewise.
7238         (SIGINT): Likewise.
7239         (SIGSEGV): Likewise.
7240         (SIGTER): Likewise.
7241         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7242         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7243         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7244         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7245         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7246         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7247         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7248         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7249         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7250         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7251         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7252         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7253         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7254         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7255         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7256         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7257         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7258         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7259         [X/Open-based standards] (SIGTRAP): Likewise.
7260         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7261         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7262         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7263         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7264         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7265         allow.
7266
7267 2012-05-08  Ian Wienand  <ianw@vmware.com>
7268
7269         [BZ #14080]
7270         * time/tzset.c (__tzset_parse_tz): Update default rules for
7271         daylight time changes in the Energy Policy Act of 2005.
7272
7273 2012-05-09  Andreas Jaeger  <aj@suse.de>
7274
7275         [BZ #13983]
7276         * elf/ldconfig.c (parse_conf): Change string to make clear that
7277         ldconfig only issued a warning if ld.so.conf does not exist.
7278
7279 2012-05-08  David S. Miller  <davem@davemloft.net>
7280
7281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7282         movxtod instead of popping the value on the stack.
7283
7284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7285
7286 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7287
7288         * config.h.in: Add HAVE_ARM_PCS_VFP.
7289
7290 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7291
7292         [BZ #13979]
7293         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7294         checking but the checks are disabled for any reason.
7295
7296 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7297
7298         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7299         and ELF64_R_TYPE with ELFW(R_TYPE).
7300
7301 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7302
7303         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7304         (ulimit): Likewise.
7305
7306         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7307         (settimeofday): Likewise.
7308
7309 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7310
7311         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7312         a struct th_u2 inside the union, and move tu_block/tu_code into
7313         a new th_u3 union of tu_block/tu_code inside of that.  Move
7314         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7315         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7316         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7317         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7318         (th_stuff): Change to th_u1.tu_stuff.
7319         (th_data): Define.
7320         (th_msg): Change to th_u1.th_u2.tu_data.
7321
7322 2012-05-07  David S. Miller  <davem@davemloft.net>
7323
7324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7325
7326         [BZ #14074]
7327         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7328         (SETUP_PIC_REG): Use it.
7329         (SETUP_PIC_REG_LEAF): Use it.
7330
7331 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7332
7333         [BZ #13885]
7334         [BZ #13923]
7335         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7336         USE_AS_EXPM1L.
7337         (EXPL_FINITE): Likewise.
7338         (FLDLOG): Likewise.
7339         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7340         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7341         e_expl.S.
7342         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7343         USE_AS_EXPM1L.
7344         (EXPL_FINITE): Likewise.
7345         (FLDLOG): Likewise.
7346         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7347         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7348         e_expl.S.
7349         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7350         test of -max_value argument for long double.
7351         * sysdeps/i386/fpu/libm-test-ulps: Update.
7352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7353
7354 2012-05-06  David S. Miller  <davem@davemloft.net>
7355
7356         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7357         quad soft-float symbols whose references which are compiler
7358         generated.
7359         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7360
7361 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7362
7363         [BZ #13884]
7364         [BZ #13914]
7365         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7366         USE_AS_EXP10L.
7367         (EXPL_FINITE): Likewise.
7368         (FLDLOG): Likewise.
7369         (c0): Likewise.
7370         (c1): Likewise.
7371         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7372         Adjust comments for base varying.
7373         (__expl_finite): Change alias to EXPL_FINITE.
7374         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7375         e_expl.S.
7376         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7377         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7378         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7379         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7380         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7381         USE_AS_EXP10L.
7382         (EXPL_FINITE): Likewise.
7383         (FLDLOG): Likewise.
7384         (c0): Likewise.
7385         (c1): Likewise.
7386         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7387         Adjust comments for base varying.
7388         (__expl_finite): Change alias to EXPL_FINITE.
7389         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7390         tests for bugs.
7391         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7392
7393         [BZ #14064]
7394         * math/libm-test.inc (check_float_internal): Correct ulp
7395         calculation for subnormal expected results.
7396
7397 2012-05-06  Andreas Jaeger  <aj@suse.de>
7398
7399         * Makeconfig (+math-flags): New, set to -frounding-math.
7400         (+cflags): Add +math-flags so that all of glibc gets compiled with
7401         it.
7402
7403         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7404
7405 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7406
7407         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7408         Disable one test.
7409
7410         [BZ #13787]
7411         [BZ #13922]
7412         [BZ #14036]
7413         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7414         (__ieee754_expl): Allow for and saturate large arguments.
7415         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7416         (u_threshold): Likewise.
7417         (__exp): Call __ieee754_exp before checking for overflow and
7418         underflow.
7419         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7420         (u_threshold): Likewise.
7421         (__expf): Call __ieee754_expf before checking for overflow and
7422         underflow.
7423         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7424         (u_threshold): Likewise.
7425         (__expl): Call __ieee754_expl before checking for overflow and
7426         underflow.
7427         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7428         (__ieee754_expl): Allow for and saturate large arguments.
7429         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7430         missing overflow exception on overflow.
7431         (expm1_test): Do not allow missing overflow exception on overflow.
7432
7433         * sysdeps/i386/fpu/e_expl.c: Move to ...
7434         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7435         rather than using inline asm.
7436         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7437         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7438         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7439
7440         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7441         (nice): Likewise.
7442         (poll): Likewise.
7443         (signal): Likewise.
7444         (time): Likewise.
7445         (times): Likewise.
7446
7447 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7448
7449         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7450         sysdeps/unix/common/syscalls.list.
7451         (fchmod): Likewise.
7452         (fchown): Likewise.
7453         (ftruncate): Likewise.
7454         (getrusage): Likewise.
7455         (gettimeofday): Likewise.
7456         (setpgid): Likewise.
7457         (setregid): Likewise.
7458         (setreuid): Likewise.
7459         (sigaction): Likewise.
7460         (truncate): Likewise.
7461         (vhangup): Likewise.
7462         * sysdeps/unix/common/syscalls.list: Remove file.
7463         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7464         * sysdeps/unix/sysv/linux/Implies: Likewise.
7465
7466 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7467
7468         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7469         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7470         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7471         Moved to ...
7472         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7473         Here.
7474         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7475         to ...
7476         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7477         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7478         to ...
7479         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7480         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7481         to ...
7482         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7483         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7484         to ...
7485         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7486         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7487         to ...
7488         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7489         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7490         to ...
7491         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7492         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7493         to ...
7494         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7495         Here.
7496         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7497         to ...
7498         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7499         Here.
7500         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7501         to ...
7502         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7503         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7504         Moved to ...
7505         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7506         Here.
7507         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7508         to ...
7509         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7510
7511 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7512
7513         * sysdeps/unix/common/bits/dirent.h: Remove file.
7514         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7515
7516         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7517         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7518         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7519         * sysdeps/unix/bsd/isatty.c: Likewise.
7520         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7521         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7522         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7523
7524 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7525
7526         [BZ #13563]
7527         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7528         long double comparison inaccuracies.
7529         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7531
7532 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7533
7534         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7535         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7536
7537 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7538
7539         [BZ #14049]
7540         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7541         nonzero digits before rounding a hex value.
7542         * stdlib/tst-strtod.c (tests): Add another test.
7543
7544 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7545
7546         * sysdeps/s390/fpu/libm-test-ulps: Update.
7547
7548 2012-05-03  Andreas Jaeger  <aj@suse.de>
7549
7550         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7551         does not get optimized out.
7552         (malloc_opt_barrier): New.
7553
7554 2012-05-03  Andreas Jaeger  <aj@suse.de>
7555             Roland McGrath  <roland@hack.frob.com>
7556
7557         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7558         intermediate file deletion.
7559         (generated): Add .symlist files.
7560
7561 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7562
7563         [BZ #13775]
7564         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7565         Redirect under this condition.
7566         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7567         [__USE_GNU] (__dprintf_chk): Not under this condition.
7568         [__USE_GNU] (__vdprintf_chk): Likewise.
7569         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7570         under this condition.
7571         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7572         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7573         [__USE_XOPEN2K8] (vdprintf): Likewise.
7574         [__USE_GNU] (__dprintf_chk): Not under this condition.
7575         [__USE_GNU] (__vdprintf_chk): Likewise.
7576         [__USE_GNU] (dprintf): Likewise.
7577         [__USE_GNU] (vdprintf): Likewise.
7578
7579 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7580
7581         * elf/Makefile (common-generated): Set this instead of generated for
7582         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7583         $(all-built-dso)-derived lists.
7584
7585 2012-05-03  Andreas Jaeger  <aj@suse.de>
7586
7587         * sysdeps/i386/fpu/libm-test-ulps: Update.
7588
7589         * FAQ: Removed.
7590         * FAQ.in: Likewise.
7591         * scripts/gen-FAQ.pl: Likewise.
7592         * manual/install.texi (Installation): Point to online location of
7593         FAQ.
7594         * Makefile (files-for-dist): Remove FAQ.
7595         (FAQ): Remove.
7596
7597 2012-05-02  Allan McRae  <allan@archlinux.org>
7598
7599         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7600         (LDFLAGS-reldepmod5.so): Likewise.
7601         (LDFLAGS-reldep6mod1.so): Likewise.
7602         (LDFLAGS-reldep6mod4.so): Likewise.
7603         (LDFLAGS-reldep8mod3.so): Likewise.
7604         (LDFLAGS-unload4mod1.so): Likewise.
7605         (LDFLAGS-unload4mod2.so): Likewise.
7606         (LDFLAGS-tst-initorder): Likewise.
7607         (LDFLAGS-tst-initordera2.so): Likewise.
7608         (LDFLAGS-tst-initordera3.so): Likewise.
7609         (LDFLAGS-tst-initordera4.so): Likewise.
7610         (LDFLAGS-tst-initorderb2.so): Likewise.
7611         (LDFLAGS-noload): Likewise.
7612         (LDFLAGS-next): Likewise.
7613         (LDFLAGS-order2mod1.so): Likewise.
7614         (LDFLAGS-order2mod2.so): Likewise.
7615         (LDFLAGS-tst-initorder2): Likewise.
7616         (LDFLAGS-tst-initorder2a.so): Likewise.
7617         (LDFLAGS-tst-initorder2b.so): Likewise.
7618         (LDFLAGS-tst-initorder2c.so): Likewise.
7619         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7620
7621 2012-05-02  David S. Miller  <davem@davemloft.net>
7622
7623         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7624
7625 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7626
7627         [BZ #14055]
7628         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7629
7630 2012-05-02  Andreas Jaeger  <aj@suse.de>
7631
7632         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7633         since we manipulate rounding mode.
7634         (CPPFLAGS-test-idouble.c): Likewise.
7635         (CPPFLAGS-test-ifloat.c): Likewise.
7636         (CFLAGS-test-ldouble.c): Likewise.
7637         (CFLAGS-test-double.c): Likewise.
7638         (CFLAGS-test-float.c): Likewise.
7639         (CFLAGS-test-misc.c): Likewise.
7640         (CFLAGS-test-test-fenv.c): Likewise.
7641
7642 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7643
7644         [BZ #2550]
7645         [BZ #2570]
7646         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7647         comparisons to determine direction to adjust input.
7648
7649 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7650
7651         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7652         output to the target.
7653
7654         * scripts/localplt.awk: New file.
7655         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7656         (check-localplt-CFLAGS): Variable removed.
7657         ($(all-built-dso:=.jmprel)): New static pattern rule.
7658         (generated): Add those targets.
7659         (localplt-built-dso): New variable.
7660         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7661
7662         * elf/check-localplt.c: File removed.
7663
7664         * scripts/check-execstack.awk: New file.
7665         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7666         (check-execstack-CFLAGS): Variable removed.
7667         ($(objpfx)check-execstack.h): Target removed.
7668         ($(objpfx)execstack-default): New target.
7669         (generated): Add that instead of check-execstack.h.
7670         ($(all-built-dso:=.phdr)): New static pattern rule.
7671         (generated): Add those targets.
7672         * elf/check-execstack.c: File removed.
7673
7674         * scripts/check-textrel.awk: New file.
7675         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7676         (check-textrel-CFLAGS): Variable removed.
7677         (all-built-dso): Use := to define.o
7678         ($(all-built-dso:=.dyn)): New static pattern rule.
7679         (generated): Add those targets.
7680         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7681         * config.make.in (READELF): New substituted variable.
7682         * elf/check-textrel.c: File removed.
7683
7684 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7685
7686         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7687         allow.
7688         * conform/data/ctype.h-data [C99-based standards] (isblank):
7689         Expect function.
7690         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7691         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7692         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7693         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7694         Specify type.  Require positive value.
7695         (EILSEQ): Likewise.
7696         (ERANGE): Likewise.
7697         [ISO || POSIX] (EILSEQ): Do not expect.
7698         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7699         Specify type.  Require positive value.
7700         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7701         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7702         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7703         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7704         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7705         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7706         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7707         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7708         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7709         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7710         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7711         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7712         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7713         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7714         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7715         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7716         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7717         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7718         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7719         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7720         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7721         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7722         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7723         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7724         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7725         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7726         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7727         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7728         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7729         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7730         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7731         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7732         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7733         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7734         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7735         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7736         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7737         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7738         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7739         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7740         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7741         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7742         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7743         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7748         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7749         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7750         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7753         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7754         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7755         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7756         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7757         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7758         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7759         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7760         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7761         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7762         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7763         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7764         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7765         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7766         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7767         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7768         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7769         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7770         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7771         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7772         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7773         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7774         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7775         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7776         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7777         Require >= 2.
7778         (FLT_ROUNDS): Expect as macro, not constant.
7779         (FLT_MANT_DIG): Use macro-int-constant.
7780         (DBL_MANT_DIG): Likewise.
7781         (LDBL_MANT_DIG): Likewise.
7782         (FLT_DIG): Likewise.
7783         (DBL_DIG): Likewise.
7784         (LDBL_DIG): Likewise.
7785         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7786         (DBL_MIN_EXP): Likewise.
7787         (LDBL_MIN_EXP): Likewise.
7788         (FLT_MAX_EXP): Use macro-int-constant.
7789         (DBL_MAX_EXP): Likewise.
7790         (LDBL_MAX_EXP): Likewise.
7791         (FLT_MAX_10_EXP): Likewise.
7792         (DBL_MAX_10_EXP): Likewise.
7793         (LDBL_MAX_10_EXP): Likewise.
7794         (FLT_MAX): Use macro-constant.
7795         (DBL_MAX): Likewise.
7796         (LDBL_MAX): Likewise.
7797         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7798         (DBL_EPSILON): Likewise.
7799         (LDBL_EPSILON): Likewise.
7800         (FLT_MIN): Likewise.
7801         (DBL_MIN): Likewise.
7802         (LDBL_MIN): Likewise.
7803         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7804         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7805         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7806         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7807         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7808         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7809         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7810         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7811         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7812         [ISO11] (FLT_TRUE_MIN): Likewise.
7813         [ISO11] (LDBL_TRUE_MIN): Likewise.
7814         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7815         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7816         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7817         (SCHAR_MAX): Likewise.
7818         (UCHAR_MAX): Likewise.
7819         (CHAR_MIN): Likewise.
7820         (CHAR_MAX): Likewise.
7821         (MB_LEN_MAX): Use macro-int-constant.
7822         (SHRT_MIN): Use macro-int-constant.  Specify type.
7823         (SHRT_MAX): Likewise.
7824         (USHRT_MAX): Likewise.
7825         (INT_MAX): Likewise.
7826         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7827         bound negative.
7828         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7829         bound with "U".
7830         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7831         bound with "L".
7832         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7833         bound negative.  Suffix upper bound with "L".
7834         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7835         bound with "UL".
7836         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7837         Specify type.
7838         [C99-based standards] (LLONG_MAX): Likewise.
7839         [C99-based standards] (ULLONG_MAX): Likewise.
7840         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7841         == 0.
7842         [ISO11] (max_align_t): Require type.
7843         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7844
7845         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7846         from $CFLAGS, without defining away __attribute__ calls.
7847         (checknamespace): Use $CFLAGS_namespace.
7848
7849         * conform/conformtest.pl (@keywords): Only include C99 keywords
7850         for standards based on C99 or C11.
7851
7852         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7853         Disable tests.
7854         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7855         UNIX98]: Likewise.
7856
7857         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7858         usability of symbols in #if.
7859
7860         * conform/conformtest.pl: If macro or constant types start
7861         "promoted:", expect the symbol to be of the following type
7862         promoted by the integer promotions.
7863
7864         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7865         in one place.  Also handle "macro-constant".
7866
7867         * conform/conformtest.pl: Only accept expected macro values with
7868         "==".  Parse all "macro" lines in one place.
7869         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7870
7871         * conform/conformtest.pl: Handle braced types on "constant" lines
7872         instead of handling "typed-constant".
7873         * conform/data/signal.h-data: Use "constant" instead of
7874         "typed-constant".
7875
7876         * conform/conformtest.pl: Handle "optional-" at start of lines in
7877         one place rather than duplicating several cases.  Handle each
7878         format of "macro" line with initial "optional-".
7879
7880         * conform/conformtest.pl: Only accept expected constant or
7881         optional-constant values with "==".  Parse all "constant" lines in
7882         one place.  Parse all "optional-constant" lines in one place.
7883         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7884         * conform/data/fmtmsg.h-data: Likewise.
7885         * conform/data/netinet/in.h-data: Likewise.
7886         * conform/data/tar.h-data: Likewise.
7887         * conform/data/limits.h-data: Use "==" form on "constant" and
7888         "optional-constant" lines.
7889
7890         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7891         Use -std=c99 for XOPEN2K.
7892         (@knownproblems): Remove.
7893         (newtoken): Don't check %isknown.
7894
7895         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7896         Do not expect macro.
7897         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7898         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7899         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7900         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7901         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7902         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7903         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7904         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7905         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7906         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7907         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7908         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7909         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7910         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7911         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7912         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7913         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7914         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7915         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7916         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7917         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7918         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7919         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7920         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7921         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7922         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7923         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7924         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7925         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7926         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7927         [XPG3] (acosh): Likewise.
7928         [XPG3] (asinh): Likewise.
7929         [XPG3] (atanh): Likewise.
7930         [XPG3] (cbrt): Likewise.
7931         [XPG3] (expm1): Likewise.
7932         [XPG3] (ilogb): Likewise.
7933         [XPG3] (log1p): Likewise.
7934         [XPG3] (logb): Likewise.
7935         [XPG3] (nextafter): Likewise.
7936         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7937         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7938         [XPG3] (remainder): Likewise.
7939         [XPG3] (rint): Likewise.
7940         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7941         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7942         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7943         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7944         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7945         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7946         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7947         [UNIX98 || XOPEN2K] (scalb): Expect.
7948         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7949         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7950         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7951         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7952         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7953         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7954         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7955         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7956         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7957         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7958         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7959         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7960         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7961         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7962         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7963         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7964         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7965         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7966         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7967         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7968         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7969         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7970         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7971         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7972         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7973         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7974         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7975         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7976         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7977         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7978         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7979         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7980         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7981         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7982         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7983         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7984         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7985         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7986         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7987         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7988         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7989         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
7990         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
7991         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
7992         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
7993         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
7994         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
7995         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
7996         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
7997         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
7998         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
7999         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8000         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8001         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8002         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8003         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8004         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8005         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8006         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8007         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8008         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8009         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8010         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8011         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8012         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8013         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8014         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8015         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8016         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8017         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8018         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8019         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8020         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8021         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8022         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8023         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8024         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8025         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8026         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8027         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8028         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8029         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8030         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8031         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8032         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8033         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8034         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8035         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8036         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8037         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8038         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8039         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8040         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8041         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8042         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8043         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8044         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8045         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8046         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8047         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8048         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8049         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8050         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8051         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8052         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8053         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8054         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8055         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8056         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8057         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8058         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8059         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8060         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8061         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8062         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8063         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8064         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8065         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8066         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8067         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8068         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8069         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8070         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8071         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8072         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8073         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8074         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8075         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8076         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8077         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8078         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8079         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8080         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8081         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8082         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8083         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8084         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8085
8086         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8087         _XOPEN_SOURCE_EXTENDED for XPG4.
8088
8089         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8090
8091         * Makeconfig (localtime): Remove variable.
8092         (inst_localtime-file): Likewise.
8093
8094 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8095
8096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8097         Update.
8098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8099         Update.
8100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8101         Update.
8102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8103         Update.
8104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8105         Update.
8106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8107         Update.
8108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8109         Update.
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8111         Update.
8112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8113         Update.
8114
8115 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8116
8117         [BZ #2550]
8118         [BZ #2570]
8119         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8120         comparisons to determine direction to adjust input.
8121         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8122         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8123         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8124         Likewise.
8125         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8126         Likewise.
8127         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8128         Likewise.
8129         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8130         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8131         Likewise.
8132         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8133         Likewise.
8134         * math/libm-test.inc (nexttoward_test): Add more tests.
8135
8136 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8137
8138         [BZ #14040]
8139         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8140         in version GLIBC_2.1, not GLIBC_2.0.
8141         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8142         Likewise.
8143
8144 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8145
8146         [BZ #13942]
8147         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8148         (1 - x) * (1 + x).
8149         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8150         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8151         * math/libm-test.inc (acos_test): Add more tests.
8152         (asin_test): Likewise.
8153         * sysdeps/i386/fpu/libm-test-ulps: Update.
8154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8155
8156         [BZ #14034]
8157         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8158         of square root.
8159         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8160         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8161         * math/libm-test.inc (acos_test_tonearest): New function.
8162         (acos_test_towardzero): Likewise.
8163         (acos_test_downward): Likewise.
8164         (acos_test_upward): Likewise.
8165         (asin_test_tonearest): Likewise.
8166         (asin_test_towardzero): Likewise.
8167         (asin_test_downward): Likewise.
8168         (asin_test_upward): Likewise.
8169         (main): Call the new functions.
8170         * sysdeps/i386/fpu/libm-test-ulps: Update.
8171         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8172
8173         [BZ #13884]
8174         [BZ #13924]
8175         * math/e_exp10.c: Include <float.h>.
8176         (__ieee754_exp10): Handle underflow here rather than multiplying
8177         large negative argument by M_LN10.
8178         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8179         of __ieee754_expf.
8180         * math/e_exp10l.c: Include <float.h>.
8181         (__ieee754_exp10l): Handle underflow here rather than multiplying
8182         large negative argument by M_LN10l.
8183         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8184         spurious overflow exception on underflow.
8185
8186 2012-04-29  Marek Polacek  <polacek@redhat.com>
8187
8188         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8189         (__fortify_function): New macro.
8190         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8191         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8192         __extern_always_inline.
8193         * libio/bits/stdio2.h: Likewise.
8194         * libio/bits/stdio.h: Likewise.
8195         * string/string.h: Likewise.
8196         * string/bits/string3.h: Likewise.
8197         * include/stdio.h: Likewise.
8198         * stdlib/bits/stdlib.h: Likewise.
8199         * stdlib/stdlib.h: Likewise.
8200         * rt/bits/mqueue2.h: Likewise.
8201         * rt/mqueue.h: Likewise.
8202         * posix/bits/unistd.h: Likewise.
8203         * posix/unistd.h: Likewise.
8204         * io/bits/poll2.h: Likewise.
8205         * io/bits/fcntl2.h: Likewise.
8206         * io/fcntl.h: Likewise.
8207         * io/sys/poll.h: Likewise.
8208         * misc/bits/syslog.h: Likewise.
8209         * misc/bits/syslog-ldbl.h: Likewise.
8210         * misc/sys/syslog.h: Likewise.
8211         * socket/bits/socket2.h: Likewise.
8212         * socket/sys/socket.h: Likewise.
8213         * debug/tst-chk1.c: Likewise.
8214         * wcsmbs/bits/wchar2.h: Likewise.
8215         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8216         * wcsmbs/wchar.h: Likewise.
8217
8218 2012-04-29  Andreas Jaeger  <aj@suse.de>
8219
8220         * Makerules (tests): Remove enable-check-abi protection.
8221         (check-abi-warn): Remove.
8222         (check-abi-%): Remove check-abi-warn usage.
8223
8224         * configure.in: Remove check-abi configure option.
8225         * configure: Regenerated.
8226         * config.make.in (enable-check-abi): Remove.
8227
8228 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8229
8230         [BZ #14033]
8231         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8232         double functions to double *_finite functions.
8233
8234         [BZ #13941]
8235         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8236         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8237         LDBL_MIN_EXP.
8238         * stdio-common/Makefile (tests): Add tst-sprintf3.
8239         * stdio-common/tst-sprintf3.c: New file.
8240
8241         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8242         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8243
8244 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8245
8246         * conform/conformtest.pl: Remove duplicate typed-constant
8247         handling.
8248
8249 2012-04-28  David S. Miller  <davem@davemloft.net>
8250
8251         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8252         (check-abi-%): Remove AWK script prerequisite and explicit
8253         abilist directory.
8254         (check-abi): Rewrite to just diff the symlist with the abilist.
8255         (config-tls, config-abi-config): Delete, no longer used.
8256         (update-abi-%): Remove AWK script and explicit abilist directory.
8257         (update-abi): Rewrite to simply compare and conditionally copy the
8258         symlist and the sysdep abilist file.  Remove update-abi-config
8259         checks.
8260         * abilist/ld.abilist: Remove.
8261         * abilist/libBrokenLocale.abilist: Remove.
8262         * abilist/libanl.abilist: Remove.
8263         * abilist/libcrypt.abilist: Remove.
8264         * abilist/libdl.abilist: Remove.
8265         * abilist/librt.abilist: Remove.
8266         * abilist/libthread_db.abilist: Remove.
8267         * abilist/libutil.abilist: Remove.
8268         * scripts/extract-abilist.awk: Remove.
8269         * scripts/merge-abilist.awk: Remove.
8270         * sysdeps/generic/libcidn.abilist: New file.
8271         * sysdeps/generic/libnss_compat.abilist: New file.
8272         * sysdeps/generic/libnss_db.abilist: New file.
8273         * sysdeps/generic/libnss_dns.abilist: New file.
8274         * sysdeps/generic/libnss_files.abilist: New file.
8275         * sysdeps/generic/libnss_hesiod.abilist: New file.
8276         * sysdeps/generic/libnss_nis.abilist: New file.
8277         * sysdeps/generic/libnss_nisplus.abilist: New file.
8278         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8279         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8280         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8281         file.
8282         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8283         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8284         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8285         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8286         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8287         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8288         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8289         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8290         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8291         file.
8292         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8293         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8294         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8295         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8296         file.
8297         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8298         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8299         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8300         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8301         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8302         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8303         file.
8304         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8305         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8306         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8307         file.
8308         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8309         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8310         New file.
8311         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8312         New file.
8313         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8314         New file.
8315         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8316         New file.
8317         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8318         New file.
8319         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8320         New file.
8321         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8322         New file.
8323         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8324         New file.
8325         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8326         New file.
8327         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8328         New file.
8329         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8330         New file.
8331         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8332         New file.
8333         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8334         New file.
8335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8336         file.
8337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8338         New file.
8339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8340         New file.
8341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8342         file.
8343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8344         New file.
8345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8346         New file.
8347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8348         file.
8349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8350         New file.
8351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8352         New file.
8353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8354         New file.
8355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8356         New file.
8357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8358         New file.
8359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8360         New file.
8361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8362         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8363         file.
8364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8365         New file.
8366         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8367         file.
8368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8369         file.
8370         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8371         file.
8372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8373         file.
8374         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8375         file.
8376         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8377         New file.
8378         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8379         file.
8380         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8381         file.
8382         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8383         New file.
8384         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8385         file.
8386         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8387         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8388         file.
8389         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8390         New file.
8391         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8392         file.
8393         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8394         file.
8395         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8396         file.
8397         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8398         file.
8399         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8400         file.
8401         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8402         New file.
8403         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8404         file.
8405         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8406         file.
8407         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8408         New file.
8409         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8410         file.
8411         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8412         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8413         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8414         file.
8415         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8416         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8417         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8418         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8419         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8420         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8421         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8422         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8423         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8424         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8425         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8426         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8427         file.
8428         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8429         New file.
8430         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8431         file.
8432         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8433         file.
8434         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8435         file.
8436         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8437         file.
8438         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8439         file.
8440         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8441         New file.
8442         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8443         New file.
8444         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8445         file.
8446         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8447         New file.
8448         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8449         file.
8450         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8451         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8452         file.
8453         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8454         New file.
8455         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8456         file.
8457         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8458         file.
8459         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8460         file.
8461         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8462         file.
8463         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8464         file.
8465         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8466         New file.
8467         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8468         New file.
8469         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8470         file.
8471         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8472         New file.
8473         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8474         file.
8475
8476 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8477
8478         * conform/conformtest.pl: Fix typo in handling typed-constant from
8479         allow-header.
8480
8481 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8482
8483         * README: Cut down references to pre-2.6 Linux kernels and
8484         Linuxthreads.  Update lists of configurations in libc and ports
8485         and sort alphabetically.  Say "or newer" with Linux kernel version
8486         requirements.
8487
8488         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8489
8490 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8491
8492         [BZ #887]
8493         * math/libm-test.inc (logb_test_downward): New test to expose
8494         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8495         rounding mode.
8496
8497 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8498
8499         [BZ #14027]
8500         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8501         to be done.
8502         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8503         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8504
8505 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8506
8507         * sysdeps/unix/i386/brk.S: Remove file.
8508         * sysdeps/unix/i386/dl-brk.S: Likewise.
8509         * sysdeps/unix/i386/pipe.S: Likewise.
8510         * sysdeps/unix/i386/sigreturn.S: Likewise.
8511         * sysdeps/unix/i386/syscall.S: Likewise.
8512         * sysdeps/unix/i386/vfork.S: Likewise.
8513         * sysdeps/unix/i386/wait.S: Likewise.
8514
8515         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8516         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8517
8518         * configure.in (arm*-none*): Do not allow without
8519         --enable-hacker-mode.
8520         (netbsd*): Remove case setting base_os.
8521         (386bsd*): Likewise.
8522         (freebsd*): Likewise.
8523         (bsdi*): Likewise.
8524         (osf*): Likewise.
8525         (sunos*): Likewise.
8526         (ultrix*): Likewise.
8527         (newsos*): Likewise.
8528         (dynix*): Likewise.
8529         (*bsd*): Likewise.
8530         (sysv*): Likewise.
8531         (isc*): Likewise.
8532         (esix*): Likewise.
8533         (sco*): Likewise.
8534         (minix*): Likewise.
8535         (irix4*): Likewise.
8536         (irix6*): Likewise.
8537         (solaris[2-9]*): Likewise.
8538         (none): Likewise.
8539         * configure: Regenerated.
8540
8541 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8542
8543         [BZ #11521]
8544         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8545         overflow or cancellation in calculating denominator.
8546         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8547         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8548         down expression to avoid unexpected rounding in newer GCCs.
8549         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8550
8551 2012-04-26  David S. Miller  <davem@davemloft.net>
8552
8553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8554         long-double compat symbols.
8555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8560         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8561         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8562         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8563         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8564         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8565         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8566         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8568
8569 2012-04-25  David S. Miller  <davem@davemloft.net>
8570
8571         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8572         HWCAP_* values only after the memory barriers have been defined.
8573         (atomic_full_barrier): Define.
8574         (atomic_read_barrier): Define.
8575         (atomic_write_barrier): Define.
8576
8577 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8578
8579         * shlib-versions: Add libgcc_s version information.
8580         * sysdeps/generic/libgcc_s.h: Remove.
8581         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8582         libgcc_s.h.
8583         * sysdeps/gnu/unwind-resume.c: Likewise.
8584         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8585
8586 2012-04-25  David S. Miller  <davem@davemloft.net>
8587
8588         * sysdeps/unix/sparc/brk.S: Delete.
8589         * sysdeps/unix/sparc/dl-brk.S: Delete.
8590         * sysdeps/unix/sparc/pipe.S: Delete.
8591         * sysdeps/unix/sparc/sysdep.S: Delete.
8592         * sysdeps/unix/sparc/sysdep.h: Delete.
8593         * sysdeps/unix/sparc/vfork.S: Delete.
8594         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8595         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8596         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8597         ret_ERRVAL, r0, r1, MOVE): Define.
8598         (JUMPTARGET): Remove.
8599         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8600         sysdeps/unix/sparc/sysdep.h
8601         (ENTRY, END): Remove.
8602         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8603
8604 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8605
8606         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8607         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8608         -DIS_IN_build.
8609
8610         * timezone/README: Update upstream location and email address for
8611         tzcode and tzdata.
8612         * timezone/zdump.c: Update from tzcode 2012b.
8613         * timezone/zic.c: Likewise.
8614
8615         * configure.in (libc_cv_as_needed): Remove test.
8616         * configure: Regenerated.
8617         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8618         conditional definition.
8619         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8620         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8621         * config.make.in (have-as-needed): Remove variable.
8622
8623 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8624             Paul Pluzhnikov  <ppluzhnikov@google.com>
8625
8626         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8627         strings correctly.
8628
8629 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8630
8631         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8632         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8633         * sysdeps/sh/strlen.S: Likewise.
8634
8635 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8636
8637         * sysdeps/unix/fork.S: Remove file.
8638         * sysdeps/unix/i386/fork.S: Likewise.
8639         * sysdeps/unix/sparc/fork.S: Likewise.
8640
8641         * sysdeps/unix/system.c: Remove file.
8642         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8643
8644         * sysdeps/unix/getegid.S: Remove file.
8645         * sysdeps/unix/geteuid.S: Likewise.
8646
8647 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8648
8649         * scripts/check-localplt.awk: New file.
8650         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8651         of diff.
8652         * scripts/data/localplt-generic.data: Add a comment.
8653
8654         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8655         NODE when __dir_mkfile failed.
8656         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8657         Reported by Ludovic Courtès <ludo@gnu.org>.
8658
8659 2012-04-24  Andreas Jaeger  <aj@suse.de>
8660
8661         * Makerules (common-clean): Also remove gen-as-const-headers
8662         files.
8663
8664 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8665
8666         * Makerules (native-compile): Do not change working directory for
8667         build.  Use $(OUTPUT_OPTION) in command.
8668         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8669
8670 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8671
8672         [BZ #13886]
8673         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8674         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8675         * math/libm-test.inc (floor_test): Add more tests.
8676         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8677
8678 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8679
8680         * sysdeps/unix/getdents.c: Remove file.
8681         * sysdeps/unix/sysv/getdents.c: Likewise.
8682         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8683
8684         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8685         sysdeps/unix/mman/syscalls.list.
8686         (mmap): Likewise.
8687         (mprotect): Likewise.
8688         (msync): Likewise.
8689         (munmap): Likewise.
8690         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8691         * sysdeps/unix/mman/syscalls.list: Remove.
8692         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8693
8694         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8695         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8696         * configure: Regenerated.
8697         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8698         $(libgcc_s_suffix).
8699         * config.make.in (libgcc_s_suffix): Remove variable.
8700
8701 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8702
8703         * sysdeps/unix/sysv/gethostname.c: Move to ...
8704         * sysdeps/posix/gethostname.c: ... here.
8705
8706         * sysdeps/unix/execve.S: Remove file.
8707
8708         * sysdeps/unix/_exit.S: Remove file.
8709
8710 2012-04-23  Andreas Jaeger  <aj@suse.de>
8711
8712         [BZ #13739]
8713         * manual/Makefile: Remove make dist support, there's no
8714         need for a stand-alone documentation tar ball.
8715         (TEXI2DVI): Define always, it's not in Makeconfig.
8716         (dist): Removed.
8717         (tar-it): Removed.
8718         (edition): Removed.
8719         (glibc-doc-$(edition).tar): Removed
8720         (%.Z): Removed.
8721         (%.gz): Removed.
8722         (%.uu): Removed.
8723         (ETAGS): Remove, it's in Makeconfig.
8724         (move-if-change): Remove, it's in Makeconfig.
8725
8726 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8727
8728         [BZ #13970]
8729         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8730         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8731         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8732         (strtod_l, strtof_l, strtold_l): Remove __wur.
8733         It is not necessarily an error to ignore strtol's return value.
8734         One can reliably look at the stored endptr to decide whether
8735         the number had valid syntax.
8736
8737 2012-04-21  Andreas Jaeger  <aj@suse.de>
8738
8739         [BZ #13739]
8740         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8741
8742 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8743
8744         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8745         * sysdeps/unix/sysv/Versions: Remove file.
8746
8747 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8748
8749         [BZ #13927]
8750         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8751
8752 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8753
8754         [BZ #7064]
8755         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8756         version from __vm86.
8757
8758 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8759
8760         * sysdeps/unix/common/lxstat.c: Remove file.
8761         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8762
8763         * sysdeps/unix/sysv/Makefile: Remove file.
8764
8765         * sysdeps/unix/sysv/direct.h: Remove file.
8766
8767         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8768         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8769         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8770         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8771         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8772         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8773         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8774
8775         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8776
8777         * sysdeps/unix/xmknod.c: Remove file.
8778         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8779
8780         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8781
8782         * sysdeps/unix/sysv/i386/time.S: Remove file.
8783
8784         * sysdeps/unix/fxstat.c: Remove file.
8785         * sysdeps/unix/xstat.c: Likewise.
8786         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8787
8788         * sysdeps/unix/sysv/sigaction.c: Remove file.
8789
8790         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8791         (sysdep_headers): Remove variable.
8792         [termio.h not in sysdep_headers] (generated): Likewise.
8793         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8794         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8795         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8796         * sysdeps/unix/sysv/tcflow.c: Likewise.
8797         * sysdeps/unix/sysv/tcflush.c: Likewise.
8798         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8799         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8800         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8801         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8802         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8803
8804         * sysdeps/unix/siglist.c: Remove file.
8805
8806         * sysdeps/unix/getppid.S: Remove file.
8807
8808         * sysdeps/unix/mkdir.c: Remove file.
8809         * sysdeps/unix/rmdir.c: Likewise.
8810
8811 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8812
8813         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8814         ERR_MAX value.
8815         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8816         errlist-compat value.
8817
8818 2012-04-18  David S. Miller  <davem@davemloft.net>
8819
8820         * sysdeps/generic/memcopy.h (reg_char): Delete.
8821         * debug/strcat_chk.c: Use char, not reg_char.
8822         * debug/strcpy_chk.c: Likewise.
8823         * debug/strncat_chk.c: Likewise.
8824         * debug/strncpy_chk.c: Likewise.
8825         * string/memchr.c: Likewise.
8826         * string/memrchr.c: Likewise.
8827         * string/rawmemchr.c: Likewise.
8828         * string/strcat.c: Likewise.
8829         * string/strchr.c: Likewise.
8830         * string/strchrnul.c: Likewise.
8831         * string/strcmp.c: Likewise.
8832         * string/strcpy.c: Likewise.
8833         * string/strncat.c: Likewise.
8834         * string/strncmp.c: Likewise.
8835         * string/strncpy.c: Likewise.
8836
8837 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8838
8839         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8840         __builtin_memcopy is called when src and dest ranges are known to not
8841         overlap.
8842
8843 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8844
8845         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8846         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8847         fwd_align_merge macro call.
8848         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8849         bwd_align_merge macro call.
8850         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8851
8852 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8853
8854         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8855         bwd_align_merge macros.
8856         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8857         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8858         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8859
8860 2012-04-18  David S. Miller  <davem@davemloft.net>
8861
8862         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8863
8864 2012-04-18  Andreas Jaeger  <aj@suse.de>
8865
8866         [BZ# 6794]
8867         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8868         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8869         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8870
8871         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8872         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8873         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8874
8875         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8876         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8877         Adjust for changed ldbl-128 files.
8878
8879         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8880         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8881         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8882
8883 2012-04-17  David S. Miller  <davem@davemloft.net>
8884
8885         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8886
8887 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8888
8889         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8890         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8891         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8892         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8893         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8894         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8895
8896 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8897
8898         [BZ #6794]
8899         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8900         * math/libm-test.inc: Add ilogb errno and exception tests.
8901         * math/w_ilogb.c: New file: ilogb wrapper.
8902         * math/w_ilogbf.c: New file: ilogbf wrapper.
8903         * math/w_ilogbl.c: New file: ilogbl wrapper.
8904         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8905         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8906         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8907         exception being thrown with 0.0 as argument.
8908         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8909         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8910         exception being thrown with 0.0 as argument.
8911         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8912         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8913         exception being thrown with 0.0 as argument.
8914         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8915         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8916         exception being thrown with 0.0 as argument.
8917         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8918         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8919         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8920         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8921         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8922         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8923         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8924         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8925         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8926
8927 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8928
8929         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8930         with altivec.
8931
8932 2012-04-16  Marek Polacek  <polacek@redhat.com>
8933
8934         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8935
8936 2012-04-16  Marek Polacek  <polacek@redhat.com>
8937
8938         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8939         operands of fdivp instruction.
8940
8941 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8942
8943         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8944         * elf/tst-auditmod3b.c: Likewise.
8945         * elf/tst-auditmod4b.c: Likewise.
8946         * elf/tst-auditmod5b.c: Likewise.
8947         * elf/tst-auditmod6b.c: Likewise.
8948         * elf/tst-auditmod6c.c: Likewise.
8949         * elf/tst-auditmod7b.c: Likewise.
8950         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8951         * sysdeps/x86_64/preconfigure.in: Likewise.
8952         * sysdeps/x86_64/preconfigure: Regenerated.
8953
8954 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8955
8956         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8957         __ILP32__.
8958
8959 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8960
8961         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8962         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8963
8964 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8965
8966         [BZ #13973]
8967         * locale/iso-639.def: Fix gl language name. Spotted by
8968         Yaron Shahrabani.
8969
8970 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8971
8972         [BZ #2074]
8973         * libio/libio.h (__io_write_fn): Update comment.
8974
8975 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8976
8977         [BZ #2074]
8978         * stdio.texi (Hook Functions): The user provided writer function
8979         is not allowed to return -1.
8980
8981 2012-04-11  David S. Miller  <davem@davemloft.net>
8982
8983         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8984
8985 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8986
8987         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8988         Add a leading slash to rtkaio.
8989
8990 2012-04-11  Jim Meyering  <meyering@redhat.com>
8991
8992         [BZ #11959]
8993         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
8994         It is not necessarily an error to ignore fwrite's return
8995         value.  One can reliably use ferror to test for errors after
8996         the fact.
8997
8998 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8999
9000         * bits/types.h (__snseconds_t): New type.
9001         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9002
9003         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9004         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9005         (__SNSECONDS_T_TYPE): Likewise.
9006         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9007         (__SNSECONDS_T_TYPE): Likewise.
9008         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9009         (__SNSECONDS_T_TYPE): Likewise.
9010
9011 2012-04-10  Andreas Jaeger  <aj@suse.de>
9012
9013         [BZ #2636]
9014         * manual/time.texi (Processor Time): Return type of times is
9015         elapsed real time since an arbitrary point in the past.
9016         (CPU Time): Move CLK_TCK from here...
9017         (Processor Time): ...to here.  Correct description.
9018         * manual/conf.texi (Constants for Sysconf): Correct description of
9019         _SC_CLK_TCK.
9020
9021 2012-04-10  David S. Miller  <davem@davemloft.net>
9022
9023         [BZ #13967]
9024         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9025         where the is a gap between DT_REL(A) and DT_JMPREL.
9026
9027 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9028
9029         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9030         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9031         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9032
9033 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9034
9035         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9036         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9037         (dl_main): Handle --inhibit-cache.
9038         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9039         _dl_inhibit_cache.
9040         * elf/dl-load.c (_dl_map_object): Use it.
9041         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9042
9043 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9044
9045         [BZ #13872]
9046         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9047         (__ieee754_powl): Saturate large exponents rather than testing for
9048         overflow of y*log2(x).
9049         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9050         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9051         exceptions.
9052
9053         [BZ #11521]
9054         * math/s_ctan.c: Include <float.h>.
9055         (__ctan): Avoid internal overflow or cancellation in calculating
9056         denominator.
9057         * math/s_ctanf.c: Likewise.
9058         * math/s_ctanl.c: Likewise.
9059         * math/s_ctanh.c: Likewise.
9060         * math/s_ctanhf.c: Likewise.
9061         * math/s_ctanhl.c: Likewise.
9062         * math/libm-test.inc (ctan_test): Add more tests.
9063         (ctanh_test): Likewise.
9064         * sysdeps/i386/fpu/libm-test-ulps: Update.
9065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9066
9067 2012-04-09  Andreas Jaeger  <aj@suse.de>
9068
9069         [BZ #6894]
9070         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9071         is an optional BSD extension.
9072
9073         [BZ #10254]
9074         * manual/stdio.texi (Opening Streams): Document additional fopen
9075         parameters.
9076
9077 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9078
9079         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9080         %eax without telling the compiler.
9081
9082 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9083
9084         [BZ # 13963]
9085         * manual/install.texi: Use sourceware.org.
9086
9087 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9088
9089         [BZ #13873]
9090         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9091         (__ieee754_pow): Generate overflow and underflow using huge*huge
9092         and tiny*tiny rather than just returning constant infinity or zero
9093         for large exponents.
9094         * math/libm-test.inc (pow_test): Require overflow exceptions for
9095         applicable cases of large exponents.
9096
9097         [BZ #706]
9098         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9099         (__ieee754_pow): Use iterative multiplication algorithm only for
9100         integer exponents with absolute value below 1024.  Check for odd
9101         integer exponents when using algorithm for real exponents.
9102         * math/libm-test.inc (pow_test): Add more tests.
9103         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9104
9105 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9106
9107         [BZ #13705]
9108         * math/libm-test.inc (exp_test): Do not allow overflow exception
9109         on underflow test.
9110
9111 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9112
9113         [BZ #13705]
9114         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9115         instead of __kernel_standard_f.
9116
9117 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9118
9119         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9120         * sysdeps/x86_64/memset_chk.S: Likewise.
9121
9122 2012-04-08  Andreas Jaeger  <aj@suse.de>
9123
9124         [BZ #10153]
9125         * manual/startup.texi (Environment Access): Describe return value
9126         for putenv and setenv.
9127
9128         [BZ #6895]
9129         * manual/filesys.texi (Directory Entries): Add description for
9130         DT_LNK.
9131
9132         [BZ #6890]
9133         * manual/filesys.texi (Directory Entries): Clarify that it's file
9134         system not operating system in the description of DT_UNKNOWN.
9135
9136         [BZ #6578]
9137         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9138
9139 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9140
9141         [BZ #6649]
9142         * manual/llio.texi (Opening and Closing Files): Add cross
9143         reference to explain mode argument.
9144
9145 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9146
9147         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9148         * sysdeps/x86_64/memset_chk.S: Likewise.
9149
9150 2012-04-07  David S. Miller  <davem@davemloft.net>
9151
9152         * elf/elf.h (R_SPARC_WDISP10): Define.
9153         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9154         R_SPARC_SIZE32.
9155         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9156         R_SPARC_SIZE64 and R_SPARC_H34.
9157
9158 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9159
9160         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9161         conditions and remove no longer applicable assertion.
9162
9163 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9164
9165         * bits/byteswap.h: Include <features.h>.
9166         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9167         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9168
9169 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9170
9171         * bits/byteswap.h (__bswap_16): Removed.
9172         Include <bits/byteswap-16.h> to get __bswap_16.
9173         * sysdeps/i386/bits/byteswap.h: Likewise.
9174         * sysdeps/s390/bits/byteswap.h: Likewise.
9175         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9176         * bits/byteswap-16.h: New file.
9177         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9178         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9179         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9180         * string/Makefile (headers): Add bits/byteswap-16.h.
9181
9182 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9183
9184         [BZ #13895]
9185         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9186         extra indirection.
9187         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9188         * nss/tst-nss-static.c: New.
9189
9190 2012-04-06  Robert Millan  <rmh@gnu.org>
9191
9192         [BZ #6486]
9193         * manual/llio.texi (File Position Primitive): lseek
9194         refers to WHENCE when it really means OFFSET.
9195
9196 2012-04-06  Andreas Jaeger  <aj@suse.de>
9197
9198         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9199         strncmp declarations.
9200
9201         * abilist/libc.abilist: Add __poll and __ppoll.
9202
9203 2012-04-05  David S. Miller  <davem@davemloft.net>
9204
9205         * scripts/check-local-headers.sh: Accept a host triplet in the
9206         path matched by the exclude regexp.
9207
9208         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9209         definition.
9210         * sysdeps/powerpc/powerpc32/dl-machine.h
9211         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9212         * sysdeps/s390/s390-32/dl-machine.h
9213         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9214         * sysdeps/sparc/sparc32/dl-machine.h
9215         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9216         * sysdeps/sparc/sparc64/dl-machine.h
9217         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9218
9219         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9220         lazy binding.
9221         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9222         undefined symbol errors.
9223
9224         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9225         DT_NEEDED entries.
9226
9227 2012-04-05  Michael Matz  <matz@suse.de>
9228
9229         [BZ #13592]
9230         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9231
9232 2012-04-05  Andreas Jaeger  <aj@suse.de>
9233
9234         [BZ #13908]
9235         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9236         comment.
9237
9238 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9239
9240         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9241         which ROUND is no valid rounding mode.
9242
9243 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9244
9245         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9246         read again.
9247         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9248
9249 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9250
9251         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9252         an exception using FPU order intentionally.
9253
9254 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9255
9256         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9257         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9258         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9259         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9260
9261 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9262
9263         [BZ #12340]
9264         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9265         EINVAL when BUFLEN is too smal.
9266
9267 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9268
9269         [BZ #13553]
9270         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9271         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9272
9273 2012-04-03  Andreas Jaeger  <aj@suse.de>
9274
9275         [BZ #13938]
9276         * manual/setjmp.texi (System V contexts): Fix sentence.
9277
9278         [BZ #13926]
9279         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9280         New macro for this case.
9281         [!__GNUC__] (__bswap_64): New inline function for this case.
9282         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9283         * bits/byteswap.h: Likewise.
9284         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9285         ull, guard with __GLIBC_HAVE_LONG_LONG.
9286
9287         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9288         __GLIBC_HAVE_LONG_LONG.
9289
9290         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9291         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9292
9293 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9294
9295         [BZ #13691]
9296         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9297         inptr and inend, rather than using last_ch.
9298
9299 2012-04-02  David S. Miller  <davem@davemloft.net>
9300
9301         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9302         * stdio-common/printf-parse.h (read_int): Change return type to
9303         'int', return -1 on INT_MAX overflow.
9304         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9305         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9306         overflows INT_MAX.  Check for overflow of in-format-string precision
9307         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9308         SIZE_MAX not INT_MAX for integer overflow test.
9309         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9310         skip the construct in the format string but do not record anything.
9311         * stdio-common/bug22.c: Adjust to test both width/prevision
9312         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9313         explicitly for proper errno values.
9314
9315 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9316
9317         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9318         CHAR_MAX.
9319         * string/test-strcmp.c [! WIDE]: Likewise.
9320         * time/tst-mktime2.c: Likewise for INT_MAX.
9321         * string/test-string.h: #include <sys/param.h> for MIN.
9322
9323         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9324         * sysdeps/i386/init-first.c (init): Likewise.
9325         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9326         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9327         * sysdeps/sh/init-first.c (init): Likewise.
9328
9329 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9330
9331         * po/ru.po: Update from translation team.
9332         * po/vi.po: Likewise.
9333
9334 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9335
9336         * resolv/nss_dns/dns-host.c: Merge copyright years.
9337
9338 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9339
9340         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9341         Optimize memcpy with prefetch if
9342         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9343         src, dst pointers have unequal 16 byte alignments.
9344
9345 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9346
9347         [BZ #13928]
9348         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9349         from a CNAME entry and return the minimum ttl for the query.
9350         (gaih_getanswer_slice): Likewise.
9351
9352 2012-03-30  Jeff Law  <law@redhat.com>
9353
9354         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9355         due to long keys.
9356         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9357         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9358
9359         * resolv/nss_dns/dns-host.c: Update copyright year.
9360
9361 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9362
9363         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9364         requests to save a system call.  Fix check that all bytes are sent.
9365
9366         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9367         comments for sendmmsg.
9368
9369 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9370
9371         [BZ #13691]
9372         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9373         with only 1 character between 0x0041 and 0x01b0.
9374         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9375         * wcsmbs/tst-mbsnrtowcs.c: New file.
9376
9377 2012-03-29  David S. Miller  <davem@davemloft.net>
9378
9379         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9380         small copies by hand.
9381
9382 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9383
9384         [BZ #13761]
9385         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9386         _nss_compat_initgroups_dyn): Fall back to malloc/free
9387         for large group memberships.
9388
9389 2012-03-28  David S. Miller  <davem@davemloft.net>
9390
9391         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9392         that branches into memcpy.
9393         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9394         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9395         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9396         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9397         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9398         bits.
9399         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9400         implementation too.
9401         * sysdeps/sparc/mempcpy.S: New file.
9402
9403         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9404         the IFUNC routine in the libc case.
9405         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9406
9407         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9408         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9409         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9410         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9411         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9412         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9413         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9414         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9415
9416         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9417         loop to 256 bytes instead of 64 bytes and fix test signedness.
9418
9419         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9420         * sysdeps/sparc/sparc32/Makefile: rather than here...
9421         * sysdeps/sparc/sparc64/Makefile: and here.
9422
9423 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9424
9425         * malloc/mallocbug.c: Avoid warnings about unused variables.
9426
9427 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9428
9429         [BZ #13760]
9430         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9431         in the right place. Discard and retry query if response is
9432         larger than input buffer size.
9433
9434 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9435
9436         [BZ #369]
9437         [BZ #2678]
9438         [BZ #3866]
9439         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9440         x for large integer exponent.
9441         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9442         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9443         sign of result as needed afterwards.
9444         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9445         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9446         result for underflowing pow the same as for overflow.
9447         (__kernel_standard_l): Handle powl overflow and underflow here
9448         rather than calling __kernel_standard.
9449         * math/libm-test.inc (pow_test): Add more tests.
9450
9451         [BZ #3868]
9452         [BZ #13879]
9453         [BZ #13910]
9454         [BZ #13911]
9455         [BZ #13912]
9456         [BZ #13913]
9457         [BZ #13915]
9458         [BZ #13916]
9459         [BZ #13917]
9460         [BZ #13918]
9461         [BZ #13919]
9462         [BZ #13920]
9463         [BZ #13921]
9464         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9465         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9466         (__kernel_standard_l): New function.
9467         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9468         __kernel_standard.
9469         * math/w_acosl.c (__acosl): Likewise.
9470         * math/w_asinl.c (__asinl): Likewise.
9471         * math/w_atan2l.c (__atan2l): Likewise.
9472         * math/w_atanhl.c (__atanhl): Likewise.
9473         * math/w_coshl.c (__coshl): Likewise.
9474         * math/w_exp10l.c (__exp10l): Likewise.
9475         * math/w_exp2l.c (__exp2l): Likewise.
9476         * math/w_fmodl.c (__fmodl): Likewise.
9477         * math/w_hypotl.c (__hypotl): Likewise.
9478         * math/w_j0l.c (__j0l, __y0l): Likewise.
9479         * math/w_j1l.c (__j1l, __y1l): Likewise.
9480         * math/w_jnl.c (__jnl, __ynl): Likewise.
9481         * math/w_lgammal.c (__lgammal): Likewise.
9482         * math/w_log10l.c (__log10l): Likewise.
9483         * math/w_log2l.c (__log2l): Likewise.
9484         * math/w_logl.c (__logl): Likewise.
9485         * math/w_powl.c (__powl): Likewise.
9486         * math/w_remainderl.c (__remainderl): Likewise.
9487         * math/w_scalbl.c (sysv_scalbl): Likewise.
9488         * math/w_sinhl.c (__sinhl): Likewise.
9489         * math/w_sqrtl.c (__sqrtl): Likewise.
9490         * math/w_tgammal.c (__tgammal): Likewise.
9491         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9492         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9493         * math/libm-test.inc (acos_test): Add more tests.
9494         (acosh_test): Likewise.
9495         (asin_test): Likewise.
9496         (atanh_test): Likewise.
9497         (exp_test): Likewise.
9498         (exp10_test): Likewise.
9499         (exp2_test): Likewise.
9500         (expm1_test): Likewise.
9501         (lgamma_test): Likewise.
9502         (log_test): Likewise.
9503         (log10_test): Likewise.
9504         (log1p_test): Likewise.
9505         (log2_test): Likewise.
9506         (pow_test): Do not allow some spurious overflow exceptions.
9507         (sqrt_test): Add more tests.
9508         (tgamma_test): Likewise.
9509         (y0_test): Likewise.
9510         (y1_test): Likewise.
9511         (yn_test): Likewise.
9512
9513 2012-03-27  Anton Blanchard  <anton@samba.org>
9514
9515         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9516         MAP_HUGETLB.
9517         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9518         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9519         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9520
9521 2012-03-27  David S. Miller  <davem@davemloft.net>
9522
9523         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9524
9525         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9526         have-as-vis3 check.
9527
9528 2012-03-27  Andreas Jaeger  <aj@suse.de>
9529
9530         * sysdeps/x86_64/elf/configure.in: Moved to ...
9531         * sysdeps/x86_64/configure.in: ... here.
9532         * sysdeps/x86_64/elf/start.S: Moved to ...
9533         * sysdeps/x86_64/start.S: ... here.
9534         * sysdeps/x86_64/elf/configure: Delete.
9535
9536         * sysdeps/x86_64/configure.in: Merge contents from
9537         sysdeps/i386/configure.in (without i686 check).
9538
9539         * sysdeps/i386/elf/Versions: Merge into ...
9540         * sysdeps/i386/Versions: ... this.
9541         * sysdeps/i386/elf/Versions: Delete file.
9542         * sysdeps/i386/elf/start.S: Moved to ...
9543         * sysdeps/i386/start.S: ...here.
9544         * sysdeps/i386/elf/configure.in: Merge into...
9545         * sysdeps/i386/configure.in: ...here.
9546         * sysdeps/i386/elf/configure.in: Delete file.
9547         * sysdeps/i386/elf/configure: Delete file.
9548
9549         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9550         * debug/backtracesyms.c: ... here.
9551         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9552         * debug/backtracesymsfd.c: ... here.
9553         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9554         * sysdeps/generic/ifunc-sel.h: ... here.
9555
9556         * sysdeps/unix/i386/start.c: Delete file.
9557         * sysdeps/unix/sparc/start.c: Delete file.
9558         * sysdeps/unix/start.c: Delete file.
9559
9560         * sysdeps/sh/elf/configure.in: Moved to ...
9561         * sysdeps/sh/configure.in: ... here.
9562         * sysdeps/sh/elf/start.S: Moved to ...
9563         * sysdeps/sh/start.S: ... here.
9564         * sysdeps/sh/elf/configure: Delete file.
9565
9566         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9567         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9568         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9569         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9570         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9571         * sysdeps/powerpc/powerpc64/start.S: here.
9572         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9573         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9574         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9575         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9576         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9577
9578         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9579         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9580         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9581         * sysdeps/powerpc/powerpc32/start.S: ... here.
9582         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9583         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9584         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9585
9586         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9587         * sysdeps/powerpc/ifunc-sel.h: ... here.
9588         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9589         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9590
9591         * sysdeps/sparc/elf/configure.in: Moved to ...
9592         * sysdeps/sparc/configure.in: ... here.
9593         * sysdeps/sparc/elf/configure: Delete file.
9594         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9595         * sysdeps/sparc/sparc32/start.S: ... here.
9596         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9597         * sysdeps/sparc/sparc64/start.S: ... here.
9598         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9599         * sysdeps/sparc/sparc32/Makefile: ... this.
9600         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9601         * sysdeps/sparc/sparc64/Makefile: ... this.
9602
9603         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9604         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9605         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9606         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9607         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9608         * sysdeps/s390/s390-32/setjmp.S: ... here.
9609         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9610         * sysdeps/s390/s390-32/configure.in: ... here.
9611         * sysdeps/s390/s390-32/elf/configure: Delete file.
9612         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9613         * sysdeps/s390/s390-32/start.S: ... here.
9614
9615         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9616         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9617         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9618         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9619         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9620         * sysdeps/s390/s390-64/setjmp.S: ... here.
9621         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9622         * sysdeps/s390/s390-64/configure.in: ... here
9623         * sysdeps/s390/s390-64/elf/configure: Delete file.
9624         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9625         * sysdeps/s390/s390-64/start.S: ... here.
9626         * sysdeps/s390/s390-64/elf/configure: Delete.
9627
9628         * configure.in: Remove support for elf directories in sysdeps.
9629
9630         * configure: Regenerated.
9631         * sysdeps/i386/configure: Regenerated.
9632         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9633         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9634         * sysdeps/s390/s390-32/configure: Regenerated.
9635         * sysdeps/s390/s390-64/configure: Regenerated.
9636         * sysdeps/sh/configure: Regenerated.
9637         * sysdeps/sparc/configure: Regenerated.
9638         * sysdeps/x86_64/configure: Regenerated.
9639
9640 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9641
9642         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9643
9644         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9645         denormal result into account.
9646
9647 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9648
9649         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9650         Reported by Allan McRae <allan@archlinux.org>.
9651
9652 2012-03-23  Jeff Law  <law@redhat.com>
9653
9654         * nss/getnssent.c (__nss_getent): Fix typo.
9655
9656 2012-03-23  David S. Miller  <davem@davemloft.net>
9657
9658         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9659
9660 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9661
9662         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9663         to pad to uint64_t for each field.
9664         (dl_tls_index): Replace unsigned long with uint64_t.
9665
9666 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9667         Paul Pluzhnikov  <ppluzhnikov@google.com>
9668
9669         [BZ #6528]
9670         * grp/Makefile (otherlibs): Don't set it.
9671         * inet/Makefile (otherlibs): Likewise.
9672         * login/Makefile (otherlibs): Likewise.
9673         * nscd/Makefile (otherlibs): Likewise.
9674         * posix/Makefile (otherlibs): Likewise.
9675         * pwd/Makefile (otherlibs): Likewise.
9676         * rt/Makefile (otherlibs): Likewise.
9677         * sunrpc/Makefile (otherlibs): Likewise.
9678         * nss/Makefile (otherlibs): Likewise.
9679         Add libnss_files to routines and static-only-routines.
9680         ($(objpfx)getent): Remove rule.
9681         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9682         static-only-routines.
9683
9684 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9685
9686         [BZ #13892]
9687         * math/s_cexp.c: Include <float.h>.
9688         (__cexp): Handle exp result overflowing not necessarily
9689         overflowing both real and imaginary parts of result.
9690         * math/s_cexpf.c: Likewise.
9691         * math/s_cexpl.c: Likewise.
9692         * math/libm-test.inc (cexp_test): Add more tests.
9693         * sysdeps/i386/fpu/libm-test-ulps: Update.
9694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9695
9696 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9697
9698         * include/link.h (ELFW): New macro.
9699         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9700         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9701
9702 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9703
9704         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9705         with uint64_t.
9706
9707 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9708
9709         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9710         declaration.
9711         (struct La_x32_retval): Likewise.
9712
9713 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9714
9715         * sysdeps/x86_64/preconfigure.in: New file.
9716         * sysdeps/x86_64/preconfigure: New generated file.
9717
9718 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9719
9720         [BZ #13824]
9721         * math/e_exp2l.c: Include <float.h>.
9722         (__ieee754_exp2l): Handle overflow and underflow cases
9723         separately.  Only pass fractional part of argument to
9724         __ieee754_expl.
9725         * math/libm-test.inc (exp2_test): Add more tests.
9726
9727         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9728         negating x to take absolute value.
9729         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9730         Likewise.
9731         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9732         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9733         Likewise.
9734         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9735         computing low part if x was negated.
9736         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9737
9738 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9739
9740         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9741         la_x32_gnu_pltexit.
9742         (pltexit): Cast int_retval to ptrdiff_t.
9743         * elf/tst-auditmod3b.c: Likewise.
9744         * elf/tst-auditmod4b.c: Likewise.
9745         * elf/tst-auditmod5b.c: Likewise.
9746         * elf/tst-auditmod6b.c: Likewise.
9747         * elf/tst-auditmod6c.c: Likewise.
9748         * elf/tst-auditmod7b.c: Likewise.
9749
9750         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9751         and x32_gnu_pltexit.
9752
9753         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9754         __ELF_NATIVE_CLASS.
9755         (La_x32_regs): New macro.
9756         (La_x32_retval): Likewise.
9757         (la_x32_gnu_pltenter): New function prototype.
9758         (la_x32_gnu_pltexit): Likewise.
9759
9760 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9761
9762         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9763         exponent.
9764
9765         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9766
9767         * configure.in (libc_cv_cc_nofma): Check for option to disable
9768         generation of FMA instructions.
9769         * configure: Regenerate.
9770         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9771         * sysdeps/ieee754/dbl-64/Makefile: New file.
9772         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9773         Remove brandred-fma4.
9774         (CFLAGS-brandred-fma4.c): Remove.
9775         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9776         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9777         define.
9778         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9779         define.
9780
9781 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9782
9783         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9784         LLONG_MAX != LONG_MAX.
9785         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9786         (_fitoa_word): Likewise.
9787         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9788         LLONG_MAX != LONG_MAX.
9789         * stdio-common/_itowa.h: Include <_itoa.h>.
9790         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9791         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9792         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9793         only if not defined.
9794         (_ITOA_WORD_TYPE): Likewise.
9795         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9796         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9797
9798 2012-03-21  David S. Miller  <davem@davemloft.net>
9799
9800         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9801
9802 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9803
9804         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9805         of x86_64 when setting libc_cv_slibdir, libdir and
9806         libc_cv_localedir.
9807         * sysdeps/unix/sysv/linux/configure: Regenerated.
9808
9809 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9810
9811         * manual/lang.texi (Old Varargs): Remove section.
9812         (How Variadic): Update menu.
9813         (va_start): Do not mention varargs.h.
9814
9815 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9816             Joseph Myers  <joseph@codesourcery.com>
9817
9818         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9819         link test.
9820         * configure: Regenerated.
9821
9822 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9823
9824         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9825         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9826         conformtest.pl
9827
9828 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9829
9830         * NOTES: Remove.
9831         * Makefile (files-for-dist): Remove NOTES.
9832         (NOTES): Remove rule.
9833         * README: Don't refer to NOTES.
9834         * manual/creature.texi: Don't include macros.texi.
9835         * manual/intro.texi (creature.texi): Remove comment referring to
9836         NOTES.
9837
9838         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9839         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9840         * configure: Regenerated.
9841         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9842         LIBC_TRY_CC_OPTION.
9843         (libc_cv_as_i686): Likewise.
9844         (libc_cv_cc_avx): Likewise.
9845         (libc_cv_cc_sse2avx): Likewise.
9846         (libc_cv_cc_fma4): Likewise.
9847         (libc_cv_cc_novzeroupper): Likewise.
9848         * sysdeps/i386/configure: Regenerated.
9849
9850         [BZ #13883]
9851         * sysdeps/i386/fpu/s_cexp.S: Remove.
9852         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9853         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9854         * math/libm-test.inc (cexp_test): Add more tests.
9855         * sysdeps/i386/fpu/libm-test-ulps: Update.
9856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9857
9858 2012-03-21  Allan McRae  <allan@archlinux.org>
9859
9860         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9861
9862 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9863
9864         [BZ #13871]
9865         * math/w_exp2.c: Do not include <float.h>.
9866         (o_threshold, u_threshold): Remove.
9867         (__exp2): Calculate result before checking finiteness and calling
9868         __kernel_standard.
9869         * math/w_exp2f.c: Likewise.
9870         * math/w_exp2l.c: Likewise.
9871         * math/libm-test.inc (exp2_test): Require overflow exception for
9872         1e6 input.
9873
9874         [BZ #3866]
9875         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9876         range of signed 64-bit integers before using fistpll.  Remove
9877         checks for whether integers fit in mantissa bits.
9878         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9879         the range of signed 32-bit integers before using fistpl.  Remove
9880         checks for whether integers fit in mantissa bits.
9881         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9882         (__ieee754_powl): Test for y outside the range of signed 64-bit
9883         integers before using fistpll.  Reduce 64-bit values to 63-bit
9884         ones as needed.
9885         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9886         divide-by-zero is raised for zero to large negative powers.
9887         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9888         (__ieee754_powl): Test for y outside the range of signed 64-bit
9889         integers before using fistpll.  Reduce 64-bit values to 63-bit
9890         ones as needed.
9891         * math/libm-test.inc (pow_test): Add more tests.
9892
9893 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9894
9895         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9896         <stdio-common/_itoa.h>.
9897         * debug/segfault.c: Likewise.
9898         * elf/dl-cache.c: Likewise.
9899         * elf/dl-minimal.c: Likewise.
9900         * elf/dl-misc.c: Likewise.
9901         * elf/dl-sysdep.c: Likewise.
9902         * elf/dl-version.c: Likewise.
9903         * elf/rtld.c: Likewise.
9904         * hurd/hurdsock.c: Likewise.
9905         * hurd/lookup-retry.c: Likewise.
9906         * malloc/malloc.c: Likewise.
9907         * malloc/mtrace.c: Likewise.
9908         * nscd/nscd_getgr_r.c: Likewise.
9909         * nscd/nscd_getpw_r.c: Likewise.
9910         * nscd/nscd_getserv_r.c: Likewise.
9911         * posix/getopt_init.c: Likewise.
9912         * posix/wordexp.c: Likewise.
9913         * stdio-common/_itoa.c: Likewise.
9914         * stdio-common/printf_fphex.c: Likewise.
9915         * stdio-common/vfprintf.c: Likewise.
9916         * string/_strerror.c: Likewise.
9917         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9918         * sysdeps/i386/i686/hp-timing.h: Likewise.
9919         * sysdeps/mach/_strerror.c: Likewise.
9920         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9921         * sysdeps/mach/hurd/sethostid.c: Likewise.
9922         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9923         * sysdeps/mach/xpg-strerror.c: Likewise.
9924         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9925         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9926         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9927         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9928         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9929         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9930         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9931         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9932         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9933         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9934         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9935         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9936         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9937         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9938         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9939         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9940         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9941         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9942         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9943         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9944         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9945
9946         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9947
9948         * stdio-common/_itoa.h: Moved to ...
9949         * sysdeps/generic/_itoa.h: Here.
9950
9951         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9952
9953         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9954         instead of "_itoa.h" and "_itowa.h".
9955         * stdio-common/vfprintf.: Likewise.
9956
9957 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9958
9959         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9960         <bits/wordsize.h>.
9961         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9962         (__signbit): Likwise.
9963         (llrintf): Likwise.
9964         (llrint): Likwise.
9965
9966 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9967
9968         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9969         __WORDSIZE != 64.
9970
9971 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9972
9973         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9974         OVERFLOW_EXCEPTION_OK.
9975         * math/libm-test.inc ("Philosophy"): Update comment about
9976         exception testing.
9977         (OVERFLOW_EXCEPTION): Define.
9978         (OVERFLOW_EXCEPTION_OK): Likewise.
9979         (INVALID_EXCEPTION_OK): Renumber.
9980         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9981         (IGNORE_ZERO_INF_SIGN): Likewise.
9982         (test_exceptions): Handle FE_OVERFLOW.
9983         (exp10_test): Expect overflow exceptions.
9984         (exp2_test): Likewise.
9985         (expm1_test): Likewise.
9986         (nextafter_test): Likewise.
9987         (pow_test): Likewise.
9988         (scalbn_test): Likewise.
9989         (scalbln_test): Likewise.
9990
9991 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
9992
9993         * sysdeps/x86_64/bits/atomic.h
9994         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
9995         64bit integer.
9996         (atomic_exchange_acq): Likewise.
9997         (__arch_exchange_and_add_body): Likewise.
9998         (__arch_add_body): Likewise.
9999         (atomic_add_negative): Likewise.
10000         (atomic_add_zero): Likewise.
10001
10002 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10003
10004         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10005         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10006
10007 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10008
10009         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10010         Check __x86_64__ instead of __WORDSIZE.
10011
10012 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10013
10014         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10015
10016 2012-03-19  David S. Miller  <davem@davemloft.net>
10017
10018         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10019
10020         * sysdeps/sparc/fpu/fenv_private.h: New file.
10021         * sysdeps/sparc/fpu/math_private.h: Use it.
10022         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10023         Remove.
10024         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10025         (libc_feholdexcept_setroundl): Remove.
10026         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10027         Remove.
10028         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10029         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10030
10031 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10032
10033         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10034         int64_t instead of long int.
10035         (INSERT_WORDS64): Likwise.
10036
10037 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10038
10039         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10040         _Unwind_GetCFA return to _Unwind_Ptr first.
10041
10042 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10043
10044         [BZ #13629]
10045         * math/s_clog.c: Include <float.h>.
10046         (__clog): Scale large or subnormal inputs.
10047         * math/s_clogf.c: Likewise.
10048         * math/s_clogl.c: Likewise.
10049         * math/s_clog10.c: Include <float.h>.
10050         (M_LOG10_2): Define.
10051         (__clog10): Scale large or subnormal inputs.
10052         * math/s_clog10f.c: Likewise.
10053         * math/s_clog10l.c: Likewise.
10054         * math/libm-test.inc (clog_test): Add more tests.
10055         (clog10_test): Likewise.
10056         * sysdeps/i386/fpu/libm-test-ulps: Update.
10057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10058
10059         [BZ #11451]
10060         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10061         x and y.
10062         * math/libm-test.inc (atan2_test): Add another test.
10063
10064         * Makerules (common-objdir-compile): Remove.
10065         * sysdeps/unix/Makefile (config-generated): Do not add
10066         $(unix-generated) to variable.
10067         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10068         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10069         Remove rule.
10070         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10071         Likewise.
10072         [generic bits/local_lim.h] (before-compile): Do not append to
10073         variable.
10074         [generic bits/local_lim.h] (common-generated): Likewise.
10075         [generic sys/param.h] (before-compile): Do not append to variable.
10076         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10077         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10078         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10079         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10080         include.
10081         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10082         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10083         [generic sys/param.h] ($(addprefix
10084         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10085         [generic sys/param.h] (common-generated): Do not append to
10086         variable.
10087         [generic sys/param.h] (sysdep_headers): Likewise.
10088         [generic bits/errno.h] (before-compile): Do not append to
10089         variable.
10090         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10091         rule.
10092         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10093         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10094         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10095         [generic bits/errno.h] (common-generated): Do not append to
10096         variable.
10097         [generic bits/ioctls.h] (before-compile): Do not append to
10098         variable.
10099         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10100         rule.
10101         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10102         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10103         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10104         rule.
10105         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10106         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10107         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10108         [generic bits/ioctls.h] (common-generated): Do not append to
10109         variable.
10110         [generic sys/syscall.h] (syscall.h): Remove variable.
10111         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10112         rule.
10113         [generic sys/syscall.h] (before-compile): Do not append to
10114         variable.
10115         [generic sys/syscall.h] (common-generated): Likewise.
10116         * sysdeps/unix/errnos-tmpl.c: Remove file.
10117         * sysdeps/unix/errnos.awk: Likewise.
10118         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10119         * sysdeps/unix/ioctls.awk: Likewise.
10120         * sysdeps/unix/mk-local_lim.c: Likewise.
10121         * sysdeps/unix/snarf-ioctls: Likewise.
10122
10123 2012-03-19  Richard Henderson  <rth@twiddle.net>
10124
10125         * sysdeps/i386/fpu/fenv_private.h: New file.
10126         * sysdeps/i386/fpu/math_private.h: Use it.
10127         (math_opt_barrier, math_force_eval): Remove.
10128         (libc_feholdexcept_setround_53bit): Remove.
10129         (libc_feupdateenv_53bit): Remove.
10130         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10131         (math_opt_barrier, math_force_eval): Remove.
10132         (libc_feholdexcept): Remove.
10133         (libc_feholdexcept_setround): Remove.
10134         (libc_fetestexcept, libc_fesetenv): Remove.
10135         (libc_feupdateenv_test): Remove.
10136         (libc_feupdateenv, libc_feholdsetround): Remove.
10137         (libc_feresetround): Remove.
10138
10139         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10140         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10141
10142         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10143         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10144         (libc_feupdateenv_testl): New.
10145         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10146         (libc_feupdateenv_testf): New.
10147         (libc_feupdateenv): Use libc_feupdateenv_test.
10148         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10149         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10150
10151         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10152         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10153         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10154         (libc_feresetround_noex): New.
10155         (libc_feresetround_noexf): New.
10156         (libc_feresetround_noexl): New.
10157         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10158         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10159         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10160         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10161         SET_RESTORE_ROUND.
10162         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10163         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10164         (__cos): Likewise.
10165         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10166         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10167         SET_RESTORE_ROUND_NOEX.
10168         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10169         SET_RESTORE_ROUND_NOEXF.
10170         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10171         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10172         (libc_feholdsetroundf): New.
10173         (libc_feresetround, libc_feresetroundf): New.
10174
10175         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10176         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10177         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10178
10179         * sysdeps/generic/math_private.h: Include <fenv.h>.
10180         (default_libc_feholdexcept): New.
10181         (default_libc_feholdexcept_setround): New.
10182         (default_libc_fesetenv, default_libc_feupdateenv): New.
10183         (libc_feholdexcept): Only define if undefined.
10184         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10185         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10186         (libc_feholdexcept_setroundl): Likewise.
10187         (libc_feholdexcept_setround_53bit): Likewise.
10188         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10189         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10190         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10191         (libc_feupdateenv_53bit): Likewise.
10192         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10193         (libc_feholdexcept): Convert from macro to inline function.
10194         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10195         (libc_fesetenv, libc_feupdateenv): Likewise.
10196
10197         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10198         not previously defined.
10199         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10200         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10201         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10202         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10203         * sysdeps/ieee754/flt-32/math_private.h: New file.
10204         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10205         math_private.h below SET_FLOAT_WORD.
10206         (__isnan, __isinf_ns, __finite): Remove.
10207         (__isnanf, __isinf_nsf, __finitef): Remove.
10208
10209 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10210
10211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10212
10213 2012-03-17  David S. Miller  <davem@davemloft.net>
10214
10215         [BZ #6471]
10216         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10217         for 2.16.
10218
10219 2012-03-16  David S. Miller  <davem@davemloft.net>
10220
10221         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10222         warnings.
10223
10224         [BZ #6471]
10225         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10226         properly.
10227         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10228         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10229         sysdep_routines when subdir is sysvipc.
10230         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10231         __getshmlba helper.
10232
10233         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10234
10235 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10236
10237         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10238         [__LP64__].
10239
10240 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10241
10242         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10243         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10244         (__lround): Renamed to ...
10245         (__llround): This.  Replace long int with long long int.
10246         Define lround functions as aliases of llround functions.
10247         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10248
10249 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10250
10251         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10252         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10253         adresses to uintptr_t.  Replace "long int" and "unsigned long
10254         int" with "greg_t" on va_arg.
10255
10256 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10257
10258         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10259         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10260
10261         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10262         Move e_machine check before EI_CLASS check.  Handle x32
10263         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10264         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10265         SKIP_EM_IA_64 and include
10266         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10267
10268         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10269         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10270         (add_system_dir): New macro.
10271
10272         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10273         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10274
10275 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10276
10277         [BZ #2551]
10278         [BZ #2552]
10279         [BZ #2553]
10280         [BZ #2554]
10281         [BZ #2562]
10282         [BZ #2563]
10283         [BZ #2565]
10284         [BZ #2566]
10285         [BZ #2576]
10286         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10287         (y0): Likewise.
10288         * math/w_j0f.c (j0f): Likewise.
10289         (y0f): Likewise.
10290         * math/w_j0l.c (__j0l): Likewise.
10291         (__y0l): Likewise.
10292         * math/w_j1.c (j1): Likewise.
10293         (y1): Likewise.
10294         * math/w_j1f.c (j1f): Likewise.
10295         (y1f): Likewise.
10296         * math/w_j1l.c (__j1l): Likewise.
10297         (__y1l): Likewise.
10298         * math/w_jn.c (jn): Likewise.
10299         (yn): Likewise.
10300         * math/w_jnf.c (jnf): Likewise.
10301         (ynf): Likewise.
10302         * math/w_jnl.c (__jnl): Likewise.
10303         (__ynl): Likewise.
10304         * math/libm-test.inc (j0_test): Add more tests.
10305         (j1_test): Likewise.
10306         (jn_test): Likewise.  Add trailing semicolon to existing test.
10307         (y0_test): Likewise.
10308         (y1_test): Likewise.
10309         * sysdeps/i386/fpu/libm-test-ulps: Update.
10310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10311
10312         [BZ #13851]
10313         [BZ #13854]
10314         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10315         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10316         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10317         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10318         (__tanl): Set errno for infinite argument.
10319         * sysdeps/i386/fpu/mptan.c: Remove.
10320         * sysdeps/i386/fpu/s_tan.S: Likewise.
10321         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10322         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10323         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10324         * math/libm-test.inc (tan_test): Add more tests and enable more
10325         tests for double and long double.
10326         * sysdeps/i386/fpu/libm-test-ulps: Update.
10327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10328
10329 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10330
10331         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10332         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10333
10334 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10335
10336         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10337         * configure.in: Use it for both main tree and add-ons.
10338         * configure: Regenerated.
10339
10340 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10341
10342         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10343
10344 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10345
10346         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10347         in comment.
10348
10349         [BZ #13851]
10350         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10351         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10352         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10353         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10355         infinite argument.
10356         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10357         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10358         != 0 for prec == 2.
10359         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10360         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10361         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10362         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10363         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10364         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10365         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10366         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10367         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10368         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10369         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10370         * math/libm-test.inc (cos_test): Add more tests and enable more
10371         tests for long double.
10372         (sin_test): Likewise.
10373         (sincos_test): Likewise.
10374         * sysdeps/i386/fpu/libm-test-ulps: Update.
10375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10376
10377 2012-03-16  David S. Miller  <davem@davemloft.net>
10378
10379         * sysdeps/sparc/fpu/math_private.h: New file.
10380
10381 2012-03-15  David S. Miller  <davem@davemloft.net>
10382
10383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10384         file.
10385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10387         file.
10388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10389         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10390         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10391         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10392         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10393         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10394         sysdep routines.
10395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10396
10397         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10398         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10399
10400         * sysdeps/sparc/sparc-ifunc.h: New file.
10401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10402         sparc-ifunc.h
10403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10405         Likewise.
10406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10407         Likewise.
10408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10412         Likewise.
10413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10418         Likewise.
10419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10420         Likewise.
10421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10425         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10426         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10427         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10428         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10429         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10430         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10431         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10435         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10436         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10437         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10438         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10439         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10440         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10441         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10442         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10443         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10444         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10445
10446 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10447
10448         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10449         scaling.
10450         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10451
10452 2012-03-15  Andreas Jaeger  <aj@suse.de>
10453
10454         [BZ #13852]
10455         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10456         ieee754/flt-32 implementation for sin, cos and sincos.
10457         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10458         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10459         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10460         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10461         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10462         ieee754/flt-32 implementation for tan.
10463
10464         * math/libm-test.inc (cos_test): Enable some large input tests for
10465         float as well
10466         (sin_test): Likewise.
10467         (sincos_test): Likewise.
10468         (tan_test): Add tests for large input.
10469
10470         * sysdeps/i386/fpu/libm-test-ulps: Update.
10471
10472 2012-03-15  Andreas Jaeger  <aj@suse.de>
10473
10474         [BZ #13658]
10475         * math/libm-test.inc (cos_test): Add more test cases.
10476         (sin_test): Likewise.
10477         (sincos_test): Likewise.
10478
10479 2012-03-15  Andreas Jaeger  <aj@suse.de>
10480
10481         [BZ #13837]
10482         * math/libm-test.inc (cos_test): Add a test case for large input
10483         value.
10484         (sin_test): Likewise.
10485         (sincos_test): Likewise.
10486
10487 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10488         Joseph Myers  <joseph@codesourcery.com>
10489
10490         [BZ #13658]
10491         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10492         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10493         * sysdeps/i386/fpu/branred.c: Likewise.
10494         * sysdeps/i386/fpu/dosincos.c: Likewise.
10495         * sysdeps/i386/fpu/mpa.c: Likewise.
10496         * sysdeps/i386/fpu/s_cos.S: Likewise.
10497         * sysdeps/i386/fpu/s_sin.S: Likewise.
10498         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10499         * sysdeps/i386/fpu/sincos32.c: Likewise.
10500
10501         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10502         Define.
10503         (libc_feupdateenv_53bit): Define.
10504         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10505         Define.
10506         (libc_feupdateenv_53bit): Define.
10507
10508         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10509         53 bit (without extend i386 double precision).
10510
10511         * math/libm-test.inc (sincos_test): Add tests for large input.
10512         (sin): Likewise.
10513         (cos): Likewise.
10514
10515         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10516
10517 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10518
10519         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10520
10521 2012-03-15  David S. Miller  <davem@davemloft.net>
10522
10523         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10524         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10525         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10526         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10527         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10528         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10531         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10532         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10533         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10534         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10535         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10536         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10537         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10539         file.
10540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10542         file.
10543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10545         file.
10546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10548         file.
10549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10550         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10551         fmin/fmax sysdep routines.
10552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10553
10554 2012-03-14  David S. Miller  <davem@davemloft.net>
10555
10556         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10557         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10558         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10559         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10560         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10561         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10562         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10563         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10564         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10565         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10566         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10567         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10568         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10569         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10570         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10571         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10572         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10573         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10574         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10575         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10576         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10577         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10578         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10579         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10580         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10581         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10582         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10583         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10584         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10585         routines.
10586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10587         file.
10588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10590         file.
10591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10593         file.
10594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10596         file.
10597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10599         file.
10600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10602         file.
10603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10604         file.
10605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10606         file.
10607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10608         file.
10609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10610         New file.
10611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10612         file.
10613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10614         file.
10615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10617         file.
10618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10620         file.
10621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10623         file.
10624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10626         VIS3 routines.
10627
10628         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10629         New file.
10630
10631         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10632
10633         * sysdeps/sparc/configure.in: New file.
10634         * sysdeps/sparc/configure: Generate.
10635         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10636         * configure: Regenerate.
10637         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10638         * config.make.in (have-as-vis3): New.
10639         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10640         available use -Av9d instead of -Av9a.
10641         * sysdeps/sparc/sparc64/Makefile: Likewise.
10642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10644         New file.
10645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10646         file.
10647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10648         New file.
10649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10650         file.
10651         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10652         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10653         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10654         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10655         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10656
10657         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10658         fzeros/fnegs to load 0x80000000 into a float register instead of
10659         using the stack.
10660         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10661
10662 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10663
10664         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10665         bits/syscall.h.
10666         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10667         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10668         ($(inst_includedir)/bits/syscall.h): Remove rule.
10669         ($(objpfx)bits/syscall.d): Include instead of
10670         $(objpfx)syscall-list.d.
10671         (generated): Change syscall-list.h and syscall-list.d to
10672         bits/syscall.h and bits/syscall.d.
10673
10674 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10675
10676         [BZ #13846]
10677         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10678
10679 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10680
10681         [BZ #13841]
10682         * math/s_csqrt.c: Include <float.h>.
10683         (__csqrt): Scale large or subnormal inputs.
10684         * math/s_csqrtf.c: Likewise.
10685         * math/s_csqrtl.c: Likewise.
10686         * math/libm-test.inc (csqrt_test): Add more tests.
10687         * sysdeps/i386/fpu/libm-test-ulps: Update.
10688         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10689
10690         [BZ #13840]
10691         * math/libm-test.inc (hypot_test): Add more tests.
10692
10693 2012-03-13  David S. Miller  <davem@davemloft.net>
10694
10695         [BZ #13840]
10696         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10697         double-precision for the calculation instead of scaling.
10698
10699 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10700
10701         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10702         manipulate bits before adding and subtracting TWO52[sx].
10703         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10704         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10705         Likewise.
10706         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10707
10708 2012-03-13  David S. Miller  <davem@davemloft.net>
10709
10710         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10711         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10712         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10713         rtld-global-offsets.h
10714         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10715
10716         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10717         large parameters.
10718
10719         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10720
10721         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10722         'err' in the ifdef scope in which it is actually used.
10723
10724         * nss/nss_db/db-init.c: Include string.h
10725
10726 2012-03-12  David S. Miller  <davem@davemloft.net>
10727
10728         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10729         masking out of the most significant byte of random value used.
10730         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10731         Fix coding style in previous change.
10732
10733         * sysdeps/unix/sysv/linux/kernel-features.h
10734         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10735         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10736         expression.
10737         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10738         later.
10739
10740 2012-03-11  David S. Miller  <davem@davemloft.net>
10741
10742         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10743         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10744         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10745         for 'resultvar' otherwise things get truncated on 64-bit.
10746
10747         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10748         Fix masking out of the most significant byte of random value used.
10749
10750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10751
10752 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10753
10754         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10755
10756 2012-03-09  David S. Miller  <davem@davemloft.net>
10757
10758         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10759         variables with appropriate CPP guards.
10760         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10761         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10762         on resulting framesize and the management of the outregs buffer for pltexit.
10763         Preserve floating point return values across _dl_call_pltexit call.
10764         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10765         framesize and the management of the outregs buffer for pltexit.
10766         Preserve floating point return values across _dl_call_pltexit
10767         call.
10768         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10769         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10770         (print_exit): Fix format string for return register value.
10771
10772 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10773
10774         * sunrpc/Makefile (others): Add rpcgen.
10775         ($(objpfx)rpcgen): Remove special build rule and dependency on
10776         libc.
10777         * sunrpc/rpcgen.c: New file.
10778
10779 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10780
10781         [BZ #13673]
10782         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10783         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10784         * sysdeps/i386/crti.S: Likewise.
10785         * sysdeps/i386/crtn.S: Likewise.
10786         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10787         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10788         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10789         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10790         * sysdeps/sh/crti.S: Likewise.
10791         * sysdeps/sh/crtn.S: Likewise.
10792         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10793
10794         [BZ #13673]
10795         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10796         with URL.
10797         * locale/programs/locfile-kw.gperf: Likewise.
10798         * locale/programs/charmap-kw.h: Regenerated.
10799         * locale/programs/locfile-kw.h: Likewise.
10800
10801         [BZ #13673]
10802         * intl/plural.y: Replace FSF snail mail address with URL.
10803         * intl/plural.c: Regenerated.
10804
10805 2012-03-09  Richard Henderson  <rth@twiddle.net>
10806
10807         * include/math_private.h: Remove file.
10808         * math/math_private.h: Move file ...
10809         * sysdeps/generic/math_private.h: ... here.
10810
10811         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10812         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10813         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10814
10815         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10816         and <math_private.h>.
10817         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10818         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10819         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10820         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10821         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10822         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10823         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10824         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10825         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10826         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10827         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10828         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10829         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10830         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10831         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10832         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10833         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10834         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10835         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10836         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10837         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10838         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10839         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10840         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10841         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10842         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10843         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10844         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10845         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10846         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10847         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10848         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10849         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10850         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10851         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10852         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10853         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10854         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10855         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10856         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10857         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10858         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10859         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10860         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10861         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10862         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10863         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10864         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10865         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10866         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10867         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10868         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10869         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10870         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10871         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10872         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10873         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10874         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10875         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10876         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10877         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10878         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10879         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10880         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10881         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10882         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10883         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10884         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10885         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10886         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10887         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10888         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10889         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10890         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10891         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10892         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10893         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10894         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10895         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10896         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10897         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10898         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10899         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10900         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10901         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10902         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10903         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10904         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10905         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10906         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10907         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10908         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10909         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10910         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10911         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10912         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10913         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10914         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10915         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10916         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10917         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10918         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10919         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10920         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10921         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10922         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10923         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10924         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10925         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10926         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10927         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10928         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10929         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10930         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10931         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10932         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10933         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10934         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10935         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10936         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10937         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10938         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10939         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10940         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10941         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10942         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10943         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10944         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10945         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10946         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10947         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10948         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10949         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10950         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10951         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10952         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10953         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10954         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10955         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10956         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10957         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10958         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10959         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10960         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10961         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10962         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10963         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10964         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10965         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10966         * sysdeps/ieee754/k_standard.c: Likewise.
10967         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10968         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10969         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10970         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10971         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10972         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10973         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10974         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10975         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10976         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10977         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10978         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10979         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10980         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10981         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10982         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10983         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10984         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10985         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10986         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10987         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10988         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10989         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
10990         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
10991         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
10992         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
10993         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
10994         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
10995         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
10996         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
10998         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
10999         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11000         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11001         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11002         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11003         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11004         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11005         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11006         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11007         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11008         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11009         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11010         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11011         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11012         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11013         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11016         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11017         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11018         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11019         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11020         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11021         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11022         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11026         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11027         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11028         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11029         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11032         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11033         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11034         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11035         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11036         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11037         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11038         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11039         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11040         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11041         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11043         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11044         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11045         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11046         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11047         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11048         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11049         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11050         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11051         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11052         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11053         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11054         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11055         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11056         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11057         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11058         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11059         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11060         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11061         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11062         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11063         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11064         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11065         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11066         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11067         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11068         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11069         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11070         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11071         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11072         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11073         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11074         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11075         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11076         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11077         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11078         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11079         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11080         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11081         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11082         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11083         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11084         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11085         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11086         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11087         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11088         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11089         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11090         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11091         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11092         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11093         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11094         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11095         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11096         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11097         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11098         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11099         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11100         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11101         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11102         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11103         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11104         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11105         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11106         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11107         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11108         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11109         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11110         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11111         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11112         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11113         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11114         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11115         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11116         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11117         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11118         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11119         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11120         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11121         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11122         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11123         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11124         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11125         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11126         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11127         * sysdeps/ieee754/s_lib_version.c: Likewise.
11128         * sysdeps/ieee754/s_matherr.c: Likewise.
11129         * sysdeps/ieee754/s_signgam.c: Likewise.
11130         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11131         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11132         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11133         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11134         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11135         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11136         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11137         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11138         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11139         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11140         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11141         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11142         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11143         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11144         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11145         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11146         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11147         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11148         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11149         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11150         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11151
11152 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11153
11154         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11155         * sunrpc/rpc_main.c: Likewise.
11156         * sunrpc/rpc_svcout.c: Likewise.
11157
11158 2012-03-09  David S. Miller  <davem@davemloft.net>
11159
11160         * include/math_private.h: New file.
11161
11162 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11163
11164         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11165         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11166         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11167         from <bits/socket_type.h>.
11168         (enum __socket_type): Don't define here.
11169         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11170         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11171         bits/socket_type.h.
11172
11173         [BZ #13566]
11174         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11175         checking __USE_GNU.
11176
11177         * Makerules ($(inst_includedir)/%.h): New rule.
11178         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11179         (install-others): Remove variable setting.
11180         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11181
11182 2012-03-08  Richard Henderson  <rth@twiddle.net>
11183
11184         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11185         from macro to inline function; merge with the
11186         !__LIBC_INTERNAL_MATH_INLINES version.
11187         (__ieee754_sqrtf): Likewise.
11188
11189         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11190         to inline function.
11191         (__rintf, __floor, __floorf): Likewise.
11192
11193         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11194         macro to inline function.
11195         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11196
11197         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11198         not <math/math_private.h>.
11199
11200 2012-03-08  David S. Miller  <davem@davemloft.net>
11201
11202         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11203         copyright year.
11204         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11205
11206 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11207
11208         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11209         normalization.
11210         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11211         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11212
11213 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11214
11215         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11216         be defined individually, they must be defined as a block.  Define
11217         S for printing a string instead of hidint the different by using a
11218         macro for adding the 'l'.
11219         * stdio-common/tst-fphex-wide.c: Adjust.
11220
11221 2012-03-07  Marek Polacek  <polacek@redhat.com>
11222
11223         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11224
11225 2012-03-08  Marek Polacek  <polacek@redhat.com>
11226
11227         [BZ #13806]
11228         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11229         * stdio-common/tst-fphex.c: Define a few macros to make the
11230         test reusable.  Use them.
11231         * stdio-common/tst-fphex-wide.c: New file.
11232
11233 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11234
11235         [BZ #6911]
11236         * manual/macros.texi (gnusystems): New macro.
11237         (nongnusystems): Likewise.
11238         (gnulinuxhurdsystems): Likewise.
11239         (gnuhurdsystems): Likewise..
11240         (gnulinuxsystems): Likewise.
11241         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11242         variants of the GNU system, not "GNU system".
11243         * manual/conf.texi: Likewise.
11244         * manual/errno.texi: Likewise.  Update example of errno macro
11245         expansion.
11246         * manual/filesys.texi: Likewise.
11247         (getumask): Document as specific to GNU/Hurd.
11248         * manual/install.texi: Likewise.  Reword some references to
11249         GNU/Linux.
11250         * manual/intro.texi: Likewise.
11251         * manual/io.texi: Likewise.
11252         (File Name Portability): Detail which constraints are inapplicable
11253         to all GNU systems and which are only inapplicable to GNU/Hurd.
11254         * manual/job.texi: Likewise.
11255         * manual/llio.texi: Likewise.
11256         (O_NOCTTY): Document as present on GNU/Linux.
11257         * manual/maint.texi: Likewise.
11258         * manual/memory.texi: Likewise.
11259         * manual/pattern.texi: Likewise.
11260         * manual/pipe.texi: Likewise.
11261         * manual/process.texi: Likewise.
11262         * manual/resource.texi: Likewise.
11263         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11264         child on GNU/Hurd.
11265         * manual/setjmp.texi: Likewise.
11266         * manual/signal.texi: Likewise.
11267         * manual/startup.texi: Likewise.
11268         * manual/stdio.texi: Likewise.
11269         * manual/terminal.texi: Likewise.
11270         (ONLCR): Document as POSIX.
11271         (OXTABS): Document availability on GNU/Linux as XTABS.
11272         (ONOEOT): Document availability separately from other bits.
11273         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11274         * manual/time.texi: Likewise.
11275         * manual/users.texi: Likewise.
11276         * INSTALL: Regenerated.
11277         * sysdeps/gnu/errlist.c: Regenerated.
11278
11279         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11280         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11281         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11282         puts.
11283         * configure: Regenerated.
11284
11285 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11286
11287         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11288         default includes instead of AC_HEADER_CHECK.
11289         * sysdeps/i386/configure: Regenerated.
11290
11291         [BZ #10716]
11292         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11293         * math/s_cacoshf.c (__cacoshf): Likewise.
11294         * math/s_cacoshl.c (__cacoshl): Likewise.
11295         * math/s_casinh.c (__casinh): Set signs of result from argument.
11296         * math/s_casinhf.c (__casinhf): Likewise.
11297         * math/s_casinhl.c (__casinhl): Likewise.
11298         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11299         (casinh_test): Add more tests.
11300         * sysdeps/i386/fpu/libm-test-ulps: Update.
11301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11302
11303 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11304
11305         * po/zh_TW.po: Update from translation team.
11306
11307         * login/Makefile (distribute): Remove variable.
11308         * catgets/Makefile: Likewise.
11309         * mach/Makefile: Likewise.
11310         * malloc/Makefile: Likewise.
11311         * misc/Makefile: Likewise.
11312         * iconv/Makefile: Likewise.
11313         * nscd/Makefile: Likewise.
11314         * hurd/Makefile: Likewise.
11315         * manual/Makefile: Likewise.
11316         * locale/Makefile: Likewise.
11317         * intl/Makefile: Likewise.
11318         * conform/Makefile: Likewise.
11319         * nss/Makefile: Likewise.
11320         * time/Makefile: Likewise.
11321         * soft-fp/Makefile: Likewise.
11322         * dirent/Makefile: Likewise.
11323         * gmon/Makefile: Likewise.
11324         * po/Makefile: Likewise.
11325         * rt/Makefile: Likewise.
11326         * socket/Makefile: Likewise.
11327         * math/Makefile: Likewise.
11328         * signal/Makefile: Likewise.
11329         * debug/Makefile: Likewise.
11330         * elf/Makefile: Likewise.
11331         * timezone/Makefile: Likewise.
11332         * stdlib/Makefile: Likewise.
11333         * iconvdata/Makefile: Likewise.
11334         * sunrpc/Makefile: Likewise.
11335         * io/Makefile: Likewise.
11336         * argp/Makefile: Likewise.
11337         * inet/Makefile: Likewise.
11338         * hesiod/Makefile: Likewise.
11339         * grp/Makefile: Likewise.
11340         * csu/Makefile: Likewise.
11341         * wctype/Makefile: Likewise.
11342         * crypt/Makefile: Likewise.
11343         * libio/Makefile: Likewise.
11344         * string/Makefile: Likewise.
11345         * nis/Makefile: Likewise.
11346         * resolv/Makefile: Likewise.
11347         * stdio-common/Makefile: Likewise.
11348         * wcsmbs/Makefile: Likewise.
11349         * dlfcn/Makefile: Likewise.
11350         * posix/Makefile: Likewise.
11351
11352         [BZ #6959]
11353         * timezone/Makefile: Don't install timezone files, just the programs
11354         and scripts.
11355
11356 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11357
11358         * nss/databases.def: Add missing gshadow entry.
11359
11360         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11361
11362 2012-03-06  Marek Polacek  <polacek@redhat.com>
11363
11364         [BZ #13726]
11365         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11366         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11367         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11368         * stdio-common/tst-long-dbl-fphex.c: New file.
11369
11370 2012-03-06  David S. Miller  <davem@davemloft.net>
11371
11372         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11373         (set_obp_int): New function.
11374         (get_obp_int): New function.
11375         (__get_clockfreq_via_dev_openprom): Likewise.
11376         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11377         Avoid unused variable warnings on 'val' and use builtin_expect.
11378         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11379         __builtin_expect.
11380         (INLINE_CLONE_SYSCALL): Likewise.
11381
11382 2012-03-05  David S. Miller  <davem@davemloft.net>
11383
11384         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11385
11386 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11387
11388         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11389
11390         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11391         only for |x| >= 40.
11392         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11393
11394 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11395
11396         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11397         Replace gettimeofday with __vdso_gettimeofday.
11398
11399         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11400         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11401         __vdso_clock_gettime and __vdso_getcpu.
11402
11403         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11404         time with __vdso_time.
11405
11406 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11407
11408         * manual/lang.texi (size_t): Note types to which size_t may be
11409         equivalent with the GNU C Library, but do not describe when
11410         differences between them are significant.
11411
11412 2012-03-05  Andreas Jaeger  <aj@suse.de>
11413
11414         * sysdeps/i386/fpu/libm-test-ulps: Update.
11415
11416 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11417
11418         [BZ #3976]
11419         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11420         (__ieee754_pow): Save and restore rounding mode and use
11421         round-to-nearest for main computations.
11422         * math/libm-test.inc (pow_test_tonearest): New function.
11423         (pow_test_towardzero): Likewise.
11424         (pow_test_downward): Likewise.
11425         (pow_test_upward): Likewise.
11426         (main): Call the new functions.
11427         * sysdeps/i386/fpu/libm-test-ulps: Update.
11428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11429
11430         [BZ #3976]
11431         * math/libm-test.inc (cosh_test_tonearest): New function.
11432         (cosh_test_towardzero): Likewise.
11433         (cosh_test_downward): Likewise.
11434         (cosh_test_upward): Likewise.
11435         (sinh_test_tonearest): Likewise.
11436         (sinh_test_towardzero): Likewise.
11437         (sinh_test_downward): Likewise.
11438         (sinh_test_upward): Likewise.
11439         (main): Call the new functions.
11440         * sysdeps/i386/fpu/libm-test-ulps: Update.
11441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11442
11443 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11444
11445         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11446         default stack guard is set in last bytes.
11447         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11448
11449 2012-03-05  Kees Cook  <keescook@chromium.org>
11450
11451         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11452
11453         [BZ #13656]
11454         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11455         possibly allocate from heap instead of stack.
11456         * stdio-common/bug-vfprintf-nargs.c: New file.
11457         * stdio-common/Makefile (tests): Add nargs overflow test.
11458
11459 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11460
11461         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11462
11463 2012-03-03  Marek Polacek  <polacek@redhat.com>
11464
11465         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11466         * math/math_private.h: Likewise.
11467         * stdlib/tst-strtod.c: Likewise.
11468         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11469         * sysdeps/x86_64/bits/atomic.h: Likewise.
11470
11471 2012-03-02  David S. Miller  <davem@davemloft.net>
11472
11473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11477         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11478         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11479         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11480         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11481
11482 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11483
11484         [BZ #13792]
11485         * manual/examples/README: New file, says the example source files
11486         can be used under GPL>=2.
11487         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11488         line containing just "*/".
11489         * manual/examples/add.c: Add copyright header (GPL>=2).
11490         * manual/examples/argp-ex1.c: Likewise.
11491         * manual/examples/argp-ex2.c: Likewise.
11492         * manual/examples/argp-ex3.c: Likewise.
11493         * manual/examples/argp-ex4.c: Likewise.
11494         * manual/examples/atexit.c: Likewise.
11495         * manual/examples/db.c: Likewise.
11496         * manual/examples/dir.c: Likewise.
11497         * manual/examples/dir2.c: Likewise.
11498         * manual/examples/execinfo.c: Likewise.
11499         * manual/examples/filecli.c: Likewise.
11500         * manual/examples/filesrv.c: Likewise.
11501         * manual/examples/fmtmsgexpl.c: Likewise.
11502         * manual/examples/genpass.c: Likewise.
11503         * manual/examples/inetcli.c: Likewise.
11504         * manual/examples/inetsrv.c: Likewise.
11505         * manual/examples/isockad.c: Likewise.
11506         * manual/examples/longopt.c: Likewise.
11507         * manual/examples/memopen.c: Likewise.
11508         * manual/examples/memstrm.c: Likewise.
11509         * manual/examples/mkfsock.c: Likewise.
11510         * manual/examples/mkisock.c: Likewise.
11511         * manual/examples/mygetpass.c: Likewise.
11512         * manual/examples/pipe.c: Likewise.
11513         * manual/examples/popen.c: Likewise.
11514         * manual/examples/rprintf.c: Likewise.
11515         * manual/examples/search.c: Likewise.
11516         * manual/examples/select.c: Likewise.
11517         * manual/examples/setjmp.c: Likewise.
11518         * manual/examples/sigh1.c: Likewise.
11519         * manual/examples/sigusr.c: Likewise.
11520         * manual/examples/stpcpy.c: Likewise.
11521         * manual/examples/strdupa.c: Likewise.
11522         * manual/examples/strftim.c: Likewise.
11523         * manual/examples/strncat.c: Likewise.
11524         * manual/examples/subopt.c: Likewise.
11525         * manual/examples/swapcontext.c: Likewise.
11526         * manual/examples/termios.c: Likewise.
11527         * manual/examples/testopt.c: Likewise.
11528         * manual/examples/testpass.c: Likewise.
11529         * manual/examples/timeval_subtract.c: Likewise.
11530
11531         [BZ #13792]
11532         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11533         function to ...
11534         * manual/timeval_subtract.c.texi: ... here, new file.
11535
11536 2012-03-02  David S. Miller  <davem@davemloft.net>
11537
11538         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11539
11540 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11541
11542         [BZ #3976]
11543         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11544         (__sin): Save and restore rounding mode and use round-to-nearest
11545         for all computations.
11546         (__cos): Save and restore rounding mode and use round-to-nearest
11547         for all computations.
11548         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11549         <fenv.h>.
11550         (tan): Save and restore rounding mode and use round-to-nearest for
11551         all computations.
11552         * math/libm-test.inc (cos_test_tonearest): New function.
11553         (cos_test_towardzero): Likewise.
11554         (cos_test_downward): Likewise.
11555         (cos_test_upward): Likewise.
11556         (sin_test_tonearest): Likewise.
11557         (sin_test_towardzero): Likewise.
11558         (sin_test_downward): Likewise.
11559         (sin_test_upward): Likewise.
11560         (tan_test_tonearest): Likewise.
11561         (tan_test_towardzero): Likewise.
11562         (tan_test_downward): Likewise.
11563         (tan_test_upward): Likewise.
11564         (main): Call the new functions.
11565         * sysdeps/i386/fpu/libm-test-ulps: Update.
11566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11567
11568         [BZ #10135]
11569         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11570         small n, then large n, before computing and testing k+n.
11571         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11572         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11573         Likewise.
11574         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11575         Likewise.
11576         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11577         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11578         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11579         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11580         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11581         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11582         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11583         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11584         * math/libm-test.inc (scalbn_test): Add more tests.
11585         (scalbln_test): Likewise.
11586
11587         * manual/filesys.texi (mode_t): Describe constraints on size and
11588         signedness, not exact equivalence to a particular type.
11589         (ino_t): Likewise.
11590         (ino64_t): Likewise.
11591         (dev_t): Likewise.
11592         (nlink_t): Likewise.
11593         (blkcnt_t): Likewise.
11594         (blkcnt64_t): Likewise.
11595         * manual/llio.texi (off_t): Likewise.
11596
11597         [BZ #3976]
11598         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11599         (__ieee754_exp): Save and restore rounding mode and use
11600         round-to-nearest for all computations.
11601         * math/libm-test.inc (exp_test_tonearest): New function.
11602         (exp_test_towardzero): Likewise.
11603         (exp_test_downward): Likewise.
11604         (exp_test_upward): Likewise.
11605         (main): Call the new functions.
11606         * sysdeps/i386/fpu/libm-test-ulps: Update.
11607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11608
11609 2012-03-01  Chris Demetriou  <cgd@google.com>
11610
11611         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11612         have predictable order.
11613
11614 2012-03-01  David S. Miller  <davem@davemloft.net>
11615
11616         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11617
11618         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11619         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11620         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11621         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11622
11623         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11624         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11625         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11627         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11628         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11629         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11630         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11631         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11632
11633         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11634
11635         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11636         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11637         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11638
11639         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11640         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11641         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11642         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11643         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11644         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11645         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11646         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11647         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11648         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11649         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11650         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11651         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11652         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11653         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11654         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11655         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11656         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11657         * sysdeps/sparc/elf/configure: Regenerated.
11658
11659 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11660
11661         * configure.in (AS, LD): Require binutils 2.20 or later.
11662         * configure: Regenerated.
11663         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11664         as required minimum version.
11665         * INSTALL: Regenerated.
11666
11667         [BZ #2541]
11668         [BZ #4108]
11669         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11670         before squaring exponent.
11671         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11672         bottom long double and 27 bits of top long double before squaring
11673         exponent.
11674         * math/libm-test.inc (erfc_test): Add more tests.
11675         * sysdeps/i386/fpu/libm-test-ulps: Update.
11676         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11678
11679 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11680
11681         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11682         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11683         containing bit-fields.
11684         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11685         * soft-fp/single.h (_FP_UNION_S): Likewise.
11686         * soft-fp/double.h (_FP_UNION_D): Likewise.
11687
11688 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11689
11690         [BZ #13786]
11691         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11692         not include ../strcmp.S.
11693         [USE_AS_STRNCASECMP_L]: Likewise.
11694         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11695         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11696         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11697         (__strncasecmp_l_ia32): Define as alias to
11698         __strncasecmp_l_nonascii.
11699
11700         [BZ #5794]
11701         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11702         * sysdeps/i386/fpu/libm-test-ulps: Update.
11703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11704
11705         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11707
11708 2012-02-29  Jeff Law  <law@redhat.com>
11709
11710         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11711         out of bounds read.
11712
11713 2012-02-29  Marek Polacek  <polacek@redhat.com>
11714
11715         [BZ #13706]
11716         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11717         * elf/Makefile: Add rules to run tst-unused-dep.out.
11718
11719 2012-02-28  David S. Miller  <davem@davemloft.net>
11720
11721         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11722         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11723         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11724         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11725         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11726         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11727
11728 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11729
11730         * math/libm-test.inc (llround_test): Move one test from
11731         lround_test.  Use TEST_f_L in moved test.
11732         (lround_test): Move misplaced test to llround_test.  Add testcase
11733         from bug 2561.
11734
11735 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11736
11737         * sysdeps/x86_64/fpu/e_expf.S: New file.
11738         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11739
11740 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11741
11742         [BZ #13637]
11743         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11744         of remain_len that may cause incomplete multi-byte character and
11745         false match.
11746         * posix/bug-regex33.c: New file.
11747         * posix/Makefile (tests): Add bug-regex33.
11748
11749 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11750
11751         * manual/macros.texi: New file.
11752         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11753         * manual/libc.texinfo: Include macros.texi.
11754         * manual/creatute.texi: Likewise.
11755         * manual/install.texi: Likewise.
11756         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11757         @glibcadj{} in references to the GNU C Library.
11758         * manual/charset.texi: Likewise.
11759         * manual/conf.texi: Likewise.
11760         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11761         when not using those macros.
11762         * manual/creature.texi: Likewise.
11763         * manual/crypt.texi: Likewise.
11764         * manual/errno.texi: Likewise.
11765         * manual/filesys.texi: Likewise.
11766         * manual/header.texi: Likewise.
11767         * manual/install.texi: Likewise.
11768         * manual/intro.texi: Likewise.
11769         * manual/io.texi: Likewise.
11770         * manual/job.texi: Likewise.
11771         * manual/lang.texi: Likewise.
11772         * manual/libc.texiinfo: Likewise.
11773         * manual/llio.texi: Likewise.
11774         * manual/locale.texi: Likewise.
11775         * manual/maint.texi: Likewise.
11776         * manual/math.texi: Likewise.
11777         * manual/memory.texi: Likewise.
11778         * manual/message.texi: Likewise.
11779         * manual/nss.texi: Likewise.
11780         * manual/pattern.texi: Likewise.
11781         * manual/process.texi: Likewise.
11782         * manual/resource.texi: Likewise.
11783         * manual/search.texi: Likewise.
11784         * manual/setjmp.texi: Likewise.
11785         * manual/signal.texi: Likewise.
11786         * manual/socket.texi: Likewise.
11787         * manual/startup.texi: Likewise.
11788         * manual/stdio.texi: Likewise.
11789         * manual/string.texi: Likewise.
11790         * manual/sysinfo.texi: Likewise.
11791         * manual/syslog.texi: Likewise.
11792         * manual/terminal.texi: Likewise.
11793         * manual/time.texi: Likewise.
11794         * manual/users.texi: Likewise.
11795         * INSTALL: Regenerated.
11796         * NOTES: Regenerated.
11797         * sysdeps/gnu/errlist.c: Regenerated.
11798
11799 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11800
11801         * include/dirent.h: Include <dirstream.h> before
11802         <dirent/dirent.h>.
11803
11804 2012-02-28  David S. Miller  <davem@davemloft.net>
11805
11806         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11807         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11808         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11809         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11810
11811 2012-02-27  David S. Miller  <davem@davemloft.net>
11812
11813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11814         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11815         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11816         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11817
11818         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11819         frame pointer instead of stack pointer relative arg slot.
11820         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11821         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11822         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11823
11824 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11825
11826         [BZ #3992]
11827         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11828
11829 2012-02-27  David S. Miller  <davem@davemloft.net>
11830
11831         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11832         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11833         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11834         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11835         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11836         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11837         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11838         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11839
11840 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11841
11842         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11843         later.  Allow versions 5-9.
11844         * configure: Regenerated.
11845         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11846         required minimum version and 4.6 as recommended version.  Do not
11847         mention bugs in GCC 2.7 and 2.8.
11848         * INSTALL: Regenerated.
11849
11850 2012-02-27  David S. Miller  <davem@davemloft.net>
11851
11852         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11853         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11854         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11856         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11857         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11858         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11859         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11860
11861         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11862         manipulate bits before adding and subtracting TWO112[sx].
11863         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11864
11865 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11866
11867         [BZ #13775]
11868         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11869         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11870         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11871         being in POSIX, because they are in 1003.1-2008.
11872
11873         * rt/tst-aio.c: Include <fcntl.h>.
11874         * rt/tst-aio7.c: Likewise.
11875         * rt/tst-aio64.c: Likewise.
11876
11877         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11878
11879 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11880
11881         * manual/install.texi (--with-headers): Describe headers as
11882         interface headers, not private headers.
11883         (Specific advice for GNU/Linux systems): Describe use of headers
11884         from "make headers_install", not private headers from older
11885         kernels.
11886         * INSTALL: Regenerated.
11887         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11888         Change to 2.6.19.
11889         * sysdeps/unix/sysv/linux/configure: Regenerated.
11890
11891         * manual/llio.texi (fclean): Remove documentation.
11892
11893         * manual/Makefile (libc-texi-generated): New variable.  Include
11894         version.texi.
11895         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11896         $(libc-texi-generated), not duplicated list of files.
11897         (version.texi, stamp-version): New rules.
11898         (realclean): Remove $(libc-texi-generated), not individual files
11899         from that list.  Do not remove dir-add.texinfo.
11900         * manual/libc.texinfo: Comment out uses of edition numbers and
11901         references to printed manual.  Remove last-updated dates.
11902         (EDITION): Comment out.
11903         (ISBN): Likewise.
11904         (VERSION, UPDATED): Remove.
11905         (version.texi): Include.
11906
11907 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11908
11909         * sysdeps/posix/spawni.c: Include <signal.h>.
11910         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11911         * sysdeps/pthread/aio_fsync.c: Likewise.
11912
11913 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11914
11915         * conform/Makefile (tests): Run only when not cross-compiling and
11916         when fast-check is not defined.
11917
11918         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11919         * conform/data/limits.h-data: Fixes for POSIX2008.
11920         * conform/run-conformtest.sh: Run all tests.
11921         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11922         headers.
11923         * include/bits/dlfcn.h: Likewise.
11924         * include/langinfo.h: Likewise.
11925         * include/monetary.h: Likewise.
11926         * include/sys/poll.h: Likewise.
11927
11928         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11929         for __USE_GNU.
11930         * posix/spawn.h: Define __need_sigset_t.
11931         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11932         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11933         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11934         to get sigevent_t only.
11935         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11936         only for __USE_GNU.
11937         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11938         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11939         process_vm_writev only for __USE_GNU.
11940         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11941
11942         * conform/Makefile: For now ignore errors from run-conformtest.
11943         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11944         POSIX to avoid namespace pollution.  Don't prepend headers.
11945         * conform/data/aio.h-data: Fixes for POSIX testing.
11946         * conform/data/fcntl.h-data: Likewise.
11947         * conform/data/glob.h-data: Likewise.
11948         * conform/data/grp.h-data: Likewise.
11949         * conform/data/pthread.h-data: Likewise.
11950         * conform/data/pwd.h-data: Likewise.
11951         * conform/data/signal.h-data: Likewise.
11952         * conform/data/spawn.h-data: Likewise.
11953         * conform/data/stdio.h-data: Likewise.
11954         * conform/data/stdlib.h-data: Likewise.
11955         * conform/data/stropts.h-data: Likewise.
11956         * conform/data/sys/mman.h-data: Likewise.
11957         * conform/data/sys/stat.h-data: Likewise.
11958         * conform/data/sys/types.h-data: Likewise.
11959         * conform/data/sys/wait.h-data: Likewise.
11960         * conform/data/time.h-data: Likewise.
11961         * conform/data/unistd.h-data: Likewise.
11962         * conform/data/utime.h-data: Likewise.
11963
11964         * io/sys/stat.h: fchmod was always in POSIX.
11965         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11966         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11967         * rt/aio.h: Define __need_timespec before including <time.h>.
11968         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11969         struct.  Add forward declaration of pthread_attr_t and use it in
11970         sigevent.
11971         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11972         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11973         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11974         always remove CLK_TCK definition.
11975
11976 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11977
11978         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11979
11980 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11981
11982         * conform/run-conformtest.sh: New file.
11983         * conform/Makefile: Run run-conformtest for tests.
11984         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11985         support.
11986
11987         * conform/data/uchar.h-data: New file.
11988         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11989         * conform/data/arpa/inet.h-data: Likewise.
11990         * conform/data/assert.h-data: Likewise.
11991         * conform/data/complex.h-data: Likewise.
11992         * conform/data/cpio.h-data: Likewise.
11993         * conform/data/ctype.h-data: Likewise.
11994         * conform/data/dirent.h-data: Likewise.
11995         * conform/data/dlfcn.h-data: Likewise.
11996         * conform/data/errno.h-data: Likewise.
11997         * conform/data/fcntl.h-data: Likewise.
11998         * conform/data/float.h-data: Likewise.
11999         * conform/data/fmtmsg.h-data: Likewise.
12000         * conform/data/fnmatch.h-data: Likewise.
12001         * conform/data/ftw.h-data: Likewise.
12002         * conform/data/glob.h-data: Likewise.
12003         * conform/data/grp.h-data: Likewise.
12004         * conform/data/iconv.h-data: Likewise.
12005         * conform/data/inttypes.h-data: Likewise.
12006         * conform/data/langinfo.h-data: Likewise.
12007         * conform/data/libgen.h-data: Likewise.
12008         * conform/data/limits.h-data: Likewise.
12009         * conform/data/locale.h-data: Likewise.
12010         * conform/data/math.h-data: Likewise.
12011         * conform/data/monetary.h-data: Likewise.
12012         * conform/data/mqueue.h-data: Likewise.
12013         * conform/data/ndbm.h-data: Likewise.
12014         * conform/data/net/if.h-data: Likewise.
12015         * conform/data/netdb.h-data: Likewise.
12016         * conform/data/netinet/in.h-data: Likewise.
12017         * conform/data/nl_types.h-data: Likewise.
12018         * conform/data/poll.h-data: Likewise.
12019         * conform/data/pthread.h-data: Likewise.
12020         * conform/data/pwd.h-data: Likewise.
12021         * conform/data/regex.h-data: Likewise.
12022         * conform/data/sched.h-data: Likewise.
12023         * conform/data/search.h-data: Likewise.
12024         * conform/data/semaphore.h-data: Likewise.
12025         * conform/data/setjmp.h-data: Likewise.
12026         * conform/data/signal.h-data: Likewise.
12027         * conform/data/spawn.h-data: Likewise.
12028         * conform/data/stdarg.h-data: Likewise.
12029         * conform/data/stdio.h-data: Likewise.
12030         * conform/data/stdlib.h-data: Likewise.
12031         * conform/data/string.h-data: Likewise.
12032         * conform/data/strings.h-data: Likewise.
12033         * conform/data/stropts.h-data: Likewise.
12034         * conform/data/sys/ipc.h-data: Likewise.
12035         * conform/data/sys/mman.h-data: Likewise.
12036         * conform/data/sys/msg.h-data: Likewise.
12037         * conform/data/sys/resource.h-data: Likewise.
12038         * conform/data/sys/select.h-data: Likewise.
12039         * conform/data/sys/sem.h-data: Likewise.
12040         * conform/data/sys/shm.h-data: Likewise.
12041         * conform/data/sys/socket.h-data: Likewise.
12042         * conform/data/sys/stat.h-data: Likewise.
12043         * conform/data/sys/statvfs.h-data: Likewise.
12044         * conform/data/sys/time.h-data: Likewise.
12045         * conform/data/sys/timeb.h-data: Likewise.
12046         * conform/data/sys/times.h-data: Likewise.
12047         * conform/data/sys/types.h-data: Likewise.
12048         * conform/data/sys/uio.h-data: Likewise.
12049         * conform/data/sys/un.h-data: Likewise.
12050         * conform/data/sys/utsname.h-data: Likewise.
12051         * conform/data/sys/wait.h-data: Likewise.
12052         * conform/data/syslog.h-data: Likewise.
12053         * conform/data/tar.h-data: Likewise.
12054         * conform/data/termios.h-data: Likewise.
12055         * conform/data/utime.h-data: Likewise.
12056         * conform/data/utmpx.h-data: Likewise.
12057         * conform/data/varargs.h-data: Likewise.
12058         * conform/data/wchar.h-data: Likewise.
12059         * conform/data/wctype.h-data: Likewise.
12060         * conform/data/wordexp.h-data: Likewise.
12061
12062         * include/stropts.h: New file.
12063         * include/uchar.h: New file.
12064         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12065         * include/assert.h: Likewise.
12066         * include/ctype.h: Likewise.
12067         * include/dirent.h: Likewise.
12068         * include/dlfcn.h: Likewise.
12069         * include/fcntl.h: Likewise.
12070         * include/fnmatch.h: Likewise.
12071         * include/glob.h: Likewise.
12072         * include/grp.h: Likewise.
12073         * include/libio.h: Likewise.
12074         * include/locale.h: Likewise.
12075         * include/math.h: Likewise.
12076         * include/net/if.h: Likewise.
12077         * include/netdb.h: Likewise.
12078         * include/netinet/in.h: Likewise.
12079         * include/pthread.h: Likewise.
12080         * include/pwd.h: Likewise.
12081         * include/regex.h: Likewise.
12082         * include/sched.h: Likewise.
12083         * include/search.h: Likewise.
12084         * include/setjmp.h: Likewise.
12085         * include/signal.h: Likewise.
12086         * include/stdio.h: Likewise.
12087         * include/stdlib.h: Likewise.
12088         * include/string.h: Likewise.
12089         * include/sys/cdefs.h: Likewise.
12090         * include/sys/mman.h: Likewise.
12091         * include/sys/msg.h: Likewise.
12092         * include/sys/resource.h: Likewise.
12093         * include/sys/select.h: Likewise.
12094         * include/sys/socket.h: Likewise.
12095         * include/sys/stat.h: Likewise.
12096         * include/sys/statvfs.h: Likewise.
12097         * include/sys/time.h: Likewise.
12098         * include/sys/times.h: Likewise.
12099         * include/sys/uio.h: Likewise.
12100         * include/sys/utsname.h: Likewise.
12101         * include/sys/wait.h: Likewise.
12102         * include/termios.h: Likewise.
12103         * include/time.h: Likewise.
12104         * include/ulimit.h: Likewise.
12105         * include/unistd.h: Likewise.
12106         * include/utime.h: Likewise.
12107         * include/wchar.h: Likewise.
12108         * include/wctype.h: Likewise.
12109         * include/wordexp.h: Likewise.
12110
12111         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12112
12113         * time/time.h: TIME_UTC must be a macro.
12114         Make timespec_get available for ISO C11 only as well.
12115
12116 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12117
12118         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12119         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12120
12121 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12122
12123         * configure.in: Use -o not -a in test for unsupported multi-arch.
12124
12125 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12126
12127         * manual/texinfo.tex: Update to version 2012-01-19.16.
12128
12129 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12130
12131         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12132
12133 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12134
12135         [BZ #13738]
12136         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12137         * manual/fdl-1.3.texi: New file.
12138         * manual/fdl-1.1.texi: File removed.
12139
12140         [BZ #13738]
12141         * manual/libc.texinfo (FDL_VERSION): New @set.
12142         Use it for mention of FDL in cover text.
12143         (Documentation License): Use it in @include file name.
12144
12145 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12146             Roland McGrath  <roland@hack.frob.com>
12147
12148         [BZ #5461]
12149         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12150         not LONG_LONG_MAX and LONG_LONG_MIN.
12151         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12152         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12153         name.
12154         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12155
12156 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12157
12158         [BZ #2547]
12159         [BZ #11365]
12160         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12161         manipulate bits before adding and subtracting TWO23[sx].
12162         * math/libm-test.inc (nearbyint_test): Add more tests.
12163
12164 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12165
12166         [BZ #2548]
12167         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12168         bits before adding and subtracting TWO23[sx].
12169         * math/libm-test.inc (rint_test): Add more tests.
12170         (rint_test_tonearest): Likewise.
12171         (rint_test_towardzero): Likewise.
12172         (rint_test_downward): Likewise.
12173         (rint_test_upward: Likewise.
12174
12175 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12176
12177         [BZ #10110]
12178         * include/stdc-predef.h: New file.  Extracted from features.h.
12179         * include/features.h: Include stdc-predef.h.
12180         * Makefile (headers): Add stdc-predef.h.
12181         * CONFORMANCE (Compiler limitations): Update.
12182
12183 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12184
12185         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12186
12187 2012-02-21  David S. Miller  <davem@davemloft.net>
12188
12189         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12190         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12191
12192 2012-02-20  David S. Miller  <davem@davemloft.net>
12193
12194         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12195         using a normal save/restore sequence, rather than allocating a
12196         dummy stack frame just to store a frame pointer and restore.
12197         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12198
12199 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12200
12201         * manual/install.texi: Fix stray word in line-wrapped comment.
12202
12203 2012-02-20  David S. Miller  <davem@davemloft.net>
12204
12205         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12206         both binutils and gcc support GOTDATA.
12207
12208         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12209         "rd %pc" in the PIC register setup sequences.
12210
12211         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12212         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12213         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12214         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12215         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12216         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12217         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12218         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12219         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12220         (SYSCALL_ERROR_HANDLER): Likewise.
12221         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12222         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12223         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12224         (SYSCALL_ERROR_HANDLER): Likewise.
12225
12226         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12227         (HAVE_GCC_GOTDATA): New.
12228         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12229         relocation support in both binutils and gcc.
12230         * sysdeps/sparc/elf/configure: Regenerate.
12231
12232         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12233         * sysdeps/sparc/sparc32/elf/configure: Delete.
12234         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12235         * sysdeps/sparc/sparc64/elf/configure: Delete.
12236         * sysdeps/sparc/elf/configure.in: New file.
12237         * sysdeps/sparc/elf/configure: Generate.
12238
12239         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12240         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12241         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12242         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12243         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12244
12245 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12246
12247         * manual/install.texi: Do not mention specific glibc version
12248         numbers.
12249         * manual/libc.texinfo (VERSION, UPDATED): Update.
12250         (@copying): Use @copyright{} and range of years.
12251
12252 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12253
12254         [BZ #13695]
12255         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12256         [crti.S not in sysdirs] (generated): Do not append.
12257         [crti.S not in sysdirs] (omit-deps): Likewise.
12258         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12259         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12260         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12261         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12262         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12263         Likewise.
12264         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12265         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12266         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12267         * csu/defs.awk: Remove file.
12268         * sysdeps/generic/initfini.c: Likewise.
12269         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12270         variable.
12271         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12272         Likewise.
12273
12274 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12275
12276         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12277         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12278         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12279         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12280         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12281         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12282         <bits/epoll.h>.
12283         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12284         (__EPOLL_PACKED): Define to empty if not defined by
12285         <bits/epoll.h>.
12286         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12287         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12288         bits/epoll.h.
12289
12290 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12291
12292         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12293         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12294         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12295         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12296         <bits/timerfd.h>.
12297         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12298         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12299         bits/timerfd.h.
12300
12301 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12302
12303         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12304         in C locale.
12305         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12306         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12307         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12309
12310 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12311
12312         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12313         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12314
12315 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12316
12317         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12318         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12319         defined.
12320         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12321         Likewise.
12322         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12323         entry for 2.16.
12324
12325 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12326
12327         * math/w_acos.c: Use non-signaling floating-point comparisons.
12328         * math/w_acosf.c: Likewise.
12329         * math/w_acosh.c: Likewise.
12330         * math/w_acoshf.c: Likewise.
12331         * math/w_acoshl.c: Likewise.
12332         * math/w_acosl.c: Likewise.
12333         * math/w_asin.c: Likewise.
12334         * math/w_asinf.c: Likewise.
12335         * math/w_asinl.c: Likewise.
12336         * math/w_atanh.c: Likewise.
12337         * math/w_atanhf.c: Likewise.
12338         * math/w_atanhl.c: Likewise.
12339         * math/w_exp2.c: Likewise.
12340         * math/w_exp2f.c: Likewise.
12341         * math/w_exp2l.c: Likewise.
12342         * math/w_j0.c: Likewise.
12343         * math/w_j0f.c: Likewise.
12344         * math/w_j0l.c: Likewise.
12345         * math/w_j1.c: Likewise.
12346         * math/w_j1f.c: Likewise.
12347         * math/w_j1l.c: Likewise.
12348         * math/w_jn.c: Likewise.
12349         * math/w_jnf.c: Likewise.
12350         * math/w_log.c: Likewise.
12351         * math/w_log10.c: Likewise.
12352         * math/w_log10f.c: Likewise.
12353         * math/w_log10l.c: Likewise.
12354         * math/w_log2.c: Likewise.
12355         * math/w_log2f.c: Likewise.
12356         * math/w_log2l.c: Likewise.
12357         * math/w_logf.c: Likewise.
12358         * math/w_logl.c: Likewise.
12359         * math/w_sqrt.c: Likewise.
12360         * math/w_sqrtf.c: Likewise.
12361         * math/w_sqrtl.c: Likewise.
12362         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12363         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12364         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12365         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12366         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12367
12368 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12369
12370         [BZ #9739]
12371         * manual/string.texi (strnlen): Use correct parameter name in
12372         equivalent expression.
12373
12374 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12375
12376         [BZ #11174]
12377         * manual/users.texi (seteuid): Consistently use neweuid for
12378         argument name.
12379
12380 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12381
12382         [BZ #13704]
12383         * manual/nss.texi (Services in the NSS configuration): Correct
12384         list of services in example configuration file.
12385
12386 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12387
12388         [BZ #11322]
12389         * manual/arith.texi: Remove statements about negative zero
12390         behaving identically to zero.
12391
12392 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12393
12394         [BZ #5993]
12395         * manual/install.texi: Do not document upgrading from libc5.
12396
12397 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12398
12399         [BZ #4596]
12400         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12401
12402 2012-02-18  David S. Miller  <davem@davemloft.net>
12403
12404         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12405         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12406         %o7 across the call.
12407         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12408         instead.
12409         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12410         SETUP_PIC_REG_LEAF.
12411         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12412         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12413         * sysdeps/sparc/crtn.S: Likewise.
12414
12415 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12416
12417         * aout/Makefile: Remove.
12418
12419 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12420
12421         [BZ #13058]
12422         * manual/examples/argp-ex1.c (main): Format definition in GNU
12423         style.
12424         * manual/examples/argp-ex2.c (main): Likewise.
12425         * manual/examples/argp-ex3.c (main): Likewise.
12426         * manual/examples/argp-ex4.c (main): Likewise.
12427         * manual/examples/longopt.c (main): Use new-style prototype
12428         definition.
12429         * manual/examples/strncat.c (main): Specify return type and use
12430         (void) for arguments.
12431         * manual/examples/subopt.c (main): Use char **argv argument.
12432
12433 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12434
12435         [BZ #5077]
12436         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12437         rounding modes.
12438
12439 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12440
12441         [BZ #6907]
12442         * manual/string.texi (strchr): Change when strchrnul is
12443         recommended.
12444
12445 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12446
12447         [BZ #174]
12448         * manual/locale.texi (setlocale): Document LOCPATH.
12449
12450 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12451
12452         [BZ #10210]
12453         * manual/process.texi (execle): Move @dots{} before last argument.
12454
12455 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12456
12457         [BZ #12047]
12458         * manual/charset.texi (Generic Charset Conversion): Fix typo
12459         (LC_TYPE -> LC_CTYPE).
12460
12461 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12462
12463         [BZ #5805]
12464         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12465         (scalbnf): Likewise.
12466         (scalbnl): Likewise.
12467         (scalbln): Likewise.
12468         (scalblnf): Likewise.
12469         (scalblnl): Likewise.
12470         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12471         (vwarnx): Likewise.
12472         (verr): Likewise.
12473         (verrx): Likewise.
12474         * manual/filesys.texi (telldir): Use braces around return type.
12475         * manual/llio.texi (mmap): Add space after comma.
12476         (mmap64): Likewise.
12477         * manual/math.texi (jn): Use @var{} on parameter names.
12478         (jnf): Likewise.
12479         (jnl): Likewise.
12480         (yn): Likewise.
12481         (ynf): Likewise.
12482         (ynl): Likewise.
12483         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12484         line.
12485         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12486         "...".
12487         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12488         (sched_get_priority_max): Likewise.
12489         * manual/signal.texi (sigvec): Add space after comma.
12490         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12491         names.
12492         (if_indextoname): Likewise.
12493         (if_freenameindex): Likewise.
12494         (sendto): Use ',' instead of '.' in prototype.
12495         * manual/startup.texi (syscall): Use @dots{} instead of literal
12496         "...".
12497         * manual/stdio.texi (__fpending): Separate initial words of
12498         paragraph from @deftypefun line.
12499         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12500         "...".
12501         (vsyslog): Use @var{} on parameter names.
12502         * manual/terminal.texi (stty): Use @var{} on parameter names.
12503         * manual/users.texi (getutmp): Use @var{} on parameter names.
12504         (getutmpx): Likewise.
12505
12506 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12507
12508         [BZ #6884]
12509         * manual/stdio.texi (fopen): Fix typos in description of
12510         ",ccs=STRING".
12511
12512 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12513
12514         [BZ #4026]
12515         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12516         get clock_id definition.
12517
12518 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12519
12520         [BZ #4822]
12521         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12522         (madvise): Cast every argument to void on its own.
12523
12524 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12525
12526         [BZ #9902]
12527         * manual/startup.texi (Exit Status): Fix typo.
12528
12529 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12530
12531         [BZ #10140]
12532         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12533         * manual/examples/argp-ex2.c: Likewise.
12534         * manual/examples/argp-ex3.c: Likewise.
12535
12536 2012-02-16  Richard Henderson  <rth@redhat.com>
12537
12538         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12539         * sysdeps/s390/s390-32/initfini.c: Remove.
12540         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12541         * sysdeps/s390/s390-64/initfini.c: Remove.
12542
12543 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12544
12545         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12546         compiler output for sysdeps/generic/initfini.c.
12547         * sysdeps/sh/elf/initfini.c: Remove file.
12548
12549 2012-02-16  David S. Miller  <davem@davemloft.net>
12550
12551         [BZ #11494]
12552         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12553
12554         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12555         * sysdeps/sparc/crti.S: New file.
12556         * sysdeps/sparc/crtn.S: New file.
12557         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12558         * sysdeps/sparc/sparc64/Makefile: Likewise.
12559
12560 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12561
12562         [BZ #3335]
12563         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12564
12565 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12566
12567         [BZ #4822]
12568         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12569
12570         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12571         (write, read, close): Likewise.
12572         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12573
12574 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12575
12576         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12577         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12578         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12579         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12580         <bits/signalfd.h>.
12581         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12582         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12583         bits/signalfd.h.
12584
12585 2012-02-14  Marek Polacek  <polacek@redhat.com>
12586
12587         * sysdeps/x86_64/crti.S: New file.
12588         * sysdeps/x86_64/crtn.S: New file.
12589         * sysdeps/x86_64/elf/initfini.c: Remove file.
12590
12591 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12592
12593         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12594         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12595         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12596         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12597         <bits/inotify.h>.
12598         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12599         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12600         bits/inotify.h.
12601
12602 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12603
12604         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12605         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12606         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12607         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12608         <bits/eventfd.h>.
12609         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12610         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12611         bits/eventfd.h.
12612
12613 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12614
12615         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12616         __feraiseexcept instead of feraiseexcept.
12617
12618         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12619         nanosleep invocations.
12620         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12621         strings, and add error checking for a nanosleep invocations.
12622
12623 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12624
12625         Replace FSF snail mail address with URLs, as per GNU coding standards.
12626         Most of the snail mail addresses were wrong anyway, and omitting
12627         them makes the source code easier to maintain.  Almost all of the
12628         changes are to license notices and to locale LC_IDENTIFICATION
12629         addresses, except for this one:
12630         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12631         not its snail mail address.
12632
12633 2012-02-09  Richard Henderson  <rth@twiddle.net>
12634
12635         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12636         of kernel-features.h.
12637
12638         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12639
12640 2012-02-08  Marek Polacek  <polacek@redhat.com>
12641
12642         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12643         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12644         * sysdeps/gnu/_G_config.h: Likewise.
12645         * sysdeps/generic/_G_config.h: Likewise.
12646
12647 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12648
12649         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12650         tests.
12651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12652
12653         * sysdeps/powerpc/powerpc32/crti.S: New file.
12654         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12655         * sysdeps/powerpc/powerpc64/crti.S: New file.
12656         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12657
12658         * Makeconfig (have-initfini): Don't set.
12659         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12660         * configure.in (nopic_initfini): Don't substitute.
12661         * config.h.in (HAVE_INITFINI): Don't #undef.
12662         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12663         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12664
12665 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12666
12667         Support crti.S and crtn.S provided directly by architectures.
12668         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12669         [crti.S in sysdirs] (omit-deps): Likewise.
12670         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12671         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12672         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12673         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12674         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12675         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12676         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12677         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12678         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12679         compiler output for sysdeps/generic/initfini.c.
12680         * sysdeps/i386/elf/Makefile: Remove file.
12681         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12682
12683 2012-02-07  Marek Polacek  <polacek@redhat.com>
12684
12685         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12686         * sysdeps/gnu/_G_config.h: Likewise.
12687         * sysdeps/mach/hurd/_G_config.h: Likewise.
12688
12689 2012-02-07  Marek Polacek  <polacek@redhat.com>
12690
12691         * math/Makefile (tests): Add tst-CMPLX2.
12692         * math/tst-CMPLX2.c: New file.
12693
12694 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12695
12696         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12697
12698         * math/libm-test.inc (jn_test): Add missing L suffix.
12699
12700 2012-02-06  Marek Polacek  <polacek@redhat.com>
12701
12702         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12703         * sysdeps/i386/fpu/e_powf.S: Likewise.
12704         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12705         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12706         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12707         * sysdeps/i386/fpu/e_pow.S: Likewise.
12708         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12709         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12710         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12711         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12712         * sysdeps/i386/fpu/e_log2.S: Likewise.
12713         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12714         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12715         * sysdeps/i386/fpu/e_powl.S: Likewise.
12716         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12717         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12718         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12719         * sysdeps/i386/fpu/e_logl.S: Likewise.
12720         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12721         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12722         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12723         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12724         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12725         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12726         * sysdeps/i386/fpu/e_log.S: Likewise.
12727         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12728         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12729         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12730         * sysdeps/i386/fpu/e_logf.S: Likewise.
12731         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12732         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12733         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12734         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12735         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12736         * sysdeps/i386/fpu/e_log10.S: Likewise.
12737         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12738         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12739         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12740         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12741         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12742         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12743         * sysdeps/i386/asm-syntax.h: Likewise.
12744         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12745         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12746         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12747         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12748         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12749         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12750         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12751         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12752         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12753         * sysdeps/powerpc/sysdep.h: Likewise.
12754         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12755         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12756
12757 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12758
12759         [BZ #411]
12760         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12761
12762 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12763
12764         * sysdeps/i386/sysdep.h: Include <features.h>.
12765         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12766         version.
12767
12768 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12769
12770         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12771         Define.
12772         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12773         LOAD_PIC_REG_STR.
12774
12775 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12776
12777         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12778         (SETUP_PIC_REG): Use GET_PC_THUNK.
12779         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12780         macro.
12781
12782 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12783
12784         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12785         for non-PIC compilation.
12786         (SETUP_PIC_REG): Add .p2align directive.
12787         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12788         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12789         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12790         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12791         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12792         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12793         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12794         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12795         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12796         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12797         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12798         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12799         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12800         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12801         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12802         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12803         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12804         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12805         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12806         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12807         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12808         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12809         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12810         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12811         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12812         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12813         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12814         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12815         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12816         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12817         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12818         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12819         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12820         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12821         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12822         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12823         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12824         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12825         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12826         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12827         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12828
12829 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12830
12831         * math/tst-CMPLX.c: Include <stdio.h>.
12832
12833 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12834
12835         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12836         float.
12837         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12838         * sysdeps/sparc/bits/mathdef.h: Likewise.
12839
12840 2012-01-31  Marek Polacek  <polacek@redhat.com>
12841
12842         * libio/libio.h: Don't define _PARAMS.
12843         * locale/programs/config.h: Don't define PARAMS.
12844         * stdlib/strtol_l.c: Likewise.
12845         (__strtol_l): Remove PARAMS from the prototype.
12846
12847 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12848
12849         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12850         names.  Just use the correct names.  Remove unnecessary wrapper
12851         functions.
12852         * malloc/arena.c: Likewise.
12853         * malloc/hooks.c: Likewise.
12854
12855         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12856         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12857         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12858
12859 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12860
12861         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12862         into tail calls.
12863         (update_get_addr): New function.
12864         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12865         GET_ADDR_MODULE parameter.
12866
12867 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12868
12869         * crypt/cert.c: Remove __STDC__ conditionals.
12870         * crypt/crypt-entry.c: Likewise.
12871         * crypt/crypt_util.c: Likewise.
12872         * libio/filedoalloc.c: Likewise.
12873         * libio/fileops.c: Likewise.
12874         * libio/genops.c: Likewise.
12875         * libio/iofclose.c: Likewise.
12876         * libio/iofdopen.c: Likewise.
12877         * libio/iofopen.c: Likewise.
12878         * libio/iofopen64.c: Likewise.
12879         * libio/iogetdelim.c: Likewise.
12880         * libio/iopopen.c: Likewise.
12881         * libio/obprintf.c: Likewise.
12882         * libio/oldfileops.c: Likewise.
12883         * libio/oldiofclose.c: Likewise.
12884         * libio/oldiofdopen.c: Likewise.
12885         * libio/oldiofopen.c: Likewise.
12886         * libio/oldiopopen.c: Likewise.
12887         * libio/wfiledoalloc.c: Likewise.
12888         * libio/wgenops.c: Likewise.
12889         * locale/programs/xmalloc.c: Likewise.
12890         * misc/syslog.c: Likewise.
12891         * stdio-common/xbug.c: Likewise.
12892         * string/memchr.c: Likewise.
12893         * string/memcmp.c: Likewise.
12894         * string/memrchr.c: Likewise.
12895         * string/rawmemchr.c: Likewise.
12896         * sysdeps/posix/getcwd.c: Likewise.
12897         * time/strftime_l.c: Likewise.
12898
12899 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12900
12901         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12902         * config.make.in (config-cflags-sse2avx): Define.
12903         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12904         Fix typo.
12905
12906 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12907
12908         * scripts/config.guess: Update from upstream config git repository.
12909         * scripts/config.sub: Likewise.
12910
12911 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12912
12913         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12914         (EM_NUM): Update.
12915         (R_TILEPRO_*, R_TILEGX_*): New macros.
12916
12917         * scripts/firstversions.awk: Fix bug in version range handling.
12918
12919         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12920
12921         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12922
12923         * include/sys/epoll.h: New file.
12924         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12925         libc_hidden_def.
12926
12927 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12928
12929         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12930         Avoid unnecessary __WORDSIZE == 64 test.
12931         (fmaxf): Use VEX format if possible.
12932         (fmax): Likewise.
12933         (fminf): Likewise.
12934         (fmin): Likewise.
12935
12936         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12937         * math/math_private.h: Remove libc_fegetround* and
12938         libc_fesetround*.
12939         * sysdeps/i386/configure.in: Check for -msse2avx.
12940         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12941         also if SSE2AVX is defined.
12942         Remove libc_fegetround* and libc_fesetround*.
12943         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12944         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12945         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12946         of HAS_YMM_USABLE.
12947         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12948         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12949         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12950         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12951         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12952
12953         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12954
12955 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12956
12957         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12958         size is not set.
12959         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12960
12961 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12962
12963         [BZ #13618]
12964         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12965         relocation.
12966         * Makeconfig (libm): Define.
12967         * elf/Makefile: Add rules to build and run tst-relsort1.
12968         * elf/tst-relsort1.c: New file.
12969         * elf/tst-relsort1mod1.c: New file.
12970         * elf/tst-relsort1mod2.c: New file.
12971
12972 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12973
12974         * math/s_ldexp.c: Remove __STDC__ conditionals.
12975         * math/s_ldexpf.c: Likewise.
12976         * math/s_ldexpl.c: Likewise.
12977         * math/s_nextafter.c: Likewise.
12978         * math/s_nexttowardf.c: Likewise.
12979         * math/s_significand.c: Likewise.
12980         * math/s_significandf.c: Likewise.
12981         * math/s_significandl.c: Likewise.
12982         * math/w_jnl.c: Likewise.
12983         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12984         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12985         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12986         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12987         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12988         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12989         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
12990         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12991         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12992         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12993         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12994         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12995         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12996         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12997         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12998         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12999         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13000         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13001         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13002         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13003         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13004         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13005         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13006         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13007         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13008         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13009         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13010         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13011         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13012         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13013         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13014         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13015         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13016         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13017         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13018         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13019         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13020         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13021         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13022         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13023         * sysdeps/ieee754/k_standard.c: Likewise.
13024         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13025         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13026         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13027         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13028         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13029         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13031         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13032         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13033         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13037         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13038         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13041         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13042         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13043         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13044         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13045         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13046         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13047         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13048         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13051         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13052         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13056         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13058         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13063         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13067         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13071         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13072         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13073         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13074         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13075         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13076         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13077         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13078         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13079         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13080         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13081         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13082         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13083         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13084         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13085         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13086         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13087         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13088         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13089         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13090         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13091         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13092         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13093         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13094         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13095         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13096         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13097         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13098         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13099         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13100         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13101         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13102         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13103         * sysdeps/ieee754/s_matherr.c: Likewise.
13104         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13105         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13106         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13107         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13108
13109 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13110
13111         * crypt/md5.h: Remove __STDC__ conditionals.
13112         * libio/libioP.h: Likewise.
13113         * locale/programs/config.h: Likewise.
13114         * sysdeps/generic/sysdep.h: Likewise.
13115         * sysdeps/i386/asm-syntax.h: Likewise.
13116         * sysdeps/s390/asm-syntax.h: Likewise.
13117         * sysdeps/unix/sysdep.h: Likewise.
13118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13120
13121 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13122
13123         * libio/libio.h: Remove __STDC__ conditionals.
13124         * malloc/obstack.h: Likewise.
13125         * math/complex.h: Likewise.
13126         * math/math.h: Likewise.
13127         * sysdeps/generic/_G_config.h: Likewise.
13128         * sysdeps/gnu/_G_config.h: Likewise.
13129         * sysdeps/mach/hurd/_G_config.h: Likewise.
13130         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13131         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13132         * sysdeps/sparc/bits/mathdef.h: Likewise.
13133
13134 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13135
13136         [BZ #13583]
13137         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13138         Clean up HAS_* macros.
13139         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13140         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13141         possible.
13142         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13143         HAS_AVX.
13144         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13145         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13146         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13147         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13148         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13149
13150 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13151
13152         * elf/tst-unique3.cc (gets): Remove declaration.
13153         * elf/tst-unique3lib.cc (gets): Likewise.
13154         * elf/tst-unique3lib2.cc (gets): Likewise.
13155         * elf/tst-unique4.cc (gets): Likewise.
13156
13157 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13158
13159         * include/stdio.h: Add C++ protection.  Add gets declarations and
13160         definitions.
13161         * debug/tst-chk1.c: Don't declare gets here.
13162         * stdio-common/tst-gets.c: Likewise.
13163
13164 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13165
13166         * posix/glob: Remove directory.
13167
13168 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13169
13170         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13171
13172 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13173
13174         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13175         of the non-standard EPFNOSUPPORT.
13176
13177 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13178
13179         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13180         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13181         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13182
13183 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13184
13185         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13186
13187 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13188
13189         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13190         transient errors.
13191         * nscd/grpcache.c (cache_addgr): Likewise.
13192         * nscd/hstcache.c (cache_addhst): Likewise.
13193         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13194         * nscd/pwdcache.c (cache_addpw): Likewise.
13195         * nscd/servicescache.c (cache_addserv): Likewise.
13196
13197 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13198
13199         * malloc/malloc.c: Various cleanups.
13200         * malloc/hooks.c: Likewise.
13201
13202         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13203         * stdlib/bug-fmtmsg1.c: New file.
13204
13205         * stdlib/fmtmsg.c (init): Add missing unlock.
13206         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13207
13208 2012-01-12  Marek Polacek  <polacek@redhat.com>
13209
13210         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13211         and _GNU_SOURCE.
13212
13213 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13214
13215         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13216         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13217         macro to ensure uniqueness of label name.
13218         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13219         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13220
13221 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13222
13223         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13224
13225         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13226         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13227         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13228         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13229
13230 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13231
13232         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13233
13234         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13235         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13236         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13237
13238         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13239
13240         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13241         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13242         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13243         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13244
13245         * math/bits/math-finite.h: Add ldexp support.
13246
13247 2012-01-10  Marek Polacek  <polacek@redhat.com>
13248
13249         * locale/programs/localedef.h (show_archive_content): Add noreturn
13250         attribute.
13251
13252 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13253
13254         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13255
13256 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13257
13258         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13259
13260         * io/Makefile (headers): Add bits/poll2.h.
13261
13262 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13263
13264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13265         typo #include statement.
13266
13267 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13268
13269         * include/sys/cdefs.h: Define __attribute_alloc_size.
13270         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13271         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13272         * elf/pldd.c: Likewise.
13273         * iconv/iconv_charmap.c: Likewise.
13274         * iconv/iconvconfig.c: Likewise.
13275         * iconv/strtab.c: Likewise.
13276         * locale/programs/locale.c: Likewise.
13277         * locale/programs/localedef.h: Likewise.
13278         * locale/programs/simple-hash.c: Likewise.
13279         * nscd/nscd.h: Likewise.
13280         * nss/makedb.c: Likewise.
13281         * sysdeps/generic/ldconfig.h: Likewise.
13282         * locale/programs/localedef.c: Remove xmalloc prototype.
13283         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13284
13285 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13286
13287         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13288         appropriate.
13289
13290 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13291
13292         * math/Makefile (tests): Add tst-CMPLX.
13293         * math/tst-CMPLX.c: New file.
13294
13295         * math/complex.h (CMPLXL): Fix typo.
13296
13297         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13298         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13299         GLIBC_2.16.
13300         * debug/tst-chk1.c: Add poll and ppoll tests.
13301         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13302         * include/sys/poll.h: Add hidden proto for ppoll.
13303         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13304         * sysdeps/mach/hurd/ppoll.c: Likewise.
13305         * io/ppoll.c: Likewise.
13306         * debug/poll_chk.c: New file.
13307         * debug/ppoll_chk.c: New file.
13308         * include/bits/poll2.h: New file.
13309         * io/bits/poll2.h: New file.
13310
13311         [BZ #1350]
13312         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13313
13314         * configure.in: static is always set to yes.  Remove.
13315         * config.make.in: Don't set build-static.
13316         * Makeconfig: Remove use of build-static.
13317         * dlfcn/Makefile: Likewise.
13318         * elf/Makefile: Likewise.
13319         * math/Makefile: Likewise.
13320         * misc/Makefile: Likewise.
13321         * nptl/Makefile: Likewise.
13322         * sysdeps/mach/hurd/Makefile: Likewise.
13323
13324         * configure.in: PWD_P is not used anymore.
13325         * config.make.in: Remove PWD_P entry.
13326
13327         * configure.in: Remove last remnants of RANLIB.
13328         No need to check for signed size_t anymore.
13329         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13330         and IA-64.
13331         Remove __builtin_expect test because we require at least gcc 3.4.
13332         * aclocal.m4: Likewise.
13333
13334         * wcsmbs/mbrtoc16.c: Implement using towc function.
13335         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13336         * wcsmbs/wcsmbsload.c: Likewise.
13337         * iconv/gconv_simple.c: Likewise.
13338         * iconv/gconv_int.h: Likewise.
13339         * iconv/gconv_builtin.h: Likewise.
13340         * iconv/iconv_prog.c: Remove CHAR16 handling.
13341
13342         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13343
13344         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13345
13346         * configure.in: Remove --with-elf and --enable-bounded options.
13347         Dont set base_machine for ia64.  More non-ELF conditions removed.
13348         Remove testing and setting of leading underscore information.
13349         * config.make.in (build-bounded): Set to no.
13350         * config.h.in: Remove NO_UNDERSCORES entry.
13351         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13352         them.
13353         * csu/start.c: Remove !NO_UNDERSCORE code.
13354         * locale/localeinfo.h: Likewise.
13355         * sysdeps/generic/machine-gmon.h: Likewise.
13356         * sysdeps/generic/sysdep.h: Likewise.
13357         * sysdeps/i386/sysdep.h: Likewise.
13358         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13359         * sysdeps/mach/sysdep.h: Likewise.
13360         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13361         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13362         * sysdeps/sh/sysdep.h: Likewise.
13363         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13364         * sysdeps/unix/i386/sysdep.S: Likewise.
13365         * sysdeps/unix/sparc/start.c: Likewise.
13366         * sysdeps/unix/sparc/sysdep.S: Likewise.
13367         * sysdeps/unix/sparc/sysdep.h: Likewise.
13368         * sysdeps/unix/start.c: Likewise.
13369         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13370         * sysdeps/x86_64/sysdep.h: Likewise.
13371
13372 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13373
13374         [BZ #13553]
13375         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13376         for non-gcc.
13377         * argp/argp-fmtstream.h: Use const instead __const.
13378         * argp/argp.h: Likewise.
13379         * assert/assert.h: Likewise.
13380         * bits/fenv.h: Likewise.
13381         * bits/sched.h: Likewise.
13382         * bits/sigset.h: Likewise.
13383         * bits/sigthread.h: Likewise.
13384         * catgets/nl_types.h: Likewise.
13385         * conform/data/pthread.h-data: Likewise.
13386         * crypt/crypt-private.h: Likewise.
13387         * crypt/crypt.h: Likewise.
13388         * crypt/crypt_util.c: Likewise.
13389         * ctype/ctype.h: Likewise.
13390         * debug/execinfo.h: Likewise.
13391         * debug/mbsnrtowcs_chk.c: Likewise.
13392         * debug/mbsrtowcs_chk.c: Likewise.
13393         * debug/wcsnrtombs_chk.c: Likewise.
13394         * debug/wcsrtombs_chk.c: Likewise.
13395         * debug/wcstombs_chk.c: Likewise.
13396         * dirent/dirent.h: Likewise.
13397         * dlfcn/dlfcn.h: Likewise.
13398         * elf/neededtest4.c: Likewise.
13399         * grp/grp.h: Likewise.
13400         * gshadow/gshadow.h: Likewise.
13401         * iconv/gconv.h: Likewise.
13402         * iconv/gconv_int.h: Likewise.
13403         * iconv/gconv_simple.c: Likewise.
13404         * iconv/iconv.h: Likewise.
13405         * iconv/loop.c: Likewise.
13406         * iconv/skeleton.c: Likewise.
13407         * include/aio.h: Likewise.
13408         * include/aliases.h: Likewise.
13409         * include/argz.h: Likewise.
13410         * include/arpa/inet.h: Likewise.
13411         * include/assert.h: Likewise.
13412         * include/dirent.h: Likewise.
13413         * include/dlfcn.h: Likewise.
13414         * include/execinfo.h: Likewise.
13415         * include/fcntl.h: Likewise.
13416         * include/fenv.h: Likewise.
13417         * include/glob.h: Likewise.
13418         * include/grp.h: Likewise.
13419         * include/libintl.h: Likewise.
13420         * include/mntent.h: Likewise.
13421         * include/netdb.h: Likewise.
13422         * include/pwd.h: Likewise.
13423         * include/rpc/netdb.h: Likewise.
13424         * include/sched.h: Likewise.
13425         * include/search.h: Likewise.
13426         * include/shadow.h: Likewise.
13427         * include/signal.h: Likewise.
13428         * include/stdio.h: Likewise.
13429         * include/stdlib.h: Likewise.
13430         * include/string.h: Likewise.
13431         * include/sys/socket.h: Likewise.
13432         * include/sys/stat.h: Likewise.
13433         * include/sys/statfs.h: Likewise.
13434         * include/sys/statvfs.h: Likewise.
13435         * include/sys/syslog.h: Likewise.
13436         * include/sys/time.h: Likewise.
13437         * include/sys/uio.h: Likewise.
13438         * include/time.h: Likewise.
13439         * include/unistd.h: Likewise.
13440         * include/utmp.h: Likewise.
13441         * include/wchar.h: Likewise.
13442         * include/wctype.h: Likewise.
13443         * inet/aliases.h: Likewise.
13444         * inet/arpa/inet.h: Likewise.
13445         * inet/netinet/ether.h: Likewise.
13446         * inet/netinet/in.h: Likewise.
13447         * intl/libintl.h: Likewise.
13448         * io/bits/fcntl2.h: Likewise.
13449         * io/fcntl.h: Likewise.
13450         * io/ftw.h: Likewise.
13451         * io/sys/poll.h: Likewise.
13452         * io/sys/stat.h: Likewise.
13453         * io/sys/statfs.h: Likewise.
13454         * io/sys/statvfs.h: Likewise.
13455         * io/utime.h: Likewise.
13456         * libio/bits/stdio.h: Likewise.
13457         * libio/bits/stdio2.h: Likewise.
13458         * libio/libio.h: Likewise.
13459         * libio/libioP.h: Likewise.
13460         * libio/stdio.h: Likewise.
13461         * locale/lc-ctype.c: Likewise.
13462         * locale/locale.h: Likewise.
13463         * login/utmp.h: Likewise.
13464         * malloc/arena.c: Likewise.
13465         * malloc/malloc.c: Likewise.
13466         * malloc/malloc.h: Likewise.
13467         * malloc/mcheck.c: Likewise.
13468         * malloc/mtrace.c: Likewise.
13469         * math/bits/mathcalls.h: Likewise.
13470         * math/fenv.h: Likewise.
13471         * math/math_private.h: Likewise.
13472         * misc/bits/error.h: Likewise.
13473         * misc/bits/syslog.h: Likewise.
13474         * misc/err.h: Likewise.
13475         * misc/error.h: Likewise.
13476         * misc/fstab.h: Likewise.
13477         * misc/mntent.h: Likewise.
13478         * misc/regexp.h: Likewise.
13479         * misc/search.h: Likewise.
13480         * misc/sgtty.h: Likewise.
13481         * misc/sys/mman.h: Likewise.
13482         * misc/sys/syslog.h: Likewise.
13483         * misc/sys/uio.h: Likewise.
13484         * misc/sys/xattr.h: Likewise.
13485         * misc/ttyent.h: Likewise.
13486         * nis/rpcsvc/ypclnt.h: Likewise.
13487         * nss/nss.h: Likewise.
13488         * posix/bits/unistd.h: Likewise.
13489         * posix/fnmatch.h: Likewise.
13490         * posix/glob.h: Likewise.
13491         * posix/sched.h: Likewise.
13492         * posix/spawn.h: Likewise.
13493         * posix/sys/wait.h: Likewise.
13494         * posix/unistd.h: Likewise.
13495         * posix/wordexp.h: Likewise.
13496         * pwd/pwd.h: Likewise.
13497         * resolv/netdb.h: Likewise.
13498         * resource/sys/resource.h: Likewise.
13499         * rt/aio.h: Likewise.
13500         * rt/bits/mqueue2.h: Likewise.
13501         * rt/mqueue.h: Likewise.
13502         * shadow/shadow.h: Likewise.
13503         * signal/signal.h: Likewise.
13504         * socket/send.c: Likewise.
13505         * socket/sendto.c: Likewise.
13506         * socket/sys/socket.h: Likewise.
13507         * stdio-common/printf.h: Likewise.
13508         * stdlib/bits/stdlib.h: Likewise.
13509         * stdlib/fmtmsg.h: Likewise.
13510         * stdlib/monetary.h: Likewise.
13511         * stdlib/stdlib.h: Likewise.
13512         * stdlib/ucontext.h: Likewise.
13513         * streams/stropts.h: Likewise.
13514         * string/argz.h: Likewise.
13515         * string/bits/string2.h: Likewise.
13516         * string/string.h: Likewise.
13517         * string/strings.h: Likewise.
13518         * sunrpc/rpc/auth.h: Likewise.
13519         * sunrpc/rpc/auth_des.h: Likewise.
13520         * sunrpc/rpc/clnt.h: Likewise.
13521         * sunrpc/rpc/netdb.h: Likewise.
13522         * sunrpc/rpc/pmap_clnt.h: Likewise.
13523         * sunrpc/rpc/xdr.h: Likewise.
13524         * sysdeps/generic/inttypes.h: Likewise.
13525         * sysdeps/generic/net/if.h: Likewise.
13526         * sysdeps/generic/sys/swap.h: Likewise.
13527         * sysdeps/gnu/net/if.h: Likewise.
13528         * sysdeps/gnu/utmpx.h: Likewise.
13529         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13530         * sysdeps/i386/i486/bits/string.h: Likewise.
13531         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13532         * sysdeps/s390/bits/string.h: Likewise.
13533         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13534         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13535         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13536         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13537         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13538         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13539         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13540         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13541         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13542         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13543         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13544         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13545         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13546         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13547         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13548         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13549         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13550         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13551         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13552         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13553         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13554         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13555         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13556         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13557         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13558         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13559         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13560         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13561         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13562         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13563         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13564         * sysvipc/sys/ipc.h: Likewise.
13565         * sysvipc/sys/msg.h: Likewise.
13566         * sysvipc/sys/sem.h: Likewise.
13567         * sysvipc/sys/shm.h: Likewise.
13568         * termios/termios.h: Likewise.
13569         * time/sys/time.h: Likewise.
13570         * time/time.h: Likewise.
13571         * wcsmbs/bits/wchar2.h: Likewise.
13572         * wcsmbs/uchar.h: Likewise.
13573         * wcsmbs/wchar.h: Likewise.
13574         * wctype/wctype.h: Likewise.
13575
13576         [BZ #13551]
13577         * Makeconfig: Remove all but ELF support including AIX support.
13578         * Makerules: Likewise.
13579         * config.h.in: Likewise.
13580         * config.make.in: Likewise.
13581         * configure: Likewise.
13582         * configure.in: Likewise.
13583         * csu/Makefile: Likewise.
13584         * csu/version.c: Likewise.
13585         * debug/Makefile: Likewise.
13586         * dlfcn/Makefile: Likewise.
13587         * elf/Makefile: Likewise.
13588         * extra-lib.mk: Likewise.
13589         * iconv/Makefile: Likewise.
13590         * include/libc-symbols.h: Likewise.
13591         * include/shlib-compat.h: Likewise.
13592         * resolv/Makefile: Likewise.
13593         * resolv/res_libc.c: Likewise.
13594         * rt/Makefile: Likewise.
13595         * sysdeps/i386/asm-syntax.h: Likewise.
13596         * sysdeps/i386/sysdep.h: Likewise.
13597         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13598         * sysdeps/mach/sysdep.h: Likewise.
13599         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13600         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13601         * sysdeps/s390/asm-syntax.h: Likewise.
13602         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13603         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13604         * sysdeps/sh/sysdep.h: Likewise.
13605         * sysdeps/unix/sparc/sysdep.h: Likewise.
13606         * sysdeps/wordsize-32/divdi3.c: Likewise.
13607         * sysdeps/x86_64/sysdep.h: Likewise.
13608
13609         * argp/Versions: Remove _argp_unlock_xxx.
13610
13611         [BZ #13559]
13612         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13613         * abilist/libBrokenLocale.abilist: Likewise.
13614         * abilist/libanl.abilist: Likewise.
13615         * abilist/libc.abilist: Likewise.
13616         * abilist/libcrypt.abilist: Likewise.
13617         * abilist/libdl.abilist: Likewise.
13618         * abilist/libm.abilist: Likewise.
13619         * abilist/libnsl.abilist: Likewise.
13620         * abilist/libpthread.abilist: Likewise.
13621         * abilist/libresolv.abilist: Likewise.
13622         * abilist/librt.abilist: Likewise.
13623         * abilist/libthread_db.abilist: Likewise.
13624         * abilist/libutil.abilist: Likewise.
13625         * abilist/libnss_db.abilist: New file.
13626
13627         * scripts/abilist.awk: Add support for indirect functions.
13628
13629         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13630
13631         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13632
13633         * shlib-versions: Remove entries for ports architectures.
13634
13635         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13636         files in ports.
13637         * elf/stackguard-macros.h: Remove support for IA-64.
13638         * elf/tst-auditmod1.c: Likewise.
13639         * sysdeps/generic/ldsodefs.h: Likewise.
13640
13641         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13642         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13643         configure files.
13644
13645         [BZ #13552]
13646         * configure.in: Remove --enable-omitfp support.
13647         * FAQ.in: Adjust.
13648         * config.make.in: Likewise.
13649         * Makeconfig: Likewise.
13650         * manual/install.texi: Likewise.
13651
13652         In case anyone cares, the IA-64 architecture could move to ports.
13653         * sysdeps/ia64/*: Removed.
13654         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13655         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13656
13657         [BZ #13555]
13658         * configure.in: Remove entries for unsupported architectures.
13659
13660         [BZ #13533]
13661         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13662         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13663         routines.
13664         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13665         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13666         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13667         fall back to using wcrtomb.
13668         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13669         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13670         renaming.
13671         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13672         * wcsmbs/tst-c16c32-1.c: New file.
13673
13674         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13675         local variable.
13676
13677         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13678
13679         * elf/tst-unique3.cc: Add explicit declaration of gets.
13680         * elf/tst-unique3lib.cc: Likewise.
13681         * elf/tst-unique3lib2.cc: Likewise.
13682         * elf/tst-unique4.cc: Likewise.
13683
13684         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13685
13686 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13687
13688         [BZ #13566]
13689         * assert/assert.h (static_assert): Don't define for C++.
13690         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13691         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13692
13693 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13694
13695         * iconv/loop.c (single loop): Fix assertion in storing of
13696         remaining bytes.
13697
13698         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13699
13700 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13701
13702         * posix/getconf.c: Update copyright year.
13703         * nss/getent.c: Likewise.
13704         * nss/makedb.c: Likewise.
13705         * iconv/iconvconfig.c: Likewise.
13706         * iconv/iconv_prog.c: Likewise.
13707         * elf/ldconfig.c: Likewise.
13708         * elf/pldd.c: Likewise.
13709         * elf/sotruss.ksh: Likewise.
13710         * catgets/gencat.c: Likewise.
13711         * csu/version.c: Likewise.
13712         * elf/ldd.bash.in: Likewise.
13713         * elf/sprof.c (print_version): Likewise.
13714         * locale/programs/locale.c: Likewise.
13715         * locale/programs/localedef.c: Likewise.
13716         * login/programs/pt_chown.c: Likewise.
13717         * nscd/nscd.c (print_version): Likewise.
13718         * debug/xtrace.sh: Likewise.
13719         * malloc/memusage.sh: Likewise.
13720         * malloc/mtrace.pl: Likewise.
13721         * debug/catchsegv.sh: Likewise.
13722
13723 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13724
13725         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13726         pure attribute.
13727
13728 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13729
13730         [BZ #13533]
13731         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13732         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13733         transformations.
13734         * iconv/gconv_int.h: Likewise.
13735         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13736         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13737         from libc for GLIBC_2.16.
13738         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13739         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13740         * wcsmbs/uchar.h: Really define mbstate_t.
13741         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13742         * wcsmbs/c16rtomb.c: New file.
13743         * wcsmbs/mbrtoc16.c: New file.
13744         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13745         for C/POSIX locale.
13746         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13747         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13748
13749         * wcsmbs/wchar.h: Add missing __restrict.
13750
13751 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13752
13753         [BZ #13532]
13754         * time/Makefile (routines): Add timespec_get.
13755         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13756         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13757         timespec for ISO C11.
13758         * time/timespec_get.c: New file.
13759         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13760         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13761
13762         [BZ #13531]
13763         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13764         * stdlib/stdlib.h: Declare aligned_alloc.
13765         * Versions.def: Add GLIBC_2.16 for libc.
13766         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13767
13768         [BZ 13527]
13769         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13770         ISO C11.
13771
13772         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13773         code.
13774
13775         [BZ #13528]
13776         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13777
13778         [BZ #13529]
13779         * assert/assert.h (static_assert): Define.
13780
13781         * version.h: Update for 2.16 development version.
13782
13783         [BZ #13526]
13784         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13785         _ISOC11_SOURCE.
13786
13787         * version.h (RELEASE): Bump for 2.15 release.
13788         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13789
13790         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13791         Patch by Marek Polacek <mpolacek@redhat.com>.
13792
13793         * bits/byteswap.h: Protect long long constants with __extension__.
13794         * sysdeps/i386/bits/byteswap.h: Likewise.
13795         * sysdeps/ia64/bits/byteswap.h: Likewise.
13796         * sysdeps/s390/bits/byteswap.h: Likewise.
13797         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13798
13799 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13800
13801         [BZ #13540]
13802         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13803         destination buffer.
13804         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13805
13806 2011-12-23  Marek Polacek  <polacek@redhat.com>
13807
13808         * elf/dl-addr.c (determine_info): Add inline keyword.
13809         * elf/tst-auditmod4b.c (check_avx): Likewise.
13810         * elf/tst-auditmod6b.c (check_avx): Likewise.
13811         * elf/tst-auditmod6c.c (check_avx): Likewise.
13812         * elf/tst-auditmod7b.c (check_avx): Likewise.
13813
13814 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13815
13816         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13817         !__SSE_MATH__.
13818
13819 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13820
13821         [BZ #13540]
13822         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13823         processing for last bytes.
13824
13825 2011-08-06  Bruno Haible  <bruno@clisp.org>
13826
13827         [BZ #13061]
13828         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13829         U+0385, not to U+1FEE.
13830
13831         [BZ #13062]
13832         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13833         entry for U+00A5 U+0301.
13834
13835 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13836
13837         [BZ #13166]
13838         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13839         buffer for the output is too small.
13840
13841         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13842         optimization.
13843
13844         [BZ #13185]
13845         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13846         SSE flags if possible.
13847
13848 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13849
13850         [BZ #13540]
13851         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13852         processing for last bytes.
13853
13854 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13855
13856         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13857         (syscall-list-default-options, syscall-list-default-condition)
13858         (syscall-list-includes): Define.
13859         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13860         list of ABIs and options and #if conditions for each ABI.  Do not
13861         handle common syscalls between ABIs specially.
13862         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13863         Remove.
13864         (syscall-list-variants, syscall-list-32bit-options)
13865         (syscall-list-32bit-condition, syscall-list-64bit-options)
13866         (syscall-list-64bit-condition): Define.
13867         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): 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/sparc/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         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13877         Remove.
13878         (syscall-list-variants, syscall-list-32bit-options)
13879         (syscall-list-32bit-condition, syscall-list-64bit-options)
13880         (syscall-list-64bit-condition): Define.
13881
13882 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13883
13884         * locale/iso-639.def: Add brx entry.
13885
13886         [BZ #13328]
13887         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13888         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13889
13890         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13891         __feraiseexcept_renamed.
13892
13893 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13894
13895         [BZ #13538]
13896         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13897         EPOLLET with unsigned values.
13898         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13899         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13900
13901         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13902         to large cancellation.
13903         * math/s_cacoshf.c: Likewise.
13904         * math/s_cacoshl.c: Likewise.
13905
13906 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13907
13908         [BZ #13305]
13909         [BZ #12786]
13910         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13911         * math/s_cacoshf.c: Likewise.
13912         * math/s_cacoshl.c: Likewise.
13913
13914 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13915
13916         [BZ #13439]
13917         * iconv/gconv.h: Define __GCONV_SWAP.
13918         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13919         * iconvdata/utf-16.c: Likewise.
13920         * iconvdata/utf-32.c: Likewise.
13921
13922 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13923
13924         [BZ #13524]
13925         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13926         numerator after shifting it by one limb.
13927
13928 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13929
13930         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13931         under [__USE_EXTERN_INLINES].
13932
13933 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13934
13935         [BZ #13446]
13936         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13937
13938 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13939
13940         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13941         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13942         optimized code.
13943         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13944         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13945         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13946         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13947         for strncasecmp/strncasecmp_l compilation.
13948         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13949         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13950
13951 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13952
13953         [BZ #13484]
13954         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13955         of __asm__.
13956
13957 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13958
13959         [BZ #13506]
13960         * time/tzfile.c (__tzfile_read): Check values from file header.
13961
13962 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13963
13964         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13965         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13966         * powerpc/powerpc32/dl-start.S: Likewise.
13967         * powerpc/powerpc32/elf/start.S: Likewise.
13968         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13969         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13970         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13971         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13972         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13973         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13974         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13975         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13976         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13977         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13978         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13979         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13980         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13981         * powerpc/powerpc32/memset.S: Likewise.
13982         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13983         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13984         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13985         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13986         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13987         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13988         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13989         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13990         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
13991         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
13992         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
13993         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13994         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13995
13996 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13997
13998         * math/libm-test.inc: Added more nearbyint tests.
13999         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14000         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14001         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14002         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14003
14004 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14005
14006         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14007         FD_CLOEXEC.
14008
14009 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14010
14011         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14012         Add wcscpy-ssse3 wcscpy-c.
14013         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14014         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14015         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14016         * sysdeps/x86_64/wcschr.S: New file.
14017         * sysdeps/x86_64/wcsrchr.S: New file.
14018         * string/test-strcmp.c: Remove checking of wcscmp function for
14019         wrong alignments.
14020         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14021         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14022         wcsrchr-sse2 wcsrchr-c.
14023         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14024         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14025         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14026         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14027         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14028         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14029         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14030         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14031         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14032         * wcsmbc/wcschr.c (WCSCHR): New macro.
14033
14034 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14035
14036         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14037         * wcsmbs/test-wcsrchr.c: New file.
14038         * string/test-strrchr.c: Add wcsrchr support.
14039         (WIDE): New macro.
14040         * wcsmbs/test-wcscpy.c: New file.
14041         * string/test-strcpy.c: Add wcscpy support.
14042         (WIDE): New macro.
14043
14044 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14045
14046         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14047         the inner loop.
14048
14049 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14050
14051         [BZ #13472]
14052         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14053
14054 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14055
14056         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14057         Minor optimizations.
14058
14059         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14060         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14061         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14062
14063 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14064
14065         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14066         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14067         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14068         for gcc to avoid warnings.
14069         * inet/Makefile (tests): Add tst-checks.
14070         * inet/tst-checks.c: New file.
14071
14072         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14073         warning.
14074
14075         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14076         __wmemcmp_sse2.
14077
14078         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14079         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14080
14081         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14082
14083 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14084
14085         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14086         problem.
14087
14088         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14089
14090 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14091
14092         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14093         conditional on GCC version.
14094         (__arch_compare_and_exchange_val_8_acq)
14095         (__arch_compare_and_exchange_val_16_acq)
14096         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14097         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14098         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14099
14100 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * sysdeps/sh/backtrace.c: New file.
14103
14104 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14105
14106         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14107         parenthesis.
14108
14109 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14110
14111         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14112         falling back to utime.
14113
14114 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14115
14116         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14117         expectations for float.
14118
14119 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14120
14121         * locale/weight.h (findidx): Add parameter len.
14122         * locale/weightwc.h (findidx): Likewise.
14123         * posix/fnmatch_loop.c (FCT): Adjust caller.
14124         * posix/regcomp.c (build_equiv_class): Likewise.
14125         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14126         * posix/regexec.c (check_node_accept_bytes): Likewise.
14127         * string/strcoll_l.c (STRCOLL): Likewise.
14128         * string/strxfrm_l.c (STRXFRM): Likewise.
14129
14130 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14131
14132         * Makefile.in: Remove CVSOPT handling.
14133         * configure.in: Remove use of AC_REVISION.
14134         * iconvdata/Makefile (distribute): No need to filter out CVS.
14135         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14136         handling.
14137
14138 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14139
14140         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14141         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14142         [USE_AS_STRNCASECMP_L]: Likewise.
14143         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14144         NO_TLS_DIRECT_SEG_REFS.
14145         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14146         Fix argument offsets for non-PIC.
14147         [USE_AS_STRNCASECMP_L]: Likewise.
14148         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14149         NO_TLS_DIRECT_SEG_REFS.
14150
14151 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14152
14153         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14154         O_CLOEXEC.
14155         * locale/loadlocale.c (_nl_load_locale): Likewise.
14156
14157 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14158
14159         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14160         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14161         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14162         (SYSCALL_GETTIME): Set errno on error.
14163
14164         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14165         count references to noai6ai_cached.
14166
14167 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14168
14169         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14170
14171         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14172         FD_CLOEXEC for /proc/self/maps.
14173
14174         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14175         FD_CLOEXEC for /proc/meminfo.
14176
14177         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14178         gai.conf.
14179
14180         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14181         FD_CLOEXEC for given file.
14182
14183         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14184
14185         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14186         FD_CLOEXEC for /etc/hosts.
14187         (_gethtent): Likewise.
14188
14189         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14190
14191         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14192         cancellation and set FD_CLOEXEC for /etc/netgroup.
14193
14194         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14195         reading /etc/publickey.
14196
14197         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14198         allow cancellation when reading /etc/group.
14199
14200         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14201         cancellation.
14202         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14203
14204         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14205         when using data file.
14206
14207         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14208
14209         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14210         (write_nis_obj): Use "c" and "e" in fopen.
14211
14212         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14213
14214         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14215
14216         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14217
14218         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14219
14220         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14221         locale.alias.
14222
14223         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14224
14225         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14226
14227         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14228
14229         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14230         file parsing and set FD_CLOEXEC.
14231
14232 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14233
14234         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14235
14236 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14237
14238         * malloc/arena.c (arena_get2): Don't call reused_arena when
14239         _int_new_arena failed.
14240
14241 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14242
14243         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14244         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14245         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14246         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14247         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14248         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14249         to compile strcasecmp and strncasecmp.
14250         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14251         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14252
14253         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14254
14255 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14256
14257         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14258         locale-defines.sym to gen-as-const-headers.
14259         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14260         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14261         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14262         to compile strcasecmp and strncasecmp.
14263         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14264         strcasecmp_l and strncasecmp_l.
14265         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14266         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14267         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14268         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14269         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14270         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14271         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14272         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14273         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14274         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14275         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14276
14277 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14278
14279         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14280         result of SYSDEP_GETTIME_CPU to retval.
14281         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14282         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14283
14284         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14285         variable.
14286
14287         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14288         mantissa words.
14289         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14290
14291         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14292         from unused variable.
14293
14294         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14295         DWARF definitions.
14296         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14297         for assembling.
14298
14299         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14300         over namespaces.
14301
14302         * sunrpc/rpc_prot.c (rejected): Fix case value.
14303
14304         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14305         unsigned long long int to avoid warnings in shift.
14306
14307         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14308         of use of trans.
14309         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14310         variable tmp.
14311
14312         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14313         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14314         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14315
14316         * nis/nis_table.c (nis_list): Use variable of correct type for
14317         result of __follow_path call.
14318
14319 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14320
14321         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14322         of math functions ceil, trunc, floor, round, and sqrt, when
14323         avaliable on the platform.
14324         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14325         name clash.
14326         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14327         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14328         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14329
14330 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14331
14332         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14333         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14334
14335 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14336
14337         * include/unistd.h: Fix __readlink return type.
14338         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14339
14340 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14341
14342         * stdlib/ucontext.h: Undo last change for makecontext.
14343
14344 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14345
14346         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14347
14348         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14349         * setjmp/setjmp.h: Mark functions as non-leaf.
14350         * setjmp/bits/setjmp2.h: Likewise.
14351         * stdlib/ucontext.h: Likewise.
14352
14353 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14354
14355         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14356         (reused_arena): Don't check arena limit.
14357         (arena_get2): Atomically check arena limit.
14358
14359 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14360
14361         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14362         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14363
14364         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14365         instructions.
14366
14367 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14368
14369         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14370         handler when locking.
14371
14372         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14373         Fix size of allocated buffer.
14374
14375 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14376
14377         [BZ #10103]
14378         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14379         declarations for long double functions.
14380         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14381
14382         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14383
14384 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14385
14386         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14387         installed.
14388
14389         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14390         is disabled.
14391
14392 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14393
14394         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14395
14396 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14397
14398         * include/alloca.h (stackinfo_alloca_round): Define.
14399         (extend_alloca): Use it.
14400         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14401         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14402         here.
14403
14404         * scripts/check-local-headers.sh: Ignore libaudit.h.
14405
14406         * nscd/Makefile (extra-objs): Make recursively expanded.
14407
14408 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14409
14410         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14411         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14412
14413         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14414         * posix/tst-rfc3484-2.c: Likewise.
14415         * posix/tst-rfc3484-3.c: Likewise.
14416
14417         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14418         process_vm_writev.
14419         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14420         process_vm_writev.
14421         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14422         process_vm_writev from libc using GLIBC_2.15 version.
14423
14424         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14425
14426 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14427
14428         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14429         stack usage.
14430
14431 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14432
14433         [BZ #13367]
14434         * nss/getent.c (initgroups_keys): Show error message in case no group
14435         names are given.
14436
14437         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14438         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14439         __bump_nl_timestamp.
14440         * nscd/connections (nscd_init): When host database is served open
14441         netlink socket and request notification about configuration changes.
14442         (main_loop_poll): Track netlink file descriptor and bump timestamp
14443         in case data becomes available.
14444         (main_loop_epoll): Likewise.
14445         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14446         (database_pers_head): Add extra_data fileds.
14447         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14448         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14449         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14450         Adjust caller.
14451         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14452         in6ai data, call __free_in6ai.
14453         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14454         Add -DHAVE_NETLINK.
14455         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14456         interface information.  Reuse previous data if netlink timestamp
14457         is not changed.
14458         (__bump_nl_timestamp): New function.
14459         (__free_in6ai): New function.
14460
14461 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14462
14463         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14464         close_not_cancel_no_status here.
14465         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14466
14467 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14468
14469         [BZ #13276]
14470         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14471         return value.
14472
14473         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14474         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14475         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14476
14477 2011-07-03  Andreas Jaeger  <aj@suse.de>
14478
14479         [BZ #10709]
14480         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14481         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14482         * math/libm-test.inc (sin_test): Add test case.
14483
14484 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14485
14486         [BZ #13337]
14487         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14488         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14489
14490         * elf/chroot_canon.c (chroot_canon): Cleanups.
14491
14492         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14493
14494         [BZ #13335]
14495         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14496         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14497
14498         * string/test-strchr.c: Make usable for strchrnul testing.
14499         * string/test-strchrnul.c: New file.
14500         * string/Makefile (strop-tests): Add strchrnul.
14501
14502         * po/it.po: Update from translation team.
14503         * po/es.po: Likewise.
14504
14505 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14506
14507         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14508         the three constants needed as parameters.  Drop the others.
14509         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14510         __m128i_strloadu_tolower.
14511         Create and initialize variable zero and use it in all the places
14512         where _mm_setzero_si128 was used.
14513
14514         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14515         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14516         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14517         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14518         anymore.
14519         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14520         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14521         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14522         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14523         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14524         __mpranred, __mptan.
14525         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14526         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14527         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14528         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14529         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14530         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14531         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14532         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14533         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14534
14535 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14536
14537         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14538         redefine if SHARED.
14539         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14540
14541         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14542         wide char related routines to wcsmbs subdir.
14543
14544 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14545
14546         [BZ #13344]
14547         * misc/sys/cdefs.h (__THROWNL): Define.
14548         * posix/unistd.h: Use __THREADNL instead of __THREAD
14549         for memory synchronization functions.
14550
14551 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14552
14553         [BZ #13349]
14554         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14555         doesn't exist.
14556         * manual/stdio.texi (Obstack Streams): Node removed.
14557
14558 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14559
14560         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14561         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14562         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14563
14564         * math/math_private.h (math_force_eval): Allow non-addressable
14565         arguments.
14566         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14567
14568 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14569
14570         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14571         file is not needed.
14572
14573         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14574         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14575         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14576         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14577         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14578         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14579         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14580         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14581         Add AVX variants.
14582         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14583         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14584         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14585         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14586         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14587         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14588         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14589         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14590         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14591         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14592         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14593         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14594         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14595         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14596         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14597         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14598         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14599         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14600         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14601
14602         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14603         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14604
14605         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14606         place.  Use VEX encoding when compiling for AVX.
14607
14608 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14609
14610         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14611         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14612
14613         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14614
14615 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14616
14617         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14618         useless if() expression.
14619         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14620         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14621         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14622         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14623         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14624         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14625         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14626         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14627         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14628         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14629         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14630         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14631         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14632         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14633         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14634         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14635         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14636         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14637         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14638
14639         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14640
14641 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14642
14643         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14644         condition.
14645         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14646
14647 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14648
14649         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14650         .text section.  Avoid duplicate constants.
14651         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14652         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14653         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14654         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14655         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14656         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14657         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14658         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14659         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14660         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14661         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14662         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14663         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14664         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14665         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14666         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14667         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14668         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14669         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14670         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14671         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14672         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14673         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14674         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14675         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14676         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14677         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14678         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14679         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14680         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14681         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14682         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14683         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14684         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14685         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14686         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14687         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14688         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14689         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14690         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14691         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14692         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14693         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14694         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14695         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14696
14697 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14698
14699         * sysdeps/x86_64/dla.h: Move to ...
14700         * sysdeps/x86_64/fpu/dla.h: ...here.
14701         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14702         situations.  Use __builtin_fma only for gcc 4.6 and up.
14703
14704         * config.make.in: Add have-mfma4 entry.
14705         * configure.in: Substitute libc_cv_cc_fma4.
14706         * math/Makefile (dbl-only-routines): Add sincostab.
14707         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14708         Use __sincostab not sincos.
14709         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14710         name is a macro.
14711         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14712         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14713         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14714         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14715         using __copysign.
14716         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14717         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14718         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14719         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14720         and __inv.
14721         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14722         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14723         __copysign.
14724         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14725         define aliases when function name is a macro.
14726         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14727         sysdeps/ieee754/dbl-64/sincos.tbl.
14728         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14729         fma4-enabled routines.
14730         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14731         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14732         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14733         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14734         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14735         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14736         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14737         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14738         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14739         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14740         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14741         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14742         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14743         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14744         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14745         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14746         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14747         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14748         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14749         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14750         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14751         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14752         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14753         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14754         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14755         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14756         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14757         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14758         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14759         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14760
14761         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14762         rename.
14763         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14764         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14765         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14766         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14767         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14768         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14769         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14770         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14771
14772 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14773
14774         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14775
14776 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14777
14778         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14779
14780         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14781         prediction.
14782         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14783
14784         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14785         Remove unused variable magic_bits.
14786         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14787
14788         * string/strnlen.c: Define and use STRNLEN macro.
14789         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14790         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14791         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14792         * wcsmbs/wcslen.c: Define and use WCSLEN.
14793         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14794         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14795         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14796         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14797         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14798         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14799         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14800
14801 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14802
14803         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14804         strnlen-sse2-no-bsf.
14805         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14806         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14807         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14808         Add strnlen support.
14809         (USE_AS_STRNLEN): New macro.
14810         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14811         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14812         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14813         * sysdeps/x86_64/wcslen.S: New file.
14814
14815 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14816
14817         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14818         XMM-moves are used for copying on small sizes.
14819
14820 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14821
14822         * wcsmbs/Makefile (strop-tests): Add wcschr.
14823         * wcsmbs/test-wcschr.c: New file.
14824         * string/test-strchr.c: Update.
14825         Add wcschr support.
14826         (WIDE): New macro.
14827
14828 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14829
14830         * wcsmbs/Makefile (strop-tests): Add wcslen.
14831         * wcsmbs/test-wcslen.c: New file.
14832         * string/test-strlen.c: Update.
14833         Add wcslen support.
14834         (WIDE): New macro.
14835
14836 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14837
14838         * po/it.po: Update from translation team.
14839
14840 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14841
14842         * sysdeps/x86_64/wcscmp.S: Update.
14843         Fix wrong comparison semantics.
14844         wcscmp shall use signed comparison not unsigned.
14845         Don't use substraction to avoid overflow bug.
14846         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14847         * wcsmbc/wcscmp.c: Likewise.
14848         * string/test-strcmp.c: Likewise.
14849         Add new tests to check cases with negative values.
14850
14851 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14852
14853         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14854         * sysdeps/x86_64/dla.h: ...here.  New file.
14855         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14856         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14857         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14858         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14859         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14860         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14861         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14862         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14863         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14864
14865 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14866
14867         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14868         __ynl_finite aliases.
14869
14870 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14871
14872         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14873
14874         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14875         define DLA_FMA.
14876         [DLA_FMA] (EMULV): Use DLA_FMA.
14877         [DLA_FMA] (MUL12): Use EMULV.
14878         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14879         that are not needed.
14880         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14881         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14882         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14883         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14884         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14885         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14886         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14887
14888 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14889
14890         * math/s_nan.c: Undef __nan.
14891         * math/s_nanf.c: Undef __nanf.
14892         * math/s_nanl.c: Undef __nanl.
14893         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14894         "math_private.h".
14895
14896 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14897
14898         * math/s_catan.c: Add branch predictions.
14899         * math/s_catanf.c: Likewise.
14900         * math/s_catanh.c: Likewise.
14901         * math/s_catanhf.c: Likewise.
14902         * math/s_catanhl.c: Likewise.
14903         * math/s_catanl.c: Likewise.
14904         * math/s_cexp.c: Likewise.
14905         * math/s_cexpf.c: Likewise.
14906         * math/s_cexpl.c: Likewise.
14907         * math/s_clog.c: Likewise.
14908         * math/s_clog10.c: Likewise.
14909         * math/s_clog10f.c: Likewise.
14910         * math/s_clog10l.c: Likewise.
14911         * math/s_clogf.c: Likewise.
14912         * math/s_clogl.c: Likewise.
14913         * math/s_csqrt.c: Likewise.
14914         * math/s_csqrtf.c: Likewise.
14915         * math/s_csqrtl.c: Likewise.
14916         * math/s_ctanf.c: Likewise.
14917         * math/s_ctanh.c: Likewise.
14918         * math/s_ctanhf.c: Likewise.
14919         * math/s_ctanhl.c: Likewise.
14920         * math/s_ctanl.c: Likewise.
14921
14922         * math/math_private.h: Define __nan, __nanf, __nanl.
14923         * math/s_cacosh.c: Include <math_private.h>.
14924         * math/s_cacoshl.c: Likewise.
14925         * math/s_casinh.c: Likewise.
14926         * math/s_casinhf.c: Likewise.
14927         * math/s_casinhl.c: Likewise.
14928         * math/s_ccos.c: Rely entire on ccosh.
14929         * math/s_ccosf.c: Rely entire on ccoshf.
14930         * math/s_ccosl.c: Rely entirely on ccoshl.
14931         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14932         Remove tests for FE_INVALID.
14933         * math/s_ccoshf.c: Likewise.
14934         * math/s_ccoshl.c: Likewise.
14935         * math/s_csin.c: Likewise.
14936         * math/s_csinf.c: Likewise.
14937         * math/s_csinh.c Likewise.
14938         * math/s_csinhf.c: Likewise.
14939         * math/s_csinhl.c: Likewise.
14940         * math/s_csinl.c: Likewise.
14941         * math/s_ctan.c: Likewise.
14942         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14943         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14944         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14945
14946 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14947
14948         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14949         compilation problems.
14950
14951         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14952         __builtin_expect.
14953
14954 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14955
14956         * sysdeps/i386/configure.in: Test for -mfma4 option.
14957         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14958         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14959         COMMON_CPUID_INDEX_80000001.
14960         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14961         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14962         use it if FMA3 is not supported.
14963         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14964
14965         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14966         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14967
14968 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14969
14970         [BZ #12892]
14971         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14972         it would create a cycle with a link time dependency.
14973
14974 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14975
14976         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14977         instruction.
14978         * string/Makefile (strop-tests): Add rawmemchr.
14979         * string/test-rawmemchr.c: New file.
14980
14981         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14982         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14983         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14984         when compiling str{,n}casecmp and when AVX is available.  Hook up
14985         new optimized code in initializers.
14986
14987 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14988
14989         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
14990         __feraiseexcept instead of feraiseexcept.
14991
14992 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
14993
14994         * math/math_private.h: Define defaults for libc_fetestexcept and
14995         libc_feupdateenv.
14996         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
14997         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14998         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14999         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15000         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15001         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15002         libc_fetestexcept and libc_feupdateenv.
15003
15004         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15005         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15006         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15007         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15008         libc_feholdexcept_setround.
15009
15010         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15011         Add s_nearbyint-c and s_nearbyintf-c.
15012         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15013         nearbyintf inlines.
15014         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15015         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15016         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15017         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15018
15019         * math/math_private.h: Define defaults for libc_fegetround,
15020         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15021         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15022         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15023         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15024         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15025         standard functions.
15026         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15027         Remove comments and hacks for old compiler versions.
15028         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15029         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15030         libc_feholdexceptl.
15031
15032 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15033
15034         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15035         (__feraiseexcept_renamed): Add __NTH.
15036         (feraiseexcept): Add __NTH.  Rename local variables to fix
15037         namespace violations.
15038
15039 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15040
15041         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15042
15043         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15044
15045         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15046         recently added interfaces.
15047         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15048
15049         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15050         about macro parameter expansion.
15051
15052         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15053         __NO_MATH_INLINES is defined.  Cleanups.
15054
15055         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15056         and __floorf is target has SSE4.1.
15057         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15058         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15059         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15060         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15061
15062         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15063         name.
15064         (floorf): Likewise.
15065
15066         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15067
15068 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15069
15070         * misc/sys/cdefs.h: Fix last change.
15071
15072         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15073         database lookup.
15074
15075 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15076
15077         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15078
15079         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15080         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15081         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15082         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15083         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15084         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15085         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15086         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15087         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15088         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15089         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15090         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15091         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15092         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15093         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15094         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15095         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15096         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15097         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15098         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15099         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15100         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15101
15102         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15103         ceil, ceilf, floor, floorf.
15104
15105         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15106         Perform IRELATIVE relocations last.
15107
15108         * elf/do-rel.h: Add another parameter nrelative, replacing the
15109         local variable with the same name.  Change name of the function
15110         to end in Rel or Rela (uppercase).
15111         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15112         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15113         elf_dynamic_do_##reloc function.
15114
15115 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15116
15117         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15118         is sufficient, at least on modern CPUs.
15119
15120         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15121
15122         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15123         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15124
15125         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15126         __expl_finite.
15127         * math/bits/math-finite.h: Add entries for exp.
15128         * math/e_expl.c: Add __*_finite alias.
15129         * sysdeps/i386/fpu/e_exp.S: Likewise.
15130         * sysdeps/i386/fpu/e_expf.S: Likewise.
15131         * sysdeps/i386/fpu/e_expl.c: Likewise.
15132         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15133         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15134         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15135         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15136         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15137         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15138         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15139
15140         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15141         is sufficient, at least on modern CPUs.
15142
15143         * ctype/ctype-info.c (__ctype_init): Define.
15144         * include/ctype.h (__ctype_init): Declare.
15145         (__ctype_b_loc): The variable is always initialized.
15146         (__ctype_toupper_loc): Likewise.
15147         (__ctype_tolower_loc): Likewise.
15148         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15149         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15150
15151 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15152
15153         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15154
15155         * configure.in: Also look in $cxxmachine/include for C++ system
15156         headers.
15157
15158 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15159
15160         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15161         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15162         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15163         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15164         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15165         (USE_AS_WMEMCMP): New macro.
15166         Fixing indents.
15167         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15168         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15169         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15170         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15171         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15172         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15173         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15174         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15175         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15176         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15177         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15178         (USE_AS_WMEMCMP): New macro.
15179         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15180         * sysdeps/string/test-memcmp.c: Update.
15181         Fix simple_wmemcmp.
15182         Add new tests.
15183         * wcsmbs/wmemcmp.c: Update.
15184         (WMEMCMP): New macro.
15185         Fix overflow bug.
15186
15187 2011-10-12  Andreas Jaeger  <aj@suse.de>
15188
15189         [BZ #13268]
15190         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15191
15192 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15193
15194         * libio/iofwide.c (do_length): Avoid warning.
15195
15196         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15197
15198 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15199
15200         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15201
15202         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15203         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15204         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15205         * sysdeps/i386/i686/fpu/e_log.S: New file.
15206         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15207         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15208
15209         * ctype/ctype.h: Add support for inlined isXXX functions when
15210         compiling C++ code.
15211
15212 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15213
15214         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15215
15216         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15217
15218 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15219
15220         [BZ #13291]
15221         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15222
15223 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15224
15225         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15226         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15227         feraiseexcept.
15228
15229         * sysdeps/x86_64/memrchr.S: Check for zero size.
15230
15231         * string/stratcliff.c: Add memrchr tests.
15232
15233 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15234
15235         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15236         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15237         rawmemchr-sse2 rawmemchr-sse2-bsf.
15238         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15239         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15240         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15241         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15242         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15243         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15244         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15245         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15246         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15247         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15248         * string/memrchr.c (MEMRCHR): New macro.
15249
15250 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15251
15252         Add integration with gcc's -ffinite-math-only and optimize wrapper
15253         functions in libm.
15254         * Versions.def: Define GLIBC_2.15 version for libm.
15255         * math/Makefile (headers): Add bits/math-finite.h.
15256         * math/bits/math-finite.h: New file.
15257         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15258         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15259         * math/e_acoshl.c: Add __*_finite alias.
15260         * math/e_acosl.c: Likewise.
15261         * math/e_asinl.c: Likewise.
15262         * math/e_atan2l.c: Likewise.
15263         * math/e_atanhl.c: Likewise.
15264         * math/e_coshl.c: Likewise.
15265         * math/e_exp10.c: Likewise.
15266         * math/e_exp10f.c: Likewise.
15267         * math/e_exp10l.c: Likewise.
15268         * math/e_exp2l.c: Likewise.
15269         * math/e_fmodl.c: Likewise.
15270         * math/e_gammal_r.c: Likewise.
15271         * math/e_hypotl.c: Likewise.
15272         * math/e_j0l.c: Likewise.
15273         * math/e_j1l.c: Likewise.
15274         * math/e_jnl.c: Likewise.
15275         * math/e_lgammal_r.c: Likewise.
15276         * math/e_log10l.c: Likewise.
15277         * math/e_log2l.c: Likewise.
15278         * math/e_logl.c: Likewise.
15279         * math/e_powl.c: Likewise.
15280         * math/e_sinhl.c: Likewise.
15281         * math/e_sqrtl.c: Likewise.
15282         * math/e_scalb.c: Completely rewritten and optimized.
15283         * math/e_scalbf.c: Likewise.
15284         * math/e_scalbl.c: Likewise.
15285         * math/w_acos.c: Likewise.
15286         * math/w_acosf.c: Likewise.
15287         * math/w_acosl.c: Likewise.
15288         * math/w_acosh.c: Likewise.
15289         * math/w_acoshf.c: Likewise.
15290         * math/w_acoshl.c: Likewise.
15291         * math/w_asin.c: Likewise.
15292         * math/w_asinf.c: Likewise.
15293         * math/w_asinl.c: Likewise.
15294         * math/w_atan2.c: Likewise.
15295         * math/w_atan2f.c: Likewise.
15296         * math/w_atan2l.c: Likewise.
15297         * math/w_atanh.c: Likewise.
15298         * math/w_atanhf.c: Likewise.
15299         * math/w_atanhl.c: Likewise.
15300         * math/w_exp10.c: Likewise.
15301         * math/w_exp10f.c: Likewise.
15302         * math/w_exp10l.c: Likewise.
15303         * math/w_fmod.c: Likewise.
15304         * math/w_fmodf.c: Likewise.
15305         * math/w_fmodl.c: Likewise.
15306         * math/w_j0.c: Likewise.
15307         * math/w_j0f.c: Likewise.
15308         * math/w_j0l.c: Likewise.
15309         * math/w_j1.c: Likewise.
15310         * math/w_j1f.c: Likewise.
15311         * math/w_j1l.c: Likewise.
15312         * math/w_jn.c: Likewise.
15313         * math/w_jnf.c: Likewise.
15314         * math/w_log.c: Likewise.
15315         * math/w_logf.c: Likewise.
15316         * math/w_logl.c: Likewise.
15317         * math/w_log10.c: Likewise.
15318         * math/w_log10f.c: Likewise.
15319         * math/w_log10l.c: Likewise.
15320         * math/w_log2.c: Likewise.
15321         * math/w_log2f.c: Likewise.
15322         * math/w_log2l.c: Likewise.
15323         * math/w_pow.c: Likewise.
15324         * math/w_powf.c: Likewise.
15325         * math/w_powl.c: Likewise.
15326         * math/w_remainder.c: Likewise.
15327         * math/w_remainderf.c: Likewise.
15328         * math/w_remainderl.c: Likewise.
15329         * math/w_scalb.c: Likewise.
15330         * math/w_scalbf.c: Likewise.
15331         * math/w_scalbl.c: Likewise.
15332         * math/w_sqrt.c: Likewise.
15333         * math/w_sqrtf.c: Likewise.
15334         * math/w_sqrtl.c: Likewise.
15335         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15336         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15337         used.
15338         * math/math_private.h: Declare __kernel_standard_f.
15339         * math/w_cosh.c: Remove cruft and optimize a bit.
15340         * math/w_coshf.c: Likewise.
15341         * math/w_coshl.c: Likewise.
15342         * math/w_exp2.c: Likewise.
15343         * math/w_exp2f.c: Likewise.
15344         * math/w_exp2l.c: Likewise.
15345         * math/w_hypot.c: Likewise.
15346         * math/w_hypotf.c: Likewise.
15347         * math/w_hypotl.c: Likewise.
15348         * math/w_lgamma.c: Likewise.
15349         * math/w_lgamma_r.c: Likewise.
15350         * math/w_lgammaf.c: Likewise.
15351         * math/w_lgammaf_r.c: Likewise.
15352         * math/w_lgammal.c: Likewise.
15353         * math/w_lgammal_r.c: Likewise.
15354         * math/w_sinh.c: Likewise.
15355         * math/w_sinhf.c: Likewise.
15356         * math/w_sinhl.c: Likewise.
15357         * math/w_tgamma.c: Likewise.
15358         * math/w_tgammaf.c: Likewise.
15359         * math/w_tgammal.c: Likewise.
15360         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15361         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15362         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15363         Minor optimizations.  Pretty printing.  Remove cruft.
15364         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15365         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15366         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15367         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15368         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15369         * sysdeps/i386/fpu/e_asin.S: Likewise.
15370         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15371         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15372         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15373         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15374         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15375         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15376         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15377         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15378         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15379         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15380         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15381         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15382         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15383         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15384         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15385         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15386         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15387         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15388         * sysdeps/i386/fpu/e_log.S: Likewise.
15389         * sysdeps/i386/fpu/e_log10.S: Likewise.
15390         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15391         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15392         * sysdeps/i386/fpu/e_log2.S: Likewise.
15393         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15394         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15395         * sysdeps/i386/fpu/e_logf.S: Likewise.
15396         * sysdeps/i386/fpu/e_logl.S: Likewise.
15397         * sysdeps/i386/fpu/e_pow.S: Likewise.
15398         * sysdeps/i386/fpu/e_powf.S: Likewise.
15399         * sysdeps/i386/fpu/e_powl.S: Likewise.
15400         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15401         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15402         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15403         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15404         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15405         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15406         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15407         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15408         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15409         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15410         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15411         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15412         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15413         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15414         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15415         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15416         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15417         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15418         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15419         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15420         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15421         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15422         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15423         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15424         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15425         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15426         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15427         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15428         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15429         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15430         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15431         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15432         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15433         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15434         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15435         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15436         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15437         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15438         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15439         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15440         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15441         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15442         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15443         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15444         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15445         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15446         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15447         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15448         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15449         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15450         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15451         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15452         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15453         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15454         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15455         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15456         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15457         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15458         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15459         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15460         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15461         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15462         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15463         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15464         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15465         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15466         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15467         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15468         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15469         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15470         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15471         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15472         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15473         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15474         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15475         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15476         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15477         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15478         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15479         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15480         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15481         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15482         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15483         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15484         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15485         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15486         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15487         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15488         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15489         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15490         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15491         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15492         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15493         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15494         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15495         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15496         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15497         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15498         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15499         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15500         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15501         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15502         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15503         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15504         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15505         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15506         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15507         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15508         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15509         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15510         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15511         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15512         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15513         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15514         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15515         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15516         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15517         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15518         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15519         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15520         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15521         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15522         (__isnanf): Likewise.
15523         (__isinf_ns): Likewise.
15524         (__isinf_nsf): Likewise.
15525         (__finite): Likewise.
15526         (__finitef): Likewise.
15527         (__ieee754_sqrt): Define as macro.
15528         (__ieee754_sqrtf): Define as macro.
15529         (__ieee754_sqrtl): Define as macro.
15530         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15531         inlined copy.
15532         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15533         __FINITE_MATH_ONLY__ consistent.
15534         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15535
15536 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15537
15538         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15539         of rawmemchr.
15540
15541         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15542
15543 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15544
15545         * po/ja.po: Update from translation team.
15546
15547 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15548
15549         * locale/programs/locarchive.c (prepare_address_space): New function.
15550         (create_archive, enlarge_archive, open_archive): Use it.
15551
15552         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15553         inside [SHARED], where it is used.
15554
15555         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15556
15557         * nss/getent.c (netgroup_keys): Remove unused variable.
15558         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15559
15560 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15561
15562         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15563         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15564         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15565         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15566         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15567         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15568         * math/Makefile (libm-calls): Add s_isinf_ns.
15569         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15570         * math/multc3.c: Likewise.
15571         * math/s_casin.c: Likewise.
15572         * math/s_casinf.c: Likewise.
15573         * math/s_casinl.c: Likewise.
15574         * math/s_ccos.c: Likewise.
15575         * math/s_ccosf.c: Likewise.
15576         * math/s_ccosl.c: Likewise.
15577         * math/s_ctan.c: Likewise.
15578         * math/s_ctanf.c: Likewise.
15579         * math/s_ctanh.c: Likewise.
15580         * math/s_ctanhf.c: Likewise.
15581         * math/s_ctanhl.c: Likewise.
15582         * math/s_ctanl.c: Likewise.
15583         * math/w_fmod.c: Likewise.
15584         * math/w_fmodf.c: Likewise.
15585         * math/w_fmodl.c: Likewise.
15586         * math/w_remainder.c: Likewise.
15587         * math/w_remainderf.c: Likewise.
15588         * math/w_remainderl.c: Likewise.
15589         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15590         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15591         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15592         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15593         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15594         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15595         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15596         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15597
15598         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15599         of the number.
15600         * stdio-common/printf_fphex.c: Likewise.
15601         * stdio-common/printf_size.c: Likewise.
15602
15603         * math/e_exp10.c: Include math_private.h using <...> not "...".
15604         * math/e_exp10f.c: Likewise.
15605         * math/e_exp10l.c: Likewise.
15606         * math/e_exp2l.c: Likewise.
15607         * math/e_j0l.c: Likewise.
15608         * math/e_j1l.c: Likewise.
15609         * math/e_jnl.c: Likewise.
15610         * math/e_lgammal_r.c: Likewise.
15611         * math/e_rem_pio2l.c: Likewise.
15612         * math/e_scalb.c: Likewise.
15613         * math/e_scalbf.c: Likewise.
15614         * math/e_scalbl.c: Likewise.
15615         * math/k_cosl.c: Likewise.
15616         * math/k_sinl.c: Likewise.
15617         * math/k_tanl.c: Likewise.
15618         * math/s_cacoshf.c: Likewise.
15619         * math/s_catan.c: Likewise.
15620         * math/s_catanf.c: Likewise.
15621         * math/s_catanh.c: Likewise.
15622         * math/s_catanhf.c: Likewise.
15623         * math/s_catanhl.c: Likewise.
15624         * math/s_catanl.c: Likewise.
15625         * math/s_ccosh.c: Likewise.
15626         * math/s_ccoshf.c: Likewise.
15627         * math/s_ccoshl.c: Likewise.
15628         * math/s_cexp.c: Likewise.
15629         * math/s_cexpf.c: Likewise.
15630         * math/s_cexpl.c: Likewise.
15631         * math/s_clog.c: Likewise.
15632         * math/s_clog10.c: Likewise.
15633         * math/s_clog10f.c: Likewise.
15634         * math/s_clog10l.c: Likewise.
15635         * math/s_clogf.c: Likewise.
15636         * math/s_clogl.c: Likewise.
15637         * math/s_csin.c: Likewise.
15638         * math/s_csinf.c: Likewise.
15639         * math/s_csinh.c: Likewise.
15640         * math/s_csinhf.c: Likewise.
15641         * math/s_csinhl.c: Likewise.
15642         * math/s_csinl.c: Likewise.
15643         * math/s_csqrt.c: Likewise.
15644         * math/s_csqrtf.c: Likewise.
15645         * math/s_csqrtl.c: Likewise.
15646         * math/s_ctan.c: Likewise.
15647         * math/s_ctanf.c: Likewise.
15648         * math/s_ctanh.c: Likewise.
15649         * math/s_ctanhf.c: Likewise.
15650         * math/s_ctanhl.c: Likewise.
15651         * math/s_ctanl.c: Likewise.
15652         * math/s_ldexp.c: Likewise.
15653         * math/s_ldexpf.c: Likewise.
15654         * math/s_ldexpl.c: Likewise.
15655         * math/s_significand.c: Likewise.
15656         * math/s_significandf.c: Likewise.
15657         * math/s_significandl.c: Likewise.
15658         * math/w_acos.c: Likewise.
15659         * math/w_acosf.c: Likewise.
15660         * math/w_acosh.c: Likewise.
15661         * math/w_acoshf.c: Likewise.
15662         * math/w_acoshl.c: Likewise.
15663         * math/w_acosl.c: Likewise.
15664         * math/w_asin.c: Likewise.
15665         * math/w_asinf.c: Likewise.
15666         * math/w_asinl.c: Likewise.
15667         * math/w_atan2.c: Likewise.
15668         * math/w_atan2f.c: Likewise.
15669         * math/w_atan2l.c: Likewise.
15670         * math/w_atanh.c: Likewise.
15671         * math/w_atanhf.c: Likewise.
15672         * math/w_atanhl.c: Likewise.
15673         * math/w_cosh.c: Likewise.
15674         * math/w_coshf.c: Likewise.
15675         * math/w_coshl.c: Likewise.
15676         * math/w_dremf.c: Likewise.
15677         * math/w_exp10.c: Likewise.
15678         * math/w_exp10f.c: Likewise.
15679         * math/w_exp10l.c: Likewise.
15680         * math/w_exp2.c: Likewise.
15681         * math/w_exp2f.c: Likewise.
15682         * math/w_fmod.c: Likewise.
15683         * math/w_fmodf.c: Likewise.
15684         * math/w_fmodl.c: Likewise.
15685         * math/w_hypot.c: Likewise.
15686         * math/w_hypotf.c: Likewise.
15687         * math/w_hypotl.c: Likewise.
15688         * math/w_j0.c: Likewise.
15689         * math/w_j0f.c: Likewise.
15690         * math/w_j0l.c: Likewise.
15691         * math/w_j1.c: Likewise.
15692         * math/w_j1f.c: Likewise.
15693         * math/w_j1l.c: Likewise.
15694         * math/w_jn.c: Likewise.
15695         * math/w_jnf.c: Likewise.
15696         * math/w_jnl.c: Likewise.
15697         * math/w_lgamma.c: Likewise.
15698         * math/w_lgamma_r.c: Likewise.
15699         * math/w_lgammaf.c: Likewise.
15700         * math/w_lgammaf_r.c: Likewise.
15701         * math/w_lgammal.c: Likewise.
15702         * math/w_lgammal_r.c: Likewise.
15703         * math/w_log.c: Likewise.
15704         * math/w_log10.c: Likewise.
15705         * math/w_log10f.c: Likewise.
15706         * math/w_log10l.c: Likewise.
15707         * math/w_log2.c: Likewise.
15708         * math/w_log2f.c: Likewise.
15709         * math/w_log2l.c: Likewise.
15710         * math/w_logf.c: Likewise.
15711         * math/w_logl.c: Likewise.
15712         * math/w_pow.c: Likewise.
15713         * math/w_powf.c: Likewise.
15714         * math/w_powl.c: Likewise.
15715         * math/w_remainder.c: Likewise.
15716         * math/w_remainderf.c: Likewise.
15717         * math/w_remainderl.c: Likewise.
15718         * math/w_scalb.c: Likewise.
15719         * math/w_scalbf.c: Likewise.
15720         * math/w_scalbl.c: Likewise.
15721         * math/w_sinh.c: Likewise.
15722         * math/w_sinhf.c: Likewise.
15723         * math/w_sinhl.c: Likewise.
15724         * math/w_sqrt.c: Likewise.
15725         * math/w_sqrtf.c: Likewise.
15726         * math/w_sqrtl.c: Likewise.
15727         * math/w_tgamma.c: Likewise.
15728         * math/w_tgammaf.c: Likewise.
15729         * math/w_tgammal.c: Likewise.
15730
15731         * po/ja.po: Update from translation team.
15732
15733 2011-09-29  Andreas Jaeger  <aj@suse.de>
15734
15735         [BZ #13179]
15736         * sunrpc/netname.c (netname2host): Fix logic.
15737
15738         [BZ #6779]
15739         [BZ #6783]
15740         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15741         correctly.
15742         * math/w_remainder.c (__remainder): Likewise.
15743         * math/w_remainderf.c (__remainderf): Likewise.
15744         * math/libm-test.inc (remainder_test): Add test cases.
15745
15746 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15747
15748         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15749         sdiv_qrnnd.
15750
15751 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15752
15753         * string/test-memcmp.c: Avoid unncessary #defines.
15754         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15755
15756 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15757
15758         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15759         Use new sse2 version for core i3 - i7 as it's faster
15760         than sse42 version.
15761         (bit_Prefer_PMINUB_for_stringop): New.
15762         * sysdeps/x86_64/rawmemchr.S: Update.
15763         Replace with faster SSE2 version.
15764         * sysdeps/x86_64/memrchr.S: New file.
15765         * sysdeps/x86_64/memchr.S: Update.
15766         Replace with faster SSE2 version.
15767
15768 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15769
15770         * elf/dl-load.c (lose): Add cast to avoid warning.
15771
15772 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15773
15774         * po/ca.po: Update from translation team.
15775
15776         * inet/getnetgrent_r.c: Hook up nscd.
15777         * nscd/Makefile (routines): Add nscd_netgroup.
15778         (nscd-modules): Add netgroupcache.
15779         (CFLAGS-netgroupcache.c): Define.
15780         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15781         (cache_search): Add const to second parameter.
15782         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15783         INNETGR.
15784         (dbs): Add netgrdb entry.
15785         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15786         (verify_persistent_db): Handle netgrdb.
15787         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15788         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15789         GETFDNETGR.
15790         (netgroup_response_header): Define.
15791         (innetgroup_response_header): Define.
15792         (datahead): Add netgroup_response_header and innetgroup_response_header
15793         elements.
15794         * nscd/nscd.conf: Add entries for netgroup cache.
15795         * nscd/nscd.h (dbtype): Add netgrdb.
15796         (_PATH_NSCD_NETGROUP_DB): Define.
15797         (netgroup_iov_disabled): Declare.
15798         (xmalloc, xcalloc, xrealloc): Move declarations here.
15799         (cache_search): Adjust prototype.
15800         Add netgroup-related prototypes.
15801         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15802         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15803         (__nscd_innetgr): Declare.
15804         * nscd/selinux.c (perms): Use access_vector_t as element type and
15805         add netgroup-related initializers.
15806         * nscd/netgroupcache.c: New file.
15807         * nscd/nscd_netgroup.c: New file.
15808         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15809         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15810         For four parameters use innetgr.
15811         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15812         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15813         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15814         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15815
15816         * nscd/connections.c (register_traced_file): Don't register file
15817         for disabled databases.
15818
15819 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15820
15821         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15822
15823         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15824         from tree and freeing node.
15825
15826 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15827
15828         * nss/nsswitch.c (__nss_database_lookup): Handle
15829         nss_parse_service_list out of memory case.
15830
15831 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15832
15833         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15834         out of memory case.
15835
15836 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15837
15838         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15839         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15840         pass it down.
15841         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15842         elf_machine_rela, elf_machine_lazy_rel.
15843         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15844         (ELF_DYNAMIC_DO_REL): Likewise.
15845         (ELF_DYNAMIC_DO_RELA): Likewise.
15846         (ELF_DYNAMIC_RELOCATE): Likewise.
15847         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15848         to ELF_DYNAMIC_DO_REL.
15849         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15850         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15851         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15852         elf_machine_rela.
15853         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15854         skip_ifunc, don't call ifunc function if non-zero.
15855         (elf_machine_rela): Likewise.
15856         (elf_machine_lazy_rel): Likewise.
15857         (elf_machine_lazy_rela): Likewise.
15858         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15859         (elf_machine_lazy_rel): Likewise.
15860         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15861         Likewise.
15862         (elf_machine_lazy_rel): Likewise.
15863         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15864         Likewise.
15865         (elf_machine_lazy_rel): Likewise.
15866         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15867         (elf_machine_lazy_rel): Likewise.
15868         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15869         (elf_machine_lazy_rel): Likewise.
15870         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15871         (elf_machine_lazy_rel): Likewise.
15872         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15873         (elf_machine_lazy_rel): Likewise.
15874         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15875         (elf_machine_lazy_rel): Likewise.
15876         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15877         (elf_machine_lazy_rel): Likewise.
15878
15879 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15880
15881         * nss/nss_files/files-init.c (_nss_files_init): Use static
15882         initialization for all the *_traced_file variables.
15883
15884 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15885
15886         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15887
15888 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15889
15890         [BZ #13226]
15891         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15892
15893 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15894
15895         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15896         Reread the line before reparsing it.
15897
15898 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15899
15900         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15901
15902 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15903             Maxim Kuvyrkov  <maxim@codesourcery.com>
15904             Joseph Myers  <joseph@codesourcery.com>
15905
15906         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15907         if needed for __stack_chk_guard.
15908
15909 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15910
15911         * sysdeps/posix/spawni.c (script_execute): Always define it.
15912         It will be optimized away if unused.
15913         (maybe_script_execute): New function.
15914         (__spawni): Call it.
15915
15916         * Makerules: Don't include tls.make.
15917         (config-tls): Always set to thread.
15918         * tls.make.c: File removed.
15919
15920 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15921
15922         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15923         * config.make.in (CPPFLAGS-config): New substituted variable.
15924
15925 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15926
15927         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15928
15929         [BZ #13192]
15930         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15931         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15932
15933 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15934
15935         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15936         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15937         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15938         (CALL_FAIL): Likewise.
15939         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15940         (CALL_FAIL): Macro removed.
15941         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15942
15943 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15944
15945         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15946         for __FINITE_MATH_ONLY__ == 1.
15947
15948 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15949
15950         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15951         __ieee754_sqrt instead of sqrt.
15952         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15953         __ieee754_sqrtf instead of sqrtf.
15954         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15955         __floorf instead of floorf.
15956         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15957         __floorf, __truncf instead of floorf, truncf.
15958
15959 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15960
15961         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15962
15963         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15964         __extern_always_inline.
15965         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15966         32-bit.
15967
15968 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15969
15970         * elf/rtld.c (dl_main): Also relocate in dependency order when
15971         doing symbol dependency testing.
15972
15973 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15974
15975         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15976         Always define `refsym'.
15977
15978 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15979
15980         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15981         (__FD_ELT): Renamed from __FDELT.
15982         * misc/bits/select2.h (__FD_ELT): Likewise.
15983         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15984         __FD_MASK instead of __FDELT, __FDMASK.
15985         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15986         Likewise.
15987         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15988         Likewise.
15989
15990         * elf/Makefile (gen-ldd): Fix pattern.
15991
15992         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
15993         (init_tls): Likewise.
15994
15995 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
15996
15997         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
15998
15999 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16000
16001         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16002         `struct cmsghdr *' instead of `void *'.
16003         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16004         Likewise.
16005
16006 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16007
16008         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16009         if non-absolute.
16010         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16011         ldd_rewrite_script.
16012
16013 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16014
16015         * configure.in: Remove --with-tls option.
16016         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16017         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16018         out in case it is missing.
16019         * sysdeps/ia64/elf/configure.in: Likewise.
16020         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16021         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16022         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16023         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16024         * sysdeps/sh/elf/configure.in: Likewise.
16025         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16026         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16027         * sysdeps/x86_64/elf/configure.in: Likewise.
16028         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16029         * sysdeps/mach/hurd/tls.h: Likewise.
16030
16031         [BZ #13067]
16032         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16033
16034         [BZ #13090]
16035         * configure.in: Fix use of AC_INIT.
16036
16037         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16038
16039 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16040
16041         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16042         __set_errno.
16043         * malloc/hooks.c: Likewise.
16044
16045         [BZ #11929]
16046         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16047         variables statically.
16048         (narenas): Initialize.
16049         (list_lock): Initialize.
16050         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16051         initializtion of main_arena and list_lock.  Small cleanups.
16052         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16053         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16054         Add initializers to main_arena and mp_.
16055         (malloc_state): Remove pagesize member.  Change all users to use
16056         GLRO(dl_pagesize).
16057
16058         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16059         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16060         is always initialized.
16061
16062         * malloc/malloc.c: Removed unused configurations and dead code.
16063         * malloc/arena.c: Likewise.
16064         * malloc/hooks.c: Likewise.
16065         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16066
16067         * include/tls.h: Removed.  USE___THREAD must always be defined.
16068         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16069         * elf/dl-libc.c: Likewise.
16070         * elf/dl-tsd.c: Likewise.
16071         * include/errno.h: Likewise.
16072         * include/netdb.h: Likewise.
16073         * include/resolv.h: Likewise.
16074         * inet/herrno-loc.c: Likewise.
16075         * inet/herrno.c: Likewise.
16076         * malloc/arena.c: Likewise.
16077         * malloc/hooks.c: Likewise.
16078         * malloc/malloc.c: Likewise.
16079         * resolv/res-state.c: Likewise.
16080         * resolv/res_libc.c: Likewise.
16081         * sysdeps/i386/dl-machine.h: Likewise.
16082         * sysdeps/ia64/dl-machine.h: Likewise.
16083         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16084         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16085         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16086         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16087         * sysdeps/sh/dl-machine.h: Likewise.
16088         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16089         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16090         * sysdeps/unix/i386/sysdep.S: Likewise.
16091         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16092         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16093         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16094         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16095         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16096         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16097         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16098         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16099         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16100         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16101         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16102         * sysdeps/x86_64/dl-machine.h: Likewise.
16103         * tls.make.c: Likewise.
16104
16105         * configure.in: Remove --with-__thread option.  Make tests for
16106         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16107         tls_model attribute fail if no support is available.  Remove
16108         USE_IN_LIBIO.
16109         * Makeconfig: Adjust for dropped configure option.  All features are
16110         now mandatory.
16111         * Makerules: Likewise.
16112         * Versions.def: Likewise.
16113         * argp/argp-fmtstream.c: Likewise.
16114         * argp/argp-fmtstream.h: Likewise.
16115         * argp/argp-help.c: Likewise.
16116         * assert/assert.c: Likewise.
16117         * config.h.in: Likewise.
16118         * config.make.in: Likewise.
16119         * configure: Likewise.
16120         * configure.in: Likewise.
16121         * csu/Versions: Likewise.
16122         * csu/init.c: Likewise.
16123         * elf/tst-audit2.c: Likewise.
16124         * elf/tst-tls10.c: Likewise.
16125         * elf/tst-tls10.h: Likewise.
16126         * elf/tst-tls11.c: Likewise.
16127         * elf/tst-tls12.c: Likewise.
16128         * elf/tst-tls14.c: Likewise.
16129         * elf/tst-tlsmod11.c: Likewise.
16130         * elf/tst-tlsmod12.c: Likewise.
16131         * elf/tst-tlsmod13.c: Likewise.
16132         * elf/tst-tlsmod13a.c: Likewise.
16133         * elf/tst-tlsmod14a.c: Likewise.
16134         * elf/tst-tlsmod15b.c: Likewise.
16135         * elf/tst-tlsmod16a.c: Likewise.
16136         * elf/tst-tlsmod16b.c: Likewise.
16137         * elf/tst-tlsmod7.c: Likewise.
16138         * elf/tst-tlsmod8.c: Likewise.
16139         * elf/tst-tlsmod9.c: Likewise.
16140         * gmon/gmon.c: Likewise.
16141         * grp/fgetgrent_r.c: Likewise.
16142         * grp/putgrent.c: Likewise.
16143         * hurd/fopenport.c: Likewise.
16144         * include/libc-symbols.h: Likewise.
16145         * include/tls.h: Likewise.
16146         * intl/gettextP.h: Likewise.
16147         * intl/loadinfo.h: Likewise.
16148         * locale/global-locale.c: Likewise.
16149         * locale/localeinfo.h: Likewise.
16150         * mach/devstream.c: Likewise.
16151         * malloc/arena.c: Likewise.
16152         * malloc/set-freeres.c: Likewise.
16153         * misc/err.c: Likewise.
16154         * misc/getttyent.c: Likewise.
16155         * misc/mntent_r.c: Likewise.
16156         * posix/getopt.c: Likewise.
16157         * posix/wordexp.c: Likewise.
16158         * pwd/fgetpwent_r.c: Likewise.
16159         * resolv/Versions: Likewise.
16160         * resolv/res_hconf.c: Likewise.
16161         * shadow/fgetspent_r.c: Likewise.
16162         * shadow/putspent.c: Likewise.
16163         * stdio-common/printf_fphex.c: Likewise.
16164         * stdio-common/tmpfile.c: Likewise.
16165         * stdlib/abort.c: Likewise.
16166         * stdlib/fmtmsg.c: Likewise.
16167         * sunrpc/auth_unix.c: Likewise.
16168         * sunrpc/clnt_perr.c: Likewise.
16169         * sunrpc/clnt_tcp.c: Likewise.
16170         * sunrpc/clnt_udp.c: Likewise.
16171         * sunrpc/clnt_unix.c: Likewise.
16172         * sunrpc/openchild.c: Likewise.
16173         * sunrpc/svc_simple.c: Likewise.
16174         * sunrpc/svc_tcp.c: Likewise.
16175         * sunrpc/svc_udp.c: Likewise.
16176         * sunrpc/svc_unix.c: Likewise.
16177         * sunrpc/xdr.c: Likewise.
16178         * sunrpc/xdr_array.c: Likewise.
16179         * sunrpc/xdr_rec.c: Likewise.
16180         * sunrpc/xdr_ref.c: Likewise.
16181         * sunrpc/xdr_stdio.c: Likewise.
16182
16183 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16184
16185         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16186
16187 2011-07-03  Andreas Jaeger  <aj@suse.de>
16188
16189         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16190         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16191         regenerate with gen-libm-tests.pl.
16192
16193 2010-05-12  Petr Baudis  <pasky@suse.cz>
16194
16195         [BZ #11589]
16196         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16197         around j0() zero points by switching to j1().
16198         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16199         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16200         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16201         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16202
16203 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16204
16205         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16206         instead of 0.
16207         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16208         instead of 0.                              .
16209         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16210         Patch in part by Pavel Roskin <proski@gnu.org>.
16211
16212         [BZ #13138]
16213         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16214         realloc.
16215         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16216         Free memory block if necessary.
16217
16218         [BZ #12847]
16219         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16220         be NULL.  Don't lock in this case.
16221
16222 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16223
16224         * elf/elf.h (ELFOSABI_GNU): New macro.
16225         (ELFOSABI_LINUX): Define to that.
16226
16227 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16228
16229         * string/strncat.c (strncat): Undef the symbol in case it has been
16230         defined in bits/string.h.
16231
16232 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16233
16234         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16235
16236         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16237         link map.
16238
16239 2011-08-17  Andreas Jaeger  <aj@suse.de>
16240
16241         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16242
16243 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16244             Ian Lance Taylor  <iant@google.com>
16245
16246         * math/libm-test.inc (lround_test): New testcase.
16247         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16248
16249 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16250
16251         * Makefile: Remove support for automatic cvs check-ins.
16252         * Makerules: Likewise.
16253         * config.make.in: Likewise.
16254         * configure.in: Likewise.
16255         * intl/Makefile: Likewise.
16256         * locale/Makefile: Likewise.
16257         * po/Makefile: Likewise.
16258         * posix/Makefile: Likewise.
16259         * sysdeps/gnu/Makefile: Likewise.
16260         * sysdeps/mach/hurd/Makefile: Likewise.
16261         * sysdeps/sparc/sparc32/Makefile: Likewise.
16262
16263         [BZ #13118]
16264         * posix/Makefile (bug-regex32-ENV): Define.
16265         Patch by John Stanley <jpsinthemix@verizon.net>.
16266
16267         * misc/Makefile (headers): Add bits/select2.h.
16268         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16269         * misc/bits/select2.h: New file.
16270         * include/bits/select2.h: New file.
16271         * debug/Makefile (routines): Add fdelt_chk.
16272         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16273         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16274         FD_ISSET.
16275         * debug/fdelt_chk.c: New file.
16276
16277         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16278         * wcsmbs/test-wmemcmp.c: Likewise.
16279         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16280         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16281
16282 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16283
16284         * string/Makefile (strop-tests): Add memcmp.
16285         * string/test-wmemcmp.c: New file.
16286         * string/test-memcmp.c: Add wmemcmp support.
16287
16288 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16289
16290         [BZ #13153]
16291         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16292         2011-07-19 change.
16293
16294         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16295         garbage value in a __mach_port_mod_refs call in the cases of the
16296         task-self and thread-self ports.
16297
16298 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16299
16300         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16301
16302 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16303
16304         * elf/dl-load.c (lose): Check for non-null L.
16305
16306 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16307
16308         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16309
16310         * elf/dl-libc.c (dlerror_run): Pass back error code from
16311         dl_catch_error.
16312
16313         [BZ #13123]
16314         * elf/dl-load.c (lose): Free l_origin if it is valid.
16315
16316         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16317         names.
16318         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16319         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16320         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16321         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16322         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16323         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16324
16325 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16326
16327         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16328         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16329         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16330         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16331         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16332         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16333         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16334         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16335         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16336         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16337
16338 2011-08-15  Alan Modra  <amodra@gmail.com>
16339
16340         [BZ #13092]
16341         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16342         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16343         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16344         ppc_mcount to static-only-routines.
16345         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16346         __mcount_internal.
16347         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16348         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16349
16350 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16351
16352         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16353         for finite and infinity parameters.
16354
16355 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16356
16357         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16358         and add nop instructions for throughput optimization.
16359         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16360
16361 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16362
16363         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16364         aligned copy for power7 with vector-scalar instructions.
16365         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16366
16367 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16368
16369         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16370         AVX check.
16371
16372 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16373
16374         [BZ #13144]
16375         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16376         last change.
16377
16378 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16379
16380         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16381         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16382         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16383         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16384         clock_gettime.
16385
16386 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16387
16388         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16389         Forgot to demangle the pointer.
16390
16391         * sysdeps/i386/sysdep.h: Define atom_text_section.
16392         * sysdeps/x86_64/sysdep.h: Likewise.
16393         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16394         section with atom_text_section.
16395         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16396         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16397         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16398         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16399         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16400
16401         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16402         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16403         already be defined.  Change to take two parameters and don't assign
16404         result to variable.  Adjust all users.
16405         Define INTERNAL_GETTIME if not already defined.
16406         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16407         call.
16408         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16409         HAVE_CLOCK_GETTIME_VSYSCALL.
16410         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16411
16412         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16413         gettimeofday vsyscall, just use time.
16414
16415 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16416
16417         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16418         <errno.h>.
16419
16420 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16421
16422         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16423         syscall on x86-64.
16424         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16425         syscall.
16426         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16427         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16428         syscall if possible.
16429
16430 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16431
16432         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16433         e_ident.  Don't pass to find_mapsXX.
16434         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16435
16436 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16437
16438         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16439         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16440         * sysdeps/x86_64/multiarch/strchr.S: Update.
16441         Check bit_slow_BSF bit.
16442         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16443         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16444         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16445
16446 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16447
16448         [BZ #13134]
16449         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16450         before glibc 2.15.
16451         (tryshell): Define.
16452         (__spawni): Change last parameter to be flag.  Test
16453         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16454         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16455         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16456         * posix/spawni.c: Likewise.
16457         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16458         * posix/spawnp.c: Likewise.  Change normal version to use
16459         SPAWN_XFLAGS_USE_PATH.
16460         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16461         SPAWN_XFLAGS_TRY_SHELL.
16462
16463         [BZ #13150]
16464         * posix/glob.h: Remove gcc 1.x support.
16465
16466         [BZ #13068]
16467         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16468
16469 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16470
16471         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16472         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16473         strrchr-sse2-bsf
16474         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16475         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16476         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16477         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16478         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16479         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16480
16481 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16482
16483         * sysdeps/x86_64/wcscmp.S: New file.
16484
16485         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16486         wcscmp-c wcscmp-sse2
16487         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16488         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16489         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16490         * wcsmbs/wcscmp.c: Allow renaming.
16491
16492 2011-09-05  David S. Miller  <davem@davemloft.net>
16493
16494         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16495         stack slot, rather than the struct return pointer slot.
16496         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16497         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16498         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16499         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16500
16501 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16502
16503         * po/ja.po: Update from translation team.
16504
16505         [BZ #13144]
16506         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16507         kernel in 64-bit binaries.
16508
16509 2011-09-01  David S. Miller  <davem@davemloft.net>
16510
16511         * elf/elf.h (HWCAP_SPARC_*): Move to..
16512         * sysdeps/sparc/sysdep.h: this new file and add new values.
16513         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16514         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16515         _DL_HWCAP_COUNT to 24.
16516         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16517         entries.
16518         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16519         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16520         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16521         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16522         instead of magic constants.
16523         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16524
16525 2011-08-31  David S. Miller  <davem@davemloft.net>
16526
16527         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16528         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16529         Reimplement to do errno handling inline.
16530         (SYSCALL_ERROR_HANDLER): New macro.
16531         (__SYSCALL_STRING): Do not do errno handling in asm.
16532         (__CLONE_SYSCALL_STRING): Delete.
16533         (__INTERNAL_SYSCALL_STRING): Delete.
16534         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16535         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16536         (PSEUDO): Reimplement to do errno handling inline.
16537         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16538         (SYSCALL_ERROR_HANDLER): New macro.
16539         (__SYSCALL_STRING): Do not do errno handling in asm.
16540         (__CLONE_SYSCALL_STRING): Delete.
16541         (__INTERNAL_SYSCALL_STRING): Delete.
16542         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16543         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16544         i386.
16545         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16546         (inline_syscall*): Add 'err' argument.
16547         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16548         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16549         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16550         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16551
16552         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16553         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16554
16555 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16556
16557         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16558
16559 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16560
16561         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16562         directive.
16563
16564 2011-08-24  David S. Miller  <davem@davemloft.net>
16565
16566         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16567
16568 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16569
16570         * elf/Makefile: Add rules to build and run unload8 test.
16571         * elf/unload8.c: New file.
16572         * elf/unload8mod1.c: New file.
16573         * elf/unload8mod1x.c: New file.
16574         * elf/unload8mod2.c: New file.
16575         * elf/unload8mod3.c: New file.
16576
16577         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16578         it wasn't used.
16579
16580 2011-08-23  David S. Miller  <davem@davemloft.net>
16581
16582         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16583         subtract stack bias.
16584         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16585         %sp not %fp in calculations.
16586         (_JMPBUF_UNWINDS_ADJ): Likewise.
16587
16588         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16589         (aio_suspend): Call it to force an exception region around the
16590         AIO_MISC_WAIT() invocation.
16591
16592 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16593
16594         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16595         backslash.
16596
16597 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16598
16599         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16600         protection macro.
16601         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16602         and <dl-machine.h>.
16603         (Elf64_FuncDesc): Remove.
16604
16605 2011-08-22  David S. Miller  <davem@davemloft.net>
16606
16607         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16608         sigaltstack check, add missing cfi directives.
16609         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16610         missing cfi directives, and sigaltstack handling.
16611
16612 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16613
16614         [BZ #11724]
16615         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16616         object is seen twice.
16617         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16618
16619         * elf/Makefile (distribute): Add tst-initorder2.c.
16620         (tests): Add tst-initorder2.
16621         (modules-names): Add tst-initorder2a tst-initorder2b
16622         tst-initorder2c tst-initorder2d.  Add rules to build them.
16623         ($(objpfx)tst-initorder2.out): New rule.
16624         * elf/tst-initorder2.c: New file.
16625         * elf/tst-initorder2.exp: New file.
16626
16627 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16628
16629         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16630
16631         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16632         dependencies back to end of function.
16633
16634         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16635         $(elfobjdir)/ld.so.
16636
16637 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16638
16639         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16640         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16641         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16642         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16643         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16644         of __vdso_gettimeofday.
16645         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16646         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16647         attribute_hidden.
16648         (_libc_vdso_platform_setup): Remove initialization of
16649         __vdso_gettimeofday and __vdso_time.
16650
16651 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16652
16653         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16654         and fgetc_unlocked.
16655         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16656         getc_unlocked.
16657
16658         * elf/dl-open.c (add_to_global): Report additions to the global scope
16659         for LD_DEBUG=scopes.
16660         (dl_open_worker): Also print scope of newly loaded dependencies.
16661         (_dl_show_scope): Indicate if there is no scope.
16662
16663         [BZ #13114]
16664         * stdio-common/Makefile (tests): Add bug24.
16665         * stdio-common/bug24.c: New file.
16666
16667 2011-08-19  Andreas Jaeger  <aj@suse.de>
16668
16669         [BZ #13114]
16670         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16671         non-existant file when using close-on-exec mode.
16672
16673 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16674
16675         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16676         the very first instruction.
16677
16678         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16679         the CFI state in the end.
16680         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16681         inclusion of dl-trampoline.h.
16682         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16683
16684 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16685
16686         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16687         expectations for long double.
16688
16689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16690         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16691
16692 2011-08-14  David S. Miller  <davem@davemloft.net>
16693
16694         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16695         artificual limit depends upon the system page size.
16696
16697 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16698
16699         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16700         * resolv/Makefile: Define CFLAGS-libresolv.
16701
16702 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16703
16704         * nss/makedb.c (compute_tables): Make variables used in nested
16705         function static.
16706
16707 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16708
16709         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16710         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16711         if buffer was too small.
16712
16713         * elf/pldd.c (main): Attach to all threads in the process.
16714         Rewrite /proc handling to use *at functions.
16715
16716 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16717
16718         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16719         specifies first scope to show.
16720         (dl_open_worker): Update callers.  Move printing scope of new
16721         object to before the relocation.
16722         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16723         * sysdeps/generic/ldsodefs.h: Update declaration.
16724
16725         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16726         string for the scope number.
16727
16728 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16729
16730         * nscd/servicescache.c (cache_addserv): Make sure written is always
16731         initialized.
16732
16733 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16734
16735         * sysdeps/i386/i486/bits/atomic.h
16736         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16737         statement expression, so as to suppress "set but not used" warning.
16738         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16739
16740         * string/strncat.c (STRNCAT): Use prototype definition.
16741
16742         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16743         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16744         -Iprograms here.
16745         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16746         (localedef-modules): Add localedef.
16747         (locale-modules): Add locale.
16748
16749         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16750         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16751         to avoid a warning.
16752
16753 2011-08-14  David S. Miller  <davem@davemloft.net>
16754
16755         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16756         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16757
16758 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16759
16760         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16761         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16762         * elf/rtld.c (dl_main): Set l_name of vDSO.
16763         Call _dl_show_scope when DL_DEBUG_SCOPES.
16764         (process_dl_debug): Recognize scopes flag and also set it for all.
16765         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16766         Declare _dl_show_scope.
16767
16768         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16769         (do_dlopen): Pass caller_dlopen to dl_open.
16770         (__libc_dlopen_mode): Initialize caller_dlopen.
16771
16772         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16773         of libc.  Make tolower call locale-independent.  Optimize a bit by
16774         using isdigit instead of isalnum.
16775         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16776
16777 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16778
16779         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16780         was a dependency or dynamically loaded.
16781
16782 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16783
16784         * intl/l10nflist.c: Allow architecture-specific pop function.
16785         * sysdeps/x86_64/l10nflist.c: New file.
16786
16787         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16788         classification.
16789
16790 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16791
16792         * include/dirent.h: Add libc_hidden_proto for scandirat and
16793         scandirat64.  Don't declare __scandirat64.
16794         * dirent/scandirat.c: Add libc_hidden_def.
16795         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16796         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16797
16798 2011-08-10  David S. Miller  <davem@davemloft.net>
16799
16800         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16801         enum.
16802         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16803         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16804         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16805
16806 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16807
16808         * Versions.def [libc]: Add GLIBC_2.15.
16809         * dirent/Makefile (routines): Add scandirat and scandirat64.
16810         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16811         GLIBC_2.15.
16812         * dirent/dirent.h: Declare scandirat and scandirat64.
16813         * dirent/scandirat.c: New file.
16814         * dirent/scandirat64.c: New file.
16815         * sysdeps/wordsize-64/scandirat.c: New file.
16816         * sysdeps/wordsize-64/scandirat64.c: New file.
16817         * dirent/opendir.c: Define opendirat.
16818         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16819         using scandirat.
16820         * dirent/scandir64.c: Adjust for scandir.c change.
16821         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16822         __scandirat64, and __scandir_cancel_handler.
16823         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16824         additional parameter and use openat instead of open (outside of ld.so).
16825         Add new __opendir as wrapper around __opendirat.
16826         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16827         here without requiring old scandirat implementation.
16828
16829 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16830
16831         * dirent/scandir.c (cancel_handler): Renamed to
16832         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16833         defined.  Adjust users.
16834         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16835         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16836
16837 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16838
16839         * string/test-string.h (IMPL): Use __STRING to expand name and then
16840         stringify it.
16841
16842         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16843         of cleanups.
16844
16845 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16846
16847         * string/Makefile: Update.
16848         (strop-tests): Append strncat.
16849         * string/test-wcscmp.c: New file.
16850         New comprehensive test for wcscmp.
16851         * string/test-strcmp.c: Update.
16852         (WIDE): New define.
16853
16854 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16855
16856         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16857         line.
16858
16859 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16860
16861         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16862         encoding to ACE if AI_IDN.
16863
16864 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16865
16866         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16867         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16868
16869 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16870
16871         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16872         Fix overflow bug in strncat.
16873         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16874
16875         * string/test-strncat.c: Update.
16876         Add new tests for checking overflow bugs.
16877
16878 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16879
16880         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16881         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16882         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16883         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16884         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16885         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16886         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16887         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16888         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16889
16890         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16891         (USE_AS_STRCAT): Define.
16892         Add strcat and strncat support.
16893         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16894
16895 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16896
16897         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16898         __n bigger than INT_MAX+1.
16899         (__strncmp_g): Likewise.
16900
16901 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16902
16903         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16904         * libio/stido.h: Likewise.
16905
16906         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16907         (AF_NFC): Define.
16908         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16909         (AF_NFC): Define.
16910
16911         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16912         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16913         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16914         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16915         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16916
16917         [BZ #13021]
16918         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16919         installed.
16920
16921         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16922         typo.
16923         (_dl_x86_64_save_sse): Likewise.
16924
16925 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16926
16927         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16928         OSXSAVE.
16929         (_dl_x86_64_save_sse): Likewise.
16930
16931         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16932
16933         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16934
16935 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16936
16937         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16938         change.
16939         (_dl_x86_64_save_sse): Use correct AVX check.
16940
16941 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16942
16943         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16944         bug in strncpy/strncat.
16945         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16946
16947 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16948
16949         * string/tester.c (test_strcat): Add tests for different alignments
16950         of source and destination.
16951         (test_strncat): Likewise.
16952
16953 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16954
16955         [BZ #12852]
16956         * posix/glob.c (glob): Check passed in values before using them in
16957         expressions to avoid some overflows.
16958         (glob_in_dir): Likewise.
16959
16960         [BZ #13007]
16961         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16962         check for AVX enablement so that we don't crash with old kernels and
16963         new hardware.
16964         * elf/tst-audit4.c: Add same checks here.
16965         * elf/tst-audit6.c: Likewise.
16966
16967         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16968
16969 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16970
16971         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16972
16973 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16974
16975         * po/cs.po: Update from translation team.
16976         * po/bg.po: Likewise.
16977
16978 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16979
16980         * misc/sys/cdefs.h: Add support for const attribute.
16981         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16982         to gnu_dev_{major,minor,makedev} functions.
16983
16984 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16985
16986         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16987
16988 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16989
16990         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
16991         strlen results.
16992
16993 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16994
16995         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
16996         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
16997         register in order to avoid conflicts with the soft frame pointer
16998         being held in r11 when necessary.
16999         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17000         (INTERNAL_VSYSCALL_NCS): Likewise.
17001
17002 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17003
17004         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17005         * elf/dl-fini.c (_dl_fini): Adjust caller.
17006         * elf/dl-close.c (_dl_close_worker): Likewise.
17007         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17008
17009 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17010
17011         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17012         "aux_cache->nlibs < 0".
17013
17014         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17015         in the reload-count case.
17016
17017 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17018
17019         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17020         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17021         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17022         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17023         * sysdeps/x86_64/multiarch/strcat.S: New file.
17024         * sysdeps/x86_64/multiarch/strncat.S: New file.
17025         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17026         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17027         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17028         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17029         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17030         (USE_AS_STRCAT): Define.
17031         Add strcat and strncat support.
17032         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17033         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17034         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17035         * string/strncat.c: Update.
17036         (USE_AS_STRNCAT): Define.
17037         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17038         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17039         and i7.
17040         * sysdeps/x86_64/multiarch/init-arch.h
17041         (bit_Prefer_PMINUB_for_stringop): New.
17042         (index_Prefer_PMINUB_for_stringop): Likewise.
17043         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17044         bit_Prefer_PMINUB_for_stringop.
17045
17046 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17047
17048         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17049         buffer64.
17050         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17051         of casting of buffer.
17052         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17053         buffer32 and buffer64.
17054         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17055         writes instead of casting of buffer.
17056         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17057         buffer32.
17058         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17059         casting of buffer.
17060
17061 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17062
17063         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17064
17065 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17066
17067         * nscd/nscd.c (termination_handler): Don't do anything for a database
17068         if it has not yet been initialized.
17069
17070 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17071
17072         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17073
17074 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17075
17076         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17077
17078 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17079
17080         * po/nl.po: Update from translation team.
17081         * po/sv.po: Likewise.
17082
17083 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17084
17085         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17086         now disallowed by GCC.
17087
17088         * configure.in (use-default-link): Default to yes if a test -shared
17089         link meets our qualifications.
17090         * configure: Regenerated.
17091
17092         * config.make.in (output-format): New variable.
17093         * configure.in: Check for ld --print-output-format support.
17094         * configure: Regenerated.
17095         * Makerules ($(common-objpfx)format.lds)
17096         [$(output-format) != unknown]: Just use $(output-format),
17097         instead of the linker-script munging.
17098
17099 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17100
17101         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17102         of $(common-objpfx)shlib.lds.
17103         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17104
17105         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17106         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17107
17108         * configure.in (-z relro check): Adjust test code to add a large
17109         writable data section after it.
17110         * configure: Regenerated.
17111
17112 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17113
17114         * configure.in (-z relro check): Fix test code to make the variable
17115         truly const.
17116         * configure: Regenerated.
17117
17118 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17119
17120         * nscd/nscd.h (struct traced_file): Define.
17121         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17122         elements.  Add traced_files.
17123         (inotify_fd): Declare.
17124         (register_traced_file): Declare.
17125         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17126         (inotify_fd): Export.
17127         (resolv_conf_descr): Remove.
17128         (nscd_init): Move inotify descriptor creation to main.
17129         Don't register files for notification here.
17130         (register_traced_file): New function.
17131         (invalidate_cache): Don't use reset_res to determine whether to call
17132         res_init, go through the list of registered files.
17133         (main_loop_poll): The inotify descriptors are now stored in the
17134         structures for the traced files.
17135         (main_loop_epoll): Likewise
17136         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17137         to __nss_disable_nscd.
17138         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17139         for a database anymore.  Check the records for all the registered
17140         files instead.
17141         * nss/Makefile (libnss_files-routines): Add files-init.
17142         (libnss_db-routines): Add db-init.
17143         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17144         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17145         * nss/nss_db/db-init.c: New file.
17146         * nss/nss_files/files-init.c: New file.
17147         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17148         __nss_lookup_function.
17149         (__nss_lookup_function): Call nss_load_library.
17150         (nss_load_all_libraries): New function.
17151         (__nss_disable_nscd): Take parameter with callback function for files
17152         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17153         used for the cached services.
17154         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17155         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17156         options for features to all the files in nscd.
17157
17158         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17159
17160 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17161
17162         * csu/elf-init.c (__libc_csu_init): Comment typo.
17163
17164 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17165
17166         * po/pl.po: Update from translation team.
17167         * po/ja.po: Likewise.
17168         * po/ru.po: Likewise.
17169         * po/ko.po: Likewise.
17170         * po/fr.po: Likewise.
17171
17172 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17173
17174         * configure.in (.ctors/.dtors header and trailer check):
17175         Use an empirical test on a built program.
17176         * configure: Regenerated.
17177
17178         * configure.in (-z relro check): Use an empirical test on a built DSO.
17179         Detect, but do not require, on ia64.
17180         * configure: Regenerated.
17181
17182         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17183         Update tests that use readelf to use $READELF instead.
17184         * configure: Regenerated.
17185
17186 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17187
17188         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17189         if the result is not used.
17190
17191 2011-07-05  Andreas Jaeger  <aj@suse.de>
17192
17193         [BZ#9696]
17194         * stdlib/tst-strtod.c: Add testcase.
17195
17196 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17197
17198         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17199         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17200         The latter has a higher limit.  Take additional parameter to pass to
17201         the new function.
17202         (__pathconf): Pass file to __statfs_link_max.
17203         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17204         __statfs_link_max.
17205         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17206         __statfs_link_max.
17207
17208         [BZ #12868]
17209         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17210         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17211         Handle Lustre.
17212         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17213         (__statfs_filesize_max): Likewise.
17214         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17215
17216 2011-07-05  Andreas Jaeger  <aj@suse.de>
17217
17218         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17219
17220 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17221
17222         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17223         `status' variable.
17224         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17225         Likewise.
17226
17227 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17228
17229         * Makefile (strop-tests): Add strncat.
17230         * string/test-strncat.c: New file.
17231
17232 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17233
17234         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17235
17236 2011-06-21  Andreas Jaeger  <aj@suse.de>
17237
17238         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17239         Copy rule from iconvdata/Makefile.
17240
17241 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17242
17243         [BZ #12922]
17244         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17245         but no long options are defined, just return 'W'.
17246
17247 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17248
17249         [BZ #9696]
17250         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17251
17252 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17253
17254         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17255         netgroups to read.
17256         (innetgr): Likewise.
17257
17258 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17259
17260         * config.make.in (install_root): Default to $(DESTDIR).
17261
17262 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17263
17264         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17265
17266 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17267
17268         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17269
17270         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17271         containing directory rather than embedding absolute directory names.
17272
17273         * scripts/check-local-headers.sh: Rewritten using awk.
17274         Match by word, not by line.  Print error messages for matches.
17275         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17276
17277         * Makerules [shlib-lds-flags empty]:
17278         ($(common-objpfx)libc_pic.opts): New target.
17279         ($(common-objpfx)libc_pic.os.clean): New target.
17280         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17281
17282         * config.make.in (OBJCOPY): New variable.
17283         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17284         * configure: Regenerated.
17285
17286         * config.make.in (use-default-link): New variable.
17287         * configure.in (use_default_link): Grok --with-default-link to set it.
17288         * configure: Regenerated.
17289         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17290         (shlib-lds, shlib-lds-flags): Define to empty.
17291
17292         * Makerules (shlib-lds): New variable.
17293         (shlib-lds-flags): New variable.
17294         (build-shlib, build-moduile, build-module-asneeded): Use it.
17295         ($(common-objpfx)libc.so): Use $(shlib-lds).
17296         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17297         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17298
17299         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17300         DT_FLAGS/DT_FLAGS_1 with zero flags.
17301
17302         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17303         linker script munging.
17304
17305 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17306
17307         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17308         as 128-bit value.
17309         * crypt/sha512.c (sha512_process_block): Perform total addition using
17310         128-bit if possible.
17311         (__sha512_finish_ctx): Likewise.
17312         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17313         as 64-bit value.
17314         * crypt/sha256.c (SWAP64): Define.
17315         (sha256_process_block): Perform total addition using 64-bit if
17316         possible.
17317         (__sha256_finish_ctx): Likewise.
17318
17319 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17320
17321         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17322         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17323         * nscd/hstcache.c (cache_addhst): Likewise.
17324         * nscd/grpcache.c (cache_addgr): Likewise.
17325         * nscd/aicache.c (addhstaiX): Likewise
17326         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17327
17328 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17329
17330         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17331         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17332         * nscd/hstcache.c (cache_addhst): Likewise.
17333         * nscd/grpcache.c (cache_addgr): Likewise.
17334         * nscd/aicache.c (addhstaiX): Likewise
17335
17336 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17337
17338         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17339         domain only when needed.
17340
17341 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17342
17343         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17344         is always restored.
17345
17346 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17347
17348         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17349         are re-adding the entry.
17350         * nscd/servicescache.c (cache_addserv): Likewise.
17351
17352 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17353
17354         * sysdeps/generic/dl-irel.h: fix protection against multiple
17355         inclusions.
17356         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17357
17358 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17359
17360         [BZ #12935]
17361         * malloc/memusage.sh: Fix quoting in message.
17362         * debug/xtrace.sh: Likewise.
17363
17364         * configure.in: Remove support for --experimental-malloc option, make
17365         it the default.
17366         * config.make.in: Likewise.
17367         * malloc/Makefile: Likewise.
17368
17369 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17370
17371         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17372         two-byte characters.
17373
17374 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17375
17376         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17377         AC_CACHE_CHECK invocation.
17378         * configure: Regenerated.
17379
17380         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17381
17382 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17383
17384         [BZ #12350]
17385         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17386         bit from old_res_options.
17387
17388         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17389
17390         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17391         value type for setfct.
17392
17393 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17394
17395         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17396         __gettimeofday instead of gettimeofday.
17397
17398 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17399
17400         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17401
17402 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17403
17404         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17405
17406         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17407         info.
17408
17409 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17410
17411         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17412         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17413         strcpy-sse2-unaligned strncpy-sse2-unaligned
17414         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17415         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17416         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17417         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17418         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17419         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17420         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17421         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17422         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17423         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17424         (STRCPY): Support SSE2 and SSSE3 versions.
17425
17426 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17427
17428         [BZ #12874]
17429         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17430         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17431         kernels which artificially limit size of requests.
17432
17433 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17434
17435         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17436         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17437         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17438         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17439         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17440         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17441         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17442         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17443         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17444         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17445         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17446         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17447         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17448         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17449         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17450         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17451         Enable unaligned load optimization for Intel Core i3, i5 and i7
17452         processors.
17453         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17454         Define.
17455         (index_Fast_Unaligned_Load): Define.
17456         (HAS_FAST_UNALIGNED_LOAD): Define.
17457
17458 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17459
17460         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17461
17462 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17463
17464         [BZ #12907]
17465         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17466         until it is clear that the information is realy needed.
17467         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17468
17469 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17470
17471         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17472
17473 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17474
17475         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17476         /sys/devices/system/cpu/online if it is usable.
17477
17478         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17479         reading the information from the /proc filesystem to once a second.
17480
17481 2011-06-21  Andreas Jaeger  <aj@suse.de>
17482
17483         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17484         NULL after inclusion of kernel headers.
17485
17486 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17487
17488         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17489         calls to internal_setent.
17490
17491         [BZ #12885]
17492         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17493         addresses using gethostbyname4_r ignore IPv4 addresses.
17494
17495         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17496         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17497
17498         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17499
17500 2011-06-20  David S. Miller  <davem@davemloft.net>
17501
17502         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17503         inclusions.
17504         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17505
17506         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17507         (elf_irel): Use it.
17508         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17509         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17510         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17511         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17512         * sysdeps/x86_64/dl-irel.h: Likewise.
17513
17514         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17515         * elf/dl-sym.c: Likewise.
17516
17517 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17518
17519         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17520         need to dereference resplen2.
17521
17522 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17523
17524         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17525
17526 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17527
17528         * Makeconfig: Define vardbdir and inst_vardbdir.
17529         * nss/Makefile: Add rules to install db-Makefile.
17530
17531         * nss/nss_db/db-XXX.c: Cleanup.
17532
17533         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17534         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17535         GLIBC_PRIVATE.
17536         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17537         * nss/makedb.c: Implement -g option to specify that value strings
17538         are generated and should not be added to table iterated over for
17539         get*ent calls.
17540         * nss/nss_db/db-initgroups.c: New file.
17541
17542         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17543         interface.
17544
17545         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17546         (internal_getgrouplist): Adjust to name change.
17547         Update use_initgroups_entry if this is not the first call.
17548         * nss/databases.def: Add initgroups entry.
17549
17550         * nss/makedb.c (compute_tables): Check result of multiple hash table
17551         sizes to minimize maximum chain length.
17552
17553 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17554
17555         * Versions.def: Add entry for libnss_db.
17556         * shlib-versions: Likewise.
17557         * nss/Makefile: Add rules to build libnss_db.
17558         * nss/Versions: Add libnss_db information.  Organize libnss_files
17559         entries better.
17560         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17561         makedb progra.  Some minor improvements to generate smaller files.
17562         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17563         here from...
17564         * nss/makedb.c: ...here.
17565         Improve database format to be smaller and require less memory at
17566         runtime.
17567         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17568         db anymore.
17569         * nss/nss_db/db-netgrp.c: Likewise.
17570         * nss/nss_db/db-open.c: Likewise.
17571         * nss/nss_files/flies-XXX.x: Adjust comments.
17572         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17573         * nss/nss_files/files-grp.c: Likewise.
17574         * nss/nss_files/files-hosts.c: Likewise.
17575         * nss/nss_files/files-network.c: Likewise.
17576         * nss/nss_files/files-proto.c: Likewise.
17577         * nss/nss_files/files-pwd.c: Likewise.
17578         * nss/nss_files/files-rpc.c: Likewise.
17579         * nss/nss_files/files-service.c: Likewise.
17580         * nss/nss_files/files-sgrp.c: Likewise.
17581         * nss/nss_files/files-spwd.c: Likewise.
17582         * nss/nss_db/db-alias.c: Removed.
17583         * nss/nss_db/dummy-db.h: Removed.
17584
17585 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17586
17587         * nss/makedb.c: Rewritten to not use database library.
17588         * nss/Makefile: Update to build new makedb program.
17589
17590 2011-06-14  Andreas Jaeger  <aj@suse.de>
17591
17592         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17593         memset declaration.
17594
17595 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17596
17597         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17598         tmpbuf.
17599
17600 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17601
17602         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17603         * elf/Makefile ($(objpfx)ld.so): Likewise.
17604
17605         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17606         Don't list ld.so twice in dependencies.
17607
17608         * posix/bug-regex31.c: Include <stdlib.h>.
17609
17610         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17611
17612         * nis/nss_compat/compat-spwd.c
17613         (getspent_next_nss_netgr): Remove unused variable.
17614         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17615
17616         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17617         nonmembers" output to use the right array.
17618
17619         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17620
17621         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17622
17623         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17624         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17625         * catgets/gencat.c (read_input_file): Likewise.
17626         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17627
17628         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17629         variable definition inside #if's controlling its use.
17630
17631         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17632
17633         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17634
17635         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17636
17637         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17638         unreachable code.
17639
17640         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17641
17642         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17643         * configure: Regenerated.
17644
17645         * Makerules: Revert last change.
17646         * elf/Makefile: Likewise.
17647
17648 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17649
17650         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17651         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17652         (reloc-link): Likewise.
17653
17654 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17655
17656         * elf/Makefile: Add rules to build pldd.
17657         * elf/pldd.c: New file.
17658         * elf/pldd-xx.c: New file.
17659
17660 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17661
17662         * version.h: Update for 2.15 development version.
17663
17664 2011-06-07  David S. Miller  <davem@davemloft.net>
17665
17666         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17667         ifuncs.
17668         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17669         elf_machine_lazy_rel): Likewise.
17670         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17671         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17672         elf_machine_lazy_rel): Likewise.
17673         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17674         dl_hwcap via passed in argument.
17675         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17676         Likewise.
17677
17678 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17679
17680         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17681
17682 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17683
17684         [BZ #12849]
17685         * manual/fdl-1.1.texi: New file, verbatim from:
17686         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17687         * manual/lgpl-2.1.texi: New file, verbatim from:
17688         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17689         * manual/Makefile (licenses): New variable, list those new file names.
17690         (texis): Use it.
17691         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17692
17693         * manual/fdl.texi: File removed.
17694         * manual/lesser.texi: File removed.
17695         * manual/libc.texinfo (Copying, Documentation License):
17696         Use new @include file names, put @appendix directive before @include.
17697
17698 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17699
17700         [BZ #12841]
17701         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17702         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17703         (mq_open): Add __NTH.
17704
17705 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17706
17707         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17708         Assume Intel Core i3/i5/i7 processor if AVX is available.
17709
17710 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17711
17712         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17713         typo.
17714
17715 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17716
17717         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17718         memory.  Use alloca_account.  Fix memory leak when retrying.
17719
17720 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17721
17722         * version.h (RELEASE): Bump for 2.14 release.
17723         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17724
17725         * config.make.in (RANLIB): Remove entry.
17726
17727 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17728
17729         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17730         (libc.pot): Work around missing support for .ksh extension in xgettext.
17731
17732         [BZ #12684]
17733         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17734         if both request failed.
17735         (send_dg): In case of server errors clear resplen or *resplen2.
17736
17737         [BZ #12454]
17738         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17739         when there are multiple maps.
17740         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17741         (_dl_fini): Remove test here.
17742
17743         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17744
17745 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17746
17747         [BZ #12350]
17748         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17749         bit from old_res_options.
17750         (gaih_inet): Likewise.
17751
17752         [BZ #11099]
17753         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17754         as signed.
17755
17756         * resolv/res_init.c (res_setoptions): Make the code more compact.
17757
17758         [BZ #11558]
17759         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17760         set RES_USEVC.
17761
17762         [BZ #11634]
17763         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17764
17765         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17766
17767         [BZ #11781]
17768         * malloc/malloc.h: Declare malloc hook variables as volatile.
17769
17770         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17771         in last patch.
17772
17773         [BZ #11799]
17774         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17775         raise in the comment.
17776         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17777         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17778         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17779
17780 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17781
17782         [BZ #12811]
17783         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17784         grow the buffers more if it already has to be sufficient.
17785         (build_wcs_upper_buffer): Likewise.
17786         * posix/regexec.c (check_matching): Likewise.
17787         (clean_state_log_if_needed): Likewise.
17788         (extend_buffers): Don't enlarge buffers beyond size of the input
17789         buffer.
17790         Patches mostly by Emil Wojak <emil@wojak.eu>.
17791         * posix/bug-regex32.c: New file.
17792         * posix/Makefile (tests): Add bug-regex32.
17793
17794         * locale/findlocale.c (_nl_find_locale): Return right away if
17795         _nl_explode_name failed.
17796         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17797
17798         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17799
17800         * debug/xtrace.sh: Unify messages.
17801         * malloc/memusage.sh: Likewise.
17802
17803         [BZ #12813]
17804         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17805         time symbol from vDSO.  Substitute with vsyscall if not available.
17806         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17807         __vdso_time.
17808
17809         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17810         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17811         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17812         Add sendmmsg and internal_sendmmsg.
17813         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17814         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17815         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17816
17817         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17818         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17819         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17820
17821 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17822
17823         [BZ #12813]
17824         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17825         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17826         available.
17827         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17828         __vdso_getcpu.
17829
17830         [BZ #12814]
17831         * iconvdata/Makefile (tests): Add bug-iconv9.
17832         * iconvdata/bug-iconv9.c: New file.
17833
17834 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17835
17836         [BZ #12814]
17837         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17838
17839 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17840
17841         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17842         (struct user_regs_struct): Change intcs field back to cs.
17843
17844 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17845
17846         * po/ja.po: Update from translation team.
17847
17848 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17849
17850         [BZ #12795]
17851         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17852         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17853
17854 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17855
17856         * stdlib/longlong.h: Update from GCC.
17857
17858 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17859
17860         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17861         parameter name.
17862         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17863         Add parameter name.
17864         (__sysconf): Pass it down.
17865
17866 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17867
17868         [BZ #12671]
17869         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17870         some situations.
17871         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17872         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17873         add in in __libc_use_alloca calls.  Adjust callers.
17874         (glob): Use malloc in some situations.
17875
17876         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17877         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17878         pltexit.
17879
17880 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17881
17882         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17883         and CLOCK_BOOTTIME_ALARM.
17884
17885         [BZ #12782]
17886         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17887         is returned.
17888
17889         * string/_strerror.c (__strerror_r): Print negative errors as signed
17890         numbers.
17891
17892         [BZ #12777]
17893         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17894         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17895         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17896
17897         * configure.in: Fix typo in redirection and correct removal of test
17898         files in two cases.
17899
17900         [BZ #12788]
17901         * locale/setlocale.c (new_composite_name): Fix test to check for
17902         identical name of all categories.
17903
17904         [BZ #12792]
17905         * libio/filedoalloc.c (local_isatty): New function.
17906         (_IO_file_doallocate): Use local_isatty.
17907         * stdio-common/perror.c (perror): In case a new stream is used
17908         forward the stream error.
17909         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17910         error flag.
17911
17912 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17913
17914         [BZ #11869]
17915         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17916         alloca.
17917         * include/alloca.h (extend_alloca_account): Define.
17918
17919         [BZ #11857]
17920         * posix/regex.h: Fix comments with documentation of user-accessible
17921         fields after compilation and describe correct free'ing of pattern
17922         after re_compile_pattern.
17923         Patch by Reuben Thomas <rrt@sc3d.org>.
17924
17925 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17926
17927         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17928         and -mno-altivec to prevent the compiler from using Altivec and/or
17929         VSX instructions when the corresponding registers are not available.
17930
17931 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17932
17933         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17934
17935 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17936
17937         * libio/freopen.c (freopen): Use __dup2, not dup2.
17938         * libio/freopen64.c (freopen64): Likewise.
17939
17940 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17941
17942         [BZ #12775]
17943         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17944         * math/Makefile (tests): Add test-powl.
17945         (CFLAGS-test-powl.c): Define.
17946         * math/test-powl.c: New file.
17947
17948 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17949
17950         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17951
17952 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17953
17954         [BZ #11837]
17955         * iconvdata/gb18030.c: Update to GB18020-2005.
17956
17957 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17958
17959         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17960         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17961         Patch by Aharon Robbins <arnold@skeeve.com>.
17962
17963         [BZ #11892]
17964         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17965         on the stack.
17966
17967         [BZ #11895]
17968         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17969         through underflows.
17970
17971         [BZ #12766]
17972         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17973         point to strings before performing equality test for error_one_per_line
17974         mode.
17975
17976         [BZ #11697]
17977         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17978
17979         [BZ #11820]
17980         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17981         (struct user_fpregs_struct): Avoid __uint*_t types.
17982
17983         [BZ #6420]
17984         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17985         symbol info.  Use it instead of calling _dl_addr locally.
17986         (lock_and_info): New function.
17987         (tr_freehook): Call lock_and_info and pass symbol info as additional
17988         parameter to tr_where.
17989         (tr_mallochook): Likewise.
17990         (tr_reallochook): Likewise.
17991         (tr_memalignhook): Likewise.
17992
17993         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
17994         used and couldn't be at all thread-safe.
17995
17996 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
17997
17998         * libio/freopen.c (freopen): Don't close old file descriptor
17999         before the new one is opened.  Instead dup the new file descriptor
18000         to the old one after the new stream is created.
18001         * libio/freopen64.c (freopen64): Likewise.
18002         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18003         * libio/fileops.c (_IO_new_file_close_it): Handle new
18004         _IO_FLAGS2_NOCLOSE flag.
18005         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18006         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18007         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18008         _IO_FLAGS2_NOCLOSE flag.
18009         * include/unistd.h: Add hidden_proto for dup3.
18010         Define __have_dup3.
18011         * io/dup3.c: Define hidden symbol.
18012         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18013
18014         [BZ #7101]
18015         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18016         when an incomplete long option is used.
18017         * posix/tst-getopt_long1.c: New file.
18018         * posix/Makefile (tests): Add tst-getopt_long1.
18019
18020         [BZ #10138]
18021         * scripts/config.guess: Update from autoconf-2.68.
18022         * scripts/config.sub: Likewise.
18023
18024         [BZ #10157]
18025         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18026         tests into ...
18027         (has_cpuclock): ...this.  New function.
18028         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18029         macro here based on has_cpuclock code.
18030
18031         [BZ #10149]
18032         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18033         First byte (not low byte) is now always NUL.
18034         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18035
18036         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18037         Use non-cancelable interfaces.
18038
18039         [BZ #9809]
18040         * locale/iso-639.def: Add entry for Sorani.
18041
18042         [BZ #11901]
18043         * include/stdlib.h: Move include protection to the right place.
18044         Define abort_msg_s.  Declare __abort_msg with it.
18045         * stdlib/abort.c (__abort_msg): Adjust type.
18046         * assert/assert.c (__assert_fail_base): New function.  Majority
18047         of code from __assert_fail.  Allocate memory for __abort_msg with
18048         mmap.
18049         (__assert_fail): Now call __assert_fail_base.
18050         * assert/assert-perr.c: Remove bulk of implementation.  Use
18051         __assert_fail_base.
18052         * include/assert.hL Declare __assert_fail_base.
18053         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18054         mmap.
18055         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18056
18057 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18058
18059         [BZ #11952]
18060         [BZ #12453]
18061         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18062         until all modules are registered in the DTV.
18063         * elf/Makefile: Add rules to build and run tst-tls19.
18064         * elf/tst-tls19.c: New file.
18065         * elf/tst-tls19mod1.c: New file.
18066         * elf/tst-tls19mod2.c: New file.
18067         * elf/tst-tls19mod3.c: New file.
18068         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18069
18070         [BZ #12083]
18071         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18072         correctly.
18073
18074         [BZ #12601]
18075         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18076         two-byte sequence errors.
18077         * iconvdata/Makefile (tests): Add bug-iconv8.
18078         * iconvdata/bug-iconv8.c: New file.
18079
18080         [BZ #12626]
18081         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18082         buf2 definition.
18083
18084         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18085
18086         [BZ #12432]
18087         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18088         (dummy_getcfa): New function.
18089         (init): Get _Unwind_GetCFA address, use dummy if not found.
18090         (backtrace_helper): In recursion check, also check whether CFA changes.
18091         (__backtrace): Completely initialize arg.
18092
18093         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18094         storing incomplete byte sequence in state object.  Avoid testing for
18095         guaranteed too small input if we know there is enough data available.
18096
18097 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18098
18099         * Makeconfig (+link-pie): Indent.
18100         * Rules (binaries-pie): Define if $(have-fpie) and
18101         $(build-shared).
18102         (binaries-shared): Also filter out $(binaries-pie).
18103         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18104         * nscd/Makefile (others-pie): Add nscd.
18105         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18106         ($(objpfx)nscd): Remove command override.
18107         * login/Makefile (others-pie): Add pt_chown.
18108         ($(objpfx)pt_chown): Remove command override.
18109         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18110         remove command overrides.
18111
18112 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18113
18114         * libio/tst_putwc.c: Fix error messages.
18115
18116         [BZ #12724]
18117         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18118         currently writing and seek to current position when not.
18119         * libio/Makefile (tests): Add bug-fclose1.
18120         * libio/bug-fclose1.c: New file.
18121
18122 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18123
18124         [BZ #12511]
18125         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18126         don't set DF_1_NODELETE here.
18127         (do_lookup_x): When entering new entry test for copy relocation
18128         and if necessary set DF_1_NODELETE flag.
18129         * elf/tst-unique4.cc: New file.
18130         * elf/tst-unique4.h: New file.
18131         * elf/tst-unique4lib.cc: New file.
18132         * elf/Makefile: Add rules to build and run tst-unique4.
18133         Patch by Piotr Bury <pbury@goahead.com>.
18134
18135 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18136
18137         [BZ #12052]
18138         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18139
18140         [BZ #12625]
18141         * misc/mntent_r.c (addmntent): Flush the stream after the output
18142
18143         [BZ #12393]
18144         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18145         (is_trusted_path_normalize): Skip initial colon.  Append slash
18146         to empty buffer.  Duplicate is_trusted_path code but allow
18147         constructed patch to be prefix.
18148         (is_dst): Allow $ORIGIN followed by /.
18149         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18150         Correct testing of result of is_trusted_path_normalize
18151         (decompose_rpath): Fix warning.
18152
18153 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18154
18155         [BZ #11257]
18156         * grp/initgroups.c (internal_getgrouplist): When we found the service
18157         list through the initgroups entry in nsswitch.conf do not always
18158         continue on a successful lookup.  Don't always use the
18159         __nss_group_database value if it is set.
18160         * nss/nsswitch.conf (initgroups): Change action for successful db
18161         lookup to continue for compatibility.
18162
18163 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18164
18165         [BZ #11532]
18166         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18167         and CP774 modules.
18168         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18169         and CP774 modules.
18170         * iconvdata/tst-tables.sh: Likewise.
18171         * iconvdata/cp770.c: New file.
18172         * iconvdata/cp771.c: New file.
18173         * iconvdata/cp772.c: New file.
18174         * iconvdata/cp773.c: New file.
18175         * iconvdata/cp774.c: New file.
18176         * iconvdata/testdata/CP770: New file.
18177         * iconvdata/testdata/CP770..UTF8: New file.
18178         * iconvdata/testdata/CP771: New file.
18179         * iconvdata/testdata/CP771..UTF8: New file.
18180         * iconvdata/testdata/CP772: New file.
18181         * iconvdata/testdata/CP772..UTF8: New file.
18182         * iconvdata/testdata/CP773: New file.
18183         * iconvdata/testdata/CP773..UTF8: New file.
18184         * iconvdata/testdata/CP774: New file.
18185         * iconvdata/testdata/CP774..UTF8: New file.
18186
18187         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18188         END CHARMAP line.
18189         * iconvdata/gen-8bit-gap.sh: Likewise.
18190         * iconvdata/gen-8bit.sh: Likewise.
18191
18192         * locale/iso-639.def: Add ary entry.
18193
18194         [BZ #11258]
18195         * locale/C-translit.h.in: Add U20A1 transliteration.
18196
18197         [BZ #12178]
18198         * locale/iso-639.def: Add wae entry.
18199         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18200
18201         [BZ #12545]
18202         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18203         for n.
18204
18205         [BZ #12711]
18206         * locale/C-translit.h.in: Add entry for U20B9.
18207         Patch by pravin.d.s@gmail.com.
18208
18209 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18210
18211         [BZ #12713]
18212         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18213         ENAMETOOLONG use generic getcwd.
18214         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18215         in rtld.  Use *stat64.
18216         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18217         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18218         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18219         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18220         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18221         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18222         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18223         __fstatat64 macros.
18224         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18225         * dirent/rewinddir.c: Add libc_hidden_def.
18226         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18227         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18228
18229         * include/dirent.h (__alloc_dir): Add flags parameter.
18230         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18231         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18232         __alloc_dir.
18233         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18234         from fdopendir if O_CLOEXEC is already set.
18235
18236 2011-03-15  Alan Modra  <amodra@gmail.com>
18237
18238         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18239         l_tls_firstbyte_offset non-zero.  Save padding offset in
18240         l_tls_firstbyte_offset for later use.
18241         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18242         freeing static tls block.
18243
18244 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18245
18246         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18247         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18248         being defined by the kernel headers.
18249
18250 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18251
18252         [BZ #12734]
18253         * resolv/resolv.h: Define RES_NOTLDQUERY.
18254         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18255         no-tld-query and set RES_NOTLDQUERY.
18256         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18257         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18258         modern BIND to search name as TLD unless forbidden.
18259
18260 2011-05-07  Petr Baudis  <pasky@suse.cz>
18261             Ulrich Drepper  <drepper@gmail.com>
18262
18263         [BZ #12393]
18264         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18265         (is_trusted_path): ...to here.
18266         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18267         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18268         using is_trusted_path_normalize() in setuid scripts.
18269
18270 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18271
18272         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18273         __BEGIN/__END_DECLS.
18274
18275 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18276
18277         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18278         NSS_STATUS_NOTFOUND if no record was found.
18279
18280 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18281
18282         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18283         (headers-not-in-tirpc): Remove rpc/netdb.h
18284         * resolv/netdb.h: Revert last change.
18285
18286 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18287
18288         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18289         circular dependency between libgcc.a and libc.a.
18290
18291 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18292
18293         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18294         * nis/Makefile: Don't install rpcsvc/*.
18295         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18296         instead of <rpc/types.h>.
18297         (MAXHOSTNAMELEN): Define.
18298
18299 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18300
18301         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18302
18303 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18304
18305         [BZ #12714]
18306         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18307         gethostbyname4_r when IPv6 results are possible.
18308
18309 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18310
18311         [BZ #12723]
18312         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18313         _PC_PIPE_BUF handling.
18314
18315 2011-04-30  Bruno Haible  <bruno@clisp.org>
18316
18317         [BZ #12717]
18318         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18319         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18320         to 'int'.
18321         * inet/getnameinfo.c (getnameinfo): Likewise.
18322
18323 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18324
18325         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18326         to groups setting in database lookup.
18327         * nss/nsswitch.conf: Add initgroups entry.
18328
18329 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18330
18331         [BZ #12685]
18332         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18333         mode string.
18334         Patch by Eric Blake <eblake@redhat.com>.
18335
18336 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18337
18338         * sunrpc/Makefile (need-export-routines): Add svc_run.
18339         (routines): Remove svc_run.
18340         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18341         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18342         * sunrpc/svc_run.c (svc_run): Likewise.
18343         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18344
18345 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18346
18347         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18348         problem in reallocation in last patch.
18349
18350 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18351
18352         * sunrpc/Makefile: Move inclusion of Rules.
18353
18354 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18355
18356         * nss/nss_files/files-initgroups.c: New file.
18357         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18358         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18359         _nss_files_initgroups_dyn.
18360
18361 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18362
18363         * elf/elf.h (R_ARM_IRELATIVE): Define.
18364
18365 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18366
18367         * po/ru.po: Update from translation team.
18368
18369 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18370
18371         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18372         dependencies.
18373
18374 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18375
18376         [BZ #12653]
18377         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18378         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18379         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18380         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18381         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18382
18383 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18384
18385         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18386         differing bytes.
18387         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18388         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18389         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18390
18391 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18392
18393         [BZ #12420]
18394         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18395         storing it.
18396         * stdlib/bug-getcontext.c: New file.
18397         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18398
18399 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18400
18401         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18402         instructions into .machine "z9-109".
18403         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18404         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18405
18406 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18407
18408         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18409         between environment variables and auxiliary vector.
18410
18411 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18412
18413         * Makefile: Add rules to build linkobj/libc.so.
18414         * include/libc-symbols.h: Define libc_hidden_nolink.
18415         * include/rpc/auth.h: Mark functions which are to be hidden.
18416         * include/rpc/auth_des.h: Likewise.
18417         * include/rpc/auth_unix.h: Likewise.
18418         * include/rpc/clnt.h: Likewise.
18419         * include/rpc/des_crypt.h: Likewise.
18420         * include/rpc/key_prot.h: Likewise.
18421         * include/rpc/pmap_clnt.h: Likewise.
18422         * include/rpc/pmap_prot.h: Likewise.
18423         * include/rpc/pmap_rmt.h: Likewise.
18424         * include/rpc/rpc_msg.h: Likewise.
18425         * include/rpc/svc.h: Likewise.
18426         * include/rpc/svc_auth.h: Likewise.
18427         * include/rpc/xdr.h: Likewise.
18428         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18429         * nss/Makefile: Likewise.
18430         * sunrpc/Makefile: Don't install headers.  Build library with normal
18431         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18432         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18433         for the compat linking library.  Remove use of INTDEF/INTUSE.
18434         * sunrpc/auth_none.c: Likewise.
18435         * sunrpc/auth_unix.c: Likewise.
18436         * sunrpc/authdes_prot.c: Likewise.
18437         * sunrpc/authuxprot.c: Likewise.
18438         * sunrpc/clnt_gen.c: Likewise.
18439         * sunrpc/clnt_perr.c: Likewise.
18440         * sunrpc/clnt_raw.c: Likewise.
18441         * sunrpc/clnt_simp.c: Likewise.
18442         * sunrpc/clnt_tcp.c: Likewise.
18443         * sunrpc/clnt_udp.c: Likewise.
18444         * sunrpc/clnt_unix.c: Likewise.
18445         * sunrpc/des_crypt.c: Likewise.
18446         * sunrpc/des_soft.c: Likewise.
18447         * sunrpc/get_myaddr.c: Likewise.
18448         * sunrpc/key_call.c: Likewise.
18449         * sunrpc/key_prot.c: Likewise.
18450         * sunrpc/netname.c: Likewise.
18451         * sunrpc/pm_getmaps.c: Likewise.
18452         * sunrpc/pm_getport.c: Likewise.
18453         * sunrpc/pmap_clnt.c: Likewise.
18454         * sunrpc/pmap_prot.c: Likewise.
18455         * sunrpc/pmap_prot2.c: Likewise.
18456         * sunrpc/pmap_rmt.c: Likewise.
18457         * sunrpc/publickey.c: Likewise.
18458         * sunrpc/rpc_cmsg.c: Likewise.
18459         * sunrpc/rpc_common.c: Likewise.
18460         * sunrpc/rpc_dtable.c: Likewise.
18461         * sunrpc/rpc_prot.c: Likewise.
18462         * sunrpc/rpc_thread.c: Likewise.
18463         * sunrpc/rtime.c: Likewise.
18464         * sunrpc/svc.c: Likewise.
18465         * sunrpc/svc_auth.c: Likewise.
18466         * sunrpc/svc_authux.c: Likewise.
18467         * sunrpc/svc_raw.c: Likewise.
18468         * sunrpc/svc_run.c: Likewise.
18469         * sunrpc/svc_simple.c: Likewise.
18470         * sunrpc/svc_tcp.c: Likewise.
18471         * sunrpc/svc_udp.c: Likewise.
18472         * sunrpc/svc_unix.c: Likewise.
18473         * sunrpc/svcauth_des.c: Likewise.
18474         * sunrpc/xcrypt.c: Likewise.
18475         * sunrpc/xdr.c: Likewise.
18476         * sunrpc/xdr_array.c: Likewise.
18477         * sunrpc/xdr_float.c: Likewise.
18478         * sunrpc/xdr_intXX_t.c: Likewise.
18479         * sunrpc/xdr_mem.c: Likewise.
18480         * sunrpc/xdr_rec.c: Likewise.
18481         * sunrpc/xdr_ref.c: Likewise.
18482         * sunrpc/xdr_sizeof.c: Likewise.
18483         * sunrpc/xdr_stdio.c: Likewise.
18484
18485 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18486
18487         [BZ #12650]
18488         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18489         * sysdeps/ia64/dl-tls.h: Likewise.
18490         * sysdeps/powerpc/dl-tls.h: Likewise.
18491         * sysdeps/s390/dl-tls.h: Likewise.
18492         * sysdeps/sh/dl-tls.h: Likewise.
18493         * sysdeps/sparc/dl-tls.h: Likewise.
18494         * sysdeps/x86_64/dl-tls.h: Likewise.
18495         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18496
18497 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18498
18499         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18500         rpath element also skip the following colon.
18501         (expand_dynamic_string_token): Add is_path parameter and pass
18502         down to DL_DST_REQUIRED and _dl_dst_substitute.
18503         (decompose_rpath): Call expand_dynamic_string_token with
18504         non-zero is_path.  Ignore empty rpaths.
18505         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18506         with zero is_path.
18507
18508 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18509
18510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18511         Make cancelable.
18512
18513 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18514
18515         [BZ #12655]
18516         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18517         Patch by Filipe David Manana <fdmanana@apache.org>.
18518
18519 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18520
18521         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18522         Maintain aligned stack.
18523         (CHECK_RSP): Remove unused macro.
18524
18525 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18526
18527         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18528         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18529
18530 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18531
18532         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18533
18534         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18535
18536 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18537
18538         [BZ #12518]
18539         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18540         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18541         * sysdeps/x86_64/memmove.c: New file.
18542         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18543         (memcpy): Renamed to ...
18544         (__new_memcpy): This.
18545         (memcpy): Provide GLIBC_2_14 memcpy.
18546         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18547         (memcpy): Provide GLIBC_2_2_5 memcpy.
18548
18549 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18550
18551         [BZ #12631]
18552         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18553
18554 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18555
18556         * misc/syncfs.c: New file.
18557         * misc/Makefile (routines): Add syncfs.
18558         * posix/unistd.h: Declare syncfs.
18559         * sysdeps/unix/syscalls.list: Add syncfs.
18560
18561 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18562
18563         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18564         open_by_handle_at.
18565         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18566         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18567         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18568         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18569         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18570         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18571         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18572
18573 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18574
18575         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18576         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18577         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18578         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18579         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18580         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18581         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18582
18583         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18584         sync_file_range.c with -fexceptions.
18585         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18586         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18587         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18588         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18589         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18590         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18591         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18592         sync_file_range as cancellation point
18593         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18594         now a wrapper around __call_sync_file_range with cancellation handling.
18595         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18596         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18597         function name to __call_sync_file_range.
18598         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18599         Add call_sync_file_range.
18600
18601 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18602
18603         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18604         bits/timex.h.
18605
18606 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18607
18608         * iconv/iconv.h: Fix typo in comment.
18609         * io/fcntl.h: Likewise.
18610         * libio/stdio.h: Likewise.
18611         * posix/spawn.h: Likewise.
18612         * posix/unistd.h: Likewise.
18613         * stdlib/stdlib.h: Likewise.
18614         * time/time.h: Likewise.
18615         * wcsmbs/wchar.h: Likewise.
18616
18617         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18618         open_by_handle): Add.
18619         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18620         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18621         Augment a few comments.
18622         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18623         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18624         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18625         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18626         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18627         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18628         open_by_handle.
18629
18630         * io/fcntl.h (AT_EMPTY_PATH): Define.
18631
18632 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18633
18634         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18635         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18636         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18637         to...
18638         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18639         * Versions.def: Add GLIBC_2.14.
18640         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18641         Export.
18642
18643 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18644
18645         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18646         round counter.
18647         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18648
18649 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18650
18651         [BZ #12597]
18652         * string/test-strncmp.c (do_page_test): New function.
18653         (check2): Likewise.
18654         (test_main): Call check2.
18655         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18656
18657 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18658
18659         [BZ #12587]
18660         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18661         Handle cache information in CPU leaf 4.
18662         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18663
18664 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18665
18666         [BZ #12583]
18667         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18668         character representation.
18669         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18670
18671 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18672
18673         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18674         END(__isnan) to END(__isnanf) to match function entry point/label
18675         EALIGN(__isnanf,...).
18676
18677 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18678
18679         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18680
18681 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18682
18683         [BZ #12510]
18684         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18685         copy from the symbol referenced in the relocation to initialize the
18686         used variable.
18687         Patch by Piotr Bury <pbury@goahead.com>.
18688         * elf/Makefile: Add rules to build and tst-unique3.
18689         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18690         * elf/tst-unique3.cc: New file.
18691         * elf/tst-unique3.h: New file.
18692         * elf/tst-unique3lib.cc: New file.
18693         * elf/tst-unique3lib2.cc: New file.
18694
18695         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18696
18697 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18698
18699         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18700         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18701         to _start.
18702
18703 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18704
18705         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18706         to-be-loaded object along a path to loader is ld.so.
18707
18708 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18709             Ulrich Drepper  <drepper@gmail.com>
18710
18711         * sysdeps/x86_64/memset.S: After aligning destination, code
18712         branches to different locations depending on the value of
18713         misalignment, when multiarch is enabled. Fix this.
18714
18715 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18716
18717         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18718         Set _x86_64_preferred_memory_instruction for AMD processsors.
18719         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18720         Set bit_Prefer_SSE_for_memop for AMD processors.
18721
18722 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18723
18724         * libio/fmemopen.c (fmemopen): Optimize a bit.
18725
18726 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18727
18728         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18729
18730 2011-03-03  Roland McGrath  <roland@redhat.com>
18731
18732         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18733
18734 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18735
18736         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18737         __bzero_ultra1 instead of __memset_ultra1.
18738
18739 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18740             Ulrich Drepper  <drepper@gmail.com>
18741
18742         [BZ #12509]
18743         * include/link.h (struct link_map): Add l_orig_initfini.
18744         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18745         returning unsuccessfully.
18746         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18747         close of a file loaded at startup, restore the original l_initfini
18748         list.
18749         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18750         list, store the pointer.
18751         * elf/Makefile ($(objpfx)noload-mem): New rule.
18752         (noload-ENV): Define.
18753         (tests): Add $(objpfx)noload-mem.
18754         * elf/noload.c: Include <memcheck.h>.
18755         (main): Call mtrace.  Close all opened handles.
18756
18757 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18758
18759         [BZ #12454]
18760         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18761         dependencies are missing.
18762
18763 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18764
18765         Fix __if_freereq crash: Unlike the generic version which uses free,
18766         Hurd needs munmap.
18767         * sysdeps/mach/hurd/ifreq.h: New file.
18768
18769 2011-01-27  Petr Baudis  <pasky@suse.cz>
18770             Ulrich Drepper  <drepper@gmail.com>
18771
18772         [BZ 12445]#
18773         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18774         to extend_alloca().
18775         * stdio-common/bug23.c: New file.
18776         * stdio-common/Makefile (tests): Add bug23.
18777
18778 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18779             Ulrich Drepper  <drepper@gmail.com>
18780
18781         [BZ #12489]
18782         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18783         before performing relro protection.  At old place add assertion
18784         to make sure nothing changed.
18785
18786 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18787             Glauber de Oliveira Costa  <glommer@gmail.com>
18788
18789         * elf/elf.h: Add new ARM TLS relocs.
18790
18791 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18792
18793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18794         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18795         cast from r3.
18796         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18797         'tests' variable.
18798         * sysdeps/wordsize-64/tst-writev.c: New file.
18799
18800 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18801
18802         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18803         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18804         insns in _dl_start to prevent a TOC reference before relocs are
18805         resolved.
18806
18807 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18808
18809         [BZ #12469]
18810         * Makeconfig: Remove RANLIB definition.
18811         * Makerules: Don't use RANLIB.
18812         * aclocal.m4: Remove ranlib test.
18813         * configure.in: No need to check for ranlib.
18814         * elf/rtld-Rules: Don't use RANLIB.
18815
18816 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18817
18818         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18819         protection macro.
18820         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18821         inclusion protection macro.
18822
18823         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18824         SIGRTMIN and SIGRTMAX and print information in that case only when
18825         SIGRTMIN is defined.
18826
18827 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18828
18829         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18830         arginfo fn returning -1.
18831
18832         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18833         and thousands string is zero terminated.
18834
18835 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18836
18837         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18838         sysdeps/unix/sysv/linux/bits/socket.h.
18839
18840 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18841
18842         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18843         (__CPU_COUNT): Remove old macros.
18844         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18845         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18846         (__CPU_ALLOC, __CPU_FREE): Add macros.
18847         (__sched_cpualloc, __sched_cpufree): Add declarations.
18848
18849 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18850
18851         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18852         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18853         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18854         (readdhstai): Return value of addhstaiX call.
18855         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18856         (addgrbyX): Return value returned by cache_addgr.
18857         (readdgrbyname): Return value returned by addgrbyX.
18858         (readdgrbygid): Likewise.
18859         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18860         (addpwbyX): Return value returned by cache_addpw.
18861         (readdpwbyname): Return value returned by addhstbyX.
18862         (readdpwbyuid): Likewise.
18863         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18864         (addservbyX): Return value returned by cache_addserv.
18865         (readdservbyname): Return value returned by addservbyX:
18866         (readdservbyport): Likewise.
18867         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18868         (addhstbyX): Return value returned by cache_addhst.
18869         (readdhstbyname): Return value returned by addhstbyX.
18870         (readdhstbyaddr): Likewise.
18871         (readdhstbynamev6): Likewise.
18872         (readdhstbyaddrv6): Likewise.
18873         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18874         (readdinitgroups): Return value returned by addinitgroupsX.
18875         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18876         (prune_cache): Keep track of timeout value of re-added entries.
18877         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18878         * nscd/nscd.h: Adjust prototypes of readd* functions.
18879
18880 2011-02-04  Roland McGrath  <roland@redhat.com>
18881
18882         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18883         (nis_stats): Likewise.
18884         * nis/nis_modify.c (nis_modify): Likewise.
18885         * nis/nis_remove.c (nis_remove): Likewise.
18886         * nis/nis_add.c (nis_add): Likewise.
18887
18888         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18889
18890         * posix/fnmatch_loop.c: Add some consts.
18891
18892         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18893
18894 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18895
18896         [BZ #12460]
18897         * config.make.in (config-cflags-novzeroupper): Define.
18898         * configure.in: Substitute libc_cv_cc_novzeroupper.
18899         * elf/Makefile (AVX-CFLAGS): Define.
18900         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18901         (CFLAGS-tst-auditmod4a.c): Likewise.
18902         (CFLAGS-tst-auditmod4b.c): Likewise.
18903         (CFLAGS-tst-auditmod6b.c): Likewise.
18904         (CFLAGS-tst-auditmod6c.c): Likewise.
18905         (CFLAGS-tst-auditmod7b.c): Likewise.
18906         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18907
18908 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18909
18910         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18911         function to the callback.
18912         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18913
18914 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18915
18916         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18917         of errno.
18918
18919 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18920
18921         [BZ #11724]
18922         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18923         of constructors.
18924         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18925         of destructors.
18926         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18927
18928         [BZ #11724]
18929         * elf/Makefile: Add rules to build and run new test.
18930         * elf/tst-initorder.c: New file.
18931         * elf/tst-initorder.exp: New file.
18932         * elf/tst-initordera1.c: New file.
18933         * elf/tst-initordera2.c: New file.
18934         * elf/tst-initordera3.c: New file.
18935         * elf/tst-initordera4.c: New file.
18936         * elf/tst-initorderb1.c: New file.
18937         * elf/tst-initorderb2.c: New file.
18938         * elf/tst-order-a1.c: New file.
18939         * elf/tst-order-a2.c: New file.
18940         * elf/tst-order-a3.c: New file.
18941         * elf/tst-order-a4.c: New file.
18942         * elf/tst-order-b1.c: New file.
18943         * elf/tst-order-b2.c: New file.
18944         * elf/tst-order-main.c: New file.
18945         New test case by George Gensure <werkt0@gmail.com>.
18946
18947 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18948
18949         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18950         decoding ACE if AI_CANONIDN.
18951
18952 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18953
18954         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18955
18956 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18957
18958         * version.h (RELEASE): Bump for 2.13 release.
18959         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18960
18961         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18962
18963         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18964         MADV_NOHUGEPAGE.
18965         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18966         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18967         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18968         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18969         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18970         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18971
18972         * posix/getconf.c: Update copyright year.
18973         * catgets/gencat.c: Likewise.
18974         * csu/version.c: Likewise.
18975         * debug/catchsegv.sh: Likewise.
18976         * debug/xtrace.sh: Likewise.
18977         * elf/ldconfig.c: Likewise.
18978         * elf/ldd.bash.in: Likewise.
18979         * elf/sprof.c (print_version): Likewise.
18980         * iconv/iconv_prog.c: Likewise.
18981         * iconv/iconvconfig.c: Likewise.
18982         * locale/programs/locale.c: Likewise.
18983         * locale/programs/localedef.c: Likewise.
18984         * malloc/memusage.sh: Likewise.
18985         * malloc/mtrace.pl: Likewise.
18986         * nscd/nscd.c (print_version): Likewise.
18987         * nss/getent.c: Likewise.
18988
18989         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
18990         PF_CAIF, and PF_ALG.
18991         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18992
18993 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
18994
18995         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
18996         (modules-names): Use them.
18997         (ifunc-test-modules, ifunc-pie-tests): Define.
18998         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
18999         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19000         (test-extras): Likewise.
19001         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19002         $(compile-command.c).
19003         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19004         (all-built-dso): Define.
19005         (check-textrel.out, check-execstack.out): Depend on it.
19006
19007         * configure.in: Don't override --enable-multi-arch.
19008
19009 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19010
19011         [BZ #6812]
19012         * nscd/hstcache.c (tryagain): Define.
19013         (cache_addhst): Return tryagain not notfound for temporary errors.
19014         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19015         failed.
19016
19017 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19018
19019         [BZ #10563]
19020         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19021         to make the syscall.
19022         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19023
19024         [BZ #12378]
19025         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19026         and fall back to matching as normal character if the string ends before
19027         the matching ']' is found.  This is what POSIX requires.
19028         * posix/testfnm.c: Adjust test result.
19029         * posix/globtest.sh: Adjust test result.  Add new test.
19030         * posix/tst-fnmatch.input: Likewise.
19031         * posix/tst-fnmatch2.c: Add new test.
19032
19033 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19034
19035         * elf/Makefile (check-execstack): Revert last change.  Depend on
19036         check-execstack.h.
19037         (check-execstack.h): New target.
19038         (generated): Add check-execstack.h.
19039         * elf/check-execstack.c: Include "check-execstack.h".
19040         (main): Revert last change.
19041         (handle_file): Return zero if GNU_STACK is absent and
19042         DEFAULT_STACK_PERMS doesn't include PF_X.
19043
19044 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19045
19046         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19047         in child fails because the descriptor is already closed.
19048         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19049         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19050         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19051
19052         [BZ #12397]
19053         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19054         syscall.
19055
19056         [BZ #10484]
19057         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19058         temporary buffer used to handle multi lookups locally.
19059         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19060
19061 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19062
19063         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19064         loader is ld.so.
19065
19066 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19067
19068         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19069         alignment for SSE2.
19070
19071 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19072
19073         [BZ #12394]
19074         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19075         characters.  When rounding increased number of integer digits recompute
19076         number of groups.
19077         * stdio-common/tst-grouping.c: New file.
19078         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19079
19080 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19081
19082         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19083         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19084
19085         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19086         void.
19087         * bits/select.h: Likewise.
19088
19089 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19090
19091         * po/ja.po: Update from translation team.
19092
19093 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19094
19095         [BZ #11155]
19096         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19097         implementation just like for lxstat, fxstatat, et al.
19098
19099 2010-12-27  Jim Meyering  <meyering@redhat.com>
19100
19101         [BZ #12348]
19102         * posix/regexec.c (build_trtable): Return failure indication upon
19103         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19104
19105 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19106
19107         [BZ #12201]
19108         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19109         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19110         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19111         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19112
19113         [BZ #12207]
19114         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19115
19116         [BZ #12204]
19117         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19118         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19119
19120 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19121
19122         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19123         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19124         script has SORT_BY_INIT_PRIORITY.
19125         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19126         NO_CTORS_DTORS_SECTIONS is defined.
19127         * elf/soinit.c: Likewise.
19128         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19129         NO_CTORS_DTORS_SECTIONS is defined.
19130         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19131         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19132         * sysdeps/sh/init-first.c: Likewise.
19133         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19134
19135 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19136
19137         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19138         always use the slow path.
19139
19140 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19141
19142         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19143         similar rule which adds the sysdep directories to the header search in
19144         order to pick up the correct platform stackinfo.h.
19145         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19146         perform test if it is, otherwise return successfully without testing.
19147         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19148         DEFAULT_STACK_PERMS define in stackinfo.h.
19149         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19150         defined in stackinfo.h.
19151         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19152         DEFAULT_STACK_PERMS defined in stackinfo.h.
19153         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19154         * sysdeps/ia64/stackinfo.h: Likewise.
19155         * sysdeps/s390/stackinfo.h: Likewise.
19156         * sysdeps/sh/stackinfo.h: Likewise.
19157         * sysdeps/sparc/stackinfo.h: Likewise.
19158         * sysdeps/x86_64/stackinfo.h: Likewise.
19159         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19160         PF_X for powerpc64.  Retain PF_X for powerpc32.
19161
19162 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19163
19164         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19165         accurately.
19166         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19167         GETDENTS_64BIT_ALIGNED.
19168
19169 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19170
19171         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19172
19173 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19174
19175         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19176         _GNU_SOURCE.
19177
19178         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19179         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19180         Remove __restrict.
19181         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19182         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19183
19184 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19185
19186         [BZ #11655]
19187         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19188         are initialized.
19189
19190 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19191
19192         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19193
19194 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19195
19196         * po/it.po: Update from translation team.
19197
19198 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19199
19200         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19201         unused codes.
19202
19203 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19204
19205         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19206
19207 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19208
19209         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19210         specially.
19211         (gaih_getanswer_slice): Likewise.
19212
19213 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19214
19215         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19216
19217 2010-05-31  Petr Baudis  <pasky@suse.cz>
19218
19219         [BZ #11149]
19220         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19221         silently even in the chroot mode.
19222
19223 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19224
19225         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19226         last patch a bit.  Pretty printing
19227
19228 2010-05-31  Petr Baudis <pasky@suse.cz>
19229
19230         [BZ #10085]
19231         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19232         initialization of skip_initgroups_dyn.
19233
19234 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19235
19236         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19237         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19238
19239 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19240
19241         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19242
19243 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19244
19245         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19246         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19247         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19248         ($(objpfx)tst-fnmatch-mem): New rule.
19249         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19250         * posix/tst-fnmatch.c (main): Call mtrace.
19251
19252 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19253
19254         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19255         Support Intel processor model 6 and model 0x2c.
19256
19257 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19258
19259         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19260           signed comparison.
19261
19262 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19263
19264         [BZ #12205]
19265         * string/test-strncasecmp.c (check_result): New function.
19266         (do_one_test): Use it.
19267         (check1): New function.
19268         (test_main): Use it.
19269         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19270         Support strcasecmp and strncasecmp.
19271
19272 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19273
19274         [BZ #12194]
19275         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19276         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19277
19278 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19279
19280         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19281         IFUNC support.
19282         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19283         memset-x86-64.
19284         * sysdeps/x86_64/multiarch/bzero.S: New file.
19285         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19286         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19287         * sysdeps/x86_64/multiarch/memset.S: New file.
19288         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19289         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19290         Set bit_Prefer_SSE_for_memop for Intel processors.
19291         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19292         Define.
19293         (index_Prefer_SSE_for_memop): Define.
19294         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19295
19296 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19297
19298         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19299         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19300
19301 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19302
19303         [BZ #12191]
19304         * sysdeps/i386/i686/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
19309         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19310         (__x86_64_raw_data_cache_size_half): Likewise.
19311         (__x86_64_raw_shared_cache_size): Likewise.
19312         (__x86_64_raw_shared_cache_size_half): Likewise.
19313         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19314         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19315         and __x86_64_raw_shared_cache_size_half.  Round
19316         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19317         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19318         to multiple of 256 bytes.
19319
19320 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19321
19322         [BZ #12167]
19323         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19324         of inacessible symlinks.  Verify result of symlink before returning it.
19325         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19326         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19327
19328 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19329
19330         * math/math.h (isinf): Fix typo in comment.
19331
19332 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19333
19334         * po/da.po: Update from translation team.
19335
19336 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19337
19338         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19339         is added to the list.
19340
19341 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19342             Ulrich Drepper  <drepper@gmail.com>
19343
19344         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19345         the global list here.  Move code to...
19346         (_dl_add_to_namespace_list): ...here.  New function.
19347         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19348         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19349         * elf/dl-load.c (lose): Don't remove the element from the list.
19350         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19351         (_dl_map_object): Likewise.
19352
19353 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19354
19355         [BZ #12159]
19356         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19357         into all bytes of SSE register.
19358         Patch by Richard Li <richardpku@gmail.com>.
19359
19360 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19361
19362         [BZ #12140]
19363         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19364         perturbing.
19365
19366 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19367
19368         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19369         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19370         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19371         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19373         submachine.
19374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19375
19376 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19377
19378         * include/dlfcn.h (__RTLD_SECURE): Define.
19379         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19380         mode & __RTLD_SECURE instead.
19381         (open_path): Rename preloaded parameter to secure.
19382         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19383         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19384         * elf/dl-deps.c (openaux): Likewise.
19385         * elf/rtld.c (struct map_args): Remove is_preloaded.
19386         (map_doit): Don't use it.
19387         (dl_main): Likewise.
19388         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19389         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19390
19391 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19392
19393         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19394         (sysd-rules-targets): Remove duplicates.
19395         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19396         rtld-%.$o dependency.
19397
19398 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19399
19400         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19401         _dl_map_object do it.
19402
19403 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19404
19405         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19406         fast fma builtins, define the macros in the C99 standard.
19407         (FP_FAST_FMAF): Likewise.
19408         (FP_FAST_FMAL): Likewise.
19409         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19410
19411         * bits/mathdef.h: Update copyright year.
19412         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19413
19414 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19415
19416         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19417         builtins, define the macros in the C99 standard.
19418         (FP_FAST_FMAF): Likewise.
19419         (FP_FAST_FMAL): Likewise.
19420         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19421         multiply/add.
19422         (FP_FAST_FMAF): Likewise.
19423
19424 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19425
19426         [BZ #3268]
19427         * math/libm-test.inc (fma_test): Some new testcases.
19428         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19429         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19430         y and infinite z.  Do multiplication by C already in long double.
19431         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19432         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19433         y and infinite z.  Do bitwise or of inexact bit into u.d.
19434         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19435         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19436         * sysdeps/i386/fpu/s_fma.S: Removed.
19437         * sysdeps/i386/fpu/s_fmal.S: Removed.
19438
19439 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19440
19441         [BZ #3268]
19442         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19443         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19444         computation is not scheduled after fetestexcept.  Fix value
19445         of minimum denormal long double.
19446
19447 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19448
19449         [BZ #3268]
19450         * math/libm-test.inc (fma_test): Add some more tests.
19451         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19452         correctly.
19453
19454 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19455
19456         * scripts/data/localplt-s390-linux-gnu.data: New file.
19457         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19458
19459 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19460
19461         [BZ #3268]
19462         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19463         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19464         instead of dbl-64.
19465         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19466         inlines.
19467         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19468         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19469         if one of x and y is very large and the other is subnormal.
19470         * sysdeps/s390/fpu/s_fmaf.c: New file.
19471         * sysdeps/s390/fpu/s_fma.c: New file.
19472         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19473         * sysdeps/powerpc/fpu/s_fma.S: New file.
19474         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19475         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19476         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19477
19478 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19479
19480         [BZ #3268]
19481         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19482         fma tests.
19483         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19484         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19485         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19486         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19487         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19488         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19489         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19490
19491 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19492
19493         [BZ #12078]
19494         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19495         * posix/bug-regex31.input: Add test case.
19496
19497 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19498
19499         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19500         * posix/bug-regex31.input: New file.
19501
19502         [BZ #12078]
19503         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19504         (parse_sub_exp): Fix last change, use postorder.
19505
19506         * posix/bug-regex31.c: New file.
19507         * posix/Makefile: Add rules to build and run bug-regex31.
19508
19509         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19510
19511         [BZ #12078]
19512         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19513
19514         [BZ #12108]
19515         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19516         to have entries in sys_siglist.
19517
19518         [BZ #12093]
19519         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19520         be NULL.
19521
19522 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19523
19524         [BZ #3268]
19525         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19526         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19527         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19528         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19529         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19530         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19531         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19532         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19533         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19534         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19535         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19536         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19537         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19538         * math/ftestexcept.c (fetestexcept): Likewise.
19539         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19540         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19541         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19542         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19543         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19544         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19545         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19546
19547 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19548
19549         [BZ #12107]
19550         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19551         newline.
19552
19553 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19554
19555         * string/bug-strstr1.c: New file.
19556         * string/Makefile: Add rules to build and run bug-strstr1.
19557
19558 2010-10-05  Eric Blake  <eblake@redhat.com>
19559
19560         [BZ #12092]
19561         * string/str-two-way.h (two_way_long_needle): Always clear memory
19562         when skipping input due to the shift table.
19563
19564 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19565
19566         [BZ #12005]
19567         * malloc/mcheck.c: Handle large requests.
19568
19569         [BZ #12077]
19570         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19571         for strncmp and strncasecmp.
19572         * string/stratcliff.c: Add tests for strcmp and strncmp.
19573         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19574
19575 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19576
19577         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19578         __set_fpscr.
19579
19580 2010-09-30  Andreas Jaeger  <aj@suse.de>
19581
19582         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19583         (CGROUP_SUPER_MAGIC): Define.
19584         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19585         Handle btrfs and cgroup file systems.
19586         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19587         Likewise.
19588
19589 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19590
19591         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19592         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19593
19594 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19595
19596         [BZ #12067]
19597         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19598         trying to locate the ELF header.
19599
19600 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19601
19602         [BZ #11611]
19603         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19604         Mask out sign-bit copies when constructing f_fsid.
19605
19606 2010-09-24  Petr Baudis <pasky@suse.cz>
19607
19608         * debug/stack_chk_fail_local.c: Add missing licence exception.
19609         * debug/warning-nop.c: Likewise.
19610
19611 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19612
19613         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19614         implementing getdents64 using getdents syscall, set d_type if
19615         __ASSUME_GETDENTS32_D_TYPE.
19616
19617 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19618
19619         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19620         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19621
19622 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19623
19624         [BZ #12037]
19625         * posix/unistd.h: Undo change of feature selection for ftruncate from
19626         2010-01-11.
19627
19628 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19629
19630         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19631         detection.
19632
19633 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19634
19635         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19636         fanotify_mark.
19637         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19638
19639 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19640
19641         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19642         variables after CHECK_SP call.
19643         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19644
19645 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19646             Ulrich Drepper  <drepper@redhat.com>
19647
19648         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19649         re-relocationg ld.so.
19650         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19651         _dl_init_paths call.
19652         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19653         here anymore.
19654
19655 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19656
19657         * resolv/res_init.c (__res_vinit): Count the default server we added.
19658
19659 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19660             Ulrich Drepper  <drepper@redhat.com>
19661
19662         [BZ #11968]
19663         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19664         (____longjmp_chk): Use %ebx for saving value across system call.
19665         Add unwind info.
19666
19667 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19668
19669         * manual/Makefile: Don't mix pattern rules with normal rules.
19670
19671 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19672
19673         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19674         operation.
19675         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19676         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19677         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19678         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19679         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19680         Likewise.
19681
19682 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19683
19684         [BZ #11979]
19685         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19686         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19687
19688 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19689
19690         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19691         * sysdeps/x86_64/addmul_1.S: Likewise.
19692         * sysdeps/x86_64/lshift.S: Likewise.
19693         * sysdeps/x86_64/mul_1.S: Likewise.
19694         * sysdeps/x86_64/rshift.S: Likewise.
19695         * sysdeps/x86_64/sub_n.S: Likewise.
19696         * sysdeps/x86_64/submul_1.S: Likewise.
19697
19698 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19699
19700         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19701         Define __sched_param instead of SCHED_* and sched_param when
19702         <bits/sched.h> is included with __need_schedparam defined.
19703         * bits/sched.h [__need_schedparam]
19704         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19705         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19706         (__defined_schedparam): Define to 1.
19707         (__sched_param): New structure, identical to sched_param.
19708         (__need_schedparam): Undefine.
19709
19710 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19711
19712         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19713         (epoll_create1): Declare.
19714
19715         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19716
19717 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19718
19719         [BZ #7066]
19720         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19721         shifting retval into place.
19722
19723 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19724
19725         * nis/rpcsvc/nis.h: Update copyright notice.
19726         * nis/rpcsvc/nis.x: Likewise.
19727         * nis/rpcsvc/nis_callback.h: Likewise.
19728         * nis/rpcsvc/nis_callback.x: Likewise.
19729         * nis/rpcsvc/nis_object.x: Likewise.
19730         * nis/rpcsvc/nis_tags.h: Likewise.
19731         * nis/rpcsvc/yp.h: Likewise.
19732         * nis/rpcsvc/yp.x: Likewise.
19733         * nis/rpcsvc/ypupd.h: Likewise.
19734         * nis/yp_xdr.c: Likewise.
19735         * nis/ypupdate_xdr.c: Likewise.
19736
19737         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19738         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19739         (pmap_getport): Use __libc_rpc_getport.
19740         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19741         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19742         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19743
19744 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19745
19746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19747         fanotify_mark.
19748
19749 2010-08-27  Roland McGrath  <roland@redhat.com>
19750
19751         * sysdeps/i386/i686/multiarch/Makefile
19752         (CFLAGS-varshift.c): New variable.
19753
19754 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19755
19756         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19757         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19758
19759         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19760
19761         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19762
19763 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19764
19765         * sysdeps/x86_64/strlen.S: Unroll the loop.
19766         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19767         strlen-sse2 strlen-sse2-bsf.
19768         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19769         __strlen_no_bsf if bit_Slow_BSF is set.
19770         (__strlen_sse42): Removed.
19771         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19772         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19773
19774 2010-08-25  Roland McGrath  <roland@redhat.com>
19775
19776         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19777         * sysdeps/x86_64/multiarch/varshift.c: New file.
19778         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19779         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19780         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19781         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19782
19783 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19784
19785         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19786         strlen-sse2 strlen-sse2-bsf.
19787         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19788         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19789         (__strlen_sse2): Removed.
19790         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19791         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19792         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19793         bit_Slow_BSF for Atom.
19794         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19795         (index_Slow_BSF): Define.
19796         (HAS_SLOW_BSF): Define.
19797
19798 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19799
19800         [BZ #10851]
19801         * resolv/res_init.c (__res_vinit): When no server address at all
19802         is given default to loopback.
19803
19804 2010-08-24  Roland McGrath  <roland@redhat.com>
19805
19806         * configure.in: Remove config-name.h generation.
19807         * configure: Regenerated.
19808         * config-name.in: File removed.
19809         * scripts/config-uname.sh: New file.
19810         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19811         ($(objdir)config-name.h): New target.
19812
19813         * sunrpc/rpc_parse.h: Avoid nested comment.
19814
19815 2010-08-24  Richard Henderson  <rth@redhat.com>
19816             Ulrich Drepper  <drepper@redhat.com>
19817             H.J. Lu  <hongjiu.lu@intel.com>
19818
19819         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19820         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19821         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19822         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19823         _mm_alignr_epi8 with _mm_loadu_si128.
19824         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19825         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19826         (__m128i_shift_right): Removed.
19827         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19828         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19829         * sysdeps/x86_64/multiarch/varshift.h: New file.
19830         * sysdeps/x86_64/multiarch/varshift.S: New file.
19831
19832 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19833
19834         * configure.in: Move assembler checks to before sysdep dir checking.
19835
19836 2010-08-20  Petr Baudis  <pasky@suse.cz>
19837
19838         * LICENSES: Sync the sunrpc license.
19839
19840 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19841
19842         * sunrpc/auth_des.c: Update copyright notice once again.
19843         * sunrpc/auth_none.c: Likewise.
19844         * sunrpc/auth_unix.c: Likewise.
19845         * sunrpc/authdes_prot.c: Likewise.
19846         * sunrpc/authuxprot.c: Likewise.
19847         * sunrpc/bindrsvprt.c: Likewise.
19848         * sunrpc/clnt_gen.c: Likewise.
19849         * sunrpc/clnt_perr.c: Likewise.
19850         * sunrpc/clnt_raw.c: Likewise.
19851         * sunrpc/clnt_simp.c: Likewise.
19852         * sunrpc/clnt_tcp.c: Likewise.
19853         * sunrpc/clnt_udp.c: Likewise.
19854         * sunrpc/clnt_unix.c: Likewise.
19855         * sunrpc/des_crypt.c: Likewise.
19856         * sunrpc/des_soft.c: Likewise.
19857         * sunrpc/get_myaddr.c: Likewise.
19858         * sunrpc/getrpcport.c: Likewise.
19859         * sunrpc/key_call.c: Likewise.
19860         * sunrpc/key_prot.c: Likewise.
19861         * sunrpc/openchild.c: Likewise.
19862         * sunrpc/pm_getmaps.c: Likewise.
19863         * sunrpc/pm_getport.c: Likewise.
19864         * sunrpc/pmap_clnt.c: Likewise.
19865         * sunrpc/pmap_prot.c: Likewise.
19866         * sunrpc/pmap_prot2.c: Likewise.
19867         * sunrpc/pmap_rmt.c: Likewise.
19868         * sunrpc/rpc/auth.h: Likewise.
19869         * sunrpc/rpc/auth_unix.h: Likewise.
19870         * sunrpc/rpc/clnt.h: Likewise.
19871         * sunrpc/rpc/des_crypt.h: Likewise.
19872         * sunrpc/rpc/key_prot.h: Likewise.
19873         * sunrpc/rpc/netdb.h: Likewise.
19874         * sunrpc/rpc/pmap_clnt.h: Likewise.
19875         * sunrpc/rpc/pmap_prot.h: Likewise.
19876         * sunrpc/rpc/pmap_rmt.h: Likewise.
19877         * sunrpc/rpc/rpc.h: Likewise.
19878         * sunrpc/rpc/rpc_des.h: Likewise.
19879         * sunrpc/rpc/rpc_msg.h: Likewise.
19880         * sunrpc/rpc/svc.h: Likewise.
19881         * sunrpc/rpc/svc_auth.h: Likewise.
19882         * sunrpc/rpc/types.h: Likewise.
19883         * sunrpc/rpc/xdr.h: Likewise.
19884         * sunrpc/rpc_clntout.c: Likewise.
19885         * sunrpc/rpc_cmsg.c: Likewise.
19886         * sunrpc/rpc_common.c: Likewise.
19887         * sunrpc/rpc_cout.c: Likewise.
19888         * sunrpc/rpc_dtable.c: Likewise.
19889         * sunrpc/rpc_hout.c: Likewise.
19890         * sunrpc/rpc_main.c: Likewise.
19891         * sunrpc/rpc_parse.c: Likewise.
19892         * sunrpc/rpc_parse.h: Likewise.
19893         * sunrpc/rpc_prot.c: Likewise.
19894         * sunrpc/rpc_sample.c: Likewise.
19895         * sunrpc/rpc_scan.c: Likewise.
19896         * sunrpc/rpc_scan.h: Likewise.
19897         * sunrpc/rpc_svcout.c: Likewise.
19898         * sunrpc/rpc_tblout.c: Likewise.
19899         * sunrpc/rpc_util.c: Likewise.
19900         * sunrpc/rpc_util.h: Likewise.
19901         * sunrpc/rpcinfo.c: Likewise.
19902         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19903         * sunrpc/rpcsvc/key_prot.x: Likewise.
19904         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19905         * sunrpc/rpcsvc/mount.x: Likewise.
19906         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19907         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19908         * sunrpc/rpcsvc/rex.x: Likewise.
19909         * sunrpc/rpcsvc/rstat.x: Likewise.
19910         * sunrpc/rpcsvc/rusers.x: Likewise.
19911         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19912         * sunrpc/rpcsvc/spray.x: Likewise.
19913         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19914         * sunrpc/rtime.c: Likewise.
19915         * sunrpc/svc.c: Likewise.
19916         * sunrpc/svc_auth.c: Likewise.
19917         * sunrpc/svc_authux.c: Likewise.
19918         * sunrpc/svc_raw.c: Likewise.
19919         * sunrpc/svc_run.c: Likewise.
19920         * sunrpc/svc_simple.c: Likewise.
19921         * sunrpc/svc_tcp.c: Likewise.
19922         * sunrpc/svc_udp.c: Likewise.
19923         * sunrpc/svc_unix.c: Likewise.
19924         * sunrpc/svcauth_des.c: Likewise.
19925         * sunrpc/xcrypt.c: Likewise.
19926         * sunrpc/xdr.c: Likewise.
19927         * sunrpc/xdr_array.c: Likewise.
19928         * sunrpc/xdr_float.c: Likewise.
19929         * sunrpc/xdr_mem.c: Likewise.
19930         * sunrpc/xdr_rec.c: Likewise.
19931         * sunrpc/xdr_ref.c: Likewise.
19932         * sunrpc/xdr_sizeof.c: Likewise.
19933         * sunrpc/xdr_stdio.c: Likewise.
19934
19935         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19936         handling.
19937
19938 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19939
19940         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19941
19942 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19943
19944         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19945         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19946         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19947         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19948         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19949         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19950         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19951         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19952         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19953         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19954         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19955         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19956         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19957         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19958
19959 2010-07-26  Anton Blanchard  <anton@samba.org>
19960
19961         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19962         * malloc/arena.c (heap_trim): Likewise.
19963
19964 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19965
19966         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19967         here.  Not...
19968         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19969         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19970
19971 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19972
19973         * sysdeps/i386/elf/Makefile: New file.
19974
19975 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19976
19977         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19978         from fanotify_init.
19979         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19980         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19981
19982 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19983
19984         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19985         of strncasecmp_l.
19986         * sysdeps/multiarch/strcmp.S: Likewise.
19987
19988 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19989
19990         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
19991         strncase_l-nonascii.
19992         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
19993         Add strncase_l-ssse3.
19994         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
19995         * sysdeps/x86_64/strcmp.S: Likewise.
19996         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
19997         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
19998         * sysdeps/x86_64/strncase.S: New file.
19999         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20000         * sysdeps/x86_64/strncase_l.S: New file.
20001         * string/Makefile (strop-tests): Add strncasecmp.
20002         * string/test-strncasecmp.c: New file.
20003
20004         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20005         warning.
20006
20007         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20008         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20009
20010 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20011
20012         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20013
20014 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20015
20016         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20017         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20018         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20019
20020 2010-05-01  Alan Modra  <amodra@gmail.com>
20021
20022         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20023         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20024         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20025         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20026         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20027         tidying.  Don't tail-call __sigjmp_save for static lib.
20028         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20029         save location.
20030         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20031         (CALL_MCOUNT): Add eh info, and nop after bl.
20032         (TAIL_CALL_SYSCALL_ERROR): New macro.
20033         (PSEUDO_RET): Use it.
20034         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20035         Correct save location of integer regs and cr.
20036         (_dl_profile_resolve): Correct cr save location.  Delete nops
20037         after bl when SHARED.  Reduce cfi size a little by better
20038         placement of cfi directives.
20039         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20040         make a stack frame.  Instead use parm save area as a temp.
20041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20042         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20044         Don't make a stack frame for parent, use parm save area.
20045         Increase child stack frame to 112 bytes.  Don't save unused reg,
20046         and adjust reg usage.  Set up cfi on error recovery and
20047         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20049         (__makecontext): Add dummy nop after jump to exit.
20050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20051         Use correct parm save area and cr save, reduce stack frame.
20052         Correct cfi for possible PSEUDO_RET frame setup.
20053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20054         Branch to local label emitted by PSEUDO_RET rather than
20055         __syscall_error.
20056
20057 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20058
20059         [BZ #11904]
20060         * locale/programs/locale.c (print_assignment): New function.
20061         (show_locale_vars): Use it.
20062
20063 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20064
20065         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20066         field.
20067         (struct statfs64): Likewise.
20068         (_STATFS_F_FLAGS): Define.
20069         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20070         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20071         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20072         (ST_VALID): Define locally.
20073         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20074         __statvfs_getflags, use the provided value.
20075         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20076         __ASSUME_STATFS_F_FLAGS.
20077
20078         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20079
20080         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20081         Add sys/fanotify.h.
20082         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20083         fanotify_mask for GLIBC_2.13.
20084         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20085         fanotify_init and fanotify_mark.
20086         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20087         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20088
20089         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20090         Add prlimit.
20091         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20092         prlimit64 for GLIBC_2.13.
20093         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20094         prlimit64.
20095         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20096         syscall.
20097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20098         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20099         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20100         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20101         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20102         add prlimit alias.
20103         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20104
20105         [BZ #11903]
20106         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20107         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20108
20109         * nss/Makefile: Add rules to build and run tst-nss-test1.
20110         * shlib-versions: Add entry for libnss_test1.
20111         * nss/nss_test1.c: New file.
20112         * nss/tst-nss-test1.c: New file.
20113
20114         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20115         (__nss_configure_lookup): Set appropriate entry in
20116         __nss_configure_lookup to true.
20117         * nss/nsswitch.h: Define enum with indeces of databases in
20118         databases and __nss_database_custom arrays.  Declare
20119         __nss_database_custom.
20120         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20121         to avoid using nscd when custom rules are installed.
20122         * nss/getXXbyYY_r.c: Likewise.
20123         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20124
20125         * nss/nss_files/files-parse.c: Whitespace fixes.
20126
20127 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20128
20129         [BZ #11883]
20130         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20131         * posix/fnmatch_loop.c: Likewise.
20132
20133 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20134
20135         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20136         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20137         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20138         * Versions.def [GLIBC_2.13]: Add.
20139
20140 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20141
20142         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20143         Also fail if tpwd after pwuid call is NULL.
20144
20145 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20146
20147         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20148         when converting to ms.
20149
20150 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20151
20152         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20153         EOPNOTSUPP errors with ENOTTY.
20154         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20155         EOPNOTSUPP errors with ENOTTY.
20156
20157 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20158
20159         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20160         Add strcasecmp_l-ssse3.
20161         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20162         strcasecmp.
20163         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20164         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20165         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20166
20167 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20168
20169         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20170
20171         * string/Makefile (strop-tests): Add strcasecmp.
20172         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20173         strcasecmp_l-nonascii.
20174         (gen-as-const-headers): Add locale-defines.sym.
20175         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20176         * sysdeps/x86_64/strcasecmp.S: New file.
20177         * sysdeps/x86_64/strcasecmp_l.S: New file.
20178         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20179         * sysdeps/x86_64/locale-defines.sym: New file.
20180         * string/test-strcasecmp.c: New file.
20181
20182         * string/test-strcasestr.c: Test both ends of the range of characters.
20183         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20184
20185 2010-07-29  Roland McGrath  <roland@redhat.com>
20186
20187         [BZ #11856]
20188         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20189
20190 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20191
20192         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20193         for ld.so.
20194
20195 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20196
20197         * manual/memory.texi (Malloc Tunable Parameters): Document
20198         M_PERTURB.
20199
20200 2010-07-26  Roland McGrath  <roland@redhat.com>
20201
20202         [BZ #11840]
20203         * configure.in (-fgnu89-inline check): Set and substitute
20204         gnu89_inline, not libc_cv_gnu89_inline.
20205         * configure: Regenerated.
20206         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20207
20208 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20209
20210         * string/test-strnlen.c: New file.
20211         * string/Makefile (strop-tests): Add strnlen.
20212         * string/tester.c (test_strnlen): Add a few more test cases.
20213         * string/tst-strlen.c: Better error reporting.
20214
20215         * sysdeps/x86_64/strnlen.S: New file.
20216
20217 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20218
20219         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20220         lower-latency instructions.
20221
20222 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20223
20224         * string/test-strcasestr.c: New file.
20225         * string/test-strstr.c: New file.
20226         * string/Makefile (strop-tests): Add strstr and strcasestr.
20227         * string/str-two-way.h: Don't undefine MAX.
20228         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20229
20230 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20231
20232         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20233         strcasestr-nonascii.
20234         (CFLAGS-strcasestr-nonascii.c): Define.
20235         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20236         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20237         Remove unused attribute.
20238
20239 2010-07-20  Roland McGrath  <roland@redhat.com>
20240
20241         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20242         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20243         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20244         like LD_HWCAP_MASK can disable hwcaps.
20245
20246 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20247
20248         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20249
20250 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20251
20252         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20253         call in strcasestr.
20254         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20255         __strcasestr_sse42_nonascii.
20256         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20257         strcasestr-nonascii.c.
20258         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20259
20260 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20261
20262         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20263         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20264         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20265         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20266
20267 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20268
20269         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20270         fcntl.
20271
20272 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20273
20274         [BZ #11577]
20275         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20276         dl_signal_cerror.
20277
20278 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20279
20280         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20281         _PC_PIPE_BUF using F_GETPIPE_SZ.
20282
20283 2010-07-05  Roland McGrath  <roland@redhat.com>
20284
20285         * manual/arith.texi (Rounding Functions): Fix rint description
20286         implicit in round description.
20287
20288 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20289
20290         * elf/Makefile: Fix linking for a few tests to make recent linker
20291         happy.
20292
20293 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20294
20295         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20296         $(common-objpfx)libc_nonshared.a.
20297
20298 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20299
20300         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20301         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20302         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20303         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20304         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20305         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20306         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20307         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20322         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20323         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20324         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20325         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20326         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20327         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20328         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20329         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20330         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20331         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20332         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20333         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20348
20349 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20350
20351         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20352         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20353         * string/memmove.c (memmove): Renamed to ...
20354         (MEMMOVE): ...this.  Default to memmove.
20355         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20356         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20357         (END_CHK): Define.
20358         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20359         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20360         mempcpy-ssse3-back memmove-ssse3-back.
20361         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20362         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20363         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20364         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20365         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20366         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20367         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20368         * sysdeps/x86_64/multiarch/memmove.c: New file.
20369         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20370         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20371         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20372         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20373         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20374         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20375         Define.
20376         (index_Fast_Copy_Backward): Define.
20377         (HAS_ARCH_FEATURE): Define.
20378         (HAS_FAST_REP_STRING): Define.
20379         (HAS_FAST_COPY_BACKWARD): Define.
20380
20381 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20382
20383         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20384         Restore proper fallback handling.
20385
20386 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20387
20388         [BZ #11701]
20389         * posix/group_member.c (__group_member): Correct checking loop.
20390
20391         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20392         OOM in getpwuid_r correctly.  Return error number when the caller
20393         should return, otherwise -1.
20394         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20395         call returning > 0 value.
20396         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20397
20398 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20399
20400         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20401         libc_nonshared.a from targets in modules-names.
20402
20403 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20404
20405         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20406         requires it.
20407
20408 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20409
20410         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20411         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20412         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20413         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20414
20415 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20416
20417         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20418
20419 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20420
20421         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20422         and F_GETPIPE_SZ.
20423         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20424         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20425         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20426         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20427         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20428         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20429
20430 2010-06-14  Roland McGrath  <roland@redhat.com>
20431
20432         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20433
20434 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20435
20436         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20437         __REDIRECT followed by __THROW.
20438         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20439         * posix/getopt.h (getopt): Likewise.
20440
20441 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20442
20443         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20444         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20445         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20446         in AT_FLAGS.
20447         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20448         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20449
20450 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20451
20452         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20453
20454 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20455
20456         [BZ #11640]
20457         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20458         Properly check family and model.
20459
20460 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20461
20462         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20463
20464 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20465
20466         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20467
20468 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20469
20470         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20471         symbol reference.
20472
20473 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20474
20475         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20476         symbol reference.
20477
20478 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20479
20480         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20481         and internal_recvmmsg.
20482         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20483         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20484         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20485         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20486
20487         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20488         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20489         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20490
20491 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20492
20493         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20494
20495 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20496
20497         POWER7 optimizations.
20498         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20499         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20500
20501 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20502
20503         * version.h: Update for 2.13 development version.
20504
20505 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20506
20507         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20508         exceptions.  Return 0.
20509
20510 2010-05-07  Roland McGrath  <roland@redhat.com>
20511
20512         * elf/ldconfig.c (main): Add a const.
20513
20514 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20515
20516         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20517         (args_options): Add no-idn option.
20518         (ahosts_keys_int): Add idn_flags to ai_flags.
20519         (parse_option): Handle 'i' option to clear idn_flags.
20520
20521         * malloc/malloc.c (_int_free): Possible race in the most recently
20522         added check.  Only act on the data if no current modification
20523         happened.
20524
20525 See ChangeLog.17 for earlier changes.